From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 23 11:26:12 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26C1A106564A for ; Wed, 23 Apr 2008 11:26:12 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C615B8FC18 for ; Wed, 23 Apr 2008 11:26:11 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C74F16798A4 for ; Wed, 23 Apr 2008 13:25:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hNWKHH6J0ZJG for ; Wed, 23 Apr 2008 13:25:43 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id CD031678EB0 for ; Wed, 23 Apr 2008 13:25:43 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m3NBPhbq021583 for emulation@freebsd.org; Wed, 23 Apr 2008 13:25:43 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 23 Apr 2008 13:25:43 +0200 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20080423112543.GA20954@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: [RFC]: a place for [f]truncate64 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 11:26:12 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi, Linux defines two syscalls ftruncate64 and truncate64 that are defined only on 32bit archs, currently Linuxulator implementes ftruncate64 which is defined in linux[32]_machdep.c, ie. in machine dependant file. I plan to commit truncate64 but I prefer it to be placed in linux_file.c which is machine independent. Kostik and I had a discussion about this yesterday and we didnt agree what is the best place for these functions. I think it's better to have it in linux_file.c because the only problem that can arise is that on platforms that don't use these syscalls there will be unused function in linux_file.c Kostik prefers each linux[32]_machdep.c to have it's own copy. So I ask emulation@ what should be done, do we want this in linux_file.c or linux[32]_machdep.c thnx roman --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgPHLcACgkQLVEj6D3CBEwtmgCeKjpw8HeTWYAutV3Bvsh8q08T vIsAniYG89C6QOqKh9vj9A5B5ZgyY1to =1Z8U -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--