[Libsysio-commit] HEAD: libsysio/include inode.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-04-10 21:14:39
|
Update of /cvsroot/libsysio/libsysio/include In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16754/include Modified Files: inode.h Log Message: Support the new inode op, filldirentries2. Added op member, PNOP call, and type definition for fill directory entries helper, filldir_t. Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.52 retrieving revision 1.53 diff -u -w -b -B -p -r1.52 -r1.53 --- inode.h 4 Feb 2009 19:11:40 -0000 1.52 +++ inode.h 10 Apr 2009 21:14:20 -0000 1.53 @@ -73,6 +73,16 @@ struct io_arguments; struct ioctx; /* + * Fill directory entry routines. + */ +typedef int (*filldir_t)(void *, + ino_t, + _SYSIO_OFF_T, + const char *, + size_t, + unsigned char); + +/* * Operations on i-nodes. * * Should this be split up into file and name space operations? @@ -90,6 +100,10 @@ struct inode_ops { _SYSIO_OFF_T *posp, char *buf, size_t nbytes); + int (*inop_filldirentries2)(struct pnode *pno, + _SYSIO_OFF_T *, + filldir_t, + void *); int (*inop_mkdir)(struct pnode *pno, mode_t mode); int (*inop_rmdir)(struct pnode *pno); int (*inop_symlink)(struct pnode *pno, const char *data); @@ -575,6 +589,8 @@ struct pnode { (_pno), (_mask), (_stbuf)) #define PNOP_FILLDIRENTRIES(_pno, _posp, _buf, _nbytes) \ _PNOP_CALL((_pno), filldirentries, (_pno), (_posp), (_buf), (_nbytes)) +#define PNOP_FILLDIRENTRIES2(_pno, _posp, _fill, _data) \ + _PNOP_CALL((_pno), filldirentries2, (_pno), (_posp), (_fill), (_data)) #define PNOP_MKDIR(_pno, _mode) \ _PNOP_MKCALL((_pno), mkdir, (_pno), (_mode)) #define PNOP_RMDIR(_pno) \ |