BarryServer : Git

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

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 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