TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
kunistd.h
Aller à la documentation de ce fichier.
1 
29 #ifndef _KUNISTD_H
30 #define _KUNISTD_H
31 
32 #include <types.h>
33 #include <ksyscall.h>
34 #include <kstat.h>
35 
43 SYSCALL_HANDLER3(sys_write, uint32_t fd, const void *buf, size_t *c);
44 
52 SYSCALL_HANDLER3(sys_read, uint32_t fd, const void *buf, size_t *c);
53 
59 SYSCALL_HANDLER3(sys_seek, uint32_t fd, long *offset, int whence);
60 
66 SYSCALL_HANDLER3(sys_ioctl, uint32_t *fd, unsigned int request, void *data);
67 
75 SYSCALL_HANDLER3(sys_select, uint32_t *fd, size_t n, int *ret);
76 
84 SYSCALL_HANDLER3(sys_stat, const char *path, struct stat *buf, int *ret);
85 
92 SYSCALL_HANDLER2(sys_unlink, const char *path, int *ret);
93 
100 SYSCALL_HANDLER2(sys_dup, int oldfd, int *ret);
101 
102 SYSCALL_HANDLER2(sys_dup2, int oldfd, int *newfd);
103 
107 SYSCALL_HANDLER3(sys_mknod, const char *path, mode_t mode, dev_t *dev);
108 
109 SYSCALL_HANDLER3(sys_chmod, const char *path, mode_t mode, int *ret);
110 SYSCALL_HANDLER3(sys_chown, const char *path, uid_t owner, gid_t *group);
111 SYSCALL_HANDLER3(sys_utimes, const char *path, const struct timeval times[2], int *ret);
112 SYSCALL_HANDLER3(sys_rename, const char *oldpath, const char *newpath, int *ret);
113 SYSCALL_HANDLER3(sys_readlink, const char *path, char *buf, ssize_t *ret);
114 #endif
SYSCALL_HANDLER3(sys_write, uint32_t fd, const void *buf, size_t *c)
Definition: kunistd.c:37
uint32_t uid_t
Definition: kstat.h:65
Definition: clock.h:41
uint32_t dev_t
Definition: kstat.h:64
uint32_t gid_t
Definition: kstat.h:66
Informations sur un noeud.
Definition: kstat.h:75
uint32_t mode_t
Definition: kstat.h:63
int ssize_t
Definition: types.h:44
unsigned long int uint32_t
Definition: types.h:36
Definition: vga_modes.h:37
SYSCALL_HANDLER2(sys_unlink, const char *path, int *ret)
Definition: kunistd.c:161
Manipulation des caractéristiques d'un fichier.