Commit Graph

13 Commits

Author SHA1 Message Date
Paul Eggert
2d0c5eefd0 Sync from gnulib. 2005-09-22 06:05:39 +00:00
Jim Meyering
5205b73810 (fdopendir): Be sure to close the supplied
file descriptor before returning.  This makes our replacement
implementation a little closer to Solaris's, where fdopendir
ties the file descriptor to the returned DIR* pointer.
2005-09-20 13:51:01 +00:00
Jim Meyering
ee8931ea8e (unlinkat): New function. 2005-09-19 15:45:05 +00:00
Jim Meyering
b95fca684c Reflect s/_die/_fail/ renaming. 2005-06-14 09:46:24 +00:00
Jim Meyering
8c98346f6f Provide an alternative to exiting immediately upon save_cwd or
restore_cwd failure.  Now, an application can arrange e.g.,
to perform a longjump in that case.
* openat.c: Include dirname.h.
Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
(rpl_openat, fdopendir, fstatat): Call openat_save_die
and openat_restore_die rather than calling error directly.
Don't include "error.h" or "exitfail.h"; they're no longer needed.

* openat-die.c (openat_save_die, openat_restore_die): New file.
* openat.h (openat_save_die, openat_restore_die): Declare and define.
2005-06-14 06:54:39 +00:00
Paul Eggert
ab2edb9e33 Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
2005-06-02 05:05:29 +00:00
Jim Meyering
116e6fb244 Update FSF postal mail address. 2005-05-14 07:58:06 +00:00
Jim Meyering
158377f794 (fdopendir, fstatat): New functions. 2005-01-19 09:58:01 +00:00
Jim Meyering
0a872de7cd (rpl_openat): Correct comment.
Call free_cwd, to avoid leaking a file descriptor.
2004-12-31 10:06:43 +00:00
Paul Eggert
d2117d918c Include "openat.h" before other include files.
Include "exitfail.h".
(openat): Remove #undef; no longer needed now that we include openat.h first.
(rpl_openat): Add comment about mode_t promotion.  Simplify
code a bit by moving initializations around.  Use exit_failure
rather than EXIT_FAILURE.
2004-12-03 06:43:59 +00:00
Jim Meyering
26b53ffffe (rpl_openat): Also accept optional mode parameter. 2004-11-28 22:41:57 +00:00
Jim Meyering
b69fc7b949 *** empty log message *** 2004-11-28 21:13:59 +00:00
Jim Meyering
79e2f2c1f9 *** empty log message *** 2004-11-28 20:50:26 +00:00