TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Fonctions
Référence du fichier kfcntl.c
#include <fs/devfs.h>
#include <kfcntl.h>
#include <klibc/string.h>
#include <klog.h>
#include <kmalloc.h>
#include <kprocess.h>
#include <ksyscall.h>
#include <scheduler.h>
#include <tty.h>
#include <vfs.h>
Graphe des dépendances par inclusion de kfcntl.c:

Fonctions

void init_stdfd (process_t *new_proc)
 Initialise les descripteurs de fichiers standards. Plus de détails...
 
void close_all_fd ()
 Ferme tous les file descriptors ouverts.
 
 SYSCALL_HANDLER3 (sys_open, int *fd_id, char *path, uint32_t flags)
 
 SYSCALL_HANDLER2 (sys_close, int fd_id, uint32_t *ret)
 
 SYSCALL_HANDLER3 (sys_fcntl, int *fd_id, 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

Description de ce que fait le fichier

Documentation des fonctions

void init_stdfd ( process_t new_proc)

Initialise les descripteurs de fichiers standards.

Paramètres
new_procProcessus à initialiser.

Voici le graphe d'appel pour cette fonction :

SYSCALL_HANDLER2 ( sys_close  ,
int  fd_id,
uint32_t ret 
)

Syscall pour fermer un fichier.

Paramètres
fd_idIdentifiant du descripteur de fichier.
retPointeur pour enregistrer le résultat.

Voici le graphe d'appel pour cette fonction :

SYSCALL_HANDLER3 ( sys_open  ,
int *  fd_id,
char *  path,
uint32_t  flags 
)

Syscall pour ouvrir un fichier.

Paramètres
fd_idPointeur pour enregistrer le resultat.
pathChemin du fichier à ouvrir.
flagsMode d'ouverture.

Voici le graphe d'appel pour cette fonction :

SYSCALL_HANDLER3 ( sys_fcntl  ,
int *  fd_id,
unsigned int  request,
void *  data 
)

Syscall pour la manipulation d'un descripteur de fichier.

Paramètres
fd_iddescripteur du fichier et enregistrement du résultat.
requestaction à faire.
datales arguments nécessaires à l'action.

Voici le graphe d'appel pour cette fonction :