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

Re: [PATCH] Configure test for FREAD_READS_DIRECTORIES

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 4, 2008, 11:03 UTC
Message-ID
<7vod9u92fj.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200803041048.53399.michal.rokos@nextsoft.cz>
Michal Rokos <michal.rokos@nextsoft.cz> writes:
> Hello,
"Hello," not wanted in the commit log message.
> this patch adds missing tests for FREAD_READS_DIRECTORIES.
>
> Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Show 10 quoted lines
> +#
> +# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
> +# when attempting to read from an fopen'ed directory.
> +AC_CACHE_CHECK([whether system succeeds to read fopen'ed directory],
> + [ac_cv_fread_reads_directories],
> +[
> +AC_RUN_IFELSE(
> +	[AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
> +		[[char c;
> +		FILE *f = fopen("/etc", "r");
Why "/etc" and not "." I have to wonder...
On how many different platforms was this configure check tested on?
Previous: Michal RokosNext: Michal Rokos
Message 2 of 7 in “Configure test for FREAD_READS_DIRECTORIES”
  1. Configure test for FREAD_READS_DIRECTORIESMichal Rokos, Mar 4, 2008
  2. Junio C HamanoMar 4, 2008
  3. Michal RokosMar 4, 2008
  4. Junio C HamanoMar 4, 2008
  5. Michal RokosMar 4, 2008
  6. Jakub NarebskiMar 4, 2008
  7. Junio C HamanoMar 5, 2008

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.