dosfstools
4.2
About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.
![]() ![]() |
#include <sys/types.h>
#include <limits.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1) |
Functions | |
void | die (const char *msg,...) __attribute((noreturn |
void | format (printf, 1, 2))) |
void | pdie (const char *msg,...) __attribute((noreturn |
void * | alloc (int size) |
void * | qalloc (void **root, int size) |
void | qfree (void **root) |
int | min (int a, int b) |
int | xasprintf (char **strp, const char *fmt,...) __attribute((format(printf |
int int | get_choice (int noninteractive_result, const char *noninteractive_msg, int choices,...) |
char * | get_line (const char *prompt, char *dest, size_t length) |
void | check_atari (void) |
uint32_t | generate_volume_id (void) |
int | validate_volume_label (char *doslabel) |
Variables | |
int | interactive |
int | write_immed |
int | atari_format |
const char * | program_name |
#define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1) |
void* alloc | ( | int | size | ) |
Definition at line 81 of file common.c.
References pdie().
Referenced by alloc_rootdir_entry(), cnv_unicode(), file_add(), fs_test(), fs_write(), lfn_add_slot(), qalloc(), read_fat(), and reclaim_file().
void check_atari | ( | void | ) |
void die | ( | const char * | msg, |
... | |||
) |
void format | ( | printf | , |
1 | , | ||
2 | |||
) |
uint32_t generate_volume_id | ( | void | ) |
Definition at line 298 of file common.c.
Referenced by handle_volid(), main(), and setup_tables().
int int get_choice | ( | int | noninteractive_result, |
const char * | noninteractive_msg, | ||
int | choices, | ||
... | |||
) |
Definition at line 157 of file common.c.
References die(), interactive, and write_immed.
Referenced by check_backup_boot(), check_boot_label(), check_dir(), check_file(), check_label(), handle_dot(), lfn_add_slot(), lfn_check_orphaned(), lfn_get(), main(), print_fat_dirty_state(), read_fat(), read_fsinfo(), and update_free().
char* get_line | ( | const char * | prompt, |
char * | dest, | ||
size_t | length | ||
) |
Definition at line 245 of file common.c.
Referenced by get_new_label(), and rename_file().
void pdie | ( | const char * | msg, |
... | |||
) |
void* qalloc | ( | void ** | root, |
int | size | ||
) |
Definition at line 91 of file common.c.
References alloc(), _link::data, _link::next, and root.
Referenced by add_file(), and cnv_unicode().
void qfree | ( | void ** | root | ) |
Definition at line 101 of file common.c.
References _link::data, _link::next, and root.
Referenced by main().
int validate_volume_label | ( | char * | doslabel | ) |
Definition at line 324 of file common.c.
References dos_string_to_wchar_string().
Referenced by check_boot_label(), check_label(), get_new_label(), handle_label(), and setup_tables().
int xasprintf | ( | char ** | strp, |
const char * | fmt, | ||
... | |||
) |
|
extern |
Definition at line 44 of file common.c.
Referenced by bad_name(), check_atari(), dump_boot(), establish_params(), main(), read_boot(), and setup_tables().
|
extern |
Definition at line 42 of file common.c.
Referenced by get_choice(), and main().
|
extern |
|
extern |
Definition at line 43 of file common.c.
Referenced by fs_write(), get_choice(), and main().