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 <bp-checks.h>
#include <bp-semctl.h>
#include <shlib-compat.h>

Go to the source code of this file.


union  semun


int __semctl (int semid, int semnum, int cmd,...)
 versioned_symbol (libc, __semctl, semctl, GLIBC_2_0)

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 40 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 (semctl, 4, semid, semnum, cmd | __IPC_64,
                      CHECK_SEMCTL (&arg, semid, cmd | __IPC_64)->array);

Here is the call graph for this function:

versioned_symbol ( libc  ,
__semctl  ,
semctl  ,