Back to index

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

Go to the source code of this file.

Classes

union  sem_t

Defines

#define _PTHREAD_DESCR_DEFINED
#define SEM_FAILED   ((sem_t *) 0)
#define SEM_VALUE_MAX   (2147483647)

Typedefs

typedef struct
_pthread_descr_struct
_pthread_descr

Functions

__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

Class Documentation

union sem_t

Definition at line 32 of file semaphore.h.

Collaboration diagram for sem_t:
Class Members
long int __align
int __sem_value
_pthread_descr __sem_waiting
char __size

Define Documentation

Definition at line 28 of file semaphore.h.

#define SEM_FAILED   ((sem_t *) 0)

Definition at line 42 of file semaphore.h.

#define SEM_VALUE_MAX   (2147483647)

Definition at line 45 of file semaphore.h.


Typedef Documentation

Definition at line 27 of file semaphore.h.


Function Documentation

int sem_close ( sem_t __sem)

Definition at line 199 of file semaphore.c.

{
  __set_errno (ENOSYS);
  return -1;
}
int sem_destroy ( sem_t __sem)

Here is the caller graph for this function:

int sem_getvalue ( sem_t *__restrict  __sem,
int *__restrict  __sval 
)

Here is the caller graph for this function:

__BEGIN_DECLS int sem_init ( sem_t __sem,
int  __pshared,
unsigned int  __value 
)

Here is the caller graph for this function:

sem_t* sem_open ( __const char *  __name,
int  __oflag,
  ... 
)
int sem_post ( sem_t __sem)

Here is the caller graph for this function:

int sem_trywait ( sem_t __sem)

Here is the caller graph for this function:

int sem_unlink ( __const char *  __name)
int sem_wait ( sem_t __sem)

Here is the caller graph for this function: