… | |
… | |
76 | /* using "typical" values in the hope that the compiler will do something sensible */ |
76 | /* using "typical" values in the hope that the compiler will do something sensible */ |
77 | enum eio_dtype { |
77 | enum eio_dtype { |
78 | EIO_DT_UNKNOWN = 0, |
78 | EIO_DT_UNKNOWN = 0, |
79 | EIO_DT_FIFO = 1, |
79 | EIO_DT_FIFO = 1, |
80 | EIO_DT_CHR = 2, |
80 | EIO_DT_CHR = 2, |
81 | EIO_DT_MPC = 3, /* multiplexed char device (v7+Coherent) */ |
81 | EIO_DT_MPC = 3, /* multiplexed char device (v7+coherent) */ |
82 | EIO_DT_DIR = 4, |
82 | EIO_DT_DIR = 4, |
83 | EIO_DT_NAM = 5, /* xenix special named file */ |
83 | EIO_DT_NAM = 5, /* xenix special named file */ |
84 | EIO_DT_BLK = 6, |
84 | EIO_DT_BLK = 6, |
85 | EIO_DT_MPB = 7, /* multiplexed block device (v7+coherent) */ |
85 | EIO_DT_MPB = 7, /* multiplexed block device (v7+coherent) */ |
86 | EIO_DT_REG = 8, |
86 | EIO_DT_REG = 8, |
… | |
… | |
89 | EIO_DT_LNK = 10, |
89 | EIO_DT_LNK = 10, |
90 | /* DT_SHAD = 11,*/ |
90 | /* DT_SHAD = 11,*/ |
91 | EIO_DT_SOCK = 12, |
91 | EIO_DT_SOCK = 12, |
92 | EIO_DT_DOOR = 13, /* solaris door */ |
92 | EIO_DT_DOOR = 13, /* solaris door */ |
93 | EIO_DT_WHT = 14, |
93 | EIO_DT_WHT = 14, |
94 | EIO_DT_MAX = 15 /* highest DT_VALUE ever, hopefully */ |
94 | EIO_DT_MAX = 15 /* highest DT_VALUE ever, hopefully */ |
95 | }; |
95 | }; |
96 | |
96 | |
97 | struct eio_dirent { |
97 | struct eio_dirent { |
98 | char *name; |
98 | char *name; |
99 | ino_t inode; |
99 | ino_t inode; |
100 | unsigned short namelen; |
100 | unsigned short namelen; |
101 | unsigned char type; |
101 | unsigned char type; |
102 | unsigned char score; /* internal use */ |
102 | signed char score; /* internal use */ |
103 | /* 0-4 bytes padding */ |
103 | /* 0-4 bytes padding */ |
104 | }; |
104 | }; |
105 | |
105 | |
106 | /* eio_sync_file_range flags */ |
106 | /* eio_sync_file_range flags */ |
107 | |
107 | |