[Libsysio-commit] RedStorm: libsysio/drivers/native fs_native.c
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2003-09-30 00:06:33
|
Update of /cvsroot/libsysio/libsysio/drivers/native
In directory sc8-pr-cvs1:/tmp/cvs-serv22549/drivers/native
Modified Files:
Tag: RedStorm
fs_native.c
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: fs_native.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v
retrieving revision 1.11.4.8
retrieving revision 1.11.4.9
diff -u -w -b -B -p -r1.11.4.8 -r1.11.4.9
--- fs_native.c 27 Sep 2003 20:20:40 -0000 1.11.4.8
+++ fs_native.c 29 Sep 2003 14:57:01 -0000 1.11.4.9
@@ -841,7 +841,7 @@ out:
static int
native_pos(int fd,
-#ifdef _LARGEFILE64_SOURCE
+#if _LARGEFILE64_SOURCE
loff_t *offset
#else
_SYSIO_OFF_T *offset
@@ -852,7 +852,7 @@ native_pos(int fd,
assert(fd >= 0);
assert(*offset >= 0);
-#ifdef _LARGEFILE64_SOURCE
+#if _LARGEFILE64_SOURCE && defined(SYS__llseek)
{
int err;
err =
@@ -887,7 +887,7 @@ native_getdirentries(struct inode *ino,
{
struct native_inode *nino = I2NI(ino);
int err;
-#ifdef _LARGEFILE64_SOURCE
+#if _LARGEFILE64_SOURCE
loff_t result;
#else
_SYSIO_OFF_T result;
@@ -1141,7 +1141,7 @@ doio(ssize_t (*f)(int, const struct iove
{
struct native_inode *nino = I2NI(ino);
struct ioctx *ioctx;
-#ifdef _LARGEFILE64_SOURCE
+#if _LARGEFILE64_SOURCE
loff_t result;
#else
_SYSIO_OFF_T result;
|