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

Comparing libeio/eio.h (file contents):
Revision 1.58 by root, Fri Jun 23 03:10:19 2017 UTC vs.
Revision 1.60 by root, Fri Jun 23 23:50:25 2017 UTC

172{ 172{
173 /* these MUST match the value in linux/falloc.h */ 173 /* these MUST match the value in linux/falloc.h */
174 EIO_FALLOC_FL_KEEP_SIZE = 0x01, 174 EIO_FALLOC_FL_KEEP_SIZE = 0x01,
175 EIO_FALLOC_FL_PUNCH_HOLE = 0x02, 175 EIO_FALLOC_FL_PUNCH_HOLE = 0x02,
176 EIO_FALLOC_FL_COLLAPSE_RANGE = 0x08, 176 EIO_FALLOC_FL_COLLAPSE_RANGE = 0x08,
177 EIO_FALLOC_FL_ZERO_RANGE = 0x10 177 EIO_FALLOC_FL_ZERO_RANGE = 0x10,
178 EIO_FALLOC_FL_INSERT_RANGE = 0x20,
179 EIO_FALLOC_FL_UNSHARE_RANGE = 0x40
178}; 180};
179 181
180/* eio_rename flags */ 182/* eio_rename flags */
181enum 183enum
182{ 184{
330unsigned int eio_npending (void); /* number of finished but unhandled requests */ 332unsigned int eio_npending (void); /* number of finished but unhandled requests */
331unsigned int eio_nthreads (void); /* number of worker threads in use currently */ 333unsigned int eio_nthreads (void); /* number of worker threads in use currently */
332 334
333/*****************************************************************************/ 335/*****************************************************************************/
334/* convenience wrappers */ 336/* convenience wrappers */
337/* these do not expose advanced syscalls and directory fds */
335 338
336#ifndef EIO_NO_WRAPPERS 339#ifndef EIO_NO_WRAPPERS
337eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */ 340eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */
338eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data); 341eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data);
339eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ 342eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines