11 unsigned int st_nlink;
16 long st_atime; //time_t
21 #define S_IFMT 0170000 /* type of file */
22 #define S_IFDIR 0040000 /* directory */
23 #define S_IFCHR 0020000 /* character special */
24 #define S_IFBLK 0060000 /* block special */
25 #define S_IFREG 0100000 /* regular */
26 #define S_IFLNK 0120000 /* symbolic link */
27 #define S_IFSOCK 0140000 /* socket */
28 #define S_IFIFO 0010000 /* fifo */
30 #define FD_SETSIZE 128
36 * \brief fd_set for select()
40 uint16_t flags[FD_SETSIZE/16];
60 unsigned int uid, gid;
67 struct s_sysACL acls[];
69 typedef struct s_sysFInfo t_sysFInfo;
70 typedef struct s_sysACL t_sysACL;
72 static inline void FD_ZERO(fd_set *fdsetp) {int i=FD_SETSIZE/16;while(i--)fdsetp->flags[i]=0; }
73 static inline void FD_CLR(int fd, fd_set *fdsetp) { fdsetp->flags[fd/16]&=~(1<<(fd%16)); }
74 static inline void FD_SET(int fd, fd_set *fdsetp) { fdsetp->flags[fd/16]|=1<<(fd%16); }
75 static inline int FD_ISSET(int fd, fd_set *fdsetp) { return fdsetp->flags[fd/16]&(1<<(fd%16)); }
77 typedef uint32_t pid_t;
78 typedef uint32_t tid_t;
79 typedef int64_t time_t;
81 typedef unsigned int uint;