sem.h File Reference

API published in:
API deprecated in:


#include <sys/ipc.h>
#include <sys/cdefs.h>
#include <sys/_types.h>

Go to the source code of this file.


Data Structures

struct   sem
struct   semid_ds
struct   sembuf
union   semun

Defines

#define  SEM_UNDO   010000
#define  GETNCNT   3
#define  GETPID   4
#define  GETVAL   5
#define  GETALL   6
#define  GETZCNT   7
#define  SETVAL   8
#define  SETALL   9
#define  SEM_STAT   10
#define  SEM_INFO   11
#define  SEM_A   IPC_W
#define  SEM_R   IPC_R

Typedefs

typedef __size_t  size_t
typedef __pid_t  pid_t

Functions

__BEGIN_DECLS IMPORT_C int  semget (key_t key, int nsems, int semflg)
IMPORT_C int  semop (int semid, struct sembuf *sops, unsigned nsops)
IMPORT_C int  semctl (int semid, int semnum, int cmd,...)

Define Documentation

#define GETALL   6
 
#define GETNCNT   3
 
#define GETPID   4
 
#define GETVAL   5
 
#define GETZCNT   7
 
#define SEM_A   IPC_W
 
#define SEM_INFO   11
 
#define SEM_R   IPC_R
 
#define SEM_STAT   10
 
#define SEM_UNDO   010000
 
#define SETALL   9
 
#define SETVAL   8
 

Typedef Documentation

typedef __pid_t pid_t
 
typedef __size_t size_t
 

Function Documentation

IMPORT_C int semctl int  semid,
int  semnum,
int  cmd,
  ...
 
__BEGIN_DECLS IMPORT_C int semget key_t  key,
int  nsems,
int  semflg
 
IMPORT_C int semop int  semid,
struct sembuf sops,
unsigned  nsops
 

Copyright © Nokia Corporation 2001-2008
Back to top