|
Message-ID: <fb7d6f8d-524b-baf3-4853-84eafe9396cd@linaro.org> Date: Mon, 28 Jan 2019 23:50:38 -0200 From: Adhemerval Zanella <adhemerval.zanella@...aro.org> To: musl@...ts.openwall.com Subject: Re: fdopendir (BUG?) On 28/01/2019 19:33, Jorge Almeida wrote: > On Mon, Jan 28, 2019 at 8:31 PM Adhemerval Zanella > <adhemerval.zanella@...aro.org> 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 > Because musl defines O_EXEC as O_PATH which I am not entirely sure it is correct for Linux. As Joseph has noted on glibc BZ#18222 [1] we need kernel agreement the kernel will reserve this value and the proper semantic it will implement (even if this is similar to O_PATH). [1] https://sourceware.org/bugzilla/show_bug.cgi?id=18228
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.