fchdir on mingw

2010-04-03 Thread Bruno Haible
On mingw still, I'm seeing these errors: test-fchdir.c:24: error: `fchdir' undeclared here (not in a function) make[4]: *** [test-fchdir.o] Error 1 and in C++ mode: ../gllib/unistd.h:698: error: `fchdir' was not declared in this scope The reason is a regression from 2010-03-08: I was

Re: fchdir on mingw

2009-10-13 Thread Eric Blake
Eric Blake ebb9 at byu.net writes: Date: Tue, 15 Sep 2009 15:54:43 -0600 Subject: [PATCH] fchdir: improve use of replacement functions * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses. * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT. This patch broke fstat on

Re: fchdir on mingw

2009-09-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 9/1/2009 10:55 AM: Eric Blake (5): fchdir: fix off-by-one bug in previous patch fchdir: simplify error handling, and support dup3 fchdir: use more consistent macro convention This particular patch

Re: fchdir on mingw

2009-09-01 Thread Eric Blake
Eric Blake ebb9 at byu.net writes: +/* Return stat information about FD in STATBUF. Needed when + rpl_open() used a dummy file to work around an open() that can't + normally visit directories. */ +#if REPLACE_OPEN_DIRECTORY +int +rpl_fstat (int fd, struct stat *statbuf) +{ + if (0

fchdir on mingw

2009-08-31 Thread Eric Blake
Subject: [PATCH 1/2] fchdir: port to mingw * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug. * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be opened, then use a substitute. * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare replacement. * lib/fchdir.c (fstat

Re: fchdir on mingw

2009-08-31 Thread Eric Blake
Eric Blake ebb9 at byu.net writes: One improvement possible for fdopendir is that if fchdir is being emulated by gnulib, we can do a query into the fchdir metadata table to retrieve the directory name associated with an fd, rather than having to go through

Re: fchdir on mingw

2009-08-31 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 8/31/2009 5:38 PM: Notice that this changes the status of fdopendir - whereas it was previously non-multithread safe and could call _exit, the mingw version of fdopendir is now threadsafe and avoids _exit. Well, not

Re: fchdir on mingw

2009-08-31 Thread Eric Blake
the second (since it changes the implementation of fchdir) or the subsequent fdopendir patches. Subject: [PATCH 1/2] fchdir: port to mingw * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug. * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be opened, then use a substitute. * lib