Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Thu, 15 Mar 2007 09:35:45 -0700
Received: from ftp.linux-mips.org ([194.74.144.162]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Thu, 15 Mar 2007 09:35:45 -0700
Received: from localhost.localdomain ([127.0.0.1]:7347 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20022422AbXCOQfZ (ORCPT <rfc822;dan.stein@onstor.com> + 1 other);
	Thu, 15 Mar 2007 16:35:25 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 15 Mar 2007 16:35:01 +0000 (GMT)
Received: from mba.ocn.ne.jp ([122.1.175.29]:62438 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S20022414AbXCOQe4 (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Thu, 15 Mar 2007 16:34:56 +0000
Received: from localhost (p4042-ipad27funabasi.chiba.ocn.ne.jp [220.107.195.42])
	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP
	id 9BA54A42B; Fri, 16 Mar 2007 01:33:34 +0900 (JST)
Date:	Fri, 16 Mar 2007 01:33:34 +0900 (JST)
Message-Id: <20070316.013334.128618583.anemo@mba.ocn.ne.jp>
To:	linux-mips@linux-mips.org
Cc:	ralf@linux-mips.org, kraj@mvista.com, libc-ports@sourceware.org
Subject: Re: [PATCH] Fix some system calls with long long arguments
From:	Atsushi Nemoto <anemo@mba.ocn.ne.jp>
In-Reply-To: <20070315.103511.89758184.nemoto@toshiba-tops.co.jp>
References: <20070315.103511.89758184.nemoto@toshiba-tops.co.jp>
X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A  B746 CA77 FE94 2874 D52F
X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F
X-Mailer: Mew version 3.3 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-archive-position: 14486
X-ecartis-version: Ecartis v1.0.0
Sender:	linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: anemo@mba.ocn.ne.jp
Precedence: bulk
X-list:	linux-mips
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 15 Mar 2007 16:35:45.0079 (UTC) FILETIME=[FAAF5470:01C7671F]

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
 

