TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
kdirent.h
Aller à la documentation de ce fichier.
1 
29 #ifndef _KDIRENT_H
30 #define _KDIRENT_H
31 
32 #include <ksyscall.h>
33 #include <types.h>
34 #include <kstat.h>
35 
36 #define NAME_MAX 256
41 struct dirent {
45  char d_name[NAME_MAX];
46 };
47 
51 enum {
52  DT_UNKNOWN = 0,
53  DT_FIFO = 1,
54  DT_CHR = 2,
55  DT_DIR = 4,
56  DT_BLK = 6,
57  DT_REG = 8,
58  DT_LNK = 10,
59  DT_SOCK = 12,
60  DT_WHT = 14
61 };
62 
70 SYSCALL_HANDLER3(sys_readdir, int fd, char *entries, size_t *size);
71 
79 SYSCALL_HANDLER3(sys_mkdir, const char *pathname, mode_t mode, int *ret);
80 
87 SYSCALL_HANDLER2(sys_rmdir, const char *pathname, int *ret);
88 
89 #endif
SYSCALL_HANDLER2(sys_rmdir, const char *pathname, int *ret)
Definition: kdirent.c:61
uint32_t d_ino
Definition: kdirent.h:42
uint16_t d_reclen
Definition: kdirent.h:43
SYSCALL_HANDLER3(sys_readdir, int fd, char *entries, size_t *size)
Definition: kdirent.c:37
#define NAME_MAX
Definition: kdirent.h:36
unsigned short int uint16_t
Definition: types.h:35
unsigned char uint8_t
Definition: types.h:34
uint32_t mode_t
Definition: kstat.h:63
uint8_t d_type
Definition: kdirent.h:44
unsigned long int uint32_t
Definition: types.h:36
Definition: vga_modes.h:37
Manipulation des caractéristiques d'un fichier.