ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/eio.h
(Generate patch)

Comparing libeio/eio.h (file contents):
Revision 1.23 by root, Fri Jun 12 16:48:08 2009 UTC vs.
Revision 1.24 by root, Mon Jun 15 05:34:49 2009 UTC

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
97struct eio_dirent { 97struct eio_dirent {
98 char *name; 98 int nameofs; /* offset of null-terminated name string in (char *)req->ptr2 */
99 ino_t inode; 99 unsigned short namelen; /* size of filename without trailing 0 */
100 unsigned short namelen; 100 unsigned char type; /* one of EIO_DT_* */
101 unsigned char type;
102 signed char score; /* internal use */ 101 signed char score; /* internal use */
103 /* 0-4 bytes padding */ 102 ino_t inode; /* the inode number, if available, otherwise unspecified */
104}; 103};
105 104
106/* eio_sync_file_range flags */ 105/* eio_sync_file_range flags */
107 106
108enum { 107enum {
142 eio_req volatile *next; /* private ETP */ 141 eio_req volatile *next; /* private ETP */
143 142
144 ssize_t result; /* result of syscall, e.g. result = read (... */ 143 ssize_t result; /* result of syscall, e.g. result = read (... */
145 off_t offs; /* read, write, truncate, readahead, sync_file_range: file offset */ 144 off_t offs; /* read, write, truncate, readahead, sync_file_range: file offset */
146 size_t size; /* read, write, readahead, sendfile, msync, sync_file_range: length */ 145 size_t size; /* read, write, readahead, sendfile, msync, sync_file_range: length */
147 void *ptr1; /* all applicable requests: pathname, old name; readdir: possible output memory buffer */ 146 void *ptr1; /* all applicable requests: pathname, old name; readdir: optional eio_dirents */
148 void *ptr2; /* all applicable requests: new name or memory buffer */ 147 void *ptr2; /* all applicable requests: new name or memory buffer; readdir: name strings */
149 eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */ 148 eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */
150 eio_tstamp nv2; /* utime, futime: mtime */ 149 eio_tstamp nv2; /* utime, futime: mtime */
151 150
152 int type; /* EIO_xxx constant ETP */ 151 int type; /* EIO_xxx constant ETP */
153 int int1; /* all applicable requests: file descriptor; sendfile: output fd; open, msync, readdir: flags */ 152 int int1; /* all applicable requests: file descriptor; sendfile: output fd; open, msync, readdir: flags */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines