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

File control operations. Plus de détails...

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

Fonctions

int open (const char *pathname, int flags)
 
int close (int id)
 
int fcntl (int fd, unsigned int request, void *data)
 

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 close ( int  id)

Ferme un fichier ouvert.

Paramètres
iddescripteur du fichier.
Renvoie
0 en cas de succès.

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :

int fcntl ( int  fd,
unsigned int  request,
void *  data 
)

Manipulation d'un descripteur de fichier.

Paramètres
fddescripteur du fichier.
requestaction à faire.
datales arguments nécessaires à l'action.
Renvoie
valeur en fonction de l'action.

Voici le graphe d'appel pour cette fonction :

int open ( const char *  pathname,
int  flags 
)

Ouvrir un fichier ou un périphérique.

Paramètres
pathnameChemin du fichier.
flagsFlags pour indiquer le mode d'ouverture.
Renvoie
l'id du file descriptor. -1 en cas d'erreur.

Voici le graphe d'appel pour cette fonction :

Voici le graphe des appelants de cette fonction :