26 #include <sys/types.h>
32 #define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1)
43 void die(
const char *msg, ...)
44 __attribute((noreturn,
format(printf, 1, 2)));
48 void pdie(const
char *msg, ...)
49 __attribute((noreturn,
format(printf, 1, 2)));
53 void *
alloc(
int size);
66 int min(
int a,
int b);
71 __attribute((
format(printf, 2, 3)));
75 int get_choice(
int noninteractive_result, const
char *noninteractive_msg,
89 char *
get_line(const
char *prompt,
char *dest,
size_t length);
int int get_choice(int noninteractive_result, const char *noninteractive_msg, int choices,...)
void pdie(const char *msg,...) __attribute((noreturn
int validate_volume_label(char *doslabel)
void format(printf, 1, 2)))
void die(const char *msg,...) __attribute((noreturn
void * qalloc(void **root, int size)
int xasprintf(char **strp, const char *fmt,...) __attribute((format(printf
uint32_t generate_volume_id(void)
const char * program_name
char * get_line(const char *prompt, char *dest, size_t length)