#include <sys/posix_sem.h>

sys/posix_sem.h

posix_shm.c : Support for POSIX semaphore APIs File: posix_sem.c Author: Ananthakrishna Ramesh HISTORY 2-Sep-1999 A.Ramesh Created for MacOSX
includes: sys/appleapiopts.h, sys/types.h, sys/proc.h
10 macros · 1 struct

macroPSEMNAMLEN

#define PSEMNAMLEN 31
maximum name segment length we bother with

structpseminfo

size 88, align 8
unsigned intpsem_flags
unsigned intpsem_usecount
mode_tpsem_mode
uid_tpsem_uid
gid_tpsem_gid
char[32]psem_namesegment name
void *psem_semobject
struct label *psem_label
pid_tpsem_creator_pid
uint64_tpsem_creator_uniqueid

macroPSEMINFO_NULL

#define PSEMINFO_NULL (struct pseminfo *)0

macroPSEM_NONE

#define PSEM_NONE 1

macroPSEM_DEFINED

#define PSEM_DEFINED 2

macroPSEM_ALLOCATED

#define PSEM_ALLOCATED 4

macroPSEM_MAPPED

#define PSEM_MAPPED 8

macroPSEM_INUSE

#define PSEM_INUSE 0x10

macroPSEM_REMOVED

#define PSEM_REMOVED 0x20

macroPSEM_INCREATE

#define PSEM_INCREATE 0x40

macroPSEM_INDELETE

#define PSEM_INDELETE 0x80