[Libsysio-commit] HEAD: libsysio/include native.h sysio.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-10-14 14:59:44
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8149/include Modified Files: sysio.h Added Files: native.h Log Message: Merging in the defer-cwd branch. These changes include: + Carry full stat info in the inode now + Use that stat info (careful with intents!) instead of calling getattr + Cached attributes for the native driver + Abstracted and localized system call defs (see .../include/native.h) + The ability to defer path traversal to the "current working directory" unless and until a relative pathname is specified. This alters _sysio_boot to take an extra parameter (the init cwd) and must be configured with "--with-defer-init-cwd". Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -w -b -B -p -r1.26 -r1.27 --- sysio.h 3 Jul 2004 05:47:13 -0000 1.26 +++ sysio.h 14 Oct 2004 14:59:28 -0000 1.27 @@ -145,13 +145,40 @@ struct intnl_stat; struct pnode; +#if DEFER_INIT_CWD +extern const char *_sysio_init_cwd; +#endif + extern struct pnode *_sysio_cwd; extern mode_t _sysio_umask; extern int _sysio_init(void); extern void _sysio_shutdown(void); +#if DEFER_INIT_CWD +extern int _sysio_boot(const char *buf, const char *path); +#else extern int _sysio_boot(const char *buf); +#endif + +/* + * Option-value pair information. + */ +struct option_value_info { + const char *ovi_name; /* name */ + char *ovi_value; /* value */ +}; + +extern const char * _sysio_get_token(const char *buf, + int accepts, + const char *delim, + const char *ignore, + char *tbuf); +extern char * _sysio_get_args(char *buf, struct option_value_info *vec); + +#define _SYSIO_LOCAL_TIME() _sysio_local_time() + +extern time_t _sysio_local_time(void); /* * SYSIO name label macros @@ -302,7 +329,7 @@ extern int SYSIO_INTERFACE_NAME(umount)( return (rtn); \ } while(0) -/* syscall enter/leave hook functions */ +/* Interface enter/leave hook functions */ #if 0 extern void _sysio_sysenter(); extern void _sysio_sysleave(); |