From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1544 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Daniel_Cegie=B3ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Priorities for next release? Date: Sun, 12 Aug 2012 14:52:19 +0200 Message-ID: References: <20120810191254.GA13232@brightrain.aerifal.cx> <20120811195649.GK27715@brightrain.aerifal.cx> <20120811205128.GL27715@brightrain.aerifal.cx> <20120811212258.GN27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344775975 8908 80.91.229.3 (12 Aug 2012 12:52:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2012 12:52:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1545-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 12 14:52:56 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T0Xf2-0007hm-K8 for gllmg-musl@plane.gmane.org; Sun, 12 Aug 2012 14:52:52 +0200 Original-Received: (qmail 21860 invoked by uid 550); 12 Aug 2012 12:52:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21852 invoked from network); 12 Aug 2012 12:52:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=L5YThKJPQpZXUMpi4znMZarb4RWFZmV5TnyX8K60we8=; b=Ym55aAnNNvqMLDVeoVLC6FZ3q5WFOWfrgyaG8fs/WCLFqIO6hiceS1hUK6eJF0bguE MSq1FCaHgVTdRADBnFlh32P6dozI6fhKLYq22R0llfKJEM5iKTkYFcIJAgqXoaKRS1gN FPOnFh1paAFzTd0mDsrOf2QKJL6kv9V/5hs8IQ9ZK9Cifk1QFECezDHN8ty6tRCSFeZE 13Qw+bYgeeSml2MYE9Kq3ho12XxuQCPj+F/K/uHplDCFrbvXN6tB8P+7wQcBmC8pYVqK 0YcFPs7pg3NH9gtQ1M/UbNyNjoSi4qKmhPhYAKboQUVvk0T4yA1IBG6YX/+fZbgzKzjw kGAA== In-Reply-To: <20120811212258.GN27715@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1544 Archived-At: 2012/8/11 Rich Felker : > On Sat, Aug 11, 2012 at 04:51:28PM -0400, Rich Felker wrote: >> > I'm sending fgetln.c (+my diff), but please check it... >> > btw. it based on /usr.bin/make/util.c from OpenBSD: >> >> If we add fgetln, I'd like a much higher quality of implementation. >> It's not clear from the past documentation I've read for this function >> that it's allowed to use a shared static buffer for all FILEs, and >> even if it were, I find that really ugly. Instead, simply returning a >> pointer into the FILE's buffer when the whole line is already present >> in the buffer, and otherwise allocating a FILE-local buffer for it, >> would be a lot nicer. fclose could then check the FILE-local pointer >> and free if it it was allocated. > > See attached. Does it work okay? > > Rich Thank you! And I see that is already in the repo... so I built a new version (with new memcpy). btw. I see that musl supports getdents(), but it is not visible in dirent.h. Daniel