added access description
added full description of the access function in README.org
This commit is contained in:
parent
26356d37fe
commit
30b28ae7ff
29
README.org
29
README.org
@ -6,12 +6,35 @@
|
||||
# By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2018/10/26 13:33:24 by tmaze #+# #+# #
|
||||
# Updated: 2018/10/27 18:13:02 by tmaze ### ########.fr #
|
||||
# Updated: 2018/10/28 12:16:20 by tmaze ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
* Minishell
|
||||
Minishell project from Ecole 42
|
||||
#+AUTHOR: tmaze
|
||||
#+TITLE: 42Minishell
|
||||
|
||||
/Minishell project from Ecole 42/
|
||||
|
||||
* Fonctions authorisées
|
||||
** =int access(const char *path, int mode)=
|
||||
=#include <unistd.h>=
|
||||
|
||||
permet de virifier si le fichier désigné par =path= est accessible selon les
|
||||
permissions indiquées par =mode=.
|
||||
|
||||
*** valeurs possibles de =mode=
|
||||
| valeur | description |
|
||||
|--------+-----------------------------------|
|
||||
| R_OK | fichier lisible ? |
|
||||
| W_OK | fichier ecrivable ? |
|
||||
| X_OK | fichier exacutable/recherchable ? |
|
||||
| F_OK | fichier existe ? |
|
||||
|
||||
*** valeurs de retour
|
||||
| valeur | description |
|
||||
|--------+-----------------------------|
|
||||
| =0= | succès |
|
||||
| =-1= | erreur (met à jour =errno=) |
|
||||
|
||||
* Todo list
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user