Back to index

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

Go to the source code of this file.


struct  sembuf


#define __need_size_t


__BEGIN_DECLS int semctl (int __semid, int __semnum, int __cmd,...) __THROW
int semget (key_t __key, int __nsems, int __semflg) __THROW
int semop (int __semid, struct sembuf *__sops, size_t __nsops) __THROW

Class Documentation

struct sembuf

Definition at line 42 of file sem.h.

Class Members
short int sem_flg
unsigned short int sem_num
short int sem_op

Define Documentation

#define __need_size_t

Definition at line 24 of file sem.h.

Function Documentation

__BEGIN_DECLS int semctl ( int  __semid,
int  __semnum,
int  __cmd,

Definition at line 44 of file semctl.c.

  union semun arg;
  va_list ap;

  va_start (ap, cmd);

  /* Get the argument.  */
  arg = va_arg (ap, union semun);

  va_end (ap);

  return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
                      CHECK_SEMCTL (&arg, semid, cmd)->array);

Here is the caller graph for this function:

int semget ( key_t  __key,
int  __nsems,
int  __semflg 

Definition at line 32 of file semget.c.

  return INLINE_SYSCALL (ipc, 5, IPCOP_semget, key, nsems, semflg, NULL);
int semop ( int  __semid,
struct sembuf __sops,
size_t  __nsops 

Definition at line 31 of file semop.c.

  return INLINE_SYSCALL (ipc, 5, IPCOP_semop,
                      semid, (int) nsops, 0, CHECK_N (sops, nsops));