|
zoslib
z/OS C/C++ Library
|
#include "zos-semaphore.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <time.h>#include <sys/modes.h>Functions | |
| unsigned int | __zsync_val_compare_and_swap32 (volatile unsigned int *__p, unsigned int __compVal, unsigned int __exchVal) |
| unsigned int | atomic_dec (volatile unsigned int *loc) |
| unsigned int | atomic_inc (volatile unsigned int *loc) |
| int | __sem_init (__sem_t *s0, int shared, unsigned int val) |
| int | __sem_post (__sem_t *s0) |
| int | __sem_trywait (__sem_t *s0) |
| int | __sem_timedwait (__sem_t *s0, const struct timespec *abs_timeout) |
| int | __sem_wait (__sem_t *s0) |
| int | __sem_destroy (__sem_t *s0) |
| int | __sem_getvalue (__sem_t *s0, int *sval) |
| int __sem_destroy | ( | __sem_t * | s0 | ) |
| int __sem_getvalue | ( | __sem_t * | s0, |
| int * | sval | ||
| ) |
| int __sem_init | ( | __sem_t * | s0, |
| int | shared, | ||
| unsigned int | val | ||
| ) |
TODO(itodorov) - zos: document these interfaces
| int __sem_post | ( | __sem_t * | s0 | ) |
| int __sem_timedwait | ( | __sem_t * | s0, |
| const struct timespec * | abs_timeout | ||
| ) |
| int __sem_trywait | ( | __sem_t * | s0 | ) |
| int __sem_wait | ( | __sem_t * | s0 | ) |
| unsigned int __zsync_val_compare_and_swap32 | ( | volatile unsigned int * | __p, |
| unsigned int | __compVal, | ||
| unsigned int | __exchVal | ||
| ) |
| unsigned int atomic_dec | ( | volatile unsigned int * | loc | ) |
| unsigned int atomic_inc | ( | volatile unsigned int * | loc | ) |