Back to index

glibc  2.9
Classes | Functions
semctl.c File Reference
#include <errno.h>
#include <stdarg.h>
#include <sys/sem.h>
#include <ipc_priv.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <bp-checks.h>
#include <bp-semctl.h>

Go to the source code of this file.


union  semun


int semctl (int semid, int semnum, int cmd,...)

Class Documentation

union semun

Definition at line 26 of file semctl.c.

Collaboration diagram for semun:
Class Members
struct seminfo * __buf
struct __old_semid_ds * __old_buf
unsigned short int * array
struct semid_ds * buf
int val

Function Documentation

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: