Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
fgets() portability (Was: Why sourcing a file is not faster than doing a loop with eval, zle -N)
- X-seq: zsh-workers 41333
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: fgets() portability (Was: Why sourcing a file is not faster than doing a loop with eval, zle -N)
- Date: Tue, 20 Jun 2017 12:28:15 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wMc8URlQmvAQpvNwpZd7+fcGJLvI1riu/9kcE+ZjQas=; b=pWPErHpuUFmE6rigtR/iTctZiEuB8E0xr50cpHrumJPlIvdvmaPsphh20RFdoosTzZ XKqChcuAHWybZO4R7X/3C4YtN/561YUHy70SSDXWa15kA6XOEXMjC1Qpi3V3uqzlXGHt Z/fy/n3tdwuulJsUG6XfGKo0b6vsBV0oqV3jpYt5TnyJtOdk4xkydepeecYwFjU7ejyM t2H3JRwAs4zhFK9xKJ1nss+0DU7JlqUeaDyuuueHGtaXqbo5tkoo17FCqqdOr8MEGxIT H4M9czctbTFqGqvigyqk81rGhg8Lc5GIGl1FUy+9ZT7ey0NtSAZMujUyxvgtchck3BOr EVbw==
- In-reply-to: <20170619214414.32694497@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.594513a8.516100cd.10b2e__10513.1716504276$1497699329$gmane$org@zdharma.org> <20170619122413.GA9294@chaz.gmail.com> <170619083116.ZM17323__41722.0601499595$1497886320$gmane$org@torch.brasslantern.com> <20170619161601.GB9294@chaz.gmail.com> <20170619202835.7f207185@ntlworld.com> <170619133812.ZM3422@torch.brasslantern.com> <20170619214414.32694497@ntlworld.com>
2017-06-19 21:44:14 +0100, Peter Stephenson:
> On Mon, 19 Jun 2017 13:38:12 -0700
> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > I don't think the HAVE_FGETS + configure change is needed, there are
> > already at least four places where we assume fgets() is available.
>
> It's been there since 2001 and I added one of them myself in 2011.
[...]
Out of curiosity, are there really systems that have fgetc() and not
fgets()? AFAICT, both were already there in the "original"
stdio implementation in Unix v7 in the 70s.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author