git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/Hurd

From
Brandon Casey <drafnel@gmail.com>
Date
Apr 22, 2020, 19:05 UTC
Message-ID
<CA+sFfMdudQ-cWbXajQ_92LZLOOOnTxmQmmsUo3dY1eKCL5-Y6Q@mail.gmail.com>
In-Reply-To
<452EC7D1-BE96-4172-8F70-3E7384C87280@jrtc27.com>
On Wed, Apr 22, 2020 at 11:50 AM Jessica Clarke <jrtc27@jrtc27.com> wrote:
>
> On 22 Apr 2020, at 19:48, Brandon Casey <drafnel@gmail.com> wrote:
Show 15 quoted lines
> > introduced
> > this feature that would make fopen() fail when opening a directory for
> > use on the platforms where fread() of a directory did not fail,
> > instead of trying to wrap fread().
>
> Then the current autoconf test is wrong and likely causing confusion:
>
> > AC_RUN_IFELSE(
> >         [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
> >                 [[
> >                 FILE *f = fopen(".", "r");
> >                 return f != NULL;]])],
> >         [ac_cv_fread_reads_directories=no],
> >         [ac_cv_fread_reads_directories=yes])
> > ])

Yes, we should attempt to call fread() there. If either the fopen() fails or the fread() fails, then that should mean that FREAD_READS_DIRECTORIES is not necessary.

-Brandon
Previous: Jessica ClarkeNext: Brandon Casey
Message 6 of 12 in “config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/Hurd”
  1. config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/HurdJessica Clarke, Apr 22, 2020
  2. Jonathan NiederApr 22, 2020
  3. Junio C HamanoApr 22, 2020
  4. Brandon CaseyApr 22, 2020
  5. Jessica ClarkeApr 22, 2020
  6. Brandon CaseyApr 22, 2020
  7. Brandon CaseyApr 22, 2020
  8. Brandon CaseyApr 22, 2020
  9. Jeff KingApr 22, 2020
  10. Brandon CaseyApr 22, 2020
  11. Jeff KingApr 24, 2020
  12. Junio C HamanoApr 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.