git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IPStack - Making TCP a little less chatty
[tpg/acess2.git]
/
Usermode
/
include
/
sys
/
types.h
diff --git
a/Usermode/include/sys/types.h
b/Usermode/include/sys/types.h
index
edcaa22
..
4e38de3
100644
(file)
--- a/
Usermode/include/sys/types.h
+++ b/
Usermode/include/sys/types.h
@@
-3,6
+3,8
@@
#ifndef _SYS_TYPES_H
#define _SYS_TYPES_H
#ifndef _SYS_TYPES_H
#define _SYS_TYPES_H
+#include "../acess/intdefs.h"
+
typedef struct stat t_fstat;
#define FD_SETSIZE 128
typedef struct stat t_fstat;
#define FD_SETSIZE 128
@@
-12,7
+14,8
@@
typedef struct stat t_fstat;
typedef unsigned long pid_t;
typedef unsigned long tid_t;
typedef unsigned long pid_t;
typedef unsigned long tid_t;
-typedef signed long long time_t;
+typedef signed long long int time_t;
+typedef long long int off_t;
typedef unsigned int uint;
typedef unsigned int uint;
@@
-42,7
+45,7
@@
struct s_sysFInfo {
time_t ctime;
int numacls;
struct s_sysACL acls[];
time_t ctime;
int numacls;
struct s_sysACL acls[];
-};
+}
__attribute__((packed))
;
typedef struct s_sysFInfo t_sysFInfo;
typedef struct s_sysACL t_sysACL;
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);
extern void FD_SET(int fd, fd_set *fdsetp);
extern int FD_ISSET(int fd, fd_set *fdsetp);
-#include <sys/stat.h>
+typedef __uint8_t u_int8_t;
+typedef __uint16_t u_int16_t;
+typedef __uint32_t u_int32_t;
+
+#include "../sys/stat.h"
#endif
#endif
UCC
git Repository :: git.ucc.asn.au