Merge branch 'master' of github.com:thepowersgang/acess2
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / sys / types.h
1 /*
2  */
3 #ifndef _SYS_TYPES_H
4 #define _SYS_TYPES_H
5
6 #include "../acess/intdefs.h"
7
8 typedef struct stat     t_fstat;
9
10 #define FD_SETSIZE      128
11
12
13 #define CLONE_VM        0x10
14
15 typedef unsigned int    id_t;
16 typedef unsigned long   pid_t;
17 typedef unsigned long   tid_t;
18 typedef signed long long int    time_t;
19 typedef long long int   off_t;
20
21 typedef unsigned int    uint;
22
23 typedef unsigned short  fd_set_ent_t;
24
25 /**
26  * \brief fd_set for select()
27  */
28 typedef struct
29 {
30         fd_set_ent_t    flags[FD_SETSIZE/16];
31 }       fd_set;
32
33 struct s_sysACL {
34         unsigned long   object; /*!< Group or user (bit 31 determines) */
35         unsigned long   perms;  /*!< Inverted by bit 31 */
36 };
37 struct s_sysFInfo {
38         unsigned int    mount;
39         unsigned long long      inode;
40         unsigned int    uid;
41         unsigned int    gid;
42         unsigned int    flags;
43         unsigned long long      size;
44         time_t  atime;
45         time_t  mtime;
46         time_t  ctime;
47          int    numacls;
48         struct s_sysACL acls[];
49 } __attribute__((packed));
50 typedef struct s_sysFInfo       t_sysFInfo;
51 typedef struct s_sysACL t_sysACL;
52
53 extern void     FD_ZERO(fd_set *fdsetp);
54 extern void     FD_CLR(int fd, fd_set *fdsetp);
55 extern void     FD_SET(int fd, fd_set *fdsetp);
56 extern int      FD_ISSET(int fd, fd_set *fdsetp);
57
58 #include "../sys/stat.h"
59
60 #endif

UCC git Repository :: git.ucc.asn.au