… | |
… | |
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_DIR = 4, |
82 | EIO_DT_DIR = 4, |
|
|
83 | EIO_DT_NAM = 5, /* xenix special named file */ |
82 | EIO_DT_BLK = 6, |
84 | EIO_DT_BLK = 6, |
|
|
85 | EIO_DT_MPB = 7, /* multiplexed block device (v7+coherent) */ |
83 | EIO_DT_REG = 8, |
86 | EIO_DT_REG = 8, |
|
|
87 | EIO_DT_NWK = 9, /* HP-UX network special */ |
|
|
88 | EIO_DT_CMP = 9, /* VxFS compressed */ |
84 | EIO_DT_LNK = 10, |
89 | EIO_DT_LNK = 10, |
|
|
90 | /* DT_SHAD = 11,*/ |
85 | EIO_DT_SOCK = 12, |
91 | EIO_DT_SOCK = 12, |
|
|
92 | EIO_DT_DOOR = 13, /* solaris door */ |
86 | EIO_DT_WHT = 14, |
93 | EIO_DT_WHT = 14, |
87 | EIO_DT_MAX = 15 /* highest DT_VALUE ever, hopefully */ |
94 | EIO_DT_MAX = 15 /* highest DT_VALUE ever, hopefully */ |
88 | }; |
95 | }; |
89 | |
96 | |
90 | struct eio_dirent { |
97 | struct eio_dirent { |
… | |
… | |
135 | eio_req volatile *next; /* private ETP */ |
142 | eio_req volatile *next; /* private ETP */ |
136 | |
143 | |
137 | ssize_t result; /* result of syscall, e.g. result = read (... */ |
144 | ssize_t result; /* result of syscall, e.g. result = read (... */ |
138 | off_t offs; /* read, write, truncate, readahead, sync_file_range: file offset */ |
145 | off_t offs; /* read, write, truncate, readahead, sync_file_range: file offset */ |
139 | size_t size; /* read, write, readahead, sendfile, msync, sync_file_range: length */ |
146 | size_t size; /* read, write, readahead, sendfile, msync, sync_file_range: length */ |
140 | void *ptr1; /* all applicable requests: pathname, old name */ |
147 | void *ptr1; /* all applicable requests: pathname, old name; readdir: possible output memory buffer */ |
141 | void *ptr2; /* all applicable requests: new name or memory buffer */ |
148 | void *ptr2; /* all applicable requests: new name or memory buffer */ |
142 | eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */ |
149 | eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */ |
143 | eio_tstamp nv2; /* utime, futime: mtime */ |
150 | eio_tstamp nv2; /* utime, futime: mtime */ |
144 | |
151 | |
145 | int type; /* EIO_xxx constant ETP */ |
152 | int type; /* EIO_xxx constant ETP */ |