[Libsysio-commit] HEAD: libsysio/dev/stdfd stdfd.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-10-14 14:59:45
|
Update of /cvsroot/libsysio/libsysio/dev/stdfd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8149/dev/stdfd Modified Files: stdfd.c 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: stdfd.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/dev/stdfd/stdfd.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -b -B -p -r1.12 -r1.13 --- stdfd.c 21 Sep 2004 17:36:57 -0000 1.12 +++ stdfd.c 14 Oct 2004 14:59:28 -0000 1.13 @@ -56,6 +56,7 @@ #include "xtio.h" #include "sysio.h" +#include "native.h" #include "inode.h" #include "dev.h" @@ -67,8 +68,8 @@ #define dowrite(f, b, n) write_yod(f, b, n) #define doread(f, b, n) read_yod(f, b, n) #else -#define dowrite(f, b, n) syscall(SYS_write, f, b, n) -#define doread(f, b, n) syscall(SYS_read, f, b, n) +#define dowrite(f, b, n) syscall(SYSIO_SYS_write, f, b, n) +#define doread(f, b, n) syscall(SYSIO_SYS_read, f, b, n) #endif /* |