From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.161]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id pBDCU5ng017324 for ; Tue, 13 Dec 2011 07:30:07 -0500 (EST) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiWyzbzV+pAwJ X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-250-225.web.vodafone.de [109.45.250.225]) by smtp.strato.de (jimi mo60) (RZmta 26.15 DYNA|AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id x0693anBDBmb48 for ; Tue, 13 Dec 2011 13:29:55 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Tue, 13 Dec 2011 13:29:53 +0100 Date: Tue, 13 Dec 2011 13:29:53 +0100 From: Joerg Sonnenberger To: source@mdocml.bsd.lv Subject: Re: mdocml: Compatibility support fgetln() on Linux. Message-ID: <20111213122953.GB3847@britannica.bec.de> Mail-Followup-To: source@mdocml.bsd.lv References: <201112131126.pBDBQDje017087@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201112131126.pBDBQDje017087@krisdoz.my.domain> User-Agent: Mutt/1.5.21 (2010-09-15) On Tue, Dec 13, 2011 at 06:26:13AM -0500, kristaps@mdocml.bsd.lv wrote: > Compatibility support fgetln() on Linux. This uses the BSD-licensed > implementation from NetBSD tnftpd, Christos Zoulas (copyright message > retained in the compat_fgetln.c file). Patch verified by schwarze@. He > notes that you'll need -pthread for -static binaries (due to libdb), so > I've noted that -static should really only be used for BSD UNIX. I think the better idea would be for OpenBSD to provide getline and go with a POSIX function. One of the reasons is that getline() makes the buffer handling more explicit, which is a good thing here, since the naive fallback implementation can/does leak memory. Joerg -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv