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

Re: [PATCH] Configure test for FREAD_READS_DIRECTORIES

From
MRMichal Rokos <michal.rokos@nextsoft.cz>
Date
Mar 4, 2008, 11:17 UTC
Message-ID
<200803041217.37027.michal.rokos@nextsoft.cz>
In-Reply-To
<7vod9u92fj.fsf@gitster.siamese.dyndns.org>
Hello,
On Tuesday 04 March 2008 12:03:12 Junio C Hamano wrote:
Show 12 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...
I think "." is brilliant - ie no reason for "/etc" apart that I'm dumb.
> On how many different platforms was this configure check tested on?

Test works on Linux (no FREAD_READS_DIRECTORIES) and HPUXes (FREAD_READS_DIRECTORIES): HP-UX B.11.23 ia64 (Itanium) and HP-UX B.11.11 9000/800 (PaRisc)

Do you want me to resend with "."?
MR
-- 
Michal Rokos

NextSoft s.r.o.
Vyskočilova 1/1410
140 21 Praha 4
phone:  +420 267 224 311
fax:    +420 267 224 307
mobile: +420 736 646 591
e-mail: michal.rokos@nextsoft.cz
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.