Re: [PATCH] config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/Hurd
- From
Brandon Casey <drafnel@gmail.com>
- Date
- Apr 22, 2020, 18:54 UTC
- Message-ID
- <CA+sFfMdPDuZze76OnwPDm7VjcvSu-nW03+kthHM4trs5KRJ6SQ@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:
> 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 just want to be clear here, so based on the above, Linux and Darwin should _not_ need to have FREAD_READS_DIRECTORIES set.
Windows, as always, is a stickier subject. Based on the above, Windows should not need FREAD_READS_DIRECTORIES either. It's not set when MSVC is the compiler, but it is set for cygwin.
-Brandon