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

Comparing libeio/eio.h (file contents):
Revision 1.47 by root, Mon Sep 26 18:23:18 2011 UTC vs.
Revision 1.49 by root, Tue Sep 27 12:36:19 2011 UTC

90# define EIO_STRUCT_STATVFS struct statvfs 90# define EIO_STRUCT_STATVFS struct statvfs
91#endif 91#endif
92 92
93/* managing working directories */ 93/* managing working directories */
94 94
95typedef void *eio_wd; 95typedef struct eio_pwd *eio_wd;
96 96
97#define EIO_CWD 0 /* the current working directory of the process, guaranteed to be a null pointer */ 97#define EIO_CWD 0 /* the current working directory of the process, guaranteed to be a null pointer */
98#define EIO_INVALID_WD ((eio_wd)(int)-1) /* failure return for eio_wd_open */ 98#define EIO_INVALID_WD ((eio_wd)(int)-1) /* failure return for eio_wd_open */
99 99
100eio_wd eio_wd_open_sync (eio_wd wd, const char *path); 100eio_wd eio_wd_open_sync (eio_wd wd, const char *path);
310 310
311/*****************************************************************************/ 311/*****************************************************************************/
312/* convenience wrappers */ 312/* convenience wrappers */
313 313
314#ifndef EIO_NO_WRAPPERS 314#ifndef EIO_NO_WRAPPERS
315eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */
316eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data);
315eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ 317eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */
316eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */ 318eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */
317eio_req *eio_sync (int pri, eio_cb cb, void *data); 319eio_req *eio_sync (int pri, eio_cb cb, void *data);
318eio_req *eio_fsync (int fd, int pri, eio_cb cb, void *data); 320eio_req *eio_fsync (int fd, int pri, eio_cb cb, void *data);
319eio_req *eio_fdatasync (int fd, int pri, eio_cb cb, void *data); 321eio_req *eio_fdatasync (int fd, int pri, eio_cb cb, void *data);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines