PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
propgcc
propeller-elf
include
dirent.h
Go to the documentation of this file.
1
5
#ifndef _DIRENT_H
6
#define _DIRENT_H
7
8
#if defined(__cplusplus)
9
extern
"C"
{
10
#endif
11
12
#define ATTR_READ_ONLY 0x01
13
#define ATTR_HIDDEN 0x02
14
#define ATTR_SYSTEM 0x04
15
#define ATTR_VOLUME_ID 0x08
16
#define ATTR_DIRECTORY 0x10
17
#define ATTR_ARCHIVE 0x20
18
29
typedef
struct
DIRstruct
{
30
uint32_t currentcluster;
// current cluster in dir
31
uint8_t currentsector;
// current sector in cluster
32
uint8_t currententry;
// current dir entry in sector
33
uint8_t *scratch;
// ptr to user-supplied sector buffer
34
uint8_t flags;
// internal DOSFS flags
35
}
DIR
;
36
65
struct
dirent
{
66
uint8_t name[11];
// filename
67
uint8_t attr;
// attributes
68
uint8_t reserved;
// reserved, must be 0
69
uint8_t crttimetenth;
// create time, 10ths of a second (0-199)
70
uint8_t crttime_0;
// creation time byte 0
71
uint8_t crttime_1;
// creation time byte 1
72
uint8_t crtdate_0;
// creation date byte 0
73
uint8_t crtdate_1;
// creation date byte 1
74
uint8_t lstaccdate_l;
// last access date byte 0
75
uint8_t lstaccdate_h;
// last access date byte 1
76
uint8_t startcluster_2;
// first cluster, byte 2 (FAT32)
77
uint8_t startcluster_3;
// first cluster, byte 3 (FAT32)
78
uint8_t wrttime_0;
// last write time byte 0
79
uint8_t wrttime_1;
// last write time byte 1
80
uint8_t wrtdate_0;
// last write date byte 0
81
uint8_t wrtdate_1;
// last write date byte 1
82
uint8_t startcluster_0;
// first cluster, byte 0
83
uint8_t startcluster_1;
// first cluster, byte 1
84
uint8_t filesize_0;
// file size, byte 0
85
uint8_t filesize_1;
// file size, byte 1
86
uint8_t filesize_2;
// file size, byte 2
87
uint8_t filesize_3;
// file size, byte 3
88
char
d_name[13];
// filename in file.ext format
89
};
90
103
DIR
*
opendir
(
const
char
*path);
104
134
struct
dirent
*
readdir
(
DIR
*dirp);
135
147
int
closedir
(
DIR
*dirp);
148
149
#if defined(__cplusplus)
150
}
151
#endif
152
153
#endif
DIRstruct
Defines the dirent.h DIR struct.
Definition:
dirent.h:29
DIR
struct DIRstruct DIR
Defines the dirent.h DIR struct.
opendir
DIR * opendir(const char *path)
readdir
struct dirent * readdir(DIR *dirp)
dirent
Defines the dirent.h dirent struct.
Definition:
dirent.h:65
closedir
int closedir(DIR *dirp)
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17