This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Prepare PPC pread/pwrite for linux-2.5 headers
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 4 Nov 2002 13:32:00 +0100
- Subject: Re: [PATCH] Prepare PPC pread/pwrite for linux-2.5 headers
- References: <200211041329.13372@enzo.bigblue.local>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 04, 2002 at 01:29:13PM +0100, Franz Sirl wrote:
> --- sysdeps/unix/sysv/linux/powerpc/pwrite.c 6 Jul 2001 04:56:19 -0000 1.5
> +++ sysdeps/unix/sysv/linux/powerpc/pwrite.c 27 Oct 2002 13:53:29 -0000
> @@ -23,6 +23,13 @@
> #include <sysdep.h>
> #include <sys/syscall.h>
>
> +#ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */
> +# ifdef __NR_pwrite
> +# error "__NR_pwrite and __NR_pwrite64 both defined???"
> +# endif
> +# define __NR_pwrite __NR_pread64
^^^^Typo.
> +#endif
> +
> #ifdef __NR_pwrite
>
> extern ssize_t __syscall_pwrite (int fd, const void *buf, size_t count,
> --- sysdeps/unix/sysv/linux/powerpc/pwrite64.c 3 Aug 2002 06:57:52 -0000 1.7
> +++ sysdeps/unix/sysv/linux/powerpc/pwrite64.c 27 Oct 2002 13:53:30 -0000
> @@ -23,6 +23,13 @@
> #include <sysdep.h>
> #include <sys/syscall.h>
>
> +#ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */
> +# ifdef __NR_pwrite
> +# error "__NR_pwrite and __NR_pwrite64 both defined???"
> +# endif
> +# define __NR_pwrite __NR_pread64
^^^^Likewise.
> +#endif
> +
> #ifdef __NR_pwrite
>
> extern ssize_t __syscall_pwrite (int fd, const void *buf, size_t count,
Jakub