TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Structures de données | Macros | Énumérations | Fonctions
Référence du fichier kdirent.h

Syscall pour ce qui est relatif aux dossiers. Plus de détails...

#include <ksyscall.h>
#include <types.h>
#include <kstat.h>
Graphe des dépendances par inclusion de kdirent.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Structures de données

struct  dirent
 

Macros

#define NAME_MAX   256
 

Énumérations

enum  {
  DT_UNKNOWN = 0, DT_FIFO = 1, DT_CHR = 2, DT_DIR = 4,
  DT_BLK = 6, DT_REG = 8, DT_LNK = 10, DT_SOCK = 12,
  DT_WHT = 14
}
 

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)
 

Description détaillée

Auteur
TacOS developers

LICENSE

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.

DESCRIPTION

Documentation des macros

#define NAME_MAX   256

Longueur maximale d'un nom de fichier.

Documentation du type de l'énumération

anonymous enum

Types de fichiers pour le champ "d_type".

Documentation des fonctions

SYSCALL_HANDLER2 ( sys_rmdir  ,
const char *  pathname,
int *  ret 
)

Suppression d'un dossier.

Paramètres
pathnameNom du dossier.
retValeur de retour.

Voici le graphe d'appel pour cette fonction :

SYSCALL_HANDLER3 ( sys_readdir  ,
int  fd,
char *  entries,
size_t size 
)

Lecture d'un dossier.

Paramètres
fdIdentifiant du fichier ouvert.
entriesBuffer qui contient des struct dirent.
sizeTaille du buffer.

Voici le graphe d'appel pour cette fonction :

SYSCALL_HANDLER3 ( sys_mkdir  ,
const char *  pathname,
mode_t  mode,
int *  ret 
)

Création d'un dossier.

Paramètres
pathnameNom du dossier.
modeDroits.
retValeur de retour.

Voici le graphe d'appel pour cette fonction :