source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: source@mdocml.bsd.lv
Subject: Re: mdocml: Compatibility support fgetln() on Linux.
Date: Tue, 13 Dec 2011 13:29:53 +0100	[thread overview]
Message-ID: <20111213122953.GB3847@britannica.bec.de> (raw)
In-Reply-To: <201112131126.pBDBQDje017087@krisdoz.my.domain>

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

      reply	other threads:[~2011-12-13 12:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 11:26 kristaps
2011-12-13 12:29 ` Joerg Sonnenberger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111213122953.GB3847@britannica.bec.de \
    --to=joerg@britannica.bec.de \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).