[uClibc] llseek or _llseek?
Johan Adolfsson
johan.adolfsson at axis.com
Thu Dec 16 14:49:31 UTC 2004
What's the correct way of calling llseek/_llseek?
The manpage I have indicates _llseek and thats what the version of
util-linux
I tried use as well so compiling for uClibc fails.
Would the following patch fix it or is it the apps that needs fixing?
/Johan
Index: llseek.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/llseek.c,v
retrieving revision 1.3
diff -u -p -r1.3 llseek.c
--- llseek.c 5 Feb 2004 14:53:22 -0000 1.3
+++ llseek.c 16 Dec 2004 14:39:10 -0000
@@ -56,6 +56,7 @@ loff_t __libc_lseek64(int fd, loff_t off
return(loff_t)(__libc_lseek(fd, (off_t) (offset & 0xffffffff),
whence));
}
#endif
+weak_alias(__libc_lseek64, _llseek);
weak_alias(__libc_lseek64, llseek);
weak_alias(__libc_lseek64, lseek64);
More information about the uClibc
mailing list