X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2Finclude%2Fsys%2Ftypes.h;h=4e38de37ada12fe90a513fbba79f904c1fe2318f;hb=54ee7218058b4285be6b02195cba4e90c4e12a2d;hp=687457e4b3dd177482e9ba141d7b8102f88f2c55;hpb=edf4c879ac931092da63389e186f06f08e324680;p=tpg%2Facess2.git diff --git a/Usermode/include/sys/types.h b/Usermode/include/sys/types.h index 687457e4..4e38de37 100644 --- a/Usermode/include/sys/types.h +++ b/Usermode/include/sys/types.h @@ -3,6 +3,8 @@ #ifndef _SYS_TYPES_H #define _SYS_TYPES_H +#include "../acess/intdefs.h" + typedef struct stat t_fstat; #define FD_SETSIZE 128 @@ -13,6 +15,7 @@ typedef struct stat t_fstat; typedef unsigned long pid_t; typedef unsigned long tid_t; typedef signed long long int time_t; +typedef long long int off_t; typedef unsigned int uint; @@ -42,7 +45,7 @@ struct s_sysFInfo { time_t ctime; int numacls; struct s_sysACL acls[]; -}; +} __attribute__((packed)); typedef struct s_sysFInfo t_sysFInfo; typedef struct s_sysACL t_sysACL; @@ -51,6 +54,10 @@ extern void FD_CLR(int fd, fd_set *fdsetp); extern void FD_SET(int fd, fd_set *fdsetp); extern int FD_ISSET(int fd, fd_set *fdsetp); -#include +typedef __uint8_t u_int8_t; +typedef __uint16_t u_int16_t; +typedef __uint32_t u_int32_t; + +#include "../sys/stat.h" #endif