1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 01:40:06 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Paul Eggert
ff276995ff (__attribute__): Don't define if already defined. 2006-06-11 07:11:31 +00:00
Paul Eggert
39448a239a (futimens): glibc futimesat messes up if /proc isn't mounted. 2006-04-15 07:39:46 +00:00
Paul Eggert
9fb982e150 (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
Don't assume that futimes failing means we must fail.
2005-10-30 21:32:02 +00:00
Paul Eggert
a6c8a8e6d4 Include unistd.h, for dup2.
(futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
(futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
2005-09-26 23:01:00 +00:00
Paul Eggert
4f001e7a13 (ENOSYS): Define if not already defined.
(ftimens): Support having a null PATH if the file descriptor
is nonnegative.
2005-09-25 06:08:45 +00:00
Paul Eggert
b9830cafa1 * lib/utimens.c (futimens): Use futimesat if available.
Prefer it to futimes since it doesn't have the futimes bug.
* m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
2005-09-23 19:18:27 +00:00
Jim Meyering
116e6fb244 Update FSF postal mail address. 2005-05-14 07:58:06 +00:00
Paul Eggert
dfe280e907 (futimens): Robustify the previous patch, by checking
for known valid error numbers rather than observed invalid ones.
2005-01-03 19:54:54 +00:00
Jim Meyering
e0a94d174b (futimens): Account for the fact that futimes
can also fail with errno == ENOSYS in that case.
Patch from Dmitry V. Levin.
2005-01-03 19:23:09 +00:00
Paul Eggert
e75249bf8c futimens) [HAVE_FUTIMES]: Fall back on utimes if futimes fails with
errno == ENOENT.
2005-01-03 08:51:59 +00:00
Paul Eggert
22ea135643 (__attribute__, ATTRIBUTE_UNUSED): New macros.
(futimens): New function, which uses futimes if available.
(futimens, utimens): Support timespec==NULL, with same semantics
as utime and utimens.
2004-11-23 20:42:13 +00:00
Jim Meyering
5701c74f6d (utimens): Revert most of last change.
Test HAVE_WORKING_UTIMES instead of HAVE_UTIMES.
2003-08-10 13:29:56 +00:00
Jim Meyering
9fd1e90a36 Test HAVE_UTIME, not HAVE_UTIMES.
Prefer utime, since it works and utimes doesn't on some systems.
2003-08-09 18:23:45 +00:00