zoslib
z/OS C/C++ Library
|
#include "zos-macros.h"
#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <sys/sem.h>
Go to the source code of this file.
Classes | |
struct | __sem |
struct | __sem_t |
Macros | |
#define | __SIZEOF_SEM_T 16 |
#define | SEM_FAILED ((sem_t *)0) |
#define | sem_t __sem_t |
#define | sem_init __sem_init |
#define | sem_post __sem_post |
#define | sem_trywait __sem_trywait |
#define | sem_timedwait __sem_timedwait |
#define | sem_wait __sem_wait |
#define | sem_getvalue __sem_getvalue |
#define | sem_destroy __sem_destroy |
Typedefs | |
typedef struct __sem | ____sem_t |
Functions | |
__Z_EXPORT int | __sem_init (__sem_t *s0, int shared, unsigned int val) |
__Z_EXPORT int | __sem_post (__sem_t *s0) |
__Z_EXPORT int | __sem_trywait (__sem_t *s0) |
__Z_EXPORT int | __sem_timedwait (__sem_t *s0, const struct timespec *abs_timeout) |
__Z_EXPORT int | __sem_wait (__sem_t *s0) |
__Z_EXPORT int | __sem_getvalue (__sem_t *s0, int *sval) |
__Z_EXPORT int | __sem_destroy (__sem_t *s0) |
__Z_EXPORT unsigned int | atomic_dec (volatile unsigned int *loc) |
__Z_EXPORT unsigned int | atomic_inc (volatile unsigned int *loc) |
#define __SIZEOF_SEM_T 16 |
#define sem_destroy __sem_destroy |
#define SEM_FAILED ((sem_t *)0) |
#define sem_getvalue __sem_getvalue |
#define sem_init __sem_init |
#define sem_post __sem_post |
#define sem_t __sem_t |
#define sem_timedwait __sem_timedwait |
#define sem_trywait __sem_trywait |
#define sem_wait __sem_wait |
__Z_EXPORT int __sem_destroy | ( | __sem_t * | s0 | ) |
__Z_EXPORT int __sem_getvalue | ( | __sem_t * | s0, |
int * | sval | ||
) |
__Z_EXPORT int __sem_init | ( | __sem_t * | s0, |
int | shared, | ||
unsigned int | val | ||
) |
TODO(itodorov) - zos: document these interfaces
__Z_EXPORT int __sem_post | ( | __sem_t * | s0 | ) |
__Z_EXPORT int __sem_timedwait | ( | __sem_t * | s0, |
const struct timespec * | abs_timeout | ||
) |
__Z_EXPORT int __sem_trywait | ( | __sem_t * | s0 | ) |
__Z_EXPORT int __sem_wait | ( | __sem_t * | s0 | ) |
__Z_EXPORT unsigned int atomic_dec | ( | volatile unsigned int * | loc | ) |
__Z_EXPORT unsigned int atomic_inc | ( | volatile unsigned int * | loc | ) |