[Libsysio-commit] b_lustre: libsysio/include bypass.h
Brought to you by:
lward
From: Mei <me...@us...> - 2003-06-19 12:18:32
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv28176/include Added Files: Tag: b_lustre bypass.h Log Message: initially add bypass mechanism, only for fcntl, read, write --- NEW FILE --- #ifndef __LIBSYSIO_BYPASS_H_ #define __LIBSYSIO_BYPASS_H_ //#define __LIBSYSIO_DEBUG__ #define ERROR(fmt, arg...) \ do { \ printf("sysio error: (%s:%d):", __FILE__, __LINE__); \ printf(fmt, ##arg); \ } while(0) #ifdef __LIBSYSIO_DEBUG__ #define DEBUG(fmt, arg...) \ do { \ printf("sysio: (%s:%d):", __FILE__, __LINE__); \ printf(fmt, ##arg); \ } while(0) #else #define DEBUG(fmt, arg...) do{}while(0) #endif /* __LIBSYSIO_DEBUG__ */ ioid_t __bypass_ireadv(int fd, const struct iovec *iov, int count); ioid_t __bypass_preadv(int fd, const struct iovec *iov, int count, off_t offset); ioid_t __bypass_iwritev(int fd, const struct iovec *iov, int count); ioid_t __bypass_pwritev(int fd, const struct iovec *iov, int count, off_t offset); int __bypass_fcntl(int fd, int cmd, va_list ap); #endif /* __LIBSYSIO_BYPASS_H_ */ |