From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29765 invoked by alias); 20 Jun 2017 11:28:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41333 Received: (qmail 27927 invoked from network); 20 Jun 2017 11:28:26 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.41):SA:0(-0.0/5.0):. Processed in 0.926498 secs); 20 Jun 2017 11:28:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.41 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state: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=lnQ1GP0lpDycoScFJw34mTje5f4+v4LsB18rQCzna5GNr9FHsGjW7RBMkioU5LB9sz R2I/5I8VsnIg34TEALiE8RjyYN3l6tbuMqVIWiUUAXHdUV3KHnc08qhonpOQfABN2SNf mptmwgK156rVpAFPHYO+KM3lnO6IDRzc5yTeqVM4PAD7rHsQ/t28pz15fX0BwRVoVkWK nXLD4AjC0dYZ2WCSwuIwse/jOJ29TUpbFFLxfRIqrZxebmC8SAxKlW5E+miQ42RVq5d0 Gte6501l5Tk11m1iimmKLCpz3ntNk0NYh/iaohTm7zpNsGu58XdWN2FjcrC7tUQsq63b iCbg== X-Gm-Message-State: AKS2vOwaiAY7dzt56D3w/aD09HA/YohLAVIpA4HTMNsQgmw9SODBKHm9 qDEUH9qEkW+RXx7U X-Received: by 10.28.14.205 with SMTP id 196mr2311370wmo.27.1497958098156; Tue, 20 Jun 2017 04:28:18 -0700 (PDT) Date: Tue, 20 Jun 2017 12:28:15 +0100 From: Stephane Chazelas To: Peter Stephenson Cc: Zsh hackers list Subject: fgets() portability (Was: Why sourcing a file is not faster than doing a loop with eval, zle -N) Message-ID: <20170620112815.GA13982@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , Zsh hackers list References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170619214414.32694497@ntlworld.com> User-Agent: Mutt/1.5.24 (2015-08-30) 2017-06-19 21:44:14 +0100, Peter Stephenson: > On Mon, 19 Jun 2017 13:38:12 -0700 > Bart Schaefer 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