1 #ifndef __LUNAIX_TYPES_H
2 #define __LUNAIX_TYPES_H
7 #define PEXITTERM 0x100
8 #define PEXITSTOP 0x200
11 #define PEXITNUM(flag, code) (flag | (code & 0xff))
15 #define WEXITSTATUS(wstatus) ((wstatus & 0xff))
16 #define WIFSTOPPED(wstatus) ((wstatus & PEXITSTOP))
17 #define WIFEXITED(wstatus) \
18 ((wstatus & PEXITTERM) && ((char)WEXITSTATUS(wstatus) >= 0))
20 #define WIFSIGNALED(wstatus) ((wstatus & PEXITSIG))
23 typedef int32_t pid_t;
24 typedef int64_t lba_t;
26 #endif /* __LUNAIX_TYPES_H */