[Libsysio-commit] RedStorm: libsysio/include sysio.h
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2003-09-29 23:02:18
|
Update of /cvsroot/libsysio/libsysio/include
In directory sc8-pr-cvs1:/tmp/cvs-serv22549/include
Modified Files:
Tag: RedStorm
sysio.h
Log Message:
-Fix prototype for getdirentries for Red Storm
-Remove entry point for llseek in the core. That was goofy. Linux
defines it as a syscall but there is no entry in libc.
-Move __USE_LARGEFILE64 to _LARGEFILE64_SOURCE; We only want the
xxx64() routines if asked explicitly.
-Fix driver/native/fs_native.c _LARGEFILE64_SOURCE defines. The symbol
is always defined. The test should be whether it is true/false not
just defined.
-Fix driver/native/fs_native.c to use SYS_lseek if SYS__llseek is not
present. The 64-bit machines don't seem to use that interface.
Index: sysio.h
===================================================================
RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v
retrieving revision 1.7.6.4
retrieving revision 1.7.6.5
diff -u -w -b -B -p -r1.7.6.4 -r1.7.6.5
--- sysio.h 27 Sep 2003 23:01:23 -0000 1.7.6.4
+++ sysio.h 29 Sep 2003 14:57:01 -0000 1.7.6.5
@@ -164,7 +164,7 @@ extern off64_t lseek64(int fd, off64_t o
#endif
extern int lstat(const char *path, struct stat *buf);
#if defined(BSD) || defined(REDSTORM)
-extern ssize_t getdirentries(int fd, char *buf, int nbytes , long *basep);
+extern int getdirentries(int fd, char *buf, int nbytes , long *basep);
#else
extern ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep);
#if __USE_LARGEFILE64
|