This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Prepare PPC pread/pwrite for linux-2.5 headers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]