Skip to contentSkip to conversation

this adds lseek64 to klibc

PATCH Harald Hoyer 3 participants 4 messages Jul 15, 2004

lore
Share & tools
lore
#0 lore raw

+#define lseek64 llseek

klibc/klibc/include/unistd.h +1 -0
diff -ur udev-029/klibc/klibc/include/unistd.h udev-029.new/klibc/klibc/include/unistd.h
@@ -83,6 +83,7 @@
 __extern int close(int);
 __extern off_t lseek(int, off_t, int);
 __extern loff_t llseek(int, loff_t, int);
+#define lseek64 llseek
 __extern int dup(int);
 __extern int dup2(int, int);
 __extern int fcntl(int, int, long);
#1 lore raw
Quoted 10 lines · Harald Hoyer

+#define lseek64 llseek

------------------------------------------------------------------------

diff -ur udev-029/klibc/klibc/include/unistd.h udev-029.new/klibc/klibc/include/unistd.h

klibc/klibc/include/unistd.h line 89

Quoted 7 lines
klibc/klibc/include/unistd.h +1 -0
@@ -83,6 +83,7 @@
 __extern int close(int);
 __extern off_t lseek(int, off_t, int);
 __extern loff_t llseek(int, loff_t, int);
+#define lseek64 llseek
 __extern int dup(int);
 __extern int dup2(int, int);
 __extern int fcntl(int, int, long);

What is this for? I'm not supporting the rest of the *64() functions, or rather, they're implicit as if you compiled with -D_FILE_OFFSET_BITSd on glibc; adding just one (and as a define, too!) is ugly.

-hpa

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Harald Hoyer
Quoted 11 lines · H. Peter Anvin
Quoted 1 line · Harald Hoyer

+#define lseek64 llseek

What is this for? I'm not supporting the rest of the *64() functions, or rather, they're implicit as if you compiled with -D_FILE_OFFSET_BITSd on glibc; adding just one (and as a define, too!) is ugly.

-hpa

Sorry, this was just a quickfix to compile one of the udev "extras" utilities... a grep will show which one and maybe the app should be fixed...

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Harald Hoyer
Quoted 10 lines · Harald Hoyer
Quoted 9 lines · H. Peter Anvin
Quoted 1 line · Harald Hoyer

+#define lseek64 llseek

What is this for? I'm not supporting the rest of the *64() functions, or rather, they're implicit as if you compiled with -D_FILE_OFFSET_BITSd on glibc; adding just one (and as a define, too!) is ugly.

Quoted 6 lines
Quoted 2 lines

-hpa

Sorry, this was just a quickfix to compile one of the udev "extras" utilities... a grep will show which one and maybe the app should be fixed...

Probably; after all you presumably are compiling with -D_FILE_OFFSET_BITSd anyway, right?

-hpa

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel