BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / ad9b6af63f1fdfcf3556c9b2fc670f72cdc60ab4 / include / sys / wait.h

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 3 months ago)
#ifndef _SYS_INCLUDE_H
#define _SYS_INCLUDE_H

#include <sys/types.h>

#define WIFEXITED(status) (status & (1 << 31))
#define WEXITSTATUS(status) (status & 0x0F)
#define WIFSIGNALED(status) (!(status & (1 << 31)))
#define WTERMSIG(status) (status & 0xFF)

#ifdef __cplusplus
extern "C" {
#endif

pid_t wait(int *wstatus);
pid_t waitpid(pid_t pid, int *wstatus, int options);

#ifdef __cplusplus
}
#endif

#endif