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

Fonctions pour faciliter la gestion des dossiers. Plus de détails...

#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
Graphe des dépendances par inclusion de dirent.c:

Fonctions

int mkdir (const char *pathname, mode_t mode)
 
DIRopendir (const char *dirname)
 
struct direntreaddir (DIR *dirp)
 
int closedir (DIR *dirp)
 

Description détaillée

Auteur
TacOS developers

LICENSE

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

Documentation des fonctions

int closedir ( DIR dirp)

Fermeture d'un dossier ouvert.

Paramètres
dirpLa structure DIR initialisée par opendir.
Renvoie
0 en cas de succès.

Voici le graphe d'appel pour cette fonction :

int mkdir ( const char *  pathname,
mode_t  mode 
)

Crée un nouveau répertoire.

Paramètres
pathnameLe chemin du dossier à créer.
modeLes droits d'accès.
Renvoie
0 en cas de succès.

Voici le graphe d'appel pour cette fonction :

DIR* opendir ( const char *  dirname)

Ouvre un dossier pour lister les fichiers à l'intérieur.

Paramètres
dirnameLe chemin du dossier à ouvrir.
Renvoie
Une structure DIR permettant de lire le contenu du dossier.

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :

struct dirent* readdir ( DIR dirp)

Lecture de la prochaine entrée du dossier.

Paramètres
dirpLa structure DIR initialisée par opendir.
Renvoie
Un directory entry.

Voici le graphe d'appel pour cette fonction :