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

l'interface de manipulation des semaphores Plus de détails...

#include <sys/cdefs.h>
#include <sys/types.h>
Graphe des dépendances par inclusion de sem.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Macros

#define SEM_NEW   255
 
#define SEM_CREATE   1
 

Fonctions

int semget (uint8_t key, int semflg)
 donne l'identifiant (semid) d'un sémaphore déjà existant Plus de détails...
 
int semdel (uint32_t semid)
 supprime un sémaphore Plus de détails...
 
int semP (uint32_t semid)
 
int semV (uint32_t semid)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - 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

int semdel ( uint32_t  semid)
Paramètres
semidl'identifiant du sémaphore à supprimer.
Renvoie

Voici le graphe d'appel pour cette fonction :

int semget ( uint8_t  key,
int  semflg 
)
Paramètres
keyla clef du sémaphore, cette clef est commune au système
Renvoie
le semid correspondant au sémaphore, -1 si une erreur s'est produite.

Voici le graphe d'appel pour cette fonction :