[Libsysio-commit] HEAD: libsysio/include sysio.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-11-29 23:55:16
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1404/include Modified Files: sysio.h Log Message: Ok, round 3 with the _sysio_boot function. Every time I add a new little option, I'm going to break the Cray crt0 build. New deal, then. Now, _sysio_boot takes a name and value pair. We call it repeatedly for different pairs, then. To support legacy, the name/value pairs are: "namespace" and the buffer is the argument "cwd" and the deferred, initial path is the argument Since it's now 2 calls, I suggest "namespace" first, then "cwd" to preserve the older behavior. As previously, _sysio_boot still returns 0 on success or a, negated, error number. Now, though, you know which failed :-) You decide if it's fatal. I've also added a new pair identified by "tracing" that enables tracing if configured for it. The value is a readable string, expected to parse as a number by strtol. Then, it should turn into a 0 or positive. Zero, being off and positive being on. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -b -B -p -r1.30 -r1.31 --- sysio.h 19 Nov 2004 17:49:54 -0000 1.30 +++ sysio.h 29 Nov 2004 23:54:51 -0000 1.31 @@ -114,17 +114,14 @@ extern mode_t _sysio_umask; extern int _sysio_init(void); extern void _sysio_shutdown(void); +#if 0 struct _sysio_boot_ctl { - const char *buf; -#if DEFER_INIT_CWD - const char *path; -#endif -#if SYSIO_TRACING - int tracing; -#endif + const char *onam; + const char *oarg; }; +#endif -extern int _sysio_boot(struct _sysio_boot_ctl *ctl); +extern int _sysio_boot(const char *opt, const char *arg); /* * Option-value pair information. |