#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "fat32.h"
Go to the source code of this file.
|
Uint32 | mfat_allocate_linear_fat_chunk (Uint32 size) |
|
void | mfat_init (mfat_io_callback_func_t reader, mfat_io_callback_func_t writer, Uint32 device_size) |
|
int | mfat_init_mbr (void) |
|
int | mfat_use_part (int part) |
|
void | mfat_open_stream (mfat_stream_t *p, Uint32 cluster) |
|
void | mfat_open_rootdir (mfat_stream_t *p) |
|
void | mfat_rewind_stream (mfat_stream_t *p) |
|
Uint32 | mfat_get_real_size (mfat_stream_t *p, int *fragmented) |
|
int | mfat_read_stream (mfat_stream_t *p, void *buf, int size) |
|
int | mfat_read_directory (mfat_dirent_t *p, int type_filter) |
|
int | mfat_search_in_directory (mfat_dirent_t *p, const char *name, int type_filter) |
|
Uint32 | mfat_overwrite_file_with_direct_linear_device_block_write (mfat_dirent_t *dirent, const char *name, Uint32 size) |
|
int | mfat_open_file_by_dirent (mfat_dirent_t *p) |
|
int | mfat_open_file_by_name (mfat_dirent_t *p, const char *name, int type_filter) |
|
int | mfat_read_file (mfat_dirent_t *p, void *buf, int size) |
|
int | mfat_fatize_name (char *d, const char *s) |
|
int | mfat_normalize_name (char *d, const char *s) |
|
int | main (int argc, char **argv) |
|
◆ AS_DWORD
#define AS_DWORD |
( |
|
p, |
|
|
|
o |
|
) |
| (p[o] + (p[o+1] << 8) + (p[o+2] << 16) + (p[o+3] << 24)) |
◆ AS_WORD
#define AS_WORD |
( |
|
p, |
|
|
|
o |
|
) |
| (p[o] + (p[o+1] << 8)) |
◆ ERROR_WINDOW
#define ERROR_WINDOW |
( |
|
... | ) |
do { fprintf(stderr, "ERROR: "); fprintf(stderr, __VA_ARGS__); } while(0) |
◆ FATAL
#define FATAL |
( |
|
... | ) |
do { fprintf(stderr, "FATAL: "); fprintf(stderr, __VA_ARGS__); exit(1); } while(0) |
◆ FATDEBUG
◆ FATDEBUGPRINT
#define FATDEBUGPRINT printf |
◆ FDISK_SUPPORT
◆ FS_MINIMAL_SIZE_IN_BLOCKS
#define FS_MINIMAL_SIZE_IN_BLOCKS 10 |
◆ NL
◆ OFF_T_ERROR
#define OFF_T_ERROR ((off_t)-1) |
◆ Uint16
◆ Uint32
◆ Uint8
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ mfat_allocate_linear_fat_chunk()
◆ mfat_fatize_name()
int mfat_fatize_name |
( |
char * |
d, |
|
|
const char * |
s |
|
) |
| |
◆ mfat_get_real_size()
◆ mfat_init()
◆ mfat_init_mbr()
int mfat_init_mbr |
( |
void |
| ) |
|
◆ mfat_normalize_name()
int mfat_normalize_name |
( |
char * |
d, |
|
|
const char * |
s |
|
) |
| |
◆ mfat_open_file_by_dirent()
◆ mfat_open_file_by_name()
int mfat_open_file_by_name |
( |
mfat_dirent_t * |
p, |
|
|
const char * |
name, |
|
|
int |
type_filter |
|
) |
| |
◆ mfat_open_rootdir()
◆ mfat_open_stream()
◆ mfat_overwrite_file_with_direct_linear_device_block_write()
◆ mfat_read_directory()
◆ mfat_read_file()
◆ mfat_read_stream()
◆ mfat_rewind_stream()
◆ mfat_search_in_directory()
int mfat_search_in_directory |
( |
mfat_dirent_t * |
p, |
|
|
const char * |
name, |
|
|
int |
type_filter |
|
) |
| |
◆ mfat_use_part()
int mfat_use_part |
( |
int |
part | ) |
|
◆ block
◆ blocks
◆ buf
◆ cluster
◆ cluster_block
◆ dirty
◆ mfat_partitions
◆ ofs
◆ part
◆ reader
◆ writer