From owner-freebsd-hackers@FreeBSD.ORG Mon May 11 18:33:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BEBD1065689; Mon, 11 May 2009 18:33:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id A0D1E8FC1D; Mon, 11 May 2009 18:33:14 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1M3aJL-000A2l-Us; Mon, 11 May 2009 21:33:12 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n4BIX9Kf025962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 May 2009 21:33:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n4BIX9i3082703; Mon, 11 May 2009 21:33:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n4BIX9Dc082702; Mon, 11 May 2009 21:33:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 11 May 2009 21:33:09 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20090511183309.GB1948@deviant.kiev.zoral.com.ua> References: <46FDBAFC.1010000@gmail.com> <200905111405.07289.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ePr0Yc6hYRI4V1o7" Content-Disposition: inline In-Reply-To: <200905111405.07289.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1M3aJL-000A2l-Us 6cecd4be097efb670a57f2fdda462b57 X-Terabit: YES Cc: freebsd-hackers@freebsd.org, Ighighi Subject: Re: POSIXfy readlink() call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2009 18:33:15 -0000 --ePr0Yc6hYRI4V1o7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2009 at 02:05:07PM -0400, John Baldwin wrote: > On Friday 28 September 2007 10:39:56 pm Ighighi wrote: ^^^^^ > > The POXIX prototype for readlink(2) is: > > ssize_t readlink(const char *restrict path, char *restrict buf, size_t= =20 > > bufsize); >=20 > It can't simply be corrected as it would change the ABI and thus requires= a=20 > new system call, etc. However, do you really expect a symlink to be long= er=20 > than 2^31 on a 64-bit machine? Yes, I agree that this is ABI change. Meantime, r176215 | ru | 2008-02-12 22:09:04 +0200 (Tue, 12 Feb 2008) | 5 lines Change readlink(2)'s return type and type of the last argument to match POSIX. Prodded by: Alexey Lyashkov I tried to convince ru@ that ABI breakage is not good, but has not succeeded. --ePr0Yc6hYRI4V1o7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkoIb2QACgkQC3+MBN1Mb4hpRwCg2ggUNA/xgcwRe77a3JDC1Tpo ujAAoJfdxAavXEegNUAE2gteoeOlzzgh =JLt3 -----END PGP SIGNATURE----- --ePr0Yc6hYRI4V1o7--