1 #ifndef __LUNAIX_SYS_TYPES_H
2 #define __LUNAIX_SYS_TYPES_H
8 #define PEXITTERM 0x100
9 #define PEXITSTOP 0x200
10 #define PEXITSIG 0x400
12 #define PEXITNUM(flag, code) (flag | (code & 0xff))
16 #define WEXITSTATUS(wstatus) ((wstatus & 0xff))
17 #define WIFSTOPPED(wstatus) ((wstatus & PEXITSTOP))
18 #define WIFEXITED(wstatus) \
19 ((wstatus & PEXITTERM) && ((char)WEXITSTATUS(wstatus) >= 0))
21 #define WIFSIGNALED(wstatus) ((wstatus & PEXITSIG))
23 typedef signed long ssize_t;
27 typedef unsigned long size_t;
29 typedef unsigned long off_t;
31 typedef unsigned int ino_t;
36 unsigned int devident;
40 #endif /* __LUNAIX_TYPES_H */