Back to index

glibc  2.9
semaphore.h File Reference
#include <features.h>
#include <sys/types.h>
#include <bits/semaphore.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


__BEGIN_DECLS int sem_init (sem_t *__sem, int __pshared, unsigned int __value) __THROW
int sem_destroy (sem_t *__sem) __THROW
sem_tsem_open (__const char *__name, int __oflag,...) __THROW
int sem_close (sem_t *__sem) __THROW
int sem_unlink (__const char *__name) __THROW
int sem_wait (sem_t *__sem)
int sem_trywait (sem_t *__sem) __THROW
int sem_post (sem_t *__sem) __THROW
int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval) __THROW

Function Documentation

int sem_close ( sem_t __sem)

Definition at line 199 of file semaphore.c.

  __set_errno (ENOSYS);
  return -1;

Here is the call graph for this function:

Here is the caller graph for this function:

int sem_destroy ( sem_t __sem)
int sem_getvalue ( sem_t *__restrict  __sem,
int *__restrict  __sval 
__BEGIN_DECLS int sem_init ( sem_t __sem,
int  __pshared,
unsigned int  __value 
sem_t* sem_open ( __const char *  __name,
int  __oflag,
int sem_post ( sem_t __sem)
int sem_trywait ( sem_t __sem)
int sem_unlink ( __const char *  __name)
int sem_wait ( sem_t __sem)