diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-08-31 23:45:35 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-08-31 23:45:35 +0000 |
| commit | 233e3ccb96525e7a6af31a60b891badd8d73c5a4 (patch) | |
| tree | e3232d7a7364537e76121e516abf6ef307191db2 /src/include | |
| parent | 4f42e46eff746603a0762c0299cc63d9c7004bcf (diff) | |
| download | skalibs-main.tar.gz | |
Add pthread_create_flat, waitpid_nohang, waitpids_nohang
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/skalibs/djbunix.h | 5 | ||||
| -rw-r--r-- | src/include/skalibs/functypes.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index a2a0d42..d6efa09 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -62,9 +62,12 @@ extern size_t path_canonicalize (char *, char const *, int) ; extern pid_t wait_nointr (int *) ; extern pid_t waitpid_nointr (pid_t, int *, int) ; #define wait_pid(pid, wstat) waitpid_nointr(pid, (wstat), 0) -#define wait_nohang(wstat) waitpid_nointr(-1, (wstat), WNOHANG) +#define waitpid_nohang(pid, wstat) waitpid_nointr(pid, (wstat), WNOHANG) +#define wait_nohang(wstat) waitpid_nohang(-1, (wstat)) extern pid_t wait_pid_nohang (pid_t, int *) ; extern int wait_pids_nohang (pid_t const *, unsigned int, int *) ; +extern int waitpids_nohang (pid_t const *, unsigned int, int *) ; + #define wait_status(w) (WIFSIGNALED(w) ? 256 + WTERMSIG(w) : WEXITSTATUS(w)) #define wait_estatus(w) (WIFSIGNALED(w) ? 128 + WTERMSIG(w) : WEXITSTATUS(w) >= 128 ? 128 : WEXITSTATUS(w)) diff --git a/src/include/skalibs/functypes.h b/src/include/skalibs/functypes.h index d1a7c4c..8d21b45 100644 --- a/src/include/skalibs/functypes.h +++ b/src/include/skalibs/functypes.h @@ -67,4 +67,7 @@ typedef randomgen_func *randomgen_func_ref ; typedef int main_func (char const *const *) ; typedef main_func *main_func_ref ; +typedef void *generic_func (void *) ; +typedef generic_func *generic_func_ref ; + #endif |
