TacOS
0.2
|
Principales fonctions de l'API POSIX (read, write, seek, stat...) Plus de détails...
Aller au code source de ce fichier.
Fonctions | |
SYSCALL_HANDLER3 (sys_write, uint32_t fd, const void *buf, size_t *c) | |
SYSCALL_HANDLER3 (sys_read, uint32_t fd, const void *buf, size_t *c) | |
SYSCALL_HANDLER3 (sys_seek, uint32_t fd, long *offset, int whence) | |
SYSCALL_HANDLER3 (sys_ioctl, uint32_t *fd, unsigned int request, void *data) | |
SYSCALL_HANDLER3 (sys_select, uint32_t *fd, size_t n, int *ret) | |
SYSCALL_HANDLER3 (sys_stat, const char *path, struct stat *buf, int *ret) | |
SYSCALL_HANDLER2 (sys_unlink, const char *path, int *ret) | |
SYSCALL_HANDLER2 (sys_dup, int oldfd, int *ret) | |
SYSCALL_HANDLER2 (sys_dup2, int oldfd, int *newfd) | |
SYSCALL_HANDLER3 (sys_mknod, const char *path, mode_t mode, dev_t *dev) | |
SYSCALL_HANDLER3 (sys_chmod, const char *path, mode_t mode, int *ret) | |
SYSCALL_HANDLER3 (sys_chown, const char *path, uid_t owner, gid_t *group) | |
SYSCALL_HANDLER3 (sys_utimes, const char *path, const struct timeval times[2], int *ret) | |
SYSCALL_HANDLER3 (sys_rename, const char *oldpath, const char *newpath, int *ret) | |
SYSCALL_HANDLER3 (sys_readlink, const char *path, char *buf, ssize_t *ret) | |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
SYSCALL_HANDLER2 | ( | sys_unlink | , |
const char * | path, | ||
int * | ret | ||
) |
Syscall pour supprimer un fichier.
path | Le chemin du fichier à supprimer. |
ret | Le code retour de la fonction. |
SYSCALL_HANDLER2 | ( | sys_dup | , |
int | oldfd, | ||
int * | ret | ||
) |
Syscall pour dupliquer un open file descriptor.
oldfd | L'identifiant de descripteur de fichier ouvert à dupliquer. |
ret | Le nouvel identifiant. |
Syscall pour écrire dans un fichier.
fd | Id du descripteur de fichier. |
buf | Données à écrire. |
c | Nombre d'octets à écrire. |
Syscall pour lire dans un fichier.
fd | Id du descripteur de fichier. |
buf | Buffer pour stocker les données lues. |
c | Nombre d'octets à lire. |
SYSCALL_HANDLER3 | ( | sys_seek | , |
uint32_t | fd, | ||
long * | offset, | ||
int | whence | ||
) |
Syscall pour se déplacer dans un fichier.
fd | Id du descripteur de fichier. |
SYSCALL_HANDLER3 | ( | sys_ioctl | , |
uint32_t * | fd, | ||
unsigned int | request, | ||
void * | data | ||
) |
Syscall pour controler un fichier.
fd | Pointeur sur l'id du descripteur de fichier. Utilisé comme code de retour. |
Syscall pour surveiller des descripteurs de fichier.
fd | Tableau de numéros de descripteurs de fichier à surveiller. |
n | Nombre de descripteurs de fichier. |
ret | Retour de la fonction : premier descripteur de fichier prêt en lecture. |
SYSCALL_HANDLER3 | ( | sys_stat | , |
const char * | path, | ||
struct stat * | buf, | ||
int * | ret | ||
) |
Syscall pour obtenir des informations sur un fichier.
path | Le chemin du fichier dont on veut obtenir les informations. |
buf | Une structure stat pour y enregistrer les informations. |
ret | Le code retour de la fonction. |