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:13 UTC
Message-ID
<CA+sFfMf=NZOV41-4oJTLF34rvELr7EvfEHOr90X_h8pSFC3AJQ@mail.gmail.com>
In-Reply-To
<CA+sFfMfre6W5GcPh1pWcroFD9S9OPj_uLp5CK11yh-UhqgDs2w@mail.gmail.com>
On Wed, Apr 22, 2020 at 11:48 AM Brandon Casey <drafnel@gmail.com> wrote:
Show 17 quoted lines
>
> I just looked in config.mak.uname, and I'm surprised to see
> FREAD_READS_DIRECTORIES set for so many platforms. And it's set for
> Linux and Darwin?!?!? Junio added it for Darwin
> (8e178ec4d072da4cd8f4449e17aef3aff5b57f6a) and Nguyễn Thái Ngọc Duy
> added it for Linux (e2d90fd1c33ae57e4a6da5729ae53876107b3463), but
> also seemed to mistake the intention of FREAD_FREADS_DIRECTORIES as
> being about the fopen(..., "r") of a directory rather than about an
> fread() of a directory.
>
> I just wrote a test program and tested on Linux, Darwin, and Windows.
> Linux and Darwin both succeed to fopen() a directory and fail to
> fread() it, as expected. Windows fails to fopen() a directory.
>
> I notice this earlier commit mentions a failure of t1308
> (4e3ecbd43958b1400d6cb85fe5529beda1630e3a). I wonder if this is the
> reason FREAD_READS_DIRECTORIES was added to so many platforms?

Whoops, I got the order of e2d90fd1c33ae57e4a6da5729ae53876107b3463 and 4e3ecbd43958b1400d6cb85fe5529beda1630e3a wrong. Looks like the misunderstanding of FREAD_READS_DIRECTORIES in e2d90fd could have been the cause of all of this. That commit introduced the test t1308 and added FREAD_READS... to Linux, kFreeBSD, and FreeBSD, and the other additions followed shortly after.

-Brandon
Previous: Brandon CaseyNext: Jeff King
Message 8 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.