sendfile change
Jakub Jelinek
jakub@redhat.com
Fri Jun 7 04:51:00 GMT 2002
On Fri, Jun 07, 2002 at 01:44:03PM +0200, Jakub Jelinek wrote:
> On Fri, Jun 07, 2002 at 01:37:03PM +0200, Andreas Jaeger wrote:
> >
> > Roland,
> >
> > since your sendfile changes I cannot build glibc on i686-linux
> > anymore. Now I have both sendfile in the io and misc subdirs:
> >
> > $ ll */sendfile*
> > -rw-r--r-- 1 aj users 964 Jun 7 13:30 io/sendfile.o
> > -rw-r--r-- 1 aj users 1188 Jun 7 13:30 io/sendfile.os
> > -rw-r--r-- 1 aj users 1135 Jun 7 13:30 io/sendfile64.d
> > -rw-r--r-- 1 aj users 8788 Jun 7 13:30 io/sendfile64.o
> > -rw-r--r-- 1 aj users 8836 Jun 7 13:30 io/sendfile64.os
> > -rw-r--r-- 1 aj users 964 Jun 7 13:29 misc/sendfile.o
> > -rw-r--r-- 1 aj users 1188 Jun 7 13:29 misc/sendfile.os
> >
> > sendfile is a syscall on i686-linux.
>
> See the mail I've posted today (the patch will need
> some adjustements, since I haven't noticed some Roland's changes, I'll
> update it ASAP).
Here is the updated patch:
2002-06-07 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/alpha/sendfile64.c: New.
* sysdeps/unix/sysv/linux/ia64/sendfile64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New.
* sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New.
* sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
(sendfile64): Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
--- libc/sysdeps/unix/sysv/linux/alpha/sendfile64.c.jj Thu Jun 6 23:34:31 2002
+++ libc/sysdeps/unix/sysv/linux/alpha/sendfile64.c Thu Jun 6 23:34:23 2002
@@ -0,0 +1 @@
+/* sendfile64 is alias of sendfile syscall. */
--- libc/sysdeps/unix/sysv/linux/alpha/syscalls.list.jj Wed Jun 5 10:35:28 2002
+++ libc/sysdeps/unix/sysv/linux/alpha/syscalls.list Thu Jun 6 23:28:39 2002
@@ -29,7 +29,7 @@ setrlimit - setrlimit 2 __setrlimit setr
ftruncate - ftruncate 2 __ftruncate ftruncate __ftruncate64 ftruncate64
truncate - truncate 2 truncate truncate64
readahead EXTRA readahead 3 __readahead readahead
-sendfile EXTRA sendfile i:iipi sendfile sendfile64
+sendfile - sendfile i:iipi sendfile sendfile64
# these are actually common with the x86:
sys_ustat ustat ustat 2 __syscall_ustat
--- libc/sysdeps/unix/sysv/linux/ia64/syscalls.list.jj Wed Jun 5 10:35:29 2002
+++ libc/sysdeps/unix/sysv/linux/ia64/syscalls.list Thu Jun 6 23:32:09 2002
@@ -16,7 +16,7 @@ truncate - truncate 2 truncate truncate6
getrlimit - getrlimit 2 __getrlimit getrlimit getrlimit64
setrlimit - setrlimit 2 __setrlimit setrlimit setrlimit64
readahead EXTRA readahead 3 __readahead readahead
-sendfile EXTRA sendfile i:iipi sendfile sendfile64
+sendfile - sendfile i:iipi sendfile sendfile64
# semaphore and shm system calls
msgctl - msgctl i:iip __msgctl msgctl
--- libc/sysdeps/unix/sysv/linux/ia64/sendfile64.c.jj Thu Jun 6 23:34:31 2002
+++ libc/sysdeps/unix/sysv/linux/ia64/sendfile64.c Thu Jun 6 23:34:23 2002
@@ -0,0 +1 @@
+/* sendfile64 is alias of sendfile syscall. */
--- libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list.jj Wed Jun 5 10:27:57 2002
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list Thu Jun 6 23:32:51 2002
@@ -12,7 +12,7 @@ ftruncate - ftruncate 2 __ftruncate ftru
truncate - truncate 2 truncate truncate64
mmap - mmap 6 __mmap mmap __mmap64 mmap64
readahead EXTRA readahead 3 __readahead readahead
-sendfile EXTRA sendfile i:iipi sendfile sendfile64
+sendfile - sendfile i:iipi sendfile sendfile64
# Override select.S in parent directory:
select - select 5 __select select
--- libc/sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c.jj Thu Jun 6 23:34:31 2002
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c Thu Jun 6 23:34:23 2002
@@ -0,0 +1 @@
+/* sendfile64 is alias of sendfile syscall. */
--- libc/sysdeps/unix/sysv/linux/x86_64/syscalls.list.jj Wed Jun 5 10:35:35 2002
+++ libc/sysdeps/unix/sysv/linux/x86_64/syscalls.list Thu Jun 6 23:33:11 2002
@@ -15,7 +15,7 @@ setrlimit - setrlimit i:ip __setrlimit s
ftruncate - ftruncate i:ii __ftruncate ftruncate ftruncate64 __ftruncate64
truncate - truncate i:si truncate truncate64
readahead EXTRA readahead i:iipi __readahead readahead
-sendfile EXTRA sendfile i:iip sendfile sendfile64
+sendfile - sendfile i:iip sendfile sendfile64
# semaphore and shm system calls
msgctl - msgctl i:iip __msgctl msgctl
--- libc/sysdeps/unix/sysv/linux/x86_64/sendfile64.c.jj Thu Jun 6 23:34:31 2002
+++ libc/sysdeps/unix/sysv/linux/x86_64/sendfile64.c Thu Jun 6 23:34:23 2002
@@ -0,0 +1 @@
+/* sendfile64 is alias of sendfile syscall. */
--- libc/sysdeps/unix/sysv/linux/syscalls.list.jj Wed Jun 5 10:27:54 2002
+++ libc/sysdeps/unix/sysv/linux/syscalls.list Thu Jun 6 23:28:17 2002
@@ -48,8 +48,8 @@ sched_setp - sched_setparam i:ip __sched
sched_sets - sched_setscheduler i:iip __sched_setscheduler sched_setscheduler
sched_yield - sched_yield i: __sched_yield sched_yield
select - _newselect i:iPPPP __select select
-sendfile EXTRA sendfile i:iipi sendfile
-sendfile64 EXTRA sendfile64 i:iipi sendfile64
+sendfile - sendfile i:iipi sendfile
+sendfile64 - sendfile64 i:iipi sendfile64
setfsgid EXTRA setfsgid i:i setfsgid
setfsuid EXTRA setfsuid i:i setfsuid
setpgid - setpgid i:ii __setpgid setpgid
Jakub
More information about the Libc-hacker
mailing list