From owner-freebsd-current@FreeBSD.ORG Sun Mar 29 21:38:48 2009 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A2681065670; Sun, 29 Mar 2009 21:38:48 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4BA8FC0C; Sun, 29 Mar 2009 21:38:48 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n2TLg0Ld014064; Sun, 29 Mar 2009 17:42:00 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: current Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-exyVlah01fXDdHZ2S7jt" Organization: FreeBSD, Inc. Date: Sun, 29 Mar 2009 17:38:48 -0400 Message-Id: <1238362728.73736.165.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: David Schultz Subject: getline incompatibility with Linux X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 21:38:48 -0000 --=-exyVlah01fXDdHZ2S7jt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The new getline() function in FreeBSD is not completely compatible with Linux's implementation. The result is that programs which assume Linux getline may enter a tight infinite loop. According to the Linux getline(3) manpage, getline(3) returns -1 on error (including EOF). Our implementation returns 0 on EOF. Would it be possible to return -1 on EOF in our implementation? Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-exyVlah01fXDdHZ2S7jt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknP6mYACgkQb2iPiv4Uz4cTqACfVso80ClcvY0UmAcjsMicaMd6 WQEAoI1cQ/KTPY4pQYDmCGCyk1QNF5rO =Z+Mn -----END PGP SIGNATURE----- --=-exyVlah01fXDdHZ2S7jt--