1 #ifndef __LUNAIX_SYS_TYPES_H
2 #define __LUNAIX_SYS_TYPES_H
4 #define PEXITTERM 0x100
5 #define PEXITSTOP 0x200
8 #define PEXITNUM(flag, code) (flag | (code & 0xff))
12 #define WEXITSTATUS(wstatus) ((wstatus & 0xff))
13 #define WIFSTOPPED(wstatus) ((wstatus & PEXITSTOP))
14 #define WIFEXITED(wstatus) \
15 ((wstatus & PEXITTERM) && ((char)WEXITSTATUS(wstatus) >= 0))
17 #define WIFSIGNALED(wstatus) ((wstatus & PEXITSIG))
19 typedef signed long ssize_t;
23 typedef unsigned long size_t;
25 typedef unsigned long off_t;
27 #endif /* __LUNAIX_TYPES_H */