TacOS
0.2
|
#include <vfs.h>
#include <kdirent.h>
#include <kmalloc.h>
#include <klibc/string.h>
#include <scheduler.h>
#include <klog.h>
Fonctions | |
SYSCALL_HANDLER3 (sys_readdir, int fd, char *entries, size_t *size) | |
SYSCALL_HANDLER3 (sys_mkdir, const char *pathname, mode_t mode, int *ret) | |
SYSCALL_HANDLER2 (sys_rmdir, const char *pathname, int *ret) | |
Copyright (C) 2010-2014 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.
Description de ce que fait le fichier
SYSCALL_HANDLER2 | ( | sys_rmdir | , |
const char * | pathname, | ||
int * | ret | ||
) |
Suppression d'un dossier.
pathname | Nom du dossier. |
ret | Valeur de retour. |
SYSCALL_HANDLER3 | ( | sys_readdir | , |
int | fd, | ||
char * | entries, | ||
size_t * | size | ||
) |
Lecture d'un dossier.
fd | Identifiant du fichier ouvert. |
entries | Buffer qui contient des struct dirent. |
size | Taille du buffer. |
SYSCALL_HANDLER3 | ( | sys_mkdir | , |
const char * | pathname, | ||
mode_t | mode, | ||
int * | ret | ||
) |
Création d'un dossier.
pathname | Nom du dossier. |
mode | Droits. |
ret | Valeur de retour. |