34 #include <sys/syslimits.h> 39 #define DIR_ENTRY_DATA_SIZE 0x20 40 #define MAX_LFN_LENGTH 256 41 #define MAX_ALIAS_LENGTH 13 42 #define LFN_ENTRY_LENGTH 13 43 #define ALIAS_ENTRY_LENGTH 11 44 #define MAX_ALIAS_EXT_LENGTH 3 45 #define MAX_ALIAS_PRI_LENGTH 8 46 #define MAX_NUMERIC_TAIL 999999 47 #define FAT16_ROOT_DIR_CLUSTER 0 49 #define DIR_SEPARATOR '/' 52 #define ATTRIB_ARCH 0x20 // Archive 53 #define ATTRIB_DIR 0x10 // Directory 54 #define ATTRIB_LFN 0x0F // Long file name 55 #define ATTRIB_VOL 0x08 // Volume 56 #define ATTRIB_SYS 0x04 // System 57 #define ATTRIB_HID 0x02 // Hidden 58 #define ATTRIB_RO 0x01 // Read only 60 #define CASE_LOWER_EXT 0x10 // WinNT lowercase extension 61 #define CASE_LOWER_BASE 0x08 // WinNT lowercase basename 75 char filename[NAME_MAX];
181 #endif // _DIRECTORY_H FILE_TYPE
Definition: directory.h:63
bool _FAT_directory_entryFromPath(PARTITION *partition, DIR_ENTRY *entry, const char *path, const char *pathEnd)
Definition: directory.c:561
Definition: directory.h:80
Definition: directory.h:89
GLsizei const GLchar ** path
Definition: glext.h:7901
void _FAT_directory_entryStat(PARTITION *partition, DIR_ENTRY *entry, struct stat *st)
Definition: directory.c:1147
Definition: directory.h:83
bool _FAT_directory_getVolumeLabel(PARTITION *partition, char *label)
Definition: directory.c:448
Definition: directory.h:88
bool _FAT_directory_addEntry(PARTITION *partition, DIR_ENTRY *entry, uint32_t dirCluster)
Definition: directory.c:939
#define ATTRIB_DIR
Definition: directory.h:53
bool _FAT_directory_entryFromPosition(PARTITION *partition, DIR_ENTRY *entry)
Definition: directory.c:494
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
Definition: directory.h:84
Definition: directory.h:81
Definition: directory.h:90
static bool _FAT_directory_isWritable(DIR_ENTRY *entry)
Definition: directory.h:102
Definition: directory.h:91
static IdxT partition(lua_State *L, IdxT lo, IdxT up)
Definition: ltablib.c:310
uint32_t sec_t
Definition: iosuhax_disc_interface.h:40
Definition: directory.h:86
#define ATTRIB_RO
Definition: directory.h:58
Definition: directory.h:92
uint32_t _FAT_directory_entryGetCluster(PARTITION *partition, const uint8_t *entryData)
Definition: directory.c:257
Definition: partition.h:52
Definition: directory.h:82
Definition: directory.h:63
Definition: directory.h:85
signed int int32_t
Definition: stdint.h:123
bool _FAT_directory_chdir(PARTITION *partition, const char *path)
Definition: directory.c:1132
char filename[NAME_MAX]
Definition: directory.h:75
bool _FAT_directory_removeEntry(PARTITION *partition, DIR_ENTRY *entry)
Definition: directory.c:683
Definition: directory.h:63
uint8_t entryData[DIR_ENTRY_DATA_SIZE]
Definition: directory.h:72
static bool _FAT_directory_isDirectory(DIR_ENTRY *entry)
Definition: directory.h:98
Definition: directory.h:71
Definition: directory.h:87
#define DIR_ENTRY_DATA_SIZE
Definition: directory.h:39
GLintptr offset
Definition: glext.h:6560
bool _FAT_directory_getFirstEntry(PARTITION *partition, DIR_ENTRY *entry, uint32_t dirCluster)
Definition: directory.c:414
DIR_ENTRY_offset
Definition: directory.h:79
bool _FAT_directory_getNextEntry(PARTITION *partition, DIR_ENTRY *entry)
Definition: directory.c:303
Definition: directory.h:65
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126
static bool _FAT_directory_isDot(DIR_ENTRY *entry)
Definition: directory.h:106