Paul Eggert
8e9bd23013
Sync from gnulib.
2004-11-23 21:03:45 +00:00
Paul Eggert
398491f381
Minor performance improvements and cleanups for "touch".
2004-11-23 20:44:13 +00:00
Paul Eggert
557bd55cd2
(posix_date): Remove; not needed as a static var.
...
All uses rewritten.
(touch): Use new futimens function to operate more efficiently
in some cases. Don't stat/fstat existing file when
(!amtime_now && change_times == (CH_ATIME | CH_MTIME)); the
old time stamps aren't needed in that case.
(main): change_times is int, not bool. Simplify test for
change_times.
2004-11-23 20:43:47 +00:00
Paul Eggert
93da1db297
(gl_UTIMENS): Check for futimes function.
2004-11-23 20:43:17 +00:00
Paul Eggert
e595badf4e
utimens upgrade to support futimes.
2004-11-23 20:42:54 +00:00
Paul Eggert
e8c19bde9f
* utimens.m4 (gl_UTIMENS): Check for futimes function.
2004-11-23 20:42:31 +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
Paul Eggert
8dacb336d6
(futimens): New decl.
2004-11-23 20:41:51 +00:00
Jim Meyering
d3c44694c2
add a comment
2004-11-23 11:02:03 +00:00
Jim Meyering
b90f1a4404
tweak comment
2004-11-23 09:44:17 +00:00
Jim Meyering
5035b7181d
*** empty log message ***
2004-11-23 09:15:08 +00:00
Jim Meyering
7080ab9623
Revert last change, since it seems EBADF is always defined.
2004-11-23 09:15:05 +00:00
Jim Meyering
622e156501
*** empty log message ***
2004-11-22 14:24:11 +00:00
Jim Meyering
b2a9a7f986
(EBADF): Fail with `#error ...' if it's not defined,
...
asking the user to report the problem.
2004-11-22 14:24:04 +00:00
Jim Meyering
9f0568e81e
*** empty log message ***
2004-11-21 21:02:49 +00:00
Paul Eggert
e62df8f031
* src/install.c (usage): Avoid usage that runs afoul of Docbook.
2004-11-21 07:29:50 +00:00
Paul Eggert
c0b70ba29b
(usage): Avoid usage that runs afoul of Docbook
...
translation. Problem reported by Eric S. Raymond.
2004-11-21 07:29:31 +00:00
Paul Eggert
270b5a9cb1
Restore dd's noctty flag, reverting the change of 2004-04-08.
2004-11-20 08:57:21 +00:00
Paul Eggert
e5526bf63c
(flags, usage, main): Add noctty flag to dd.
2004-11-20 08:56:44 +00:00
Paul Eggert
2852d59d22
(dd invocation): Add noctty flag to dd.
2004-11-20 08:56:05 +00:00
Paul Eggert
8adf2bc638
Add noctty flag to dd.
2004-11-20 08:55:22 +00:00
Jim Meyering
79fc6d94b6
(usage): Clarified description of --no-group (-G),
...
--human-readable (-h), --inode (-i), --size (-s), --time,
and --time-style.
2004-11-19 21:41:00 +00:00
Jim Meyering
5e0dcea162
*** empty log message ***
2004-11-19 21:40:51 +00:00
Jim Meyering
273e13d35b
(find_dir_entry): Update comment to match reality.
2004-11-19 21:36:00 +00:00
Jim Meyering
d12ad92257
*** empty log message ***
2004-11-19 19:30:12 +00:00
Jim Meyering
148f896119
(usage): Clarify description of --author.
...
Tweak indentation so that help2man creates better nroff.
2004-11-19 19:29:55 +00:00
Jim Meyering
caf6c3459c
*** empty log message ***
2004-11-19 18:57:05 +00:00
Jim Meyering
d766e90d4c
(check_file): Don't check stdout for errors here.
2004-11-19 18:56:16 +00:00
Jim Meyering
ab955bd3f6
*** empty log message ***
2004-11-18 14:47:01 +00:00
Jim Meyering
e26c30aa38
(robust_getcwd): Correct the comment: this function constructs the
...
directory name. The caller prints it.
2004-11-18 14:46:47 +00:00
Paul Eggert
90988bac82
Sync from gnulib.
2004-11-17 23:14:24 +00:00
Paul Eggert
0884570c4e
Sync from gnulib.
2004-11-17 23:09:12 +00:00
Paul Eggert
a18a5093f8
Regenerate.
2004-11-17 03:50:34 +00:00
Paul Eggert
787605e540
* canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
2004-11-17 03:46:55 +00:00
Paul Eggert
d7209a2f7c
* xgetcwd.c: Work around Solaris 9 bug.
2004-11-17 03:42:45 +00:00
Paul Eggert
2b88597a04
Include <limits.h>, for PATH_MAX.
...
(xgetcwd): Set errno correctly when failing.
Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
the failure is actually due to a PATH_MAX problem.
2004-11-17 03:41:16 +00:00
Paul Eggert
6ad1c2cfd7
stat portability fix for Solaris 9.
2004-11-17 03:12:56 +00:00
Paul Eggert
5bb58a71ad
(STATFS): New macro, for portability to Solaris 9.
...
(do_statfs): Use it.
2004-11-17 03:12:06 +00:00
Paul Eggert
99e10817b0
Merge from gnulib.
2004-11-17 01:59:29 +00:00
Paul Eggert
b209e757d8
Recent checkins for getopt, canon-host.
2004-11-17 01:07:07 +00:00
Paul Eggert
2fb1ffff55
(_getopt_internal, _getopt_internal_r,
...
_getopt_long_r, _getopt_long_only_r): argv is char **,
not char *__getopt_argv_const *.
2004-11-17 01:06:02 +00:00
Paul Eggert
6fab3fdec9
(getopt_long, _getopt_long_r, getopt_long_only,
...
_getopt_long_only_r): Argv is now char**, not char *__getopt_argv_const*.
2004-11-17 01:04:52 +00:00
Paul Eggert
b7a4adc026
(getopt_long, _getopt_long_r, getopt_long_only,
...
_getopt_long_only_r): Argv is now char **, not char *__getopt_argv_const*.
2004-11-17 01:03:54 +00:00
Paul Eggert
b8790e71df
(_getopt_initialize, _getopt_internal_r, _getopt_internal):
...
New arg POSIXLY_CORRECT. All callers changed.
(getopt): Argv is now char * const *, as per standard.
(_getopt_internal_r, _getopt_internal): Argv is now char **,
not char *__getopt_argv_const *.
2004-11-17 01:02:47 +00:00
Paul Eggert
2efbed01c2
Getopt update and recent Debian fixes.
2004-11-17 00:58:19 +00:00
Paul Eggert
c68ae6252c
(main): argv is not const.
2004-11-17 00:57:11 +00:00
Paul Eggert
d1bc398fa0
(main): Use getopt_long rather than getopt.
2004-11-17 00:56:25 +00:00
Paul Eggert
6fca9011e5
Add putty, screen-bce.
2004-11-16 20:49:17 +00:00
Paul Eggert
6d988bb20d
(usage): Improve documentation along the lines suggested
...
by Debian 5.2.1-2.
2004-11-16 20:47:28 +00:00
Paul Eggert
ed2fcc6f9a
Fix memory leak.
2004-11-16 20:44:34 +00:00