This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH] Fix some system calls with long long arguments
- From: Atsushi Nemoto <anemo at mba dot ocn dot ne dot jp>
- To: linux-mips at linux-mips dot org
- Cc: ralf at linux-mips dot org, kraj at mvista dot com, libc-ports at sourceware dot org
- Date: Fri, 16 Mar 2007 01:33:34 +0900 (JST)
- Subject: Re: [PATCH] Fix some system calls with long long arguments
- References: <20070315.103511.89758184.nemoto@toshiba-tops.co.jp>
On Thu, 15 Mar 2007 10:35:11 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> > > fadvise64(), readahead(), sync_file_range() have long long argument(s)
> > > but glibc passes it by hi/lo pair without padding, on both O32 and
> > > N32.
BTW, I can not find sync_file_range symbol in my libc.so. There is
sysdeps/unix/sysv/linux/sync_file_range.c but it seems not built into
library.
Is this a correct fix?
--- glibc-2.5.org/sysdeps/unix/sysv/linux/Makefile 2006-04-26 04:12:04.000000000 +0900
+++ glibc-2.5/sysdeps/unix/sysv/linux/Makefile 2007-03-16 01:25:28.654940581 +0900
@@ -13,7 +13,7 @@
ifeq ($(subdir),misc)
sysdep_routines += sysctl clone llseek umount umount2 readahead \
- setfsuid setfsgid makedev
+ setfsuid setfsgid makedev sync_file_range
CFLAGS-gethostid.c = -fexceptions