From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13675 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 21:33:42 +0000 Message-ID: References: <1aa02811-8aeb-7157-603c-4df735bda056@linaro.org> <3cd586df-a7fa-8660-c17e-d32aa845431c@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="177719"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13691-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 28 22:34:07 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 1goEXf-000k8O-6f for gllmg-musl@m.gmane.org; Mon, 28 Jan 2019 22:34:07 +0100 Original-Received: (qmail 17578 invoked by uid 550); 28 Jan 2019 21:34:04 -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 17558 invoked from network); 28 Jan 2019 21:34:03 -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=+AtPyFRHt0jyOgeLxNcKEiAuSeo7bBUhTtCCE9g+/iQ=; b=J7JoHziFAezgjiLuk4F785+4p6ZaOMymTRwseqeMmZGjr+MqSpmd7+pl4oaRJEu0J8 p7xZPkQ1Jde2NYdLZSuOmGhcx4iuq6nHuoxBsWUKz8DLcMmzypFY7MkIHZObrFQdynxk 0bicZB9apOQg1tdr2knU16V/Scpcvg/x6gdqxqEySoxwvZYvbnw8vOn4rmhvmntI5BtL OM1NufRhjieqygqs84VrkfX6oq/rGIzjgoWLZLzVBTRCnBkS+d6vb92wWTlCTiA9Glnl GJ8qn8gwHC/UFytY85zJDALMnZHCjOX8r6Inrm5+GklTZUI+XK0Zq5V7Zx7vberBGICj rPkw== 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=+AtPyFRHt0jyOgeLxNcKEiAuSeo7bBUhTtCCE9g+/iQ=; b=IYwnbXnVxpa2WdlyYjAPs8xzG5HzyLDUR2A/VJo1qlEAShp8orUr2nU1F1BFJP4/n0 KBDvKp9fn9ZYPrIMmZhTFbdwkcG6sKF+4RKARzPjC8lqtXrTMamIpaTdTUOSeYxE3QBk mSXRxy81aYzWJtiS9KsUrTmVWNZM5JWNGWU6kynkjDD9qanrPwuzDSiqUAbgUNgLOjxK wch8gkknEWQYQ1APy8oh/RhsB9JnEQeecjFvxPM/Z7rHwFJsBxP/zefyG4cYEoU7Twb/ LWqs44ZrEQ4Bt/AEeycpPAQMN6s0rNDk7Lyy8O4l06iQSpjUlp37z6CEvEAvQVPTcu/Y MPuQ== X-Gm-Message-State: AJcUukeFm+Y0CDjSvMHXch6koYSGaZ3jeejzg6Tpa2AxJ4AYP2wsnDTo YPNsR2FzhPKy2qNutIkAW/cRSocUVXT57nsH6KQa/cH7 X-Google-Smtp-Source: ALg8bN6AU3USddGEqyzmdCUYcbPWyXRqzBc9eW8Ri5yeeRdoc9HCWm3gTAMh5SLaMa1VvbLjtoelB3CYBBXUkg4ZwBg= X-Received: by 2002:a2e:7e04:: with SMTP id z4-v6mr19405067ljc.97.1548711232095; Mon, 28 Jan 2019 13:33:52 -0800 (PST) In-Reply-To: <3cd586df-a7fa-8660-c17e-d32aa845431c@linaro.org> Xref: news.gmane.org gmane.linux.lib.musl.general:13675 Archived-At: On Mon, Jan 28, 2019 at 8:31 PM Adhemerval Zanella wrote: > > > > > 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 > > > > This is for *fdopendir* declaration, the *O_PATH* flag is documented by > open.2 and it defines: > > --- > CONFORMING TO > open(), creat() SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008. > > openat(): POSIX.1-2008. > > The O_DIRECT, O_NOATIME, O_PATH, and O_TMPFILE flags are Linux-specific. > One must define _GNU_SOURCE to obtain their definitions. > --- OK, got it. Still, it compiles against musl, even without _GNU_SOURCE