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

Comparing libeio/eio.h (file contents):
Revision 1.13 by root, Sat May 17 12:26:57 2008 UTC vs.
Revision 1.15 by root, Tue Jun 17 23:58:48 2008 UTC

38 */ 38 */
39 39
40#ifndef EIO_H_ 40#ifndef EIO_H_
41#define EIO_H_ 41#define EIO_H_
42 42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
43#include <stddef.h> 47#include <stddef.h>
44#include <sys/types.h> 48#include <sys/types.h>
45 49
46typedef struct eio_req eio_req; 50typedef struct eio_req eio_req;
47 51
79struct eio_req 83struct eio_req
80{ 84{
81 eio_req volatile *next; /* private ETP */ 85 eio_req volatile *next; /* private ETP */
82 86
83 ssize_t result; /* result of syscall, e.g. result = read (... */ 87 ssize_t result; /* result of syscall, e.g. result = read (... */
84 off_t offs; /* read, write, truncate, readahead: file offset; mknod: dev_t */ 88 off_t offs; /* read, write, truncate, readahead: file offset */
85 size_t size; /* read, write, readahead, sendfile: length */ 89 size_t size; /* read, write, readahead, sendfile: length */
86 void *ptr1; /* all applicable requests: pathname, old name */ 90 void *ptr1; /* all applicable requests: pathname, old name */
87 void *ptr2; /* all applicable requests: new name or memory buffer */ 91 void *ptr2; /* all applicable requests: new name or memory buffer */
88 eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */ 92 eio_tstamp nv1; /* utime, futime: atime; busy: sleep time */
89 eio_tstamp nv2; /* utime, futime: mtime */ 93 eio_tstamp nv2; /* utime, futime: mtime */
90 94
91 int type; /* EIO_xxx constant ETP */ 95 int type; /* EIO_xxx constant ETP */
92 int int1; /* all applicable requests: file descriptor; sendfile: output fd; open: flags */ 96 int int1; /* all applicable requests: file descriptor; sendfile: output fd; open: flags */
93 long int2; /* chown, fchown: uid; sendfile: input fd; open, chmod, mkdir, mknod: file mode */ 97 long int2; /* chown, fchown: uid; sendfile: input fd; open, chmod, mkdir, mknod: file mode */
94 long int3; /* chown, fchown: gid */ 98 long int3; /* chown, fchown: gid; mknod: dev_t */
95 int errorno; /* errno value on syscall return */ 99 int errorno; /* errno value on syscall return */
96 100
97 unsigned char flags; /* private */ 101 unsigned char flags; /* private */
98 signed char pri; /* the priority */ 102 signed char pri; /* the priority */
99 103
217/*****************************************************************************/ 221/*****************************************************************************/
218/* convinience functions */ 222/* convinience functions */
219 223
220ssize_t eio_sendfile_sync (int ofd, int ifd, off_t offset, size_t count); 224ssize_t eio_sendfile_sync (int ofd, int ifd, off_t offset, size_t count);
221 225
226#ifdef __cplusplus
227}
222#endif 228#endif
223 229
230#endif
231

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines