TacOS
0.2
|
Définition de DIR et struct dirent. Plus de détails...
Aller au code source de ce fichier.
Structures de données | |
struct | _DIR |
struct | dirent |
Macros | |
#define | NAME_MAX 256 |
Définitions de type | |
typedef struct _DIR | DIR |
É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 | |
int | mkdir (const char *pathname, mode_t mode) |
DIR * | opendir (const char *dirname) |
struct dirent * | readdir (DIR *dirp) |
int | closedir (DIR *dirp) |
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.
#define NAME_MAX 256 |
Taille maximale d'un nom de fichier.
anonymous enum |
Types de fichiers pour le champ "d_type".
int closedir | ( | DIR * | dirp | ) |
Fermeture d'un dossier ouvert.
dirp | La structure DIR initialisée par opendir. |
int mkdir | ( | const char * | pathname, |
mode_t | mode | ||
) |
Crée un nouveau répertoire.
pathname | Le chemin du dossier à créer. |
mode | Les droits d'accès. |
DIR* opendir | ( | const char * | dirname | ) |
Ouvre un dossier pour lister les fichiers à l'intérieur.
dirname | Le chemin du dossier à ouvrir. |