Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sun Feb 12 8:20:07 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Opendir en anglais

OPENDIR(3) Linux Programmer's Manual OPENDIR(3)
 
NAME


opendir, fdopendir - open a directory
 
SYNOPSIS


#include #include DIR *opendir(const char *name); DIR *fdopendir(int fd);
 
DESCRIPTION


The opendir() function opens a directory stream corresponding to the directory name, and returns a pointer to the directory stream. The stream is positioned at the first entry in the directory. The fdopendir() is like opendir(), but returns a directory stream for the directory referred to by the open file descriptor fd. After a suc- cessful call to fdopendir(), fd is used internally by the implementa- tion, and should not otherwise be used by the application.
 
RETURN VALUE


The opendir() and fdopendir() functions return a pointer to the direc- tory stream. On error, NULL is returned, and errno is set appropri- ately.
 
ERRORS


EACCES Permission denied. EBADF fd is not a valid file descriptor opened for reading. EMFILE Too many file descriptors in use by process. ENFILE Too many files are currently open in the system. ENOENT Directory does not exist, or name is an empty string. ENOMEM Insufficient memory to complete the operation.
 
ENOTDIR


name is not a directory.
 
VERSIONS


fdopendir() is available in glibc since version 2.4.
 
CONFORMING TO


opendir() is present on SVr4, 4.3BSD, and specified in POSIX.1-2001. fdopendir() is under consideration for inclusion in the next version of POSIX.1.
 
NOTES


The underlying file descriptor of the directory stream can be obtained using dirfd(3). The opendir() function sets the close-on-exec flag for the file descriptor underlying the DIR *. The fdopendir() function leaves the setting of the close-on-exec flag unchanged for the file descriptor, fd.
 
SEE ALSO


open(2), closedir(3), dirfd(3), readdir(3), rewinddir(3), scandir(3), seekdir(3), telldir(3)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-04-25 OPENDIR(3)


 Dernières recherches
Man  en anglais Man opendir en anglaisMan  en français Man opendir en français
Man  en anglais Man strpbrk en anglaisMan  en français Man strpbrk en français
Man  en anglais Man getdate en anglaisMan  en français Man getdate en français
Man  en anglais Man fgetpos en anglaisMan  en français Man fgetpos en français
Man  en anglais Man lesskey en anglaisMan  en français Man lesskey en français
Man  en anglais Man ctime_r en anglaisMan  en français Man ctime_r en français
Man  en anglais Man nologin en anglaisMan  en français Man nologin en français
Man  en anglais Man msgsnd en anglaisMan  en français Man msgsnd en français
Man  en anglais Man stdarg en anglaisMan  en français Man stdarg en français
Man  en anglais Man mkswap en anglaisMan  en français Man mkswap en français
Man  en anglais Man whatis en anglaisMan  en français Man whatis en français
Man  en anglais Man capset en anglaisMan  en français Man capset en français
Man  en anglais Man passwd en anglaisMan  en français Man passwd en français
Man  en anglais Man getsid en anglaisMan  en français Man getsid en français
Man  en anglais Man remove en anglaisMan  en français Man remove en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher