From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13673 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.linux.lib.musl.general Subject: Re: fdopendir (BUG?) Date: Mon, 28 Jan 2019 19:42:36 +0000 Message-ID: References: <1aa02811-8aeb-7157-603c-4df735bda056@linaro.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134215"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13689-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 28 20:43:01 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1goCo8-000YoB-Pa for gllmg-musl@m.gmane.org; Mon, 28 Jan 2019 20:43:00 +0100 Original-Received: (qmail 17959 invoked by uid 550); 28 Jan 2019 19:42:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17939 invoked from network); 28 Jan 2019 19:42:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tTCpzrDYmunfAqq1AHqvnMv0ejYs4FIA5RHhr+QWiN4=; b=pdP3tREVVsjNSVOC3G51Higfx4c8ZG+vN5AzLWNtBc2b9EihHBpfJJg+77rgltqLpM DkVnSZxH286dmPWJLeduvjq99ZKagWRgol7kw3JwGIVb1+gzBXZRD22/grP/eJ5SaVE3 lDLsjyP6i5tKhjK5+W3RZlNzmC/2aVE9uAFHXami5K74O/SCB07Z50TuXiwFiVLspL0J NFcOV1m6YpsD3fw31b3NVNJ11jaQJdx4RO2TL7VpK83YxDCgCF6Dg12OxgoKOlZHJme5 YpS9xqLCM+MMhNpQm5Ths9y5qitnNrmty7cLrXqbgFSYgr3Sach1fypRgIGZyqmmVSPM ex+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tTCpzrDYmunfAqq1AHqvnMv0ejYs4FIA5RHhr+QWiN4=; b=nzOXS6Zqcrj80QLgWAPonbVRbz4DDi8E1g0Yh3ZPQwQRR2t4wWGoQomKdWj1s50C51 R03qRzGRzjeKmjW1qpFJTSif7ZHYgHlq/aa1jutIKTpyNwtemGhZnWqOA4CNZnPf0PhW 1WgG/S4t/NNNqRhDMZ/rhjaDKcLsXBjW8YiDwt+EUTHBTL8TQ5pdThPfsyf4Sa4yxGxS N4jp0OyvLoahP2LQjbRcKXzgo9AzQZ0KNquEw2dfbdrV5V72/AcOR9E1WJZsjNQQEewm G9TQ2v/ENomE1FWNI1ywVq8t7/ePNw19FqkKH06J/xaljgIjjaK3dRSZFCkpqp1zMjTq /eDA== X-Gm-Message-State: AJcUukcyD5wfaATlnbA40V6FezPtCBN0mz5ia/KC+4rkEaHkswSdSDkG hW2+IelePS4fPK/LmjKj0elXsG95q2xwjw4RpPsCGDD4 X-Google-Smtp-Source: ALg8bN4w5NY3EMBVYqm4g0yNpCIGdbLJx5bgrpo2sk1GX/fqT+TFBf1C1O3kzb2UN80X0X2vTGK52qgzSxhgLd2VJKI= X-Received: by 2002:a19:f20:: with SMTP id e32mr17250983lfi.51.1548704565801; Mon, 28 Jan 2019 11:42:45 -0800 (PST) In-Reply-To: <1aa02811-8aeb-7157-603c-4df735bda056@linaro.org> Xref: news.gmane.org gmane.linux.lib.musl.general:13673 Archived-At: On Mon, Jan 28, 2019 at 6:54 PM Adhemerval Zanella wrote: > > > > On 28/01/2019 10:37, Jorge Almeida wrote: > > (the problem also occurs with glibc, besides the fact that glibc > > requires also _GNU_SOURCE to compile, contradicting the linux man > > page) > Because O_PATH is a Linux extension and it guards such definitions > with _GNU_SOURCE. And although man-pages is not the canonical glibc > documentation, it does states that O_PATH is only defined if > _GNU_SOURCE is also defined (man-pages commit > 1135dbe188a48d7fa237396ab371ebf74037c1f6 from 2013-02-13). My man page for opendir has the date 2017-09-15 ("release 4.16 of the Linux man-pages project") It says: Feature Test Macro Requirements for glibc (see feature_test_macros(7)): fdopendir(): Since glibc 2.10: _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _GNU_SOURCE I have glibc-2.27