Files
nt-lite/code/public/posix/sys/wait.h
T

14 lines
375 B
C

// POSIX child wait declarations backed by posixsrv process records.
#pragma once
#include <sys/types.h>
#include <ntlite_posix_api.h>
#define WNOHANG 0x00000001
#define WEXITSTATUS(status) (((status) >> 8) & 0xff)
#define WIFEXITED(status) (((status) & 0x7f) == 0)
NTL_POSIX_API pid_t wait(int* status);
NTL_POSIX_API pid_t waitpid(pid_t pid, int* status, int options);