VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
sem.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./types.h"
#include "./ipc.h"

Go to the source code of this file.

Data Structures

struct  semid_ds
 
struct  sembuf
 
struct  vsf_linux_sys_sem_vplt_t
 

Macros

#define SEM_UNDO   (1 << 0)
 
#define GETPID   (F_USER + 0)
 
#define GETVAL   (F_USER + 1)
 
#define GETALL   (F_USER + 2)
 
#define GETNCNT   (F_USER + 3)
 
#define GETZCNT   (F_USER + 4)
 
#define SETVAL   (F_USER + 5)
 
#define SETALL   (F_USER + 6)
 
#define semget   VSF_LINUX_WRAPPER(semget)
 
#define semctl   VSF_LINUX_WRAPPER(semctl)
 
#define semop   VSF_LINUX_WRAPPER(semop)
 
#define semtimedop   VSF_LINUX_WRAPPER(semtimedop)
 

Typedefs

typedef struct vsf_linux_sys_sem_vplt_t vsf_linux_sys_sem_vplt_t
 

Functions

int semctl (int semid, int semnum, int cmd,...)
 
int semget (key_t key, int nsems, int semflg)
 
int semop (int semid, struct sembuf *sops, size_t nsops)
 
int semtimedop (int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_sys_sem_vplt_t vsf_linux_sys_sem_vplt
 

Macro Definition Documentation

◆ SEM_UNDO

#define SEM_UNDO   (1 << 0)

◆ GETPID

#define GETPID   (F_USER + 0)

◆ GETVAL

#define GETVAL   (F_USER + 1)

◆ GETALL

#define GETALL   (F_USER + 2)

◆ GETNCNT

#define GETNCNT   (F_USER + 3)

◆ GETZCNT

#define GETZCNT   (F_USER + 4)

◆ SETVAL

#define SETVAL   (F_USER + 5)

◆ SETALL

#define SETALL   (F_USER + 6)

◆ semget

#define semget   VSF_LINUX_WRAPPER(semget)

◆ semctl

#define semctl   VSF_LINUX_WRAPPER(semctl)

◆ semop

#define semop   VSF_LINUX_WRAPPER(semop)

◆ semtimedop

#define semtimedop   VSF_LINUX_WRAPPER(semtimedop)

Typedef Documentation

◆ vsf_linux_sys_sem_vplt_t

Function Documentation

◆ semctl()

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

◆ semget()

int semget ( key_t  key,
int  nsems,
int  semflg 
)

◆ semop()

int semop ( int  semid,
struct sembuf sops,
size_t  nsops 
)

◆ semtimedop()

int semtimedop ( int  semid,
struct sembuf sops,
size_t  nsops,
const struct timespec timeout 
)

Variable Documentation

◆ vsf_linux_sys_sem_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_sys_sem_vplt_t vsf_linux_sys_sem_vplt
extern