Compare commits

...

1897 Commits

Author SHA1 Message Date
Jim Meyering
a28944042e . 2005-09-29 17:26:44 +00:00
Paul Eggert
c683e67618 "they wants" -> "they want" 2005-09-29 17:24:21 +00:00
Paul Eggert
63e88f7cef Rely on gettimeofday failure too. 2005-09-29 17:22:19 +00:00
Paul Eggert
37016136c9 (settime): If settimeofday fails, give up right away. 2005-09-29 17:21:44 +00:00
Paul Eggert
346afb38ab * settime.c (settime): Fix { typo in previous patch. Also, don't
bother returning ENOSYS; just let stime return whatever errno it
wants to return.
2005-09-29 17:19:58 +00:00
Paul Eggert
8c871e2391 (settime): Fix { typo in previous patch. Also, don't
boether returning ENOSYS; just let stime return whatever errno it
wants to return.
2005-09-29 17:19:30 +00:00
Jim Meyering
abeaf74fcb . 2005-09-29 17:17:28 +00:00
Jim Meyering
6fd4cff540 *** empty log message *** 2005-09-29 17:12:28 +00:00
Jim Meyering
ecb80e4add Version 5.90.
Add today's date.
2005-09-29 17:12:16 +00:00
Jim Meyering
032ca6e791 Remove -cvs suffix from version string. 2005-09-29 17:11:58 +00:00
Jim Meyering
9ac64b8013 . 2005-09-29 17:10:23 +00:00
Paul Eggert
96e3593902 * xtime.h (XTIME_PRECISION): Now of type int, not long long int. 2005-09-29 16:51:58 +00:00
Paul Eggert
970dc8e4a8 (XTIME_PRECISION): Now of type int, not long long int,
so that the code works even with ancient cpp.  Portability problem
with GCC 2.7.2.1 reported by Thomas M.Ott.
2005-09-29 16:51:40 +00:00
Jim Meyering
c060bb702a . 2005-09-29 13:14:33 +00:00
Jim Meyering
6204a2d1bd *** empty log message *** 2005-09-29 13:13:53 +00:00
Jim Meyering
33b113c638 (settime): Move the HAVE_STIME block `up' into an #elif
block, so that we don't even try to compile it if settimeofday is
available.  This works around a compilation failure on OSF1 V5.1,
due to stime requiring a `long int*' while tv_sec is `int'.
2005-09-29 13:13:49 +00:00
Jim Meyering
21e670cb0d *** empty log message *** 2005-09-29 06:32:30 +00:00
Jim Meyering
abab5e5812 mention stat bug fix 2005-09-29 06:32:25 +00:00
Jim Meyering
bb0cdc99f2 . 2005-09-28 22:26:26 +00:00
Paul Eggert
d6897a1553 * src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAX
instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1.
2005-09-28 22:11:06 +00:00
Jim Meyering
3f2693ee63 . 2005-09-28 22:10:51 +00:00
Paul Eggert
6f8ed252b4 (gl_ULLONG_MAX): Simplify so that it merely
defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
ULLONG_MAX doesn't work with 2.7.2.1.
2005-09-28 22:08:46 +00:00
Jim Meyering
6e212cc850 *** empty log message *** 2005-09-28 21:48:05 +00:00
Jim Meyering
9d1978df97 Use 5.90-cvs as the version string. 2005-09-28 21:47:30 +00:00
Jim Meyering
f78ad95853 *** empty log message *** 2005-09-28 18:34:37 +00:00
Jim Meyering
8607248c90 remove note about FreeBSD make test failure. 2005-09-28 18:34:26 +00:00
Jim Meyering
bfb5ed16a2 Work around a bug in FreeBSD 5.0. 2005-09-28 18:33:11 +00:00
Jim Meyering
3a14fbb06a *** empty log message *** 2005-09-28 08:27:04 +00:00
Jim Meyering
a71e238667 *** empty log message *** 2005-09-28 08:21:33 +00:00
Jim Meyering
f1f4e1ada3 add a FIXME comment 2005-09-27 09:40:39 +00:00
Jim Meyering
b2d2351330 *** empty log message *** 2005-09-27 08:59:54 +00:00
Jim Meyering
4e8e195401 *** empty log message *** 2005-09-27 08:59:04 +00:00
Jim Meyering
0ffc4a7d84 [HAVE_CONFIG_H]: Include <config.h>. 2005-09-27 08:58:55 +00:00
Jim Meyering
52e05089cc [HAVE_CONFIG_H]: Include <config.h> conditionally,
to be consistent with gnulib.
2005-09-27 08:44:07 +00:00
Jim Meyering
3cf3a44bbd Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef HAVE_CONFIG_H. 2005-09-27 08:33:47 +00:00
Jim Meyering
9346282a5d *** empty log message *** 2005-09-27 08:21:35 +00:00
Jim Meyering
2d7c20c891 Include <config.h> here, now that strnumcmp-in.h no longer includes it. 2005-09-27 08:21:28 +00:00
Jim Meyering
e247f4874c *** empty log message *** 2005-09-27 06:56:44 +00:00
Paul Eggert
b115bf4d44 Test "touch -" too, and change "touch -c - >&-" so that it does not
report an error, since that's more logical.
2005-09-26 23:03:53 +00:00
Paul Eggert
4b2dd7730a Test "touch -" too. 2005-09-26 23:02:34 +00:00
Paul Eggert
2f897e7258 (touch): Handle "touch -c - >&-" by checking for EBADF
and ENOSYS.
Do not pass "-" to futimens; pass NULL instead.
If close (STDIN_FILENO) fails, report the error separately instead
of letting the 'close' pollute errno.
2005-09-26 23:02:14 +00:00
Paul Eggert
80065b498b utimens.c portability fixes. 2005-09-26 23:01:25 +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
Jim Meyering
a49740f33b *** empty log message *** 2005-09-26 09:10:54 +00:00
Jim Meyering
99fa7a0e8e (gl_FUNC_UTIMES): Detect the version of utimes
from glibc-2.2.5 that fails for read-only files.
2005-09-26 09:10:50 +00:00
Jim Meyering
8149b5a566 . 2005-09-26 07:34:41 +00:00
Jim Meyering
43bdd9709a *** empty log message *** 2005-09-26 07:33:53 +00:00
Jim Meyering
7019fe1a9a *** empty log message *** 2005-09-26 07:32:14 +00:00
Jim Meyering
e3ce1ce8f7 (TESTS): Add read-only. 2005-09-26 07:32:08 +00:00
Jim Meyering
8507dc0375 New test, for root of chmod/usage failure. 2005-09-26 07:31:57 +00:00
Jim Meyering
012c33d39c *** empty log message *** 2005-09-26 07:25:29 +00:00
Jim Meyering
6540422861 Work around the root cause of alpha-linux-1.sf.net test failure.
Remove all files in inner loop.
Otherwise, with a touch program that fails on unwritable files,
(this happens at least on linux-2.2.20) a -w file left behind
from a previous iteration could cause a spurious test failure.
2005-09-26 07:25:23 +00:00
Jim Meyering
c5e9d78786 Undo the s/files/file/ change, but add
comments about why the old version was desired.
2005-09-26 07:20:22 +00:00
Jim Meyering
31b44eef6e *** empty log message *** 2005-09-25 20:46:34 +00:00
Jim Meyering
b1e97405b2 (setuid-etc): Work around output mismatch when
a just-created test file cannot be made set-group-ID.
2005-09-25 20:46:30 +00:00
Jim Meyering
2c5def0462 . 2005-09-25 17:01:54 +00:00
Jim Meyering
0e5662fd54 . 2005-09-25 12:54:04 +00:00
Jim Meyering
3d9687a4e0 *** empty log message *** 2005-09-25 09:59:30 +00:00
Jim Meyering
e080496968 *** empty log message *** 2005-09-25 09:59:23 +00:00
Jim Meyering
4f8eb86b55 *** empty log message *** 2005-09-25 09:58:04 +00:00
Jim Meyering
ae296eb195 Use newer trap and tmpdir-creation framework.
Fix apparent typos (s/files/file/) in inner loop.
2005-09-25 09:58:00 +00:00
Jim Meyering
23b9299247 Protect against multiple inclusion. 2005-09-25 06:14:33 +00:00
Paul Eggert
e3513e1895 (touch): "touch -" now touches standard output.
(usage): Document this.
2005-09-25 06:12:21 +00:00
Paul Eggert
17ccbf8844 "touch -" now touches standard output. 2005-09-25 06:11:45 +00:00
Paul Eggert
124cc0e9e6 "touch -" now touches standard output. 2005-09-25 06:09:51 +00:00
Paul Eggert
7ee48d8ffb Support having a null PATH if the file descriptor is nonnegative. 2005-09-25 06:09:22 +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
add931ac28 (touch invocation): "touch -" now touches standard output. 2005-09-25 06:08:17 +00:00
Paul Eggert
4f688f0b3f "touch -" now touches standard output. 2005-09-25 06:07:48 +00:00
Paul Eggert
443ddc13e6 Upgrade regex_internal.h patch. 2005-09-25 04:18:54 +00:00
Paul Eggert
793ffcaac0 (__GNUC_PREREQ, always_inline, inline, pure):
Remove.
(__attribute): Define to empty unless GCC 3.1 or later.
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).  It also
simplifies other tests, since we really don't want to bother with
worrying about which ancient version of GCC supported what.
Original problem reported by Yoann Vandoorselaere, with part of
the fix suggested by Derek Price.
2005-09-25 04:18:39 +00:00
Paul Eggert
1e32f96bf2 Prefer fchown to chown and fchmod to chmod when copying regular files. 2005-09-25 03:08:40 +00:00
Paul Eggert
aa5f98288a * jm-macros.m4 (gl_MACROS): Check for fchmod and fchown. 2005-09-25 03:08:15 +00:00
Paul Eggert
33247c7169 (gl_MACROS): Check for fchmod and fchown. 2005-09-25 03:07:53 +00:00
Paul Eggert
7fc308db7e (HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
(copy_reg): New args CHOWN_SUCCEDED and DST_SB.  All callers changed.
Add a "goto close_src_and_dst_desc;" that was missing in the
previous patch.
(copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown.
(copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod.
(copy_internal): Don't invoke chown if fchown worked,
and likewise for chmod and fchmod.
2005-09-25 03:07:33 +00:00
Paul Eggert
545dd954d9 * Makefile.am (libcoreutils_a_SOURCES): Remove mbchar.c. 2005-09-24 23:14:21 +00:00
Paul Eggert
944e020290 (libcoreutils_a_SOURCES): Remove mbchar.c, since
it doesn't build in OpenBSD 3.4.  See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html>.
2005-09-24 23:14:04 +00:00
Paul Eggert
6c3d9ae4c4 * mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. 2005-09-24 23:13:42 +00:00
Paul Eggert
a9d12230c8 (gl_MBCHAR): Check for wchar.h and wctype.h, and
don't compile mbchar.c unless both headers exist.  See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html>.
2005-09-24 23:13:19 +00:00
Paul Eggert
fd02208ad2 * regex_internal.h (__attribute): Define to nothing for GCC 2. 2005-09-24 22:59:22 +00:00
Paul Eggert
5a29d2d430 (__attribute): Define to nothing for GCC 2.
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).
2005-09-24 22:59:06 +00:00
Jim Meyering
ed3a66aa5e . 2005-09-24 13:42:39 +00:00
Jim Meyering
d3ddaff1a5 *** empty log message *** 2005-09-24 13:42:30 +00:00
Jim Meyering
0f6f7b428e (EXTRA_DIST): Add .x-sc_no_if_have_config_h. 2005-09-24 13:41:48 +00:00
Jim Meyering
eae3fa54bf (sc_no_if_have_config_h): New rule.
(syntax-check-rules): Add it.
2005-09-24 13:41:20 +00:00
Jim Meyering
26ddff0c17 *** empty log message *** 2005-09-24 13:41:01 +00:00
Jim Meyering
8daf4759f4 Use #ifdef HAVE_CONFIG_H', not #if HAVE_CONFIG_H', for consistency with gnulib. 2005-09-24 13:40:37 +00:00
Jim Meyering
26405733e9 . 2005-09-24 13:36:20 +00:00
Jim Meyering
5e6117b9ec *** empty log message *** 2005-09-24 13:32:36 +00:00
Jim Meyering
58e399c289 Use #ifdef HAVE_CONFIG_H', not #if HAVE_CONFIG_H', for consistency with gnulib. 2005-09-24 13:32:31 +00:00
Jim Meyering
7bf8267334 *** empty log message *** 2005-09-24 13:27:41 +00:00
Jim Meyering
f6dbf542b4 Include <config.h> from strintcmp.c, not from here. 2005-09-24 13:27:34 +00:00
Jim Meyering
d447dba13d Include <config.h> here, not from strnumcmp-in.h. 2005-09-24 13:26:41 +00:00
Jim Meyering
a14fc71370 *** empty log message *** 2005-09-24 10:44:33 +00:00
Jim Meyering
7a2163735e (gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries.  Required on Solaris 5.7.
2005-09-24 10:44:30 +00:00
Jim Meyering
b1ae384b23 *** empty log message *** 2005-09-24 10:06:36 +00:00
Jim Meyering
78e2e5d5a5 (eq-wid-1, eq-wid-2): Disable these tests for now.
They fail with non-gcc compilers and some combinations
of options and libraries on Solaris systems.
2005-09-24 10:06:29 +00:00
Jim Meyering
e122fe5ae9 *** empty log message *** 2005-09-24 07:57:42 +00:00
Jim Meyering
01b7701a24 (uninit-64): Restore this test.
Add start-up code to detect, and work around, the cases in
which the test might fail.
2005-09-24 07:57:36 +00:00
Paul Eggert
2cb5253b1f * tests/misc/date (uninit-64): Remove this test. 2005-09-24 07:05:52 +00:00
Paul Eggert
0c42a4951b (uninit-64): Remove this test. It wasn't
portable in theory (it doesn't work on hosts where 'int' is 64
bits, example) or in practice (Solaris 8 localtime returns garbage
in tm_year for the specified date, but that's not coreutils's
fault).
2005-09-24 07:05:27 +00:00
Jim Meyering
0f31fc1440 . 2005-09-24 06:53:27 +00:00
Jim Meyering
8f4700c9e1 *** empty log message *** 2005-09-23 23:05:44 +00:00
Jim Meyering
8dbb507ee8 (verify_type__): Use `unsigned int' as the bitfield type
so we can once again use a positive bitfield width of 1 -- now we
don't have to explain why we were using a bitfield width of 2.
2005-09-23 23:05:39 +00:00
Jim Meyering
6d8b96f653 *** empty log message *** 2005-09-23 23:05:16 +00:00
Jim Meyering
b610709f70 *** empty log message *** 2005-09-23 22:49:10 +00:00
Jim Meyering
3e2b8d355e Add lib/gai_strerror.c. 2005-09-23 22:49:05 +00:00
Paul Eggert
ebca458e8e Use 2, not 1, for bitfield size in verify.h. 2005-09-23 21:49:59 +00:00
Paul Eggert
45079da973 (verify_type__): Use 2, not 1, for bitfield size, to avoid
a warning with Irix 6.5 cc.
2005-09-23 21:49:31 +00:00
Paul Eggert
28475f652b Log recent changes. 2005-09-23 21:40:12 +00:00
Paul Eggert
7ba23f15c4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
and similarly for the other external symbols.  Problem reported
by James Gallager.
2005-09-23 21:17:57 +00:00
Jim Meyering
0fc8cac57d *** empty log message *** 2005-09-23 20:56:54 +00:00
Paul Eggert
8e4680db2f (install_file_in_file): Be more conservative about the previous patch:
set time stamps on all non-regular files.
2005-09-23 20:50:49 +00:00
Paul Eggert
63b77aac44 (change_timestamps): First arg is source
struct stat, not file name.  All uses changed.
(install_file_in_file): Stat the source file if necessary.
Don't try to change time stamps if copy_file did it.
2005-09-23 20:39:04 +00:00
Paul Eggert
35044438af (copy_reg): Preserve time stamps if
x->preserve_timestamps is set, using futimens so that
we needn't resolve the path again.
(copy_internal): Don't preserve time stamps if copy_reg did it
already.
2005-09-23 20:38:34 +00:00
Paul Eggert
2c4a088886 Don't include utime.h; not needed.
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-23 20:35:41 +00:00
Paul Eggert
cf37a8b41a (gl_MACROS): Don't require gl_CHECK_TYPE_STRUCT_UTIMBUF.
(gl_CHECK_ALL_HEADERS): Don't check for utime.h.
2005-09-23 20:35:14 +00:00
Paul Eggert
061601cdd7 Update copyright. 2005-09-23 20:26:09 +00:00
Paul Eggert
588034d101 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
bug reported by Jim Meyering.
2005-09-23 20:23:59 +00:00
Jim Meyering
a40376f4c5 . 2005-09-23 20:14:20 +00:00
Jim Meyering
886979b6fc *** empty log message *** 2005-09-23 20:14:01 +00:00
Jim Meyering
d3e8a40be3 Use `verify' to ensure that our hard-coded
bytes_to_*_digits arrays are long enough.  Of course, 17+-byte
integral types aren't on the near horizon, but just in case...
(MAX_INTEGRAL_TYPE_SIZE): Move definition to precede new first use.
(bytes_to_oct_digits, bytes_to_signed_dec_digits):
(bytes_to_unsigned_dec_digits, bytes_to_hex_digits): Change base
type from `char' to the clearer `unsigned int'.
2005-09-23 20:13:49 +00:00
Jim Meyering
b726021672 *** empty log message *** 2005-09-23 20:00:19 +00:00
Jim Meyering
4b17e15531 (gl_MACROS): AC_REQUIRE([gl_SOCKLEN_T]) here,
now that it's no longer required by getaddrinfo.m4.
2005-09-23 19:59:07 +00:00
Paul Eggert
a169837d87 not needed, since socklen is a prerequisite module. 2005-09-23 19:40:04 +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
Paul Eggert
d6ed244c5a Fix typo in comment. 2005-09-23 17:52:22 +00:00
Paul Eggert
ef999bc74a (GL_CONCAT0, GL_CONCAT): Remove.
(verify): Don't use the __LINE__ trick, as it doesn't work in general.
Instead, declare a function that returns a pointer to an array,
and use verify_type__ to declare the size of the array.
Problem and germ of a solution reported by Bruno Haible.
2005-09-23 17:47:15 +00:00
Jim Meyering
6137da3427 *** empty log message *** 2005-09-23 14:50:22 +00:00
Jim Meyering
185069538b *** empty log message *** 2005-09-23 14:48:21 +00:00
Jim Meyering
434de88614 from gnulib 2005-09-23 14:48:14 +00:00
Jim Meyering
ee0d6b604c (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T. 2005-09-23 14:47:58 +00:00
Jim Meyering
a6821efce3 *** empty log message *** 2005-09-23 12:44:07 +00:00
Jim Meyering
81d380e377 Include <config.h>. Otherwise builds with strict
C89 (e.g., Sun's /opt/SUNWspro/bin/c89) would fail due to the use
of `inline'.
2005-09-23 12:42:45 +00:00
Paul Eggert
769a736867 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h. 2005-09-23 05:13:15 +00:00
Paul Eggert
9fd31b8beb * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
Problem reported by Eric Blake.
(getaddrinfo): Initialize se so that it's not garbage.
Redo internal storage allocation so that it doesn't make unportable
assumptions about alignment.
Fix a memory leak.
2005-09-23 05:12:50 +00:00
Jim Meyering
fc6f1f7f9c . 2005-09-22 09:47:36 +00:00
Jim Meyering
3117f633cc *** empty log message *** 2005-09-22 07:10:17 +00:00
Paul Eggert
9bbbf30543 Regenerate. 2005-09-22 07:07:36 +00:00
Paul Eggert
ca9acc01a6 Sync from gnulib. 2005-09-22 07:06:16 +00:00
Paul Eggert
211a8d5cb0 Include canon-host.h rather than declaring canon_host ourselves. 2005-09-22 07:01:24 +00:00
Paul Eggert
144c6536d0 Include canon-host.h rather than declaring
canon_host ourselves.
2005-09-22 07:01:07 +00:00
Paul Eggert
3779124b3f Include strcase.h. 2005-09-22 07:00:49 +00:00
Paul Eggert
b58dc08a58 (gl_PREREQ): Require gl_FUNC_GETLINE rather than
AM_FUNC_GETLINE.  Require gl_FUNC_GETPASS_GNU rather than
gl_FUNC_GETPASS.  Require gl_MBCHAR and gl_MBITER.
2005-09-22 07:00:24 +00:00
Paul Eggert
e5801001a3 no longer needed.
(gl_CHECK_ALL_HEADERS): Don't check for memory.h, mntent.h, mnttab.h,
netdb.h, stdlib.h, stdint.h, string.h, sys/filsys.h, sys/fs/s5param.h,
sys/fs_types.h, sys/fstyp.h, sys/mntent.h, sys/socket.h, sys/stafs.h,
sys/timeb.h, unistd.h.  No longer needed.
2005-09-22 06:59:55 +00:00
Paul Eggert
5a02b1d907 (_gl_DECL_HEADERS): Don't bother checking for
standard C headers, or for headers we no longer use.
2005-09-22 06:59:24 +00:00
Paul Eggert
cab86383b8 (libcoreutils_a_SOURCES): Add getaddrinfo.h,
mbchar.c, mbchar.h, mbuiter.h, strcase.h, strlen1.c, strnlen1.h,
strstr.h.
2005-09-22 06:58:56 +00:00
Paul Eggert
b52d569ca1 (EEXIST, ENOTEMPTY): Remove unused macros. 2005-09-22 06:56:21 +00:00
Paul Eggert
eba2793d11 Nontrivial sync from gnulib. 2005-09-22 06:44:26 +00:00
Paul Eggert
da6ced8651 Add getline.h, getpass.c 2005-09-22 06:43:48 +00:00
Paul Eggert
75b92233d8 (GL_CONCAT): Remove.
Include "verify.h" instead.
(ARGMATCH_CONSTRAINT, ARGMATCH_ASSERT): Remove.
(ARGMATCH_VERIFY): Rewrite in terms of new verify macros.
2005-09-22 06:39:14 +00:00
Paul Eggert
99eda9943e (X2NREALLOC, X2REALLOC): Moved here from
../lib/xalloc.h, with args properly parenthesized, and using
verify_expr rather than the old VERIFY_EXPR.
2005-09-22 06:33:40 +00:00
Paul Eggert
fe4ed6c408 (VERIFY_EXPR, X2NREALLOC, X2REALLOC): Remove.
The latter two macros are moving to ../src/system.h for now.
This reverts this file to the gnulib version.
2005-09-22 06:32:52 +00:00
Paul Eggert
8cec6716df Remove; no longer used. 2005-09-22 06:26:54 +00:00
Paul Eggert
3833e2bc34 New file, from gnulib. 2005-09-22 06:22:44 +00:00
Paul Eggert
0ed6bb9a65 Add getaddrinfo.h, getdelim.h, mbchar.h,
mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
2005-09-22 06:22:31 +00:00
Paul Eggert
2d0c5eefd0 Sync from gnulib. 2005-09-22 06:05:39 +00:00
Paul Eggert
5a43b499b1 Sort. 2005-09-22 05:47:40 +00:00
Paul Eggert
0adb008b03 (ENOSYS): Define to EEXIST if not defined.
(make_dir_parents): Treat ENOSYS like EEXIST.
2005-09-22 05:42:26 +00:00
Jim Meyering
08c07f2a1c . 2005-09-21 17:07:09 +00:00
Jim Meyering
3ed1ba12da . 2005-09-21 16:43:17 +00:00
Jim Meyering
cfda132680 *** empty log message *** 2005-09-21 14:05:50 +00:00
Jim Meyering
a559a19405 Require that this test be run as non-root.
Otherwise, it fails due to the fact that the chmod 0 . doesn't
affect root.
2005-09-21 14:05:45 +00:00
Jim Meyering
7ac0294e28 *** empty log message *** 2005-09-20 17:48:07 +00:00
Jim Meyering
d6b83b2f9b (write_protected_non_symlink): Change comment to agree with the code. 2005-09-20 17:48:02 +00:00
Jim Meyering
b0ecfaf324 *** empty log message *** 2005-09-20 13:51:20 +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
3fcdbfdfda tweak 2005-09-20 13:24:29 +00:00
Jim Meyering
ea66df2090 *** empty log message *** 2005-09-19 15:45:09 +00:00
Jim Meyering
ee8931ea8e (unlinkat): New function. 2005-09-19 15:45:05 +00:00
Jim Meyering
a1052bb3d9 (unlinkat): Add prototype. 2005-09-19 15:44:57 +00:00
Jim Meyering
fa3f61611b *** empty log message *** 2005-09-19 13:34:51 +00:00
Jim Meyering
a9d57e3f26 (remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.
2005-09-19 13:34:47 +00:00
Jim Meyering
bcf48ff8a1 *** empty log message *** 2005-09-19 06:48:06 +00:00
Jim Meyering
f721f10682 (remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.
2005-09-19 06:47:47 +00:00
Jim Meyering
864947764d *** empty log message *** 2005-09-17 09:14:52 +00:00
Jim Meyering
609d835a06 (usage): Request that additions be sent to bug-coreutils@gnu.org, too. 2005-09-17 09:14:48 +00:00
Paul Eggert
772dc5bcd0 coreutils.texi (who invocation): Remove a stray '+'. 2005-09-17 07:45:02 +00:00
Paul Eggert
25b89569c1 (who invocation): Remove a stray '+'. 2005-09-17 07:44:42 +00:00
Paul Eggert
90306bc508 (set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they were
buggy in the HAVE_STRUCT_STAT_ST_SPARE1 case, and they were dubious
anyway.  I rewrote 'tar' to not use them any more.
2005-09-17 06:54:22 +00:00
Jim Meyering
f9b7acd5a2 *** empty log message *** 2005-09-16 18:19:57 +00:00
Jim Meyering
941882cd1c *** empty log message *** 2005-09-16 18:07:50 +00:00
Jim Meyering
105ae85e38 (rfc822-1): Compensate for Solaris 5.9's /bin/sh,
which emits a diagnostic to stderr when this test's LC_ALL=de_DE
cannot be honored.
2005-09-16 18:07:46 +00:00
Jim Meyering
525faa8a75 *** empty log message *** 2005-09-16 17:54:56 +00:00
Jim Meyering
d43700c169 whoops. Update expected output, too. 2005-09-16 17:54:34 +00:00
Jim Meyering
b02c170d2f (subfmt-up1): Put quotes around format string
to protect `^' from interpretation by some shells.
Add a use of OUT_SUBST to compensate for Solaris strftime's slightly
different formatting of %c.
2005-09-16 17:53:40 +00:00
Jim Meyering
7dd6db69af *** empty log message *** 2005-09-16 09:36:04 +00:00
Jim Meyering
27747f4a66 (main): When failing to truncate, mention both the seek block count
and the block size, in case the block size is very large.
2005-09-16 09:35:47 +00:00
Jim Meyering
31fc497b9a *** empty log message *** 2005-09-16 08:19:00 +00:00
Jim Meyering
dda1650e4a *** empty log message *** 2005-09-16 08:10:15 +00:00
Jim Meyering
d5eda08be3 Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use new fprintftime function rather than xanstrftime.
Correct comment: this function no longer handles a NULL format string.
2005-09-16 08:08:32 +00:00
Jim Meyering
4fdd25e012 (show_date): Correct comment: this function no longer handles a
NULL format string.
2005-09-16 08:08:00 +00:00
Jim Meyering
d5763af839 (show_date): Remove now-spurious braces. 2005-09-16 07:59:20 +00:00
Paul Eggert
96971b59be Regenerate. 2005-09-16 07:58:03 +00:00
Paul Eggert
555bbf598d Import file time stamp resolution improvements from gnulib. 2005-09-16 07:55:12 +00:00
Jim Meyering
60da98e144 . 2005-09-16 07:53:31 +00:00
Paul Eggert
158d982669 Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
2005-09-16 07:50:33 +00:00
Paul Eggert
3ecd35f56f Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
(get_mtime): Renamed from age_of.  All uses changed.
2005-09-16 07:42:56 +00:00
Paul Eggert
b95a4ed1ce Remove; no longer needed. 2005-09-16 07:41:10 +00:00
Paul Eggert
5926f89242 (gl_TIMESPEC): Require AC_C_INLINE.
Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
2005-09-16 07:40:48 +00:00
Paul Eggert
0bc67e2851 (gl_PREREQ): Require gl_STAT_TIME. 2005-09-16 07:40:19 +00:00
Paul Eggert
b946f4c96b (gl_CHECK_ALL_TYPES): Do not require
AC_STRUCT_ST_MTIM_NSEC; it's obsolete.
2005-09-16 07:40:02 +00:00
Paul Eggert
e9f5a9b719 Include stat-time.h.
(SYSCALL_RESOLUTION): Depend on whether various struct stat
members exist, not on the obsolescent ST_MTIM_NSEC.
(utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
2005-09-16 07:39:41 +00:00
Paul Eggert
b5a377a22b (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
(MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
in a different way.
(timespec_cmp): New function.
2005-09-16 07:39:18 +00:00
Jim Meyering
27d4959a08 *** empty log message *** 2005-09-16 07:39:08 +00:00
Paul Eggert
0877688dc8 New file. 2005-09-16 07:38:17 +00:00
Paul Eggert
24e27d10f9 New file. 2005-09-16 07:36:48 +00:00
Paul Eggert
2bc8e10316 Add stat-time.h. 2005-09-16 07:36:35 +00:00
Jim Meyering
3da8b9a6d8 *** empty log message *** 2005-09-16 07:35:32 +00:00
Jim Meyering
1e7fb2186b *** empty log message *** 2005-09-16 07:33:41 +00:00
Jim Meyering
d514933c67 Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.
2005-09-16 07:33:36 +00:00
Jim Meyering
4fa029bd7d (libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h. 2005-09-16 07:32:13 +00:00
Jim Meyering
5d8614cf2f *** empty log message *** 2005-09-16 07:31:34 +00:00
Jim Meyering
0277ce3913 [FPRINTFTIME] (fprintftime): Provide a new interface:
size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
		    int utc, int nanoseconds);
Background:
date should not have to allocate a megabyte of virtual memory to
handle a format argument like +%1048575T.  When implemented with
strftime, it must allocate such a buffer, use strftime to fill it
in, print it, then free it.

With fprintftime, it simply prints everything and exits.
With no need for memory allocation, that's one fewer way to fail.
2005-09-16 07:31:29 +00:00
Jim Meyering
ab526003e4 *** empty log message *** 2005-09-16 07:01:00 +00:00
Jim Meyering
f7711ee699 *** empty log message *** 2005-09-16 06:54:26 +00:00
Jim Meyering
8a11d99e7d (subfmt-up1): Test the combination of the
to-upper-case modifier (^) and a conversion specifier that
expands to a string containing lower case characters.
2005-09-16 06:54:19 +00:00
Paul Eggert
d2fa6df35e (usage, main): uname -a no longer generates the -p and -i outputs if
they are unknown.
2005-09-15 19:57:04 +00:00
Paul Eggert
a2365f2d84 uname -a no longer generates the -p and -i outputs if they are unknown. 2005-09-15 19:56:35 +00:00
Paul Eggert
0144e1ae89 Rewrite previous strftime change slightly. 2005-09-15 18:48:13 +00:00
Paul Eggert
a08b44ea30 (my_strftime): Rewrite the previous change slightly,
to make it a bit faster and (I hope) clearer.
2005-09-15 18:47:56 +00:00
Jim Meyering
5185512286 *** empty log message *** 2005-09-14 16:10:41 +00:00
Jim Meyering
cc4800dd1b (my_strftime): Be sure to use L_('x') for literals. 2005-09-14 16:10:38 +00:00
Jim Meyering
9d55b89d59 *** empty log message *** 2005-09-14 10:02:57 +00:00
Jim Meyering
ad98202690 (my_strftime): Parse the colons of %:::z *after* the
optional field width, not before, so we accept %9:z, not %:9z.
2005-09-14 10:02:54 +00:00
Jim Meyering
4da7283547 *** empty log message *** 2005-09-14 09:54:27 +00:00
Jim Meyering
f6198493b8 (tz-5w, tz-5wf): Test new %:z format with a field width. 2005-09-14 09:54:15 +00:00
Paul Eggert
e386e5642d Fix typos noted by Eric Blake. 2005-09-14 06:59:17 +00:00
Paul Eggert
20b858a1e6 Add tz-1 through tz-5. 2005-09-14 06:58:44 +00:00
Paul Eggert
33b49b7cac (my_strftime): Fix typo in octal number introduced in last change. 2005-09-14 06:58:08 +00:00
Paul Eggert
a487dcee70 du and pr also have +:z etc. 2005-09-14 06:57:35 +00:00
Paul Eggert
5b0ca7f5c1 Merge md5 from libc, and clean up some sha1 glitches. 2005-09-13 23:32:50 +00:00
Paul Eggert
bf0cc9f753 (SWAP): Renamed from NOTSWAP, to avoid a horrible misnaming.
All uses changed.  Remove the old SWAP.
Remove obvious comment about BLOCKSIZE.
(rol): New macro, moved here from md5.h.
(sha1_process_block): Remove an incoherent FIXME comment.
2005-09-13 23:32:35 +00:00
Paul Eggert
9a5d4089bc (struct sha1_ctx): Mark buffer as being aligned. 2005-09-13 23:32:15 +00:00
Paul Eggert
14d1fdaec1 (CYCLIC): New macro. All uses of rol changed to use CYCLIC.
Redo comment to minimize changes from libc.
2005-09-13 23:32:01 +00:00
Paul Eggert
a19c71988b (__GNUC_PREREQ, __THROW, __attribute__): New macros.
(__md5_buffer): Renamed from md5_buffer.  Add a macro undoing this
if _LIBC is not defined.  Add __THROW.
(__md5_finish_ctx, __md5_init_ctx, __md5_process_block):
(__md5_process_bytes, __md5_read_ctx, __md5_stream): Likewise.
(struct md5_ctx): Mark buffer as being aligned.
(rol): Remove; all uses changed to CYCLIC.
2005-09-13 23:31:37 +00:00
Paul Eggert
9e64eb8369 Fix wording in previous patch. 2005-09-13 23:01:59 +00:00
Paul Eggert
f4e071662d (uname invocation): Mention that Linux outputs "unknown" for -i and -p. 2005-09-13 22:57:25 +00:00
Paul Eggert
36081fa635 * src/dd.c: Detect some very unlikely buffer overflows.
(INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP): New macros.
(MAX_BLOCKSIZE): Now accepts an arg.  All uses changed.
(page_size): New var.
(scanargs, skip, main): Use more-straightforward way to detect overflow.
(dd_copy): Use page_size rather than invoking getpagesize.
Use INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP.
(main): Set page_size.
Avoid a call to stat in the usual case where ftruncate succeeds.
2005-09-13 22:43:11 +00:00
Paul Eggert
360b98042f (docolon): Add IF_LINT check to avoid GCC warning. 2005-09-13 22:30:56 +00:00
Paul Eggert
24cae62c93 * configure.ac: Don't invoke AC_CONFIGURE_HOST directly. 2005-09-13 22:20:25 +00:00
Paul Eggert
b673eeb49c Add date --rfc-3339. 2005-09-13 22:09:25 +00:00
Paul Eggert
7cc7ac0574 Add tests for --rfc-3339. 2005-09-13 22:09:03 +00:00
Paul Eggert
2c29ba03ac (TIME_SPEC_DATE): No longer needs to be nonzero, so
remove the "=1".
(TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put
them there.
(time_spec_string, time_spec): Hours and minutes must be at
start now, so put them there.
(rfc_2822_format): Now a string constant, not a boolean.  All uses
changed.
(iso_8601_format, rfc_format): Remove.
(RFC_3339_OPTION): New constant.
(long_options): Add --rfc-3339.
(usage): Add --rfc-3339.  Don't mention --iso-8601.
Mention %:z, %::z, %:::z.
(main): Simplify calculation of 'format'; it was getting too hairy
to follow.  Add --rfc-3339.
(show_date): Assume format arg is not NULL, which is the case
now.  The default code is moved to 'main'.  This simplifies things
and allows the default to be calculated just once.
2005-09-13 22:08:41 +00:00
Paul Eggert
7846768c6c (my_strftime): Add support for %:z, %::z, %:::z.
Fix bug in formats like %2N.
2005-09-13 22:08:18 +00:00
Paul Eggert
602043e0b8 (Time conversion specifiers, Options for date):
Document date --rfc-3339 and new specifiers %:z, %::z, %:::z.  Use
"date and time" consistently; the old version sometimes said "time
and date".  Fix a minor bug in the documentation for --rfc-2822:
it claimed day-of-month < 10 had leading space, not leading zero.
Use a consistent format for terms like "RFC".
2005-09-13 22:07:58 +00:00
Paul Eggert
a6a9495c14 date has a new --rfc-3339 option, and the old --iso-8601
option is deprecated.  date and ls also have new time format
specifiers %:z, %::z, %:::z.
2005-09-13 22:07:34 +00:00
Jim Meyering
2859e85770 tweak comment 2005-09-13 21:25:21 +00:00
Jim Meyering
3e4d8edce9 *** empty log message *** 2005-09-13 21:11:29 +00:00
Jim Meyering
8fc8f946c4 Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.
2005-09-13 21:11:25 +00:00
Jim Meyering
700395d652 mostly update copyrights 2005-09-13 15:46:12 +00:00
Jim Meyering
37cf570cb8 *** empty log message *** 2005-09-13 15:43:51 +00:00
Jim Meyering
fcbf217aa5 escape a $ in a diagnostic 2005-09-13 15:42:45 +00:00
Jim Meyering
0fafb6d2f1 don't check for HAVE_UNISTD_H 2005-09-13 14:58:56 +00:00
Jim Meyering
d632b63cc3 *** empty log message *** 2005-09-13 14:14:46 +00:00
Jim Meyering
4c7c6d6e78 (GZIP_ENV): Add --rsyncable option. 2005-09-13 14:14:41 +00:00
Jim Meyering
82d96eac2e *** empty log message *** 2005-09-13 13:54:01 +00:00
Jim Meyering
5ac066ae80 Use AB_INIT (from autobuild). 2005-09-13 13:53:55 +00:00
Jim Meyering
54f2d33cff *** empty log message *** 2005-09-13 13:52:27 +00:00
Jim Meyering
59e9d0b604 . 2005-09-13 13:52:16 +00:00
Jim Meyering
5452065818 *** empty log message *** 2005-09-13 12:12:44 +00:00
Jim Meyering
2922ae7380 Use ARGMATCH_VERIFY, just in case. 2005-09-13 12:12:36 +00:00
Jim Meyering
4034cf6ad5 *** empty log message *** 2005-09-11 07:42:48 +00:00
Jim Meyering
68b1902041 (usage): Remove leading spaces in 2-line
description, so that help2man doesn't mangle it.
2005-09-11 07:42:43 +00:00
Jim Meyering
8890d86818 *** empty log message *** 2005-09-11 07:41:56 +00:00
Jim Meyering
bcadcf23a9 . 2005-09-10 14:27:00 +00:00
Jim Meyering
aadcf5b2e4 . 2005-09-10 14:16:53 +00:00
Jim Meyering
8650ea82a4 . 2005-09-10 14:07:59 +00:00
Jim Meyering
5c2d345121 Add test for the bug fixed today. 2005-09-10 14:06:29 +00:00
Jim Meyering
0fca40dd6c *** empty log message *** 2005-09-10 14:06:01 +00:00
Jim Meyering
5791c43f91 *** empty log message *** 2005-09-10 13:56:56 +00:00
Jim Meyering
2729563f6b csplit could produce corrupt output, given input lines longer than 8KB
(load_buffer): Don't read from free'd memory
when handling lines longer than the initial buffer length.
(save_to_hold_area): Don't leak the previous hold_area buffer.
Reported by Tristan Miller and Luke Kendall.
* NEWS: Mention this.

(load_buffer): Avoid integer overflow in buffer
size calculations for very long lines.
2005-09-10 13:56:45 +00:00
Jim Meyering
d4595fdae9 *** empty log message *** 2005-09-10 07:48:40 +00:00
Paul Eggert
c991c0e9f8 Insert missing paren. 2005-09-10 00:08:28 +00:00
Paul Eggert
97f9677790 Regenerate. 2005-09-09 21:21:16 +00:00
Paul Eggert
330bb6eeee Fix typo in previous patch: @command{POSIX} -> @acronym{POSIX}. 2005-09-09 21:16:49 +00:00
Paul Eggert
916bce3a7c (tac_seekable): Store match length in regoff_t, not int. Assume that
negative return values less than -2 represent regoff_t overflow.
2005-09-09 21:11:36 +00:00
Paul Eggert
fe041980c8 (SKIP_SOMETHING, find_occurs_in_text):
Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(matcher_error): New function.
(SKIP_SOMETHING, find_occurs_in_text): Use it to report matcher errors.
(alloc_and_compile_regex): No longer any need to worry about
int versus size_t mismatch.
2005-09-09 21:11:07 +00:00
Paul Eggert
0d11284c9e (proc_text): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(build_type_arg): Check for size_t overflow.
2005-09-09 21:09:48 +00:00
Paul Eggert
35155485bb * src/expr.c (docolon): 64-bit regex fixes. 2005-09-09 21:08:51 +00:00
Paul Eggert
1bd916412d (process_regexp): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
2005-09-09 21:08:19 +00:00
Paul Eggert
3301671de9 Import latest regex module from gnulib, to fix some 64-bit bugs. 2005-09-09 21:07:50 +00:00
Paul Eggert
fd4a5b1b53 More nice fixes. 2005-09-09 20:51:55 +00:00
Paul Eggert
263672792f (nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".
2005-09-09 20:50:51 +00:00
Paul Eggert
3de440458d (main): Hoist errno=0 outside the ifdef. 2005-09-09 20:47:46 +00:00
Paul Eggert
590a4f3a55 (utils_cv_func_setpriority): Simplify the tests.
Define HAVE_NICE rather than NICE_PRIORITY (since a niceness is
not a priority); all uses changed.
2005-09-09 20:47:29 +00:00
Paul Eggert
159fad8d3a Document "niceness" vs "nice value". 2005-09-09 20:46:54 +00:00
Jim Meyering
c0b692d232 *** empty log message *** 2005-09-09 07:30:01 +00:00
Jim Meyering
da31244e99 (neg-secs2, fill-1, fill-2): Add new tests. 2005-09-09 07:22:27 +00:00
Paul Eggert
09575c108c Use the phrase "niceness" instead of "nice value" to describe
the biased nice value that can go negative.  This corrects
a discrepancy with POSIX, which states that nice values are
nonnegative.
2005-09-08 06:52:09 +00:00
Jim Meyering
fdf404cc1e *** empty log message *** 2005-09-07 06:11:11 +00:00
Jim Meyering
b962737080 (time_args): Use NULL in place of 0. 2005-09-07 06:08:01 +00:00
Paul Eggert
2aeb8c7fa9 * verify.h: Use a bit-field instead. 2005-09-06 08:21:20 +00:00
Paul Eggert
fd03e5ddc5 (__builtin_constant_p): Remove, undoing previous change.
(verify_type__): Solve the problem by using a bit-field rather
than an array.
2005-09-06 08:20:56 +00:00
Jim Meyering
9288303f01 . 2005-09-05 17:17:47 +00:00
Jim Meyering
3dce0fc85c *** empty log message *** 2005-09-05 17:13:21 +00:00
Jim Meyering
ae14879ab9 (setuid-etc): New test, for today's addition of colorization for
setuid, setgid files and sticky, other-writable, sticky-and-other-writable
directories.
2005-09-05 17:13:09 +00:00
Jim Meyering
ac46781470 Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

(indicator_no[]): Add new symbols.
(indicator_name[]): Add corresponding mode strings.
(color_indicator[]): Add an entry for each new mode string.
(print_color_indicator): Honor new types.

From Mike Frysinger, based on a patch from Fedora.
2005-09-05 17:12:07 +00:00
Jim Meyering
bd30058179 Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

Document the default colors for the new strings.
From Mike Frysinger, based on a patch from Fedora.
2005-09-05 17:11:39 +00:00
Jim Meyering
200572872f Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

(slack_codes): Add new dircolors mode names.
(ls_codes): Add corresponding two-letter ls mode strings.
From Mike Frysinger, based on a patch from Fedora.
2005-09-05 17:11:15 +00:00
Jim Meyering
22322e0d9b *** empty log message *** 2005-09-05 16:57:46 +00:00
Jim Meyering
c862959a9d (__builtin_constant_p) [__GNUC__ <= 2]: Define to 1.
(verify_type__) [verify_error_if_non_const__]: New member/test,
to help detect when verify or verify_expr is mistakenly passed
a non-constant argument within a function.
2005-09-05 16:57:40 +00:00
Jim Meyering
2b661b0366 Don't omit comments until there is better documentation. 2005-09-05 15:06:37 +00:00
Jim Meyering
bbd6e2ef20 . 2005-09-04 20:08:25 +00:00
Jim Meyering
b11babcb6b . 2005-09-04 20:06:36 +00:00
Paul Eggert
4e8b2dca77 Clarify comment about size bounds. 2005-09-01 19:31:10 +00:00
Jim Meyering
b8e2e0208f Require gl_STAT_MACROS 2005-09-01 18:10:34 +00:00
Jim Meyering
44bca24e16 *** empty log message *** 2005-09-01 18:10:12 +00:00
Jim Meyering
68aaaf5ca0 Require gl_FUNC_CHOWN, for the definition of
CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
2005-09-01 18:06:54 +00:00
Jim Meyering
7a998d1011 *** empty log message *** 2005-08-31 07:51:07 +00:00
Jim Meyering
db875eadae (quotearg_n_options): Change code to be suboptimal, in
order to avoid an unsuppressible warning from gcc on 64-bit systems.
2005-08-31 07:51:04 +00:00
Jim Meyering
30a8d137dd *** empty log message *** 2005-08-31 07:20:21 +00:00
Jim Meyering
b2678575aa (get_charset_aliases): Add `void' in parameter list
to placate gcc's -Wstrict-prototypes.
2005-08-31 07:19:26 +00:00
Paul Eggert
b23625f623 "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
exists and "-FOO" is not a valid option.
2005-08-29 21:14:06 +00:00
Paul Eggert
6334db91d3 Include lstat.h, quotearg.h.
(diagnose_leading_hyphen): New function.
(main): Use it.
2005-08-29 21:13:32 +00:00
Jim Meyering
8cb5f87f68 update from gnulib 2005-08-28 09:18:33 +00:00
Jim Meyering
0b7a9db3fd New file 2005-08-27 20:50:42 +00:00
Jim Meyering
1cd6d2b83b Include <sys/types.h> and declare creat_safer. 2005-08-27 20:43:26 +00:00
Jim Meyering
b484d0e717 *** empty log message *** 2005-08-27 20:42:53 +00:00
Jim Meyering
80664cc6a5 sync from gnulib 2005-08-27 20:40:31 +00:00
Jim Meyering
c4bb860e0f *** empty log message *** 2005-08-27 19:05:28 +00:00
Jim Meyering
e2ea930478 Go ahead and leave the patch in (i.e., revert
today's change).  It doesn't cause a problem after all, since
--exclude-from=- is always handled before --files0-from=F.
2005-08-27 19:05:24 +00:00
Jim Meyering
1cf9fe2981 *** empty log message *** 2005-08-27 18:12:58 +00:00
Jim Meyering
509e46c548 Revert the du.c part of the change from 2005-07-02:
That change (to reopen stdin on F for --files0-from=F) made it so
--exclude-from=- and --files0-from=F would not work together.
2005-08-27 18:12:54 +00:00
Jim Meyering
21e8dcda49 *** empty log message *** 2005-08-27 16:12:25 +00:00
Jim Meyering
dbe6e77865 *** empty log message *** 2005-08-27 16:12:16 +00:00
Jim Meyering
bd17f9b9e1 Use `#error' rather than a string literal to provoke failure. 2005-08-27 16:11:43 +00:00
Jim Meyering
4157054167 *** empty log message *** 2005-08-25 16:28:21 +00:00
Jim Meyering
dd03b039e8 Include <config.h>.
Otherwise, we'd lose LARGEFILE support in any file using e.g. "fcntl--.h"
2005-08-25 16:28:18 +00:00
Jim Meyering
1d6e649c83 *** empty log message *** 2005-08-24 15:25:33 +00:00
Jim Meyering
f80cc28124 (stdopen): Revert to iterating over descriptors, but
rather than using fstat, use fcntl with its F_GETFD flag, which
is more efficient.  Unlike the 2-syscall dup-close approach,
this one doesn't apply any unnecessary pressure on the file
descriptor pool -- thus there is one fewer way to fail.
2005-08-24 15:25:29 +00:00
Jim Meyering
55fb58f426 adjust prototype
Include stdbool.h.
2005-08-24 13:01:31 +00:00
Jim Meyering
2f8742484d *** empty log message *** 2005-08-23 19:42:08 +00:00
Jim Meyering
6cd08ed8ea Update from gnulib. 2005-08-23 19:41:09 +00:00
Jim Meyering
88b1cd5a53 . 2005-08-23 16:58:04 +00:00
Jim Meyering
00fecaac80 *** empty log message *** 2005-08-23 16:57:42 +00:00
Jim Meyering
048d2e424b *** empty log message *** 2005-08-23 16:52:13 +00:00
Jim Meyering
a60996e13c (sc_useless_cpp_parens): New rule.
(syntax-check-rules): Add it.
2005-08-23 16:52:09 +00:00
Jim Meyering
fce7aff711 *** empty log message *** 2005-08-23 16:51:07 +00:00
Jim Meyering
b9400a2bc6 . 2005-08-23 16:48:07 +00:00
Jim Meyering
70dfc132e5 * .x-sc_useless_cpp_parens: New empty file.
* Makefile.am (EXTRA_DIST): Add it.
2005-08-23 16:46:04 +00:00
Jim Meyering
f03cb421a9 *** empty log message *** 2005-08-23 16:39:25 +00:00
Jim Meyering
8e3ee19215 Use `5.3.1-cvs' as the version string. 2005-08-23 16:38:45 +00:00
Jim Meyering
1d35b2cc3d *** empty log message *** 2005-08-23 15:28:30 +00:00
Jim Meyering
6ce9ea95f5 Remove unnecessary parens in `#if defined (SYMBOL)' expressions. 2005-08-23 15:28:22 +00:00
Jim Meyering
64d4675c75 *** empty log message *** 2005-08-23 15:09:23 +00:00
Jim Meyering
be16d0eac0 Remove unnecessary parens in `#if defined (SYMBOL)' expressions. 2005-08-23 15:09:13 +00:00
Jim Meyering
61f9e01475 Remove unnecessary parens in `#if defined (SYMBOL)' expressions. 2005-08-23 15:06:55 +00:00
Jim Meyering
5c86145a1d *** empty log message *** 2005-08-23 15:06:50 +00:00
Jim Meyering
8de5019cf5 Remove unnecessary parens in `#if defined (SYMBOL)' expressions. 2005-08-23 15:05:54 +00:00
Jim Meyering
4fb8e0f3c4 Include <float.h> unconditionally. 2005-08-23 15:05:01 +00:00
Jim Meyering
68c6c7db8e (print_uptime): Remove unnecessary parens in `#if defined (SYMBOL)' expressions. 2005-08-23 15:03:48 +00:00
Jim Meyering
b5e741091d (do_link): If ln is invoked with --interactive (-i),
encounters an existing destination file, and gets an affirmative
response, then first try to unlink the destination file rather
than simply failing.  Suggestion from Karl Berry.
2005-08-22 10:31:55 +00:00
Jim Meyering
a0037fae22 *** empty log message *** 2005-08-22 10:31:34 +00:00
Jim Meyering
3ee86c1b49 (xwrite_stdout): Rename from xwrite. Remove always-equal-to-STDOUT_FILENO
parameter and associated assertion.  Adjust all callers.
2005-08-22 10:31:17 +00:00
Jim Meyering
2fe90443cf *** empty log message *** 2005-08-21 16:08:57 +00:00
Jim Meyering
258e75ecb6 (main): Declare `target_directory' with const attribute. 2005-08-21 16:08:53 +00:00
Jim Meyering
ecd05fa0fd *** empty log message *** 2005-08-21 16:06:16 +00:00
Jim Meyering
3d540878ff (time_style): Add `const' attribute.
(tot_dui): Remove unnecessary (and too-short) initializer list.
2005-08-21 16:06:06 +00:00
Paul Eggert
ff2fecfbe9 Import from gnulib.
(__restrict_arr): Don't define to __restrict if __cplusplus is defined.
2005-08-19 21:14:12 +00:00
Jim Meyering
2e4d4691b0 *** empty log message *** 2005-08-19 17:18:08 +00:00
Jim Meyering
cc6d255ed5 (stdopen): Return `bool' so caller can detect failure. 2005-08-19 17:18:04 +00:00
Jim Meyering
159c7aa02c *** empty log message *** 2005-08-18 22:29:43 +00:00
Jim Meyering
834d8e96c7 (usage) [-b,-t]: Ensure that there are at least two
spaces between each option and the corresponding description -- this
lets help2man format entries properly.  Reported by Edward Welbourne.
2005-08-18 22:26:42 +00:00
Jim Meyering
12513039fc *** empty log message *** 2005-08-17 20:50:21 +00:00
Jim Meyering
6a8b452b32 (usage): Fix typo s/POS 2/POS2/. 2005-08-17 20:50:17 +00:00
Jim Meyering
edf0536c24 *** empty log message *** 2005-08-17 20:49:48 +00:00
Jim Meyering
57727f39bb sync from gnulib 2005-08-17 20:29:37 +00:00
Jim Meyering
38ca84bd9c *** empty log message *** 2005-08-17 20:20:37 +00:00
Jim Meyering
a8819700e1 Remove terminating "\n"s once again.
Automatically add them whenever EXIT != 0.
2005-08-17 20:20:33 +00:00
Jim Meyering
8305377e27 *** empty log message *** 2005-08-17 19:56:48 +00:00
Jim Meyering
df23c845d2 [neg-secs]: New test for today's strftime.c bug fix. 2005-08-17 19:56:44 +00:00
Jim Meyering
147d65828a *** empty log message *** 2005-08-17 19:55:57 +00:00
Jim Meyering
cb3da21f16 Make the %s format (seconds since the epoch) work for a negative
number and when used with a zero-padded field width, e.g. %015s.

(my_strftime): Move the `do_number_sign_and_padding'
label so that it precedes the code to set `digits'.  Otherwise,
%0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
print `00-22'.  Now, it prints `-0022', as it should.
2005-08-17 19:55:52 +00:00
Paul Eggert
6a18f2232d * src/df.c (show_dev): New arg STAT_FILE. 2005-08-16 20:33:57 +00:00
Paul Eggert
7b4c1ac12a (show_dev): New arg STAT_FILE. All uses changed.
This sometimes gives better results on networked file systems
that do not respect POSIX semantics.  Problem reported by
Bruno Haible.
2005-08-16 20:33:40 +00:00
Jim Meyering
c013687ab1 add comment 2005-08-15 13:05:58 +00:00
Jim Meyering
9d534aa492 use ERR_SUBST to get around fact that the diagnostic
you get on a system with 32-bit time_t is not the same as
the one you get for a system where it's 64 bits wide:
- date: time 72057594037927935 is out of range
+ date: invalid date `@72057594037927935'
2005-08-15 13:03:57 +00:00
Jim Meyering
4a78a30f89 (uninit-64): New test for today's date.c fix.
Rewrite all other OUT strings to include the terminating "\n".
2005-08-15 13:01:50 +00:00
Jim Meyering
c8624c2dcc *** empty log message *** 2005-08-15 12:16:58 +00:00
Jim Meyering
cb50fa3e87 Don't print uninitialized data (or anything else) to stdout
upon localtime failure.

(show_date): Remove stray `puts (buf);' (debugging?)
from the 2004-02-02 change.
2005-08-15 12:16:54 +00:00
Jim Meyering
ce10740dac make log entry more accurate 2005-08-15 09:11:17 +00:00
Jim Meyering
92f52ac5b5 *** empty log message *** 2005-08-15 08:41:24 +00:00
Jim Meyering
bcb18ed9c2 (join invocation): Itemize the defaults. 2005-08-15 08:41:21 +00:00
Jim Meyering
b851ea732e *** empty log message *** 2005-08-14 15:03:59 +00:00
Jim Meyering
11555e0b30 *** empty log message *** 2005-08-14 15:02:49 +00:00
Jim Meyering
8c6944b93f (usage): Fix typo s/formated/formatted/ reported by Norbert Kiesel 2005-08-14 15:02:45 +00:00
Jim Meyering
43ad2bb1f4 *** empty log message *** 2005-08-14 15:02:23 +00:00
Jim Meyering
b2e04be2fa . 2005-08-14 14:31:23 +00:00
Jim Meyering
71074cf49e *** empty log message *** 2005-08-14 14:29:28 +00:00
Jim Meyering
fd94ad4854 *** empty log message *** 2005-08-14 14:22:23 +00:00
Jim Meyering
6dc48762d8 Don't include "timespec.h". 2005-08-14 14:22:00 +00:00
Jim Meyering
4852a0460a *** empty log message *** 2005-08-14 14:20:53 +00:00
Jim Meyering
478bd8935b Use one fewer file descriptor in a common case.
Include "fd-reopen.h", rather than "fcntl--.h".
Use fd_reopen rather than open.
2005-08-14 14:18:07 +00:00
Jim Meyering
0ad5c9400b *** empty log message *** 2005-08-14 14:17:54 +00:00
Jim Meyering
c41d32149a Include "timespec.h".
(age_of): Return the nanoseconds part of the timestamp, if available.
(binary_operator) [-nt, -ot]: Use nanosecond values to break ties.
2005-08-14 14:17:48 +00:00
Jim Meyering
9d9ca33394 *** empty log message *** 2005-08-14 11:16:15 +00:00
Jim Meyering
006d08a85d (long_time_expected_width): Revert last change, just to
be paranoid, and add a comment explaining why.
Paul Eggert mentioned the possibility.
2005-08-14 08:30:25 +00:00
Jim Meyering
2a372ff7dc *** empty log message *** 2005-08-13 22:47:52 +00:00
Jim Meyering
f9a52f316a Don't define mbrtowc at all.
If mbstate_t is not defined, then AC_TYPE_MBSTATE_T will define
it to `int' for us.
2005-08-13 22:47:48 +00:00
Jim Meyering
9d66e1afee *** empty log message *** 2005-08-13 22:46:07 +00:00
Jim Meyering
4f47534c2a undo last change 2005-08-13 22:45:53 +00:00
Jim Meyering
6f29f55e7c *** empty log message *** 2005-08-13 22:26:36 +00:00
Jim Meyering
cb9cbee3bc [HAVE_WCTYPE_H]: Include <wctype.h>; this is
needed on HP-UX 11.23 in order to get a definition of mbstate_t.
2005-08-13 22:26:33 +00:00
Jim Meyering
2a775eb67d update from gnulib 2005-08-13 21:06:17 +00:00
Jim Meyering
24198ff680 update from gnulib 2005-08-13 21:04:02 +00:00
Jim Meyering
cac9f4ecd5 *** empty log message *** 2005-08-13 17:39:40 +00:00
Jim Meyering
9609435c35 . 2005-08-13 17:36:34 +00:00
Jim Meyering
ca2c2c49bf (AC_CONFIG_FILES): Remove tests/date/Makefile. 2005-08-13 17:34:22 +00:00
Jim Meyering
72c320dcb2 (SUBDIRS): Remove date. 2005-08-13 17:34:11 +00:00
Jim Meyering
d177820c9a convert last batch of tests 2005-08-13 15:43:40 +00:00
Jim Meyering
d0c7a455fb Use new ENV and ENV_DEL to support this latest batch of tests from
tests/date/Test.pm
2005-08-13 15:36:14 +00:00
Jim Meyering
0d7a17424c New keywords, ENV and ENV_DEL, to support tests/misc/date. 2005-08-13 15:34:52 +00:00
Jim Meyering
db209f6c24 move a bunch of tests to ../misc/date 2005-08-13 14:45:45 +00:00
Jim Meyering
3d7ea6356b more tests translated from ../date/Test.pm 2005-08-13 14:45:38 +00:00
Jim Meyering
9d610b26f8 move a bunch of tests to ../misc/date 2005-08-13 14:42:03 +00:00
Jim Meyering
9741a40764 add a bunch more tests 2005-08-13 14:41:39 +00:00
Jim Meyering
a6f5fa497d move a handful of tests to ../misc/date 2005-08-13 14:33:48 +00:00
Jim Meyering
75c40d536f more tests translated from ../date/Test.pm 2005-08-13 14:33:33 +00:00
Jim Meyering
1248f39fc8 *** empty log message *** 2005-08-13 14:08:29 +00:00
Jim Meyering
0b20b31116 (TESTS): Add date. 2005-08-13 14:08:26 +00:00
Jim Meyering
bb05ee39b8 With todays additions, the generated shell script,
tests/date/date-tests had becoming far too large (over 350KB),
so use the superior-but-perl-requiring framework instead.
* tests/date/Test.pm: Move new tests from here...
* tests/misc/date: ...to this new file.
2005-08-13 14:07:18 +00:00
Jim Meyering
a3bde3aa18 (test_vector): Add 364 more tests like the above.
Remove unused $sunos4 variable.
2005-08-13 13:16:29 +00:00
Jim Meyering
ca55c7bf7f *** empty log message *** 2005-08-13 13:07:49 +00:00
Jim Meyering
829444c02d (test_vector) [cross-dst]: New test for just-fixed getdate.y bug. 2005-08-13 13:07:45 +00:00
Jim Meyering
9d8e8ad521 *** empty log message *** 2005-08-13 12:10:22 +00:00
Jim Meyering
0971b8d8a9 (get_date): Undo part of the 2005-04-04 change, so that
the command "date -d'2005-03-27 +1 day'" succeeds once again, even
when run in a time zone for which daylight savings time is in effect
for the starting date.
2005-08-13 12:10:05 +00:00
Jim Meyering
04de70c8d2 *** empty log message *** 2005-08-12 13:17:05 +00:00
Jim Meyering
320b71c4d3 (re_string_realloc_buffers): Rename local-shadowed
variable: s/new_array/offsets/.
(re_acquire_state) [lint]: Set *err, to avoid warnings in caller.
2005-08-12 13:16:47 +00:00
Jim Meyering
2e24888889 (regexec, re_search_stub) [!_LIBC]: Omit declaration of unused local, dfa.
(proceed_next_node): Remove outer declaration and
unnecessary initialization of local-shadowed `dest_node'.
Declare it in inner scopes, nearer its uses instead.
2005-08-12 13:16:26 +00:00
Jim Meyering
d7d1532698 (duplicate_node) [lint]: Set *new_idx to -1, to avoid
warnings (unfounded) in caller that it may be used uninitialized.
2005-08-12 13:10:17 +00:00
Jim Meyering
39a33e5f64 *** empty log message *** 2005-08-12 13:02:23 +00:00
Jim Meyering
956fd9d0d1 Mention that with FTS_LOGICAL, we use FTS_TIGHT_CYCLE_CHECK. 2005-08-12 13:02:17 +00:00
Jim Meyering
fe90fa6a61 (setup_dir, enter_dir, leave_dir, free_dir):
Use the hash-table-based cycle-detection code not just when
FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
Reported by James Youngman in
<http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
2005-08-12 13:02:01 +00:00
Jim Meyering
6806c6a801 (fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/. 2005-08-12 13:00:57 +00:00
Jim Meyering
fdaa1ce849 (IF_LINT): Define. 2005-08-12 12:41:56 +00:00
Jim Meyering
fa237b382f (RE_SYNTAX_POSIX_AWK): Remove useless space-before-TAB. 2005-08-12 12:41:41 +00:00
Jim Meyering
b73e873367 *** empty log message *** 2005-08-12 08:25:57 +00:00
Jim Meyering
1442403a5d (main): Explain why we reopen stdin for write-only access. 2005-08-12 08:25:52 +00:00
Jim Meyering
19b17d2ce6 *** empty log message *** 2005-08-12 08:22:50 +00:00
Jim Meyering
9a3ebcb54d (long_time_expected_width): Don't test for failed localtime.
That cannot happen when the result date's year is in range.
Add an assertion instead.
2005-08-12 08:22:47 +00:00
Jim Meyering
3623a168c4 *** empty log message *** 2005-08-12 08:18:25 +00:00
Jim Meyering
501d8ffe81 (sort_found_occurs, digest_word_file): Likewise.
(alloc_and_compile_regex): Likewise.
2005-08-12 08:18:18 +00:00
Jim Meyering
585c8e075b (sort_files): Use cleaner sizeof *VAR_NAME' rather than sizeof (TYPE_NAME)'. 2005-08-12 08:17:54 +00:00
Jim Meyering
bbef1a2f19 *** empty log message *** 2005-08-12 08:08:04 +00:00
Jim Meyering
53a9b25dc2 Test `!defined HAVE_MBSTATE_T' rather than
`defined mbstate_t' to detect missing support for mbstate_t.
The latter didn't work for HP-UX 11.23.
2005-08-12 08:08:00 +00:00
Jim Meyering
68b0358b66 *** empty log message *** 2005-08-12 08:06:56 +00:00
Jim Meyering
f6ab92093a Add bulletproofing in case stdin is closed.
(have_read_stdin): Remove global variable.
(dc_parse_stream): Always use stdin (freopen, if needed) rather
than sometimes using fopen to get a new file descriptor.
Call fclose unconditionally.
(main): Don't close stdin here.  If needed, now it's already done
by dc_parse_stream.
2005-08-12 08:06:28 +00:00
Jim Meyering
75ae174b6a *** empty log message *** 2005-08-12 07:57:16 +00:00
Jim Meyering
5f646f5315 (dc_parse_file): Remove comment about now-removed OPENOPTS. 2005-08-12 07:45:29 +00:00
Jim Meyering
c0c63502f0 *** empty log message *** 2005-08-12 07:29:59 +00:00
Jim Meyering
a370bc0aff (main): Cosmetic: use X2REALLOC rather than x2realloc. 2005-08-12 07:29:51 +00:00
Jim Meyering
8c418c480c (fold_file): Cosmetic: use X2REALLOC rather than x2realloc. 2005-08-12 07:29:38 +00:00
Jim Meyering
0b08c38152 Cosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three). 2005-08-12 07:16:25 +00:00
Jim Meyering
6f7fd1a866 *** empty log message *** 2005-08-12 07:15:37 +00:00
Jim Meyering
aa830a0526 *** empty log message *** 2005-08-12 07:10:33 +00:00
Jim Meyering
e39102faca adjust long lines 2005-08-12 07:10:22 +00:00
Jim Meyering
bdb22d1235 (main): Cosmetic: use '\0' in place of 0. 2005-08-12 07:09:47 +00:00
Jim Meyering
a93af329ba . 2005-08-12 06:54:24 +00:00
Jim Meyering
dfc27ade53 *** empty log message *** 2005-08-12 06:50:29 +00:00
Jim Meyering
74b0f6edde (cp invocation, mv invocation): Remove square
brackets in --reply=[HOW].  Reported by Oscar Liljeblad.
2005-08-12 06:49:48 +00:00
Jim Meyering
0508157932 . 2005-08-02 21:15:19 +00:00
Jim Meyering
ef1fad923f Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:53:32 +00:00
Jim Meyering
a930898d64 *** empty log message *** 2005-08-02 20:52:49 +00:00
Jim Meyering
7a44d1f860 Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:52:44 +00:00
Jim Meyering
959af4cc75 *** empty log message *** 2005-08-02 20:49:08 +00:00
Jim Meyering
22f8ee8ad1 Require gl_FUNC_XANSTRFTIME. 2005-08-02 20:48:58 +00:00
Jim Meyering
309ee82143 *** empty log message *** 2005-08-02 20:48:15 +00:00
Jim Meyering
c5739dcf8e *** empty log message *** 2005-08-02 20:47:46 +00:00
Jim Meyering
8822b68f9e new files 2005-08-02 20:47:37 +00:00
Jim Meyering
e568ad3e45 *** empty log message *** 2005-08-02 20:44:46 +00:00
Jim Meyering
eed7b13805 (show_date): Remove now-unnecessary code that
treated an empty format string as a special case.
2005-08-02 20:44:38 +00:00
Jim Meyering
73ebfeb75a (empty-format): New test, for this case. 2005-08-02 20:44:09 +00:00
Paul Eggert
afc5f72438 Import regex.m4 from gnulib. 2005-07-25 19:29:51 +00:00
Paul Eggert
55a6eee63c (gl_INCLUDED_REGEX): Use AC_RUN_ELSE instead of the
obsolescent AC_TRY_RUN.  Include the default includes files, for 'exit'.
2005-07-25 19:29:34 +00:00
Paul Eggert
317a0f7a07 Fix getdate bug with relative times. 2005-07-21 22:00:55 +00:00
Paul Eggert
217cd893ef (relative_time): New type.
(RELATIVE_TIME_0): New constant.
(parser_control): Use relative_time instead of doing it ourselves.
(%union): Add new relative_time rel member.
(tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
Now typeless.
(relunit, relunit_snumber): Now of type rel.
(zone, rel, relunit, get_date): Adjust to above changes.
2005-07-21 22:00:34 +00:00
Paul Eggert
842bd54edb (gl_C_COMPOUND_LITERALS): New macro.
(gl_GETDATE): Use it.
2005-07-21 22:00:06 +00:00
Jim Meyering
f4980f5997 *** empty log message *** 2005-07-19 11:10:43 +00:00
Jim Meyering
27cc9e65d2 (usage): Adjust printf argument list to match new format string. 2005-07-19 11:10:35 +00:00
Paul Eggert
19f049e34c md5sum --check now accepts multiple input files. 2005-07-19 07:35:51 +00:00
Paul Eggert
eb3bd006a1 (usage, main): --check now accepts multiple input files. 2005-07-19 07:34:55 +00:00
Paul Eggert
b6bf239918 (md5sum invocation): --check now allows multiple FILE inputs. 2005-07-19 07:34:26 +00:00
Paul Eggert
cb0d1f9a60 md5sum --check now accepts multiple input files, and similarly for sha1sum. 2005-07-19 07:34:02 +00:00
Paul Eggert
62d9978140 Fix a problem noted by James Youngman: VPATH-style builds don't
work because of po file problems.
2005-07-18 08:03:56 +00:00
Paul Eggert
d58ce6b09c (EXIT_STATUS): New macro.
(PROGRAM_NAME, usage): Behave like "false" if EXIT_STATUS indicates.
(usage): Remove "These option names may not be abbreviated."
2005-07-18 07:53:05 +00:00
Paul Eggert
983ce81d94 Initial revision. 2005-07-18 07:52:37 +00:00
Paul Eggert
cc5f57603d (BUILT_SOURCES): Remove false.c.
(false.c): Remove; it's now a source file.
2005-07-18 07:52:18 +00:00
Paul Eggert
7eb112c43b Update true/false doc. 2005-07-18 07:51:49 +00:00
Paul Eggert
8445b707fd (false invocation):
Mention that false is often built-in, and that it exits
with status >1 on some hosts.
(true invocation): Remove now-incorrect "non-POSIX mode" reference.
2005-07-18 07:51:32 +00:00
Paul Eggert
829fcc0991 nohup no longer worries about POSIXLY_CORRECT. 2005-07-15 21:55:32 +00:00
Paul Eggert
ef5043084f (main): Don't worry about POSIXLY_CORRECT. 2005-07-15 21:55:13 +00:00
Paul Eggert
adbbc35f87 (nohup invocation): POSIXLY_CORRECT no longer
affects nohup's behavior.  Input is redirected from /dev/null.
2005-07-15 21:54:56 +00:00
Paul Eggert
738c09d59c nohup now ignores POSIXLY_CORRECT and redirects from /dev/null. 2005-07-15 21:54:38 +00:00
Paul Eggert
9cfc51e083 Remove FESETROUND_LIBM; no longer needed. 2005-07-14 00:03:08 +00:00
Jim Meyering
765f89353e *** empty log message *** 2005-07-12 18:34:45 +00:00
Jim Meyering
ad617951a6 (copyright-check): Reflect rearrangement in version-etc files. 2005-07-12 18:31:51 +00:00
Jim Meyering
f63845ae12 *** empty log message *** 2005-07-12 16:48:12 +00:00
Jim Meyering
40db6abec1 (X2NREALLOC): Define. 2005-07-12 16:47:37 +00:00
Jim Meyering
95550da8d3 . 2005-07-12 16:44:52 +00:00
Jim Meyering
eb3e6a0569 replace leading spaces with a TAB 2005-07-12 15:36:07 +00:00
Paul Eggert
7c97d643b9 (verify_expr): Use ((verify_type__ (R) *) 0), not
sizeof (verify_type__ (R)), to pacify C++ compilers.
2005-07-11 23:28:09 +00:00
Paul Eggert
6a406d5d8b Reword copyright notices to conform to current GNU coding standards. 2005-07-11 21:59:08 +00:00
Paul Eggert
51ae476ad8 Parameterize the copyright symbol and the year. 2005-07-11 21:58:50 +00:00
Paul Eggert
8fb97bd54a (COPYRIGHT_YEAR): New constant.
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.
2005-07-11 21:58:32 +00:00
Paul Eggert
b6f3f54730 Binary input and output are now implemented more consistently. 2005-07-11 18:31:36 +00:00
Paul Eggert
edfb9f5ba8 Updates for cat and md5sum, for text vs binary. 2005-07-11 18:31:10 +00:00
Paul Eggert
15a1aede78 (setmode, fileno): Remove; no longer needed, we think.
(SET_MODE, SET_BINARY, SET_BINARY2): Remove.
[defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.
2005-07-11 18:30:26 +00:00
Paul Eggert
bdc138f474 (wipefile): Always use binary mode. Clearly this
never worked right on DOS!
2005-07-11 18:30:02 +00:00
Paul Eggert
aa43a635c1 (usage): Clarify whether text or binary is the default.
(split_3, main): BINARY is now a 3-way value.  All uses changed.
(digest_file): Likewise.  Clear *BINARY if we determine the file
to be text.  All uses changed.
(main): Don't report a file to be binary if we actually read it
as text in MS-DOS, because it was a terminal.
2005-07-11 18:29:44 +00:00
Paul Eggert
d045e55b7c (unexpand): Always copy in text mode. POSIX says
the input and output must be text.
2005-07-11 18:29:21 +00:00
Paul Eggert
44f0501d4f (expand): Always copy in text mode. POSIX says
the input and output must be text.
2005-07-11 18:28:53 +00:00
Paul Eggert
8831c9589a (copy_reg): Always copy in binary mode. 2005-07-11 18:28:19 +00:00
Paul Eggert
f3946fbee9 (wc): Avoid setmode; use POSIX-specified routines instead.
(wc_file): FILE might be null now.
(main): Simplify code a bit, so that fewer places need the setmode fixes.
2005-07-11 18:27:49 +00:00
Paul Eggert
07fc234838 (main): Avoid setmode; use POSIX-specified routines instead. 2005-07-11 18:27:10 +00:00
Paul Eggert
a1170668ff (tee): Avoid setmode; use POSIX-specified routines instead. 2005-07-11 18:26:52 +00:00
Paul Eggert
9839325ad5 (tail_bytes, tail_lines, tail_file, main):
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:26:28 +00:00
Paul Eggert
b91eec6bb2 (copy_to_temp, tac_file, main):
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:25:56 +00:00
Paul Eggert
ed0dda33d5 (bsd_sum_file, sysv_sym_file):
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:25:23 +00:00
Paul Eggert
b2b2956e01 (main): Avoid setmode; use POSIX-specified routines instead. 2005-07-11 18:24:42 +00:00
Paul Eggert
a40f69da68 (open_next_file): Avoid setmode; use POSIX-specified routines instead. 2005-07-11 18:24:14 +00:00
Paul Eggert
6560de0b04 (head_lines, head_file): Avoid setmode; use POSIX-specified routines instead.
(elide_tail_bytes_file, elide_tail_lines_file, head_bytes):
(head_lines, head_file): Always use binary mode except for std tty.
2005-07-11 18:23:23 +00:00
Paul Eggert
9824112cfa (cksum): Avoid setmode; use POSIX-specified routines instead. 2005-07-11 18:21:54 +00:00
Paul Eggert
8770c00ef4 (usage, main, long_options) [O_BINARY]:
Remove support for -B.  Use same rules as other programs to decide
whether to use binary I/O, except that the -bensAE options always
select text mode.
(main): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:21:11 +00:00
Paul Eggert
bc4268f8d6 (cat invocation): Remove -B or --binary option
(available on MS-DOS-like platforms only).  Explain when text and
binary mode are used now.
(md5sum invocation): -b actually does have an effect on Unix: it
causes "*" to be output.  Explain when text and binary mode are
used now.
2005-07-11 18:20:34 +00:00
Paul Eggert
1ee7165eba Binary input and output are now implemented more consistently.
These changes affect only platforms like MS-DOS that distinguish
between binary and text files.
2005-07-11 18:20:05 +00:00
Paul Eggert
580d1e6d6d Don't include stdio.h; no longer needed. 2005-07-09 22:10:38 +00:00
Paul Eggert
531b803d83 Regenerate. 2005-07-09 07:40:15 +00:00
Paul Eggert
d94b54ec17 Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
stropt.h -> stropts.h
2005-07-09 07:39:04 +00:00
Paul Eggert
8d51efbab1 Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
stropt.h -> stropts.h
2005-07-09 07:38:28 +00:00
Paul Eggert
8bf75032ee Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h. 2005-07-09 07:37:58 +00:00
Paul Eggert
9e9532c8ff strtopt.h -> stropts.h 2005-07-09 07:37:19 +00:00
Paul Eggert
b4a47a0cf3 strtopt.h -> stropts.h 2005-07-09 07:36:54 +00:00
Paul Eggert
21def2abc0 Undo previous change, and remove AC_HEADER_TIOCGWINSZ. 2005-07-09 07:36:33 +00:00
Paul Eggert
d2cdd805c4 Update to Eric Blake porting problems. 2005-07-09 07:36:03 +00:00
Paul Eggert
d3fdc82a4e (getloadavg) [__CYGWIN__]: Port to cygwin.
[__linux__]: Allocate a big enough buffer for /proc/loadavg.
[!LDAV_DONE]: Avoid unused variable warning.
2005-07-08 23:41:43 +00:00
Paul Eggert
37c6631081 Regenerate. 2005-07-08 22:57:38 +00:00
Paul Eggert
1d0de4ba95 Fix porting problems reported by Eric Blake. 2005-07-08 22:57:09 +00:00
Paul Eggert
648e937e89 (gl_CHECK_ALL_HEADERS): Check for stropt.h. 2005-07-08 22:56:17 +00:00
Paul Eggert
6a0a1919c7 (print_user): Don't assume uid fits in unsigned int.
(print_group): Likewise, for gid.
2005-07-08 22:55:44 +00:00
Paul Eggert
137c1c2208 Include stropt.h if available. 2005-07-08 22:54:40 +00:00
Paul Eggert
db7d10bd9d Include stropt.h if available.
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.
2005-07-08 22:54:15 +00:00
Paul Eggert
cb59a7d3d0 Add check for HAVE_FIONREAD_IN_SYS_IOCTL. 2005-07-08 22:53:50 +00:00
Paul Eggert
64890758cf (init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t.  Remove now-unnecessary cast.
2005-07-08 17:58:35 +00:00
Paul Eggert
0e5aafc45a backupfile.m4, same.m4 cleanup. 2005-07-08 07:09:20 +00:00
Paul Eggert
63449616ae (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf. 2005-07-08 07:08:56 +00:00
Paul Eggert
0561231d58 (gl_SAME): Use AC_CHECK_FUNCS_ONCE on pathconf.
Require AC_SYS_LONG_FILE_NAMES.
2005-07-08 07:08:41 +00:00
Paul Eggert
060594db56 Regenerate. 2005-07-08 00:35:04 +00:00
Paul Eggert
ce3bb28d95 Switch to Isamu Hasegawa's implementation of regex, which is
now in gnulib.
2005-07-08 00:23:15 +00:00
Paul Eggert
36a263effc Add regcomp.c, regex_internal.c, regex_internal.h. 2005-07-08 00:22:14 +00:00
Paul Eggert
88ca28f3d7 (libcoreutils_a_SOURCES): Remove regex.h; gnulib
now does this automatically for us.
2005-07-08 00:14:05 +00:00
Jim Meyering
52c7a92b85 . 2005-07-07 17:59:05 +00:00
Jim Meyering
f68e25dc8f remove stray `=' from comment 2005-07-06 09:34:09 +00:00
Paul Eggert
fce3dd9870 (DECIMAL_DIGIT_ACCUMULATE): Generate a hard error
(not just a warning) if GCC is used and the types don't match.
2005-07-05 22:20:17 +00:00
Jim Meyering
e74c15dd5a fix typo in comment 2005-07-05 07:33:50 +00:00
Paul Eggert
a7a648d4d4 Remove the need for typeof. 2005-07-05 06:33:24 +00:00
Paul Eggert
3ca74b36f5 Adjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is now
a type, not a value.
2005-07-05 06:32:54 +00:00
Paul Eggert
413a45b973 (VERIFY_W_TYPEOF): Remove; no longer needed.
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value
to T itself.  All callers changed.  Check that T is unsigned, and
that Accum is of type T.  This fixes a bug in the unlikely case
where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do
the proper validity checks.
2005-07-05 06:31:46 +00:00
Paul Eggert
fed2b7273d Remove typeof test; no longer needed. 2005-07-05 06:30:57 +00:00
Paul Eggert
85eb851bef (gl_PREREQ): Don't require gl_TYPEOF; no longer needed. 2005-07-05 06:30:27 +00:00
Paul Eggert
971c8d4c1f Adjust to verify.h change. 2005-07-05 05:17:10 +00:00
Paul Eggert
aeecb8f89f (VERIFY_W_TYPEOF): Adjust to verify.h change. 2005-07-05 05:16:57 +00:00
Paul Eggert
6ef09ecf57 verify.h improvements. 2005-07-05 05:16:29 +00:00
Paul Eggert
5ad307bfc0 * verify.h (GL_CONCAT0, GL_CONCAT): Define unconditionally; don't
depend on whether verify_decl is defined.
(verify): Renamed from verify_decl.  All uses changed.
Use an extern function decl, as it can't possibly collide with other
decls.
(verify_expr): Renamed from verify.  All uses changed.
(verify_type__): New private macro.
(verify, verify_expr): Use it.
2005-07-05 05:16:08 +00:00
Jim Meyering
bd6ce95891 rename: s/verify_dcl/verify_decl/ 2005-07-04 17:40:37 +00:00
Jim Meyering
e2b7434615 rename: s/verify_dcl/verify_decl/ 2005-07-04 17:39:48 +00:00
Jim Meyering
14ad8a2da7 *** empty log message *** 2005-07-04 16:09:10 +00:00
Jim Meyering
302c7df271 (libcoreutils_a_SOURCES): Add verify.h here, temporarily.
Eventually, it'll be pulled in via AC_LIBSOURCES.
2005-07-04 16:09:03 +00:00
Jim Meyering
1fd49f4452 *** empty log message *** 2005-07-04 16:06:43 +00:00
Jim Meyering
3b0e00ba4e Include "verify.h". 2005-07-04 16:06:41 +00:00
Jim Meyering
979600d391 *** empty log message *** 2005-07-04 16:05:44 +00:00
Jim Meyering
cfdfe3e318 (verify, verify_dcl): New file/macros. 2005-07-04 16:05:41 +00:00
Jim Meyering
a54b48abe6 *** empty log message *** 2005-07-04 14:47:47 +00:00
Jim Meyering
13bda3c7c6 (verify_dcl): Rename from VERIFY. Update use. 2005-07-04 14:47:42 +00:00
Jim Meyering
87371803be *** empty log message *** 2005-07-04 14:00:03 +00:00
Jim Meyering
746f032f31 Reflect name change: s/VERIFY/verify_dcl/. 2005-07-04 13:59:54 +00:00
Jim Meyering
ab8dd2fabc *** empty log message *** 2005-07-04 13:56:21 +00:00
Jim Meyering
fbdee4c720 (verify): Rename from VERIFY_EXPR, to be lower case,
like assert.  Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax.  Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.
2005-07-04 13:56:18 +00:00
Paul Eggert
9a00b08ea6 Remove the dependency of the strftime module on the tzset module. 2005-07-04 05:07:30 +00:00
Paul Eggert
d96382a5e9 (my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
Copy the input structure, to work around some of the bug with
Solaris 2.5.1 and Solaris 2.6.
2005-07-04 05:06:44 +00:00
Paul Eggert
ca039b42dc (gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER. 2005-07-04 05:06:11 +00:00
Paul Eggert
c10f8db2a8 (gl_PREREQ): Add gl_FUNC_TZSET_CLOBBER. 2005-07-04 05:05:55 +00:00
Jim Meyering
c719961a19 *** empty log message *** 2005-07-03 21:10:37 +00:00
Jim Meyering
035abbb7c6 (posixtime) [lint]: Initialize *all* of tm0, not just
the .tm_year member, since otherwise gcc-4.0 would now warn about
tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
2005-07-03 21:10:31 +00:00
Jim Meyering
052190e99c *** empty log message *** 2005-07-03 18:21:02 +00:00
Jim Meyering
ed8207cf4e *** empty log message *** 2005-07-03 16:58:52 +00:00
Jim Meyering
3e7b6a68b5 Adjust for new diagnostic. 2005-07-03 16:58:48 +00:00
Jim Meyering
98ce09d7d2 Adjust for new diagnostic. 2005-07-03 16:54:37 +00:00
Jim Meyering
9b12f5aa66 cp and mv: the --reply=X option is deprecated 2005-07-03 16:52:09 +00:00
Jim Meyering
d7d473a84f *** empty log message *** 2005-07-03 16:52:01 +00:00
Jim Meyering
fb4be2889d *** empty log message *** 2005-07-03 16:49:26 +00:00
Jim Meyering
5610a8734d (main): Using --reply now evokes a warning.
(usage): Remove description of --reply.
2005-07-03 16:49:15 +00:00
Jim Meyering
30b8e3a012 *** empty log message *** 2005-07-03 16:48:24 +00:00
Jim Meyering
a131d6d892 (cp invocation): Mark --reply as deprecated.
(mv invocation): Likewise.
2005-07-03 16:48:19 +00:00
Jim Meyering
33d0086bb2 *** empty log message *** 2005-07-03 15:30:01 +00:00
Jim Meyering
c95640a56e Remove obsolete comment. 2005-07-03 15:29:58 +00:00
Jim Meyering
685eb5f2c3 . 2005-07-03 13:47:39 +00:00
Jim Meyering
a7bcad0e5a *** empty log message *** 2005-07-03 13:44:58 +00:00
Jim Meyering
e24584b100 (gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h. 2005-07-03 13:44:52 +00:00
Jim Meyering
85ddb64559 . 2005-07-03 11:58:11 +00:00
Jim Meyering
9caa96f10d *** empty log message *** 2005-07-03 11:55:51 +00:00
Jim Meyering
682e43e0e4 (gl_FUNC_LSTAT): New file, from gnulib. 2005-07-03 11:55:48 +00:00
Paul Eggert
15364e7a4e Log today's changes. 2005-07-03 09:37:52 +00:00
Paul Eggert
65bf9cd48f Minor fixes for port to Solaris 8. 2005-07-03 09:35:55 +00:00
Paul Eggert
c6a39d64c0 Minor fixes for port to Solaris 8. 2005-07-03 09:35:34 +00:00
Paul Eggert
0e11d335eb Undo previous change. 2005-07-03 09:35:02 +00:00
Paul Eggert
a6e5563cef Include "lstat.h" rather than rolling our own. 2005-07-03 09:31:19 +00:00
Paul Eggert
22b464a900 Don't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
module's job.
2005-07-03 09:30:00 +00:00
Paul Eggert
ac1f5e4f90 Remove (sync from gnulib). 2005-07-03 09:28:55 +00:00
Paul Eggert
e3f2ac8a0f New file, from gnulib. 2005-07-03 09:28:17 +00:00
Paul Eggert
067253007b Sync from gnulib. 2005-07-03 09:27:38 +00:00
Paul Eggert
7e58462337 [! _LIBC]: Include "lstat.h" rather than rolling our own. 2005-07-03 09:27:22 +00:00
Paul Eggert
a90f160a33 (libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
stdlib--.h, unistd--.h.
2005-07-03 09:26:59 +00:00
Jim Meyering
a360edab7e *** empty log message *** 2005-07-03 09:14:58 +00:00
Jim Meyering
10047b6134 (gl_FCNTL_SAFER): Add fcntl--.h to the list. 2005-07-03 09:13:33 +00:00
Jim Meyering
cd4bfd42dc (gl_STDIO_SAFER): Add stdio--.h to the list. 2005-07-03 09:13:27 +00:00
Jim Meyering
1eae18b276 (gl_STDLIB_SAFER): Add stdlib--.h to the list. 2005-07-03 09:13:04 +00:00
Jim Meyering
512e0bae5a (gl_UNISTD_SAFER): Add unistd--.h to the list. 2005-07-03 09:12:57 +00:00
Jim Meyering
4f89ded6e2 *** empty log message *** 2005-07-03 09:07:28 +00:00
Jim Meyering
c1ef936462 Include <unistd.h> for declaration of close. 2005-07-03 09:07:22 +00:00
Jim Meyering
6dc3ffd8b6 (verify_numeric): Rename from verify.
Update caller.
2005-07-03 08:46:05 +00:00
Paul Eggert
de0cf8356f Regenerate. 2005-07-03 07:28:38 +00:00
Paul Eggert
e05ece2ced Cleanup to isolate "safer" functions to a small part of the code. 2005-07-03 07:27:05 +00:00
Paul Eggert
dd6f2c49db Include fcntl--.h, not unistd-safer.h.
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
2005-07-03 07:23:18 +00:00
Paul Eggert
9509ae9a8c Include stdio--.h, not stdio-safer.h.
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.
2005-07-03 07:22:50 +00:00
Paul Eggert
4decb49032 Include fcntl--.h, not unistd-safer.h.
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:21:49 +00:00
Paul Eggert
7b1780d5cc Include stdlib--.h rather than unistd-safer.h.
(copy_to_temp): Don't call fd_safer; no longer needed now
that we include stdlib--.h.
2005-07-03 07:21:31 +00:00
Paul Eggert
b6be15eaca Include fd-reopen.h.
(display_all, display_settings, display_window_size, set_window_size):
Remove fd arg, since we now assume stdin.  All callers changed.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.
2005-07-03 07:21:03 +00:00
Paul Eggert
c030201e6d Include fcntl--.h rather than unistd-safer.h.
Include fd-reopen.h.
(input_desc): Remove.  All uses replaced by STDIN_FILENO.
(cwrite): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
(main): Reuse stdin rather than opening a new one.  This
saves a file descriptor.
2005-07-03 07:20:33 +00:00
Paul Eggert
d0baad324d Include stdio--.h rather than stdio-safer.h.
Include stdlib--.h.  Do not include unistd-safer.h.
(create_temp_file): Don't call fd_safer; no longer needed
now that we include *--.h files.
(xfopen): Don't call fopen_safer, for similar reasons.
2005-07-03 07:20:04 +00:00
Paul Eggert
ce00cad00f Include fcntl--.h, not unistd-safer.h.
(wipename, wipe_file): Don't use fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:19:29 +00:00
Paul Eggert
8359085a76 Include stdio--.h, not stdio-safer.h.
(open_file): Invoke fopen, not fopen_safer.
2005-07-03 07:19:06 +00:00
Paul Eggert
2eeccaacd9 Include fd-reopen.h.
Include unistd--.h, not unistd-safer.h.
(main): Use fd_reopen to simplify code.  When replacing stdin,
use "/dev/null" not "/", as that's less likely to go wrong these days.
(main): Use dup, not dup_safer.
2005-07-03 07:18:48 +00:00
Paul Eggert
3fff9c1441 Include stdio--.h.
(digest_check): Don't try to read both checksums and data from stdin.
2005-07-03 07:18:21 +00:00
Paul Eggert
e32032accf Include stdio--.h, not stdio-safer.h.
(main): Use fopen, not fopen_safer.
2005-07-03 07:17:58 +00:00
Paul Eggert
566d32f04c Include fd-reopen.h.
(open_fd): Remove.  All callers changed to use fd_reopen instead.
2005-07-03 07:17:36 +00:00
Paul Eggert
d54f92ab0d Include fd-reopen.h.
Include stdio--.h, not stdio-safer.h.
(input_desc): Remove.  All uses changed to STDIN_FILENO.
(set_input_file): Reopen stdin, to simplify code.
(create_output_file): Use fopen, not fopen_safer.
2005-07-03 07:17:12 +00:00
Paul Eggert
43ab391610 Include fcntl--.h, not unistd-safer.h.
(copy_reg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:16:43 +00:00
Paul Eggert
5a62048846 Include stdio--.h, not stdio-safer.h.
(compare_files): Use fopen, not fopen_safer.
2005-07-03 07:16:23 +00:00
Paul Eggert
ffa06e1d94 (gl_PREREQ): Require gl_FCNTL_SAFER,
gl_FD_REOPEN, gl_STDLIB_SAFER.
2005-07-03 07:15:58 +00:00
Paul Eggert
9c34c16a06 Include fcntl--.h rather than fcntl.h.
Do not include unistd-safer.h.
(save_cwd): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:15:39 +00:00
Paul Eggert
6207fc885c Include stdio--.h rather than stdio.h
and stdio-safer.h.
(getusershell): Call fopen, not fopen_safer.
2005-07-03 07:15:09 +00:00
Paul Eggert
bd1806f708 Include fcntl--.h rather than fcntl.h.
Do not include unistd-safer.h.
(getloadavg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:14:28 +00:00
Paul Eggert
f21950385b (fd_safer): Remove decl.
Include fcntl--.h rather than unistd-safer.h
(fts_safe_changedir): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:14:05 +00:00
Paul Eggert
98088e6a60 Include stdio-safer.h first, to check interface.
Don't bother including stdio.h, since stdio-safer.h does.
2005-07-03 07:13:31 +00:00
Paul Eggert
5eab57423e Initial revision. 2005-07-03 06:52:13 +00:00
Paul Eggert
8b0a2afe9f Add support for fcntl--.h, stdio--.h, stdlib--.h, unistd--.h, etc. 2005-07-03 06:43:07 +00:00
Paul Eggert
9c17ef9a81 Don't include stdio-safer.h; no longer needed.
(writeline): Remove stream arg; we now always output to stdout.
All callers changed.
(check_file): Reuse stdout rather than opening a new stream.
This saves a file descriptor.
2005-07-03 06:26:15 +00:00
Paul Eggert
6af6438b0a (main): Reuse stdin rather than opening a new stream.
This saves a file descriptor.
2005-07-03 06:25:42 +00:00
Jim Meyering
42f845ebc7 . 2005-07-02 14:33:56 +00:00
Jim Meyering
c402746d1c *** empty log message *** 2005-07-02 12:02:27 +00:00
Jim Meyering
6e0f9634aa (EXTRA_DIST): Add .x-sc_obsolete_symbols. 2005-07-02 12:02:21 +00:00
Jim Meyering
6f368f2f48 (sc_obsolete_symbols): New rule.
(syntax-check-rules): Add it to the list.
2005-07-02 11:58:22 +00:00
Jim Meyering
f6d8b10a1c *** empty log message *** 2005-07-02 11:57:54 +00:00
Jim Meyering
f0001d7346 *** empty log message *** 2005-07-02 11:56:56 +00:00
Jim Meyering
25ef400404 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally. 2005-07-02 11:56:49 +00:00
Jim Meyering
06e5948dce *** empty log message *** 2005-07-02 10:26:00 +00:00
Jim Meyering
dd2b7c95ff Update from gnulib. 2005-07-02 10:25:58 +00:00
Jim Meyering
2f79e30906 Assume HAVE_UNISTD_H, i.e., that <unistd.h> works. 2005-07-02 08:54:13 +00:00
Jim Meyering
16b3553083 *** empty log message *** 2005-07-02 08:53:57 +00:00
Jim Meyering
410f98fc2b Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally. 2005-07-02 08:41:46 +00:00
Jim Meyering
b5dabfee20 *** empty log message *** 2005-07-01 21:26:27 +00:00
Jim Meyering
e62b441f50 Assume HAVE_UNISTD_H. 2005-07-01 21:26:24 +00:00
Jim Meyering
da1b612d11 . 2005-07-01 21:18:51 +00:00
Jim Meyering
89abeac2b8 Don't check for fcntl.h anymore. Now we assume it exists and is usable. 2005-07-01 21:06:08 +00:00
Jim Meyering
b82f33a06e *** empty log message *** 2005-07-01 21:05:44 +00:00
Jim Meyering
d0067bb947 *** empty log message *** 2005-07-01 20:57:39 +00:00
Jim Meyering
860691ec41 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't check for fcntl.h).
2005-07-01 20:57:34 +00:00
Jim Meyering
58076430c3 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).
2005-07-01 20:55:29 +00:00
Jim Meyering
ceaa11b643 *** empty log message *** 2005-07-01 20:53:36 +00:00
Jim Meyering
86cc58850a *** empty log message *** 2005-07-01 20:31:23 +00:00
Jim Meyering
e0331d4ce0 Assume HAVE_FCNTL_H (i.e., include <fcntl.h>
unconditionally, and don't include <sys/file.h>).
2005-07-01 20:31:16 +00:00
Jim Meyering
adeb8b26fb *** empty log message *** 2005-07-01 19:56:19 +00:00
Jim Meyering
05d541b622 update from gnulib 2005-07-01 19:54:48 +00:00
Paul Eggert
00fdbcc4af * xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
declares only 'struct timespec;' (!).
2005-07-01 17:25:56 +00:00
Jim Meyering
cfa2bfb98e *** empty log message *** 2005-06-30 20:33:55 +00:00
Jim Meyering
c44874f722 . 2005-06-30 20:32:46 +00:00
Jim Meyering
e457b0a9c9 Require gl_STDOPEN. 2005-06-30 20:24:45 +00:00
Jim Meyering
9c360d0540 (gl_STDOPEN): New file/macro. 2005-06-30 20:24:02 +00:00
Jim Meyering
d3f25798b9 Add copyright.
Include <fcntl.h> and <unistd.h> unconditionally --
it seems to be ok to do this, these days.
2005-06-30 20:23:09 +00:00
Jim Meyering
a3d8cfece3 *** empty log message *** 2005-06-30 20:23:00 +00:00
Jim Meyering
c17ae586bb *** empty log message *** 2005-06-30 20:16:01 +00:00
Jim Meyering
5754380c82 Rewritten by Paul Eggert.
Now, the minimum overhead is just two system calls: dup and close.
2005-06-30 20:13:40 +00:00
Jim Meyering
58000d181c New file. As yet unused. 2005-06-30 20:10:39 +00:00
Jim Meyering
0f4b63f1ac *** empty log message *** 2005-06-30 16:48:02 +00:00
Jim Meyering
8665927afc Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
2005-06-30 16:47:54 +00:00
Jim Meyering
7078d7a5b8 Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Remove a harmless trailing `, 0' from a value list.
2005-06-30 16:47:38 +00:00
Jim Meyering
779a89cdb4 Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Remove a harmless trailing `, 0' from a value list.
2005-06-30 16:47:00 +00:00
Jim Meyering
f2daebf810 *** empty log message *** 2005-06-30 16:41:04 +00:00
Jim Meyering
a9129f0786 (VERIFY): Guard definition with #ifndef.
(VERIFY_EXPR): Undef before defining.
2005-06-30 16:40:59 +00:00
Jim Meyering
36835110b6 *** empty log message *** 2005-06-30 16:40:08 +00:00
Jim Meyering
c25ccafa30 *** empty log message *** 2005-06-30 16:39:46 +00:00
Jim Meyering
5aa46e285c [!VERIFY] (VERIFY): Define.
(ARGMATCH_VERIFY): Use it, so this macro may be used more than
once in any given scope.
2005-06-30 16:39:41 +00:00
Jim Meyering
4ff07ebe3c (VERIFY_EXPR): Undef and add a comment. 2005-06-30 15:46:05 +00:00
Jim Meyering
b2915239d7 *** empty log message *** 2005-06-29 21:24:48 +00:00
Jim Meyering
eb231be3d6 (getuser, getuidbyname, getgroup, getgidbyname): Likewise. 2005-06-29 21:24:44 +00:00
Jim Meyering
2639d24e52 *** empty log message *** 2005-06-29 21:22:31 +00:00
Jim Meyering
dc59bb5133 (make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.
2005-06-29 21:22:06 +00:00
Jim Meyering
412a83b11b *** empty log message *** 2005-06-29 17:11:02 +00:00
Jim Meyering
98f3ba52df Use one fewer helper macro. 2005-06-29 17:10:44 +00:00
Jim Meyering
a9b919bde8 *** empty log message *** 2005-06-29 16:33:27 +00:00
Jim Meyering
22326600be (VERIFY_EXPR): Define.
(X2REALLOC): New macro, to make using x2realloc a little safer.
2005-06-29 16:33:17 +00:00
Jim Meyering
e574d209f6 *** empty log message *** 2005-06-29 16:29:19 +00:00
Jim Meyering
fdbdfd5b62 (main): Use X2REALLOC rather than x2realloc. 2005-06-29 16:27:37 +00:00
Jim Meyering
e68eeff682 (fillbuf): Use X2REALLOC rather than x2realloc. 2005-06-29 16:26:20 +00:00
Jim Meyering
fd98517183 (show_date): Use X2REALLOC rather than x2realloc. 2005-06-29 16:26:01 +00:00
Jim Meyering
9bdffe1137 (main, store_char): Use X2REALLOC rather than x2realloc. 2005-06-29 16:25:50 +00:00
Jim Meyering
bea7e93fde Update sole use of VERIFY.
Use X2REALLOC, rather than x2realloc.
2005-06-29 16:23:31 +00:00
Jim Meyering
87f543aea5 (VERIFY): Rewrite to use string-concatenation
and __LINE__ so as not to require a struct name parameter.
(GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.
2005-06-29 16:23:15 +00:00
Jim Meyering
e4d87dd573 *** empty log message *** 2005-06-29 10:43:19 +00:00
Jim Meyering
4ffd486ec7 *** empty log message *** 2005-06-29 10:07:45 +00:00
Jim Meyering
9b050191c5 (gobble_file): Use stat.st_author, not stat.st_uid
when computing the --author column width.  This bug might have
resulted in misaligned columns when using the --author option
on the Hurd.  Spotted by Arnold Robbins.

The bug was introduced on 2003-12-03.
2005-06-29 10:03:10 +00:00
Jim Meyering
df46e29284 split long line in copyright comment 2005-06-28 17:50:01 +00:00
Jim Meyering
9ea337f843 *** empty log message *** 2005-06-28 16:33:25 +00:00
Jim Meyering
cdedc0925c (fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc. 2005-06-28 16:33:20 +00:00
Jim Meyering
dec00b5930 (dump_strings): Use x2realloc on 1-byte base types, not x2nrealloc. 2005-06-28 16:31:31 +00:00
Jim Meyering
b64058f69e (show_date): Use x2realloc on 1-byte base types, not x2nrealloc. 2005-06-28 16:29:42 +00:00
Jim Meyering
783a13af77 *** empty log message *** 2005-06-28 16:22:44 +00:00
Jim Meyering
2f955ff766 (main, store_char): Use x2realloc on 1-byte base types, not x2nrealloc. 2005-06-28 16:22:36 +00:00
Jim Meyering
f05347d1ee . 2005-06-27 11:13:43 +00:00
Jim Meyering
7f7acc20fd . 2005-06-27 08:50:22 +00:00
Jim Meyering
72408a0e16 *** empty log message *** 2005-06-26 13:32:23 +00:00
Jim Meyering
ab264ea51b Require gl_DIACRIT. 2005-06-26 13:32:17 +00:00
Jim Meyering
722379be04 (libcoreutils_a_SOURCES): Remove diacrit.c and diacrit.h. 2005-06-26 13:31:16 +00:00
Jim Meyering
92337e781a Whoops. Add this, too:
AC_LIBOBJ([version-etc-fsf])
2005-06-25 22:01:49 +00:00
Jim Meyering
88fc20a633 *** empty log message *** 2005-06-25 21:32:05 +00:00
Jim Meyering
a2013a21e1 (libcoreutils_a_SOURCES): Remove version-etc.c version-etc.h
and version-etc-fsf.c.
2005-06-25 21:31:59 +00:00
Jim Meyering
3ba810e671 *** empty log message *** 2005-06-25 21:31:44 +00:00
Jim Meyering
2e783c6e7e *** empty log message *** 2005-06-25 21:29:46 +00:00
Jim Meyering
655564c62e (gl_VERSION_ETC): New file/macro. 2005-06-25 21:29:40 +00:00
Jim Meyering
cfc521b8fb Require gl_VERSION_ETC. 2005-06-25 21:29:31 +00:00
Jim Meyering
98172e8ab1 (libcoreutils_a_SOURCES): Remove dev-ino.h too, now that we
get it via root-dev-ino.m4
2005-06-25 21:25:42 +00:00
Jim Meyering
49d976e156 Remove dev-ino.h, now that we get it via root-dev-ino.m4 2005-06-25 21:25:29 +00:00
Jim Meyering
031076e031 *** empty log message *** 2005-06-25 12:38:44 +00:00
Jim Meyering
c5d1db79fe Require gl_ROOT_DEV_INO. 2005-06-25 12:38:40 +00:00
Jim Meyering
cfee4d7d5e Also require dev-ino.h. 2005-06-25 12:37:51 +00:00
Jim Meyering
8ee198f675 Add this:
AC_REQUIRE([AC_FUNC_LSTAT])
2005-06-25 12:36:58 +00:00
Jim Meyering
e0b32d3cb8 (gl_ROOT_DEV_INO): New file/macro. 2005-06-25 12:35:49 +00:00
Jim Meyering
ef0790fc1c *** empty log message *** 2005-06-25 12:35:23 +00:00
Jim Meyering
40a9612ec4 (libcoreutils_a_SOURCES): Remove root-dev-ino.c and root-dev-ino.h. 2005-06-25 12:35:13 +00:00
Paul Eggert
406929bb9d (canon_host) [HAVE_GETADDRINFO]: Use = { 0, };' to initialize local hint'. 2005-06-24 17:33:58 +00:00
Jim Meyering
534ccf18c2 . 2005-06-24 08:06:28 +00:00
Jim Meyering
36bcf322ce *** empty log message *** 2005-06-24 08:05:54 +00:00
Jim Meyering
a8249aba92 (cp invocation): Clarify how --reply=no works. 2005-06-24 08:05:51 +00:00
Jim Meyering
a345498d97 (usage): Clarify how --reply=no works. 2005-06-24 08:02:36 +00:00
Paul Eggert
5b87f6a271 Address some "du" issues. 2005-06-23 22:38:43 +00:00
Paul Eggert
42cee9216b Do not include hard-locale.h.
(struct duinfo): Remove 'valid' member.  All uses changed to use
negative nsec instead.
(DUIINFO_INI, DUINFO_SET, DUINFO_ADD): Remove.
(duinfo_init, duinfo_set, duinfo_add): New functions, taking the
role of the removed macros.
(opt_time): Renamed from opt_last_time.  All uses changed.
(TIME_OPTION): Renamed from LAST_TIME_OPTION.  All uses changed.
(long_options, usage): Rename --last-time to --time.
(locale_time_style): Remove.
(time_style_args, time_style_types, usage): Remove support for
--time-style=locale.
(show_date): Now returns void, since nobody looked at the result.
Assume FORMAT is not null.  An empty FORMAT now outputs an empty time.
Simplify nstrftime invocation.
(main): Put in ls compatibility workarounds only for TIME_STYLE,
not for --time-style.  Omit unnecessary space in iso time style.
2005-06-23 22:38:28 +00:00
Paul Eggert
7461cd03b5 (ls invocation): Fix typo: --time=use is
equivalent to --time=atime, not --time=ctime.
(ls invocation, du invocation): Fix typo: --time-style=long-iso
is equivalent to a time style with a leading "+".
(du invocation): --last-time is now --time.
--time-style no longer implies --time.
The locale and posix- stuff now works only for TIME_STYLE, not
for --time-style.  Give equivalent format for --time-style=iso.
2005-06-23 22:37:58 +00:00
Paul Eggert
638e81b537 du's --last-time option is now --time. 2005-06-23 22:37:33 +00:00
Jim Meyering
54efcebd94 Use AC_LIBSOURCES and AC_LIBOBJ. 2005-06-23 18:42:29 +00:00
Jim Meyering
a0e12540f5 *** empty log message *** 2005-06-23 18:41:55 +00:00
Jim Meyering
8ddb95f66c (libcoreutils_a_SOURCES): Remove xstrtod.c and xstrtod.h. 2005-06-23 18:41:48 +00:00
Jim Meyering
029c3a3d44 Use AC_LIBSOURCES and AC_LIBOBJ. 2005-06-23 18:41:17 +00:00
Jim Meyering
d9f5ecdf62 *** empty log message *** 2005-06-23 16:56:58 +00:00
Jim Meyering
5c215ef2ad . 2005-06-23 16:34:18 +00:00
Jim Meyering
a2b5c6c00e (libcoreutils_a_SOURCES): Remove xreadlink.c and xreadlink.h. 2005-06-23 16:24:32 +00:00
Jim Meyering
47237c979f Use AC_LIBSOURCES and AC_LIBOBJ. 2005-06-23 16:24:06 +00:00
Jim Meyering
d8ff99062d *** empty log message *** 2005-06-23 15:35:09 +00:00
Jim Meyering
75b33a5620 whoops: use puts, not fputs 2005-06-23 15:34:52 +00:00
Jim Meyering
98138b6b3f *** empty log message *** 2005-06-23 15:28:07 +00:00
Jim Meyering
d6b20d71f7 (time_format): Add `const' attribute. 2005-06-23 15:27:55 +00:00
Jim Meyering
c8c1251a7b *** empty log message *** 2005-06-23 15:20:11 +00:00
Jim Meyering
a912688f5c (show_date): Use fputs rather than printf ("%s\n",. 2005-06-23 15:20:05 +00:00
Jim Meyering
38eca4e977 (show_date): Add a FIXME comment. 2005-06-23 15:18:40 +00:00
Jim Meyering
c8e4886304 (show_date): Rename local `time_format' so as not to
shadow the file-scoped global by that name.
2005-06-23 15:16:38 +00:00
Jim Meyering
ae08ebecae . 2005-06-23 15:07:45 +00:00
Jim Meyering
b111ca4885 *** empty log message *** 2005-06-23 15:00:35 +00:00
Jim Meyering
05b7592ab7 (du invocation): New options --last-time and --time-style. 2005-06-23 15:00:29 +00:00
Jim Meyering
80bceac4ea *** empty log message *** 2005-06-23 14:47:27 +00:00
Jim Meyering
888d47b2b2 *** empty log message *** 2005-06-23 14:41:27 +00:00
Jim Meyering
89b0b72ca3 (usage): Tweak formatting to maintain more or less constant indentation. 2005-06-23 14:40:00 +00:00
Jim Meyering
6e48308e16 Include hard-locale.h and strftime.h.
(DUINFO_INI, DUINFO_SET, DUINFO_ADD):
Enclose body in `do {...} while (0)', not just `{...}'.
Adjust uses (add semicolons).
Adjust formatting, indentation.
2005-06-23 14:32:29 +00:00
Jim Meyering
d345f75d50 *** empty log message *** 2005-06-23 14:20:29 +00:00
Jim Meyering
3cd6ee7518 2005-06-14 William Brendling <wbrendling@gmail.com>
* src/du.c: Add --last-time and --time-style options.
2005-06-23 14:20:16 +00:00
Jim Meyering
fba73bf741 *** empty log message *** 2005-06-23 13:26:20 +00:00
Jim Meyering
5fd26561cb (backup_args): Change a `0' to NULL. 2005-06-23 13:26:15 +00:00
Paul Eggert
a13627ac2e mktime fix to avoid a diagnostic. 2005-06-22 19:08:21 +00:00
Paul Eggert
8834b57877 Include <string.h> even if !DEBUG. (From glibc.)
(ranged_convert): Don't save conversion in a temporary struct.
This causes a warning with GCC 4.0.0, and anyway in the typical
case it's not worth the extra 100 bytes or so of code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or better.
2005-06-22 19:07:41 +00:00
Paul Eggert
956daabfc6 (desirable_utmp_entry): Fix bug where "who -b" and "who -r"
failed to give output.
2005-06-22 18:26:22 +00:00
Paul Eggert
070e3b1280 New file umask-check to test for umask problems during tests. 2005-06-22 18:10:16 +00:00
Paul Eggert
a240b41236 Use umask-check instead of chmod. 2005-06-22 18:08:35 +00:00
Paul Eggert
5750ad83c8 Use umask-check. 2005-06-22 18:08:13 +00:00
Paul Eggert
904012a974 (EXTRA_DIST): Add umask-check. 2005-06-22 18:07:55 +00:00
Paul Eggert
06c4f8e242 Initial revision. 2005-06-22 18:07:36 +00:00
Jim Meyering
7be9c3e317 *** empty log message *** 2005-06-22 15:30:16 +00:00
Jim Meyering
67c719c84c *** empty log message *** 2005-06-22 15:29:51 +00:00
Jim Meyering
dac2329d5e *** empty log message *** 2005-06-22 15:25:29 +00:00
Jim Meyering
4ae6914356 Include "quotearg.h", not "quote.h".
(remove_parents, main): Use quotearg_colon, not quote.
2005-06-22 15:25:23 +00:00
Jim Meyering
fd78e66067 From gnulib:
(HAVE_GNU_CALLOC): New constant.
  (xcalloc): Use it to avoid needless tests.
2005-06-22 11:55:38 +00:00
Jim Meyering
fb33aea31f *** empty log message *** 2005-06-22 11:52:24 +00:00
Paul Eggert
d114087468 * tests/cp/cp-parents: Use chmod to work around some hosts with
ACL problems.
2005-06-22 07:38:06 +00:00
Jim Meyering
84abcc3480 *** empty log message *** 2005-06-21 12:46:40 +00:00
Jim Meyering
90ed8e90a4 *** empty log message *** 2005-06-21 08:59:55 +00:00
Jim Meyering
b1b3478d50 *** empty log message *** 2005-06-21 08:45:58 +00:00
Jim Meyering
faae396f21 Use --apparent-size to avoid the vagaries
of counting blocks.  Kevin Mudrick reported that this test would
fail on an nfs-mounted directory where attribute-caching is
turned on.
2005-06-21 08:45:19 +00:00
Jim Meyering
7cb0b72a2c . 2005-06-20 07:13:36 +00:00
Jim Meyering
15b998e0d0 Allow the two existing types of uses of PATH:
@vindex PATH
  @env{PATH}
2005-06-19 13:43:50 +00:00
Jim Meyering
e4bd8ce5ab *** empty log message *** 2005-06-19 13:39:54 +00:00
Jim Meyering
e828977ada (ln invocation): Change a few paths' to file names'. 2005-06-19 13:39:51 +00:00
Jim Meyering
acb16ca45c *** empty log message *** 2005-06-19 13:37:41 +00:00
Jim Meyering
09d77f4ac1 Also catch uses of path, pathname. 2005-06-19 13:37:39 +00:00
Jim Meyering
82dddb9c38 (tac_mem, tac_stdin_to_mem): Remove #if-0'd functions. 2005-06-19 09:10:28 +00:00
Jim Meyering
fc8a42d646 *** empty log message *** 2005-06-19 09:08:53 +00:00
Jim Meyering
171c56e927 *** empty log message *** 2005-06-19 08:34:56 +00:00
Jim Meyering
980b9fc893 (usage): Use file system', not filesystem'. 2005-06-19 08:34:49 +00:00
Jim Meyering
c6f9b7c7c8 use file system', not filesystem' 2005-06-19 08:34:14 +00:00
Jim Meyering
b0e72c0a63 *** empty log message *** 2005-06-19 08:30:16 +00:00
Jim Meyering
2e862dc8a3 (gl_XGETCWD): Add `AC_LIBOBJ([xgetcwd])'.
Register xgetcwd.c and xgetcwd.h via AC_LIBSOURCES.
2005-06-19 08:30:08 +00:00
Jim Meyering
4eecbcd445 rename to gl_FUNC_XFTS 2005-06-19 08:27:47 +00:00
Jim Meyering
186d75c87e Require gl_FUNC_XFTS. 2005-06-19 08:27:28 +00:00
Jim Meyering
01baf7f071 (gl_XFTS): New file/macro. 2005-06-19 08:25:46 +00:00
Jim Meyering
2c4bb16c03 (libcoreutils_a_SOURCES): Remove xgetcwd.c, xgetcwd.h, xfts.c and xfts.h. 2005-06-19 08:25:21 +00:00
Jim Meyering
f5fb813d6b *** empty log message *** 2005-06-18 06:25:22 +00:00
Jim Meyering
2504feb8c3 (unquote): Remove unnecessary `' quotes from a diagnostic. 2005-06-18 06:25:09 +00:00
Jim Meyering
d96810b0cc Don't embed `this'-style quotes in format strings.
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-17 18:43:24 +00:00
Jim Meyering
bbe012433f *** empty log message *** 2005-06-17 13:16:07 +00:00
Jim Meyering
0a0ebe7a41 (usage): Clarify that shred works on an ext3 file
system as long as it's not in data=journal mode.
Tiny change by Mark Melahn.
2005-06-17 13:16:00 +00:00
Jim Meyering
fd684a32fd *** empty log message *** 2005-06-17 13:12:21 +00:00
Jim Meyering
e89b22a2e1 (shred invocation): Clarify that shred
works on ext3 as long as it's not in data=journal mode.
Patch from Mark Melahn.
2005-06-17 13:12:17 +00:00
Jim Meyering
d319227170 *** empty log message *** 2005-06-17 13:11:47 +00:00
Paul Eggert
4df2411290 * src/hostid.c (main): Don't print fewer than 8 digits, or spurious leading "f". 2005-06-16 23:46:27 +00:00
Jim Meyering
0812004419 *** empty log message *** 2005-06-16 21:49:22 +00:00
Jim Meyering
e13ab085ed *** empty log message *** 2005-06-16 21:47:19 +00:00
Jim Meyering
c95fdb8372 Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:44:25 +00:00
Jim Meyering
f682977c0c whoops: Adding quote(...) isn't enough :)
remove quotes from the string, too.
2005-06-16 21:41:57 +00:00
Jim Meyering
0cda9b5eb8 Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:40:43 +00:00
Jim Meyering
0919e29116 Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:39:10 +00:00
Jim Meyering
a38ee1953f Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:38:27 +00:00
Jim Meyering
f696c57a8e Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:37:37 +00:00
Jim Meyering
f07a234d1d Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:36:48 +00:00
Jim Meyering
4d2d749ee6 Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:35:40 +00:00
Jim Meyering
3787d01a51 Don't embed `this'-style quotes in format strings.
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:33:43 +00:00
Jim Meyering
0441b743b0 Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:28:41 +00:00
Jim Meyering
e50dc3f9fb Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
2005-06-16 21:28:12 +00:00
Jim Meyering
a5c9e15482 *** empty log message *** 2005-06-16 14:52:33 +00:00
Jim Meyering
5371690c7f (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
when either N or S is zero.
2005-06-16 14:52:29 +00:00
Jim Meyering
8236e056a0 *** empty log message *** 2005-06-16 09:16:25 +00:00
Jim Meyering
27a8fa0664 (Backup options): Undocument --version-control=S (-V). 2005-06-16 09:16:16 +00:00
Jim Meyering
4e0c954244 *** empty log message *** 2005-06-16 09:15:45 +00:00
Jim Meyering
74f54dae78 Finally remove support for --version-control=S (-V).
It was deprecated nearly 6 years ago and has been warning
users to switch to --backup=S since fileutils-4.0j.
2005-06-16 09:15:23 +00:00
Jim Meyering
154e1cc930 . 2005-06-15 09:53:34 +00:00
Jim Meyering
7dd05aa715 Reflect s/_die/_fail/ renaming. 2005-06-15 09:38:12 +00:00
Jim Meyering
e2dba23e1a *** empty log message *** 2005-06-15 09:31:20 +00:00
Jim Meyering
e18177dfbe Ensure that rel-named dirs are not created when chdir($PWD) fails. 2005-06-15 09:31:16 +00:00
Jim Meyering
39b87363ae Ensure that each `-d'-specified directory is created. 2005-06-15 09:04:21 +00:00
Jim Meyering
ec5b4733d8 (main): Fix my typo: s/argv[optind]/file[i]/. 2005-06-15 08:54:21 +00:00
Jim Meyering
8add4ac9cb *** empty log message *** 2005-06-15 08:32:14 +00:00
Jim Meyering
88a7148929 Add a test for just-fixed bug in mkdir-p.c. 2005-06-15 08:32:11 +00:00
Jim Meyering
d4145e48ed (make_dir_parents): Don't let a failed chdir($PWD)
stop us from restricting permissions of just-created absolute-named
directories.
2005-06-15 08:31:44 +00:00
Paul Eggert
1c4348d7e8 Fix typo in previous checkin. 2005-06-15 00:06:34 +00:00
Paul Eggert
1fc9a26bdd install -D had a problem similar to mkdir -p. 2005-06-15 00:05:20 +00:00
Paul Eggert
f2c653e8df Improve diagnostics for restore_cwd failure. 2005-06-14 23:58:00 +00:00
Paul Eggert
153854cc31 (make_dir): Remove. All uses replaced by mkdir.
(make_dir_parents): Last arg is now int * (for errno), not bool *.
Rewrite "mkdir -p" algorithm to avoid the need for "stat"
each time through the loop.  Do not diagnose restore_cwd failure;
that is the caller's job (and perhaps the caller does not care).
2005-06-14 23:56:49 +00:00
Paul Eggert
616a6e5146 (make_dir): Remove. All uses replaced by mkdir.
(make_dir_parents): Last arg is now int * (for errno), not bool *.
2005-06-14 23:56:17 +00:00
Paul Eggert
0b2ac253e7 (create_parents): Remove static var (now local to 'main').
(main): Standardize on a diagnostic for restore_cwd failure,
and report errno.
Don't bother to check cwd_errno unless create_parents.
Use mkdir rather than make_dir; it's simpler.
2005-06-14 23:55:47 +00:00
Paul Eggert
3f47e8458a (main): Standardize on a diagnostic for
restore_cwd failure, and report errno.
(install_file_in_file_parents): Fail if restore_cwd fails and
one of the files is relative.  This fixes a bug (albeit unlikely).
2005-06-14 23:55:24 +00:00
Paul Eggert
d203fc19ae mkdir-p cleanup. 2005-06-14 18:36:44 +00:00
Paul Eggert
9c0241d8e2 Adjust to new make_dir_parents convention. 2005-06-14 18:36:25 +00:00
Paul Eggert
7cc0d42200 (main): Adjust to new make_dir_parents convention. 2005-06-14 18:35:58 +00:00
Paul Eggert
f7bbc5d1a2 (CLEANUP_CWD, CLEANUP): Remove.
(make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
If the file already exists but is not a directory, don't bother
to try to make its parents.
Close potential file descriptor leak if we can't chdir("/") (!).
Don't always return true if chdir($PWD) fails; return true only
if the requested action was done successfully (except for the
chdir($PWD)).
Don't log final directory unless we actually made it.
Refactor to avoid duplicate code to fix up permissions.
Don't attempt to fix up parent permissions if chdir($PWD) fails.
2005-06-14 18:35:38 +00:00
Jim Meyering
5c3c5b0586 *** empty log message *** 2005-06-14 09:46:39 +00:00
Jim Meyering
b95fca684c Reflect s/_die/_fail/ renaming. 2005-06-14 09:46:24 +00:00
Jim Meyering
f23e1c18a8 (openat_save_fail): Rename from openat_save_die.
(openat_restore_fail): Rename from openat_restore_die.
2005-06-14 09:44:54 +00:00
Jim Meyering
e6b19a2245 *** empty log message *** 2005-06-14 09:00:05 +00:00
Jim Meyering
dbc8afd399 Ensure mkdir succeeds if the following argument is an absolute directory name. 2005-06-14 09:00:00 +00:00
Jim Meyering
cb7512d04d clarify comment 2005-06-14 08:55:37 +00:00
Jim Meyering
cb3b87f4d7 *** empty log message *** 2005-06-14 08:53:11 +00:00
Jim Meyering
1fbdda3dc2 (CLEANUP_CWD): Return *true*, not false when failing
to restore initial working directory.
2005-06-14 08:48:13 +00:00
Jim Meyering
3b6523f00a *** empty log message *** 2005-06-14 08:26:43 +00:00
Jim Meyering
4fb9497455 Change openat.c to openat-die.c. 2005-06-14 08:26:37 +00:00
Jim Meyering
5507a4a721 *** empty log message *** 2005-06-14 08:25:56 +00:00
Jim Meyering
c89c93ecf6 (my-distcheck): Add -Wall to the list of options that
are used with -Werror.  This target is not intended for general use.
2005-06-14 08:25:53 +00:00
Jim Meyering
a0e071d050 . 2005-06-14 08:19:18 +00:00
Jim Meyering
19c47583a2 tweak diagnostic wording: Use `... return to working directory', rather
than `... restore working directory'.
2005-06-14 08:18:43 +00:00
Jim Meyering
bf684a6106 whoops.
redirect stderr to dev/null
2005-06-14 08:16:18 +00:00
Jim Meyering
a35d3cb4f8 . 2005-06-14 08:00:46 +00:00
Jim Meyering
27a8731d4e *** empty log message *** 2005-06-14 08:00:16 +00:00
Jim Meyering
d9b86c6156 (TESTS): Add p-3. 2005-06-14 07:59:59 +00:00
Jim Meyering
6000585c85 remove obsolete FIXME 2005-06-14 07:55:32 +00:00
Jim Meyering
018984aae7 *** empty log message *** 2005-06-14 07:47:57 +00:00
Jim Meyering
ba4a12e58d (gl_FUNC_OPENAT): Add openat-die.c. 2005-06-14 07:47:52 +00:00
Jim Meyering
30b65617ac *** empty log message *** 2005-06-14 06:55:32 +00:00
Jim Meyering
3e915a8263 (openat_save_die, openat_restore_die): New file. 2005-06-14 06:55:24 +00:00
Jim Meyering
5985c9991b (openat_save_die, openat_restore_die): Declare and define. 2005-06-14 06:54:57 +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
Jim Meyering
57f2a7090c *** empty log message *** 2005-06-13 10:22:29 +00:00
Jim Meyering
15de627dec (make_dir_parents): Update prototype. 2005-06-13 10:22:26 +00:00
Jim Meyering
1cd524bfb2 *** empty log message *** 2005-06-13 10:21:32 +00:00
Jim Meyering
069175c396 *** empty log message *** 2005-06-13 10:20:39 +00:00
Jim Meyering
fd49083b38 *** empty log message *** 2005-06-13 10:19:23 +00:00
Jim Meyering
736dfd391d (main): When make_dir_parents changes the current working
directory, give a diagnostic about each subsequent failure to create
a dot-relative directory.
(install_file_in_file_parents): Update make_dir_parents caller.
2005-06-13 10:19:18 +00:00
Jim Meyering
4063f9696c (main): When make_dir_parents changes the current working
directory, give a diagnostic about each subsequent failure to create
a dot-relative directory.
2005-06-13 10:17:36 +00:00
Jim Meyering
ecd375b64a (make_dir_parents): New parameter: different_working_dir,
to tell caller if/when we change the working directory and are
unable to return to the initial one.
2005-06-13 10:15:19 +00:00
Jim Meyering
26438e44cd *** empty log message *** 2005-06-12 19:56:42 +00:00
Jim Meyering
78c87e1292 (CLEANUP_CWD): Change one more return 1' to return false'.
This fixes a bug introduced on 2004-07-30.
2005-06-12 19:56:37 +00:00
Paul Eggert
d30b64a98e Act on the Austin Group's response yesterday to XCU ERN 63. 2005-06-10 19:32:04 +00:00
Paul Eggert
9756cac52f (any_has_acl): New var.
(clear_files): Clear it.
(gobble_file): Set it if a file has an ACL.
(print_long_format): Omit needless space unless some file has an ACL.
2005-06-10 19:31:45 +00:00
Paul Eggert
2de803d91b Remove the extra spaces in "ls -l" output. 2005-06-10 19:31:24 +00:00
Paul Eggert
a53809b3df ls no longer outputs an extra space between mode and link count. 2005-06-10 19:30:51 +00:00
Jim Meyering
939f88af26 *** empty log message *** 2005-06-10 16:42:33 +00:00
Jim Meyering
4fb3780059 (VERIFY_W_TYPEOF): Add parentheses. 2005-06-10 16:42:28 +00:00
Jim Meyering
5dc5bef865 Change filesystems to `file systems'. 2005-06-09 09:22:27 +00:00
Jim Meyering
42ded2fdf9 *** empty log message *** 2005-06-07 06:41:18 +00:00
Jim Meyering
52e93d5701 (ln invocation): Examples, from Bob Proulx. 2005-06-07 06:40:40 +00:00
Paul Eggert
33adc501ab Fix typo in comment. 2005-06-03 04:49:30 +00:00
Paul Eggert
3b75dfcba1 Regenerate. 2005-06-02 19:54:02 +00:00
Paul Eggert
e963a34f93 Sync from gnulib. 2005-06-02 19:49:27 +00:00
Jim Meyering
96d05b2618 *** empty log message *** 2005-06-02 11:38:49 +00:00
Jim Meyering
2b91002054 Change makepath.c to mkdir-p.c here, too. 2005-06-02 11:38:46 +00:00
Jim Meyering
0d800566cb *** empty log message *** 2005-06-02 10:04:32 +00:00
Jim Meyering
9c66558d8e (usage): Put `Ordering options:' line where it belongs. 2005-06-02 10:02:29 +00:00
Paul Eggert
2bc139bf8f Regenerate. 2005-06-02 05:19:46 +00:00
Paul Eggert
df58076416 Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
2005-06-02 05:19:03 +00:00
Paul Eggert
97603a5d2a Don't use "path" or "filename". 2005-06-02 05:17:24 +00:00
Paul Eggert
6a3bde8957 Don't use "path" or "filename".
(struct file_name): Renamed from struct Path.  All uses changed.
(file_name_free): Renamed from path_free.  All uses changed.
(file_name_init): Renamed from path_init.  All uses changed.
(file_name_prepend): Renamed from path_prepend.  All uses changed.
2005-06-02 05:15:07 +00:00
Paul Eggert
d86f0f9921 Don't use "path" or "filename".
(make_link_name): Renamed from make_link_path.  All uses changed.
2005-06-02 05:14:32 +00:00
Paul Eggert
af455f0340 (FILE_BASENAME_CONCAT): Renamed from PATH_BASENAME_CONCAT.
All uses changed.
2005-06-02 05:13:57 +00:00
Paul Eggert
55b579a133 Don't use "path" or "filename".
(install_file_in_file_parents): Renamed from
install_file_to_path.  All uses changed.
2005-06-02 05:13:29 +00:00
Paul Eggert
83ed78d646 Don't use "path" or "filename".
Don't include "path-concat.h"; not needed.
2005-06-02 05:12:59 +00:00
Paul Eggert
816572d867 Don't use "path" or "filename".
(usage): Don't use "path" to describe a file name.
(remove_empty_parents): Renamed from empty_paths.
All uses changed.
(longopts): Add comment that --path is deprecated.
2005-06-02 05:12:17 +00:00
Paul Eggert
e911bc54b5 (usage): Don't use "path" to describe a file name. 2005-06-02 05:11:32 +00:00
Paul Eggert
1745d7ec99 Don't use "path" or "filename".
(parents_option): Renamed from flag_path.  All uses changed.
(make_dir_parents_private): Renamed from make_path_private.
All uses changed.
(usage): Don't use "path" to describe a file name.
2005-06-02 05:11:01 +00:00
Paul Eggert
4c0486daa4 Don't use "path" or "filename" to mean "file name".
Hence, rename makepath.m4 to mkdir-p.m4, and rename path-concat.m4
to filenamecat.m4.
2005-06-02 05:09:44 +00:00
Paul Eggert
f3afac1d9d Don't use "path" or "filename" to mean "file name". 2005-06-02 05:08:51 +00:00
Paul Eggert
ef12d7fb52 Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.  As part of this,
rename makepath.c to mkdir-p.c, and path-concat.c to filenamecat.c,
and likewise for the .h files.
2005-06-02 05:06:56 +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
Paul Eggert
1e6b9bd047 (excluded_file_name): Renamed from excluded_filename.
All uses changed.
2005-06-02 05:02:38 +00:00
Paul Eggert
d91f01988d Don't use "path" or "filename" to mean "file name"
in comments or local variable names.

(excluded_file_name): Renamed from excluded_filename.
All uses changed.
2005-06-02 05:02:14 +00:00
Paul Eggert
4425cc8a08 Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
2005-06-02 05:00:50 +00:00
Paul Eggert
fa2ce4d932 (readlink invocation): "path component" ->
"component", since we don't use the POSIX "path" nomenclature.
2005-06-02 05:00:24 +00:00
Paul Eggert
034501ddef Renamed from path-concat.m4.
(gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
Rename files from path-concat.c to filenamecat.c,
and from path-concat.h to filenamecat.h.
2005-06-02 04:59:51 +00:00
Paul Eggert
1885506f1e Renamed from path-concat.c.
(file_name_concat): Renamed from path_concat.  All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
2005-06-02 04:59:10 +00:00
Paul Eggert
3a0841772c Renamed from path-concat.h. All includers changed.
(file_name_concat): Renamed from path_concat.  All callers changed.
2005-06-02 04:58:26 +00:00
Paul Eggert
0402bc1136 Renamed from makepath.m4.
(gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
Rename files from makepath.c to mkdir-p.c, and from
makepath.h to mkdir-p.h.
2005-06-02 04:57:31 +00:00
Paul Eggert
6499782f2e Renamed from makepath.h. All includers changed.
(make_dir_parents): Renamed from make_path.  All callers changed.
2005-06-02 04:56:41 +00:00
Paul Eggert
78cd5b80f6 Renamed from makepath.c.
(make_dir_parents): Renamed from make_path.  All callers changed.
2005-06-02 04:55:35 +00:00
Jim Meyering
b45e05bce2 *** empty log message *** 2005-05-31 07:06:26 +00:00
Jim Meyering
55076fb51f (chown_privileges, chown_failure_ok): Mark as `extern'.
This is a crutch so that `make distcheck's sc_tight_scope rule
knows that they really are deliberately declared that way.
2005-05-31 07:06:23 +00:00
Paul Eggert
f707eb199e Port to Solaris 10's rules for whether programs can chown files. 2005-05-31 06:16:51 +00:00
Paul Eggert
fe34f6c28d (cp_options_init): Use chown_privileges rather than geteuid. 2005-05-31 06:16:09 +00:00
Paul Eggert
1b3bf65c51 (re_protect): Remove unnecessary call to geteuid.
Use chown_failure_ok rather than our own code.
(cp_options_init): Use chown_privileges rather than getuid.
2005-05-31 06:15:48 +00:00
Paul Eggert
d8ce6bf143 Add copyright notice.
(struct cp_options): Remove myeuid member.  Add chown_privileges
member.
(chown_privileges, chown_failure_ok): New function decls.
2005-05-31 06:15:18 +00:00
Paul Eggert
e6a9bbce56 Port to Solaris 10's rules for whether programs can chown files.
[HAVE_PRIV_H]: Include <priv.h>.
(DO_CHOWN): Remove.  Replaced by chown_failure_ok.  All callers
changed.
(copy_internal): If chown failed, don't worry about what happened
to the mode bits; they can't have changed.
(chown_privileges, chown_failure_ok): New functions.
2005-05-31 06:14:24 +00:00
Paul Eggert
ff3775ea5b * jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for priv.h. 2005-05-31 06:13:44 +00:00
Paul Eggert
3809452e3e (gl_CHECK_ALL_HEADERS): Check for priv.h. 2005-05-31 06:13:25 +00:00
Jim Meyering
275c4eb298 . 2005-05-30 09:04:13 +00:00
Paul Eggert
ff57f59217 Regenerate. 2005-05-30 07:41:32 +00:00
Paul Eggert
53d6509846 _POSIX_VERSION cleanup 2005-05-30 07:37:02 +00:00
Paul Eggert
3ada325679 Include sys/param.h if it exists, not if _POSIX_VERSION
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.
2005-05-30 07:34:23 +00:00
Paul Eggert
21c907252b Don't bother mentioning _POSIX_VERSION in comment. 2005-05-30 07:33:55 +00:00
Paul Eggert
3068ea6b4d (OPENOPTS, TEXT1T01, TEXTCNVT): Remove.
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.
2005-05-30 07:33:38 +00:00
Paul Eggert
003510fda2 (getpwnam, getgrnam): Remove decl.
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
2005-05-30 07:33:16 +00:00
Paul Eggert
db3e479ab3 (getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
[!defined _POSIX_VERSION]: Remove decls.
2005-05-30 07:33:00 +00:00
Paul Eggert
f071607aa1 (geteuid) [!defined _POSIX_VERSION]: Remove decl. 2005-05-30 07:32:16 +00:00
Paul Eggert
6a9173f43e (getgrnam, getgrgid) [!defined _POSIX_VERSION]:
Remove decls.
2005-05-30 07:31:51 +00:00
Paul Eggert
739904ab06 (getgrnam) [!defined _POSIX_VERSION]: Remove decl. 2005-05-30 07:31:31 +00:00
Paul Eggert
4ab39ecf75 (getpwnam, getgrnam, getgrgid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:31:12 +00:00
Paul Eggert
c86717d0dd Include <limits.h> unconditionally, since other
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).
2005-05-30 07:30:51 +00:00
Paul Eggert
fcb5c87adb (getpwuid, getpwnam, getgrgid, getgrnam)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:30:31 +00:00
Paul Eggert
241ed9e339 (getuid, getgid, getuid, getegid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-30 07:30:01 +00:00
Paul Eggert
b224f94761 (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.
2005-05-30 07:05:07 +00:00
Paul Eggert
47db304b3c dd seek=N now conforms to POSIX if the output isn't seekable. 2005-05-28 04:24:14 +00:00
Paul Eggert
5923469a3c dd seek=N now conforms to POSIX if the output isn't seekable. 2005-05-28 04:22:43 +00:00
Paul Eggert
8f10bd11cf (skip): Return the number of records that were not
skipped due to encountering EOF.
(dd_copy): If the file wasn't seekable and EOF was encountered,
write zeros past EOF until the desired offset is reached.
2005-05-28 04:22:26 +00:00
Paul Eggert
c3dc98bb5e * fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.
2005-05-28 00:01:15 +00:00
Paul Eggert
abe28983a6 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.
2005-05-28 00:01:00 +00:00
Paul Eggert
a73860cb2f fts.c: Don't worry about debugging on pre-C99-comopatible hosts. 2005-05-28 00:00:38 +00:00
Paul Eggert
644cca3ead Don't worry about debugging on pre-C99-comopatible hosts;
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.
2005-05-28 00:00:06 +00:00
Paul Eggert
42a4ba9143 expr and test now correctly compare integers of unlimited size. 2005-05-27 20:37:14 +00:00
Paul Eggert
a2b86be295 Include inttostr.h, strnumcmp.h.
(whitespace, digit, digit_value, integer_expected_error): Remove.
(is_int): Remove; replaced by...
(find_int): New function.
(binary_operator): Don't let integers overflow in comparisons;
return the correct answer instead.  Simplify the code.
(unary_operator): Convert the integer ourself, since find_int
no longer does so.
2005-05-27 20:36:58 +00:00
Paul Eggert
58aa95b54b Refactor so that others can use large-integer
comparison functions.
Include "strnumcmp.h".
(NEGATION_SIGN, NUMERIC_ZERO, fraccompare):
Remove; moved to strnumcmp.
(decimal_point): Now int, to simplify converison overhead with
new API.  All uses changed.
(thousands_sep): Now -1 if there isn't one, as per new API.
All uses changed.
(numcompare): Move contents to strnumcmp module, except for
skipping blanks.
2005-05-27 20:36:40 +00:00
Paul Eggert
6d740fd9ee Include strnumcmp.h, xstrtol.h.
(looks_like_integer): New function.
(toarith): Use it.  Also, use xstrtoimax rather than rolling our
own diagnostics.
(eval2): Don't look for trouble if !evaluate; this simplifies things.
Compare numbers using string comparison, so that overflow is
not possible.
2005-05-27 20:36:20 +00:00
Paul Eggert
1ef7a75fa8 Break integer-in-string comparison code out from src/sort. 2005-05-27 20:35:33 +00:00
Paul Eggert
dc0465e9c7 (gl_PREREQ): Require gl_STRINTCMP, gl_STRNUMCMP. 2005-05-27 20:35:07 +00:00
Paul Eggert
e277ba010e Compare numeric strings. 2005-05-27 20:34:48 +00:00
Paul Eggert
606321fa32 Break integer-in-string comparison code out from src/sort. 2005-05-27 20:34:03 +00:00
Paul Eggert
8cb4f7039d (eq-6, gt-5, lt-5): New tests. 2005-05-27 20:32:43 +00:00
Paul Eggert
9b4b372182 (bigcmp): New test. 2005-05-27 20:32:28 +00:00
Paul Eggert
08338cd87f expr and test now correctly compare integers of unlimited size.
(Also, correct a comment that claimed that expr detects integer
overflow; it does so only when converting from strings.)
2005-05-27 20:31:59 +00:00
Paul Eggert
3a662c37cd Fix typo in comment. 2005-05-26 19:30:04 +00:00
Paul Eggert
8597e1fd2d nohup now redirects a tty stdin to an unreadable fd instead of closing it. 2005-05-26 19:27:50 +00:00
Jim Meyering
3d8bc90af3 *** empty log message *** 2005-05-26 18:35:59 +00:00
Jim Meyering
239409b480 *** empty log message *** 2005-05-26 18:35:33 +00:00
Jim Meyering
607d3de687 . 2005-05-26 18:34:18 +00:00
Jim Meyering
45a1996268 *** empty log message *** 2005-05-26 16:09:43 +00:00
Jim Meyering
6fc0ccf717 (toarith): Fix a sign error introduced on 2005-01-14. 2005-05-26 16:09:38 +00:00
Jim Meyering
f3dfdff460 Add tests using arithmetic on negative integers. 2005-05-26 16:09:29 +00:00
Paul Eggert
a7102ac430 (fd_safer) [_LGPL_PACKAGE]: New static function,
so that unistd-safer.h (GPL'ed code) need not be included.
2005-05-22 17:29:46 +00:00
Jim Meyering
b72d60e7a4 *** empty log message *** 2005-05-21 06:44:36 +00:00
Jim Meyering
716ad689e0 fix typo in a comment 2005-05-21 06:42:41 +00:00
Paul Eggert
c84d7e1cb0 Import chown fixes from gnulib. 2005-05-20 22:48:40 +00:00
Paul Eggert
be7a96a273 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs of -1. 2005-05-20 22:48:25 +00:00
Paul Eggert
7a905c6ecc (rpl_chown): Return -1 on failure. 2005-05-20 22:48:08 +00:00
Paul Eggert
e8ddf93a19 Regenerate. 2005-05-20 22:38:38 +00:00
Paul Eggert
e4afa11074 * config.guess: Sync from gnulib. 2005-05-20 22:37:58 +00:00
Paul Eggert
bf8be6caa9 Sync from gnulib. 2005-05-20 22:37:45 +00:00
Paul Eggert
8cc757279d Split fts into LGPL'ed and GPL'ed parts. 2005-05-20 22:34:44 +00:00
Paul Eggert
6ee2045428 Don't include "cycle-check.h" or "hash.h".
(setup_dir, free_dir): New functions.
(enter_dir, leave_dir): Define trivial
alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
(HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
(LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
(struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
Move to fts-cycle.c.
(fts_open): Use setup_dir.
(fts_close): Use free_dir.
(fts_read): Have just one copy of the ENTER_DIR code rather than three.
This adds a label and some gotos, but the alternatives were messier.
Check for memory allocation failure when entering a dir.
(fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
2005-05-20 22:34:19 +00:00
Paul Eggert
fea1ba2d14 (_LGPL_PACKAGE) [defined _LIBC]: New macro.
(FTS): New member fts_cycle, that is a union that contains the
old active_dir_ht and cycle_state.  All uses changed to mention
fts_cycle.ht and fts_cycle.state.
2005-05-20 22:33:59 +00:00
Paul Eggert
eea59b706d * fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
(gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
2005-05-20 22:33:32 +00:00
Paul Eggert
ae2855ebc6 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
(gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
2005-05-20 22:33:12 +00:00
Paul Eggert
42aab6b2ae New file, containing GPL'ed code migrated out of
fts.c, with the following changes:
(setup_dir, free_dir): New functions.
(enter_dir): Now returns bool.  Return true if successful, false
if memory exhausted.  All callers changed.
Do not bother partly cleaning up on
memory allocation failure; that is free_dir's job.
However, free ad if hash_insert fails, to avoid memory leak.
(enter_dir, leave_dir): Accommodate change to FTS by inspecting
fts->fts_options to see which union member to use.
2005-05-20 22:32:50 +00:00
Jim Meyering
ca88d7c411 *** empty log message *** 2005-05-20 04:27:00 +00:00
Jim Meyering
1222461ca6 (fts_open): Remove useless but otherwise harmless malloc call.
Spotted by Paul Eggert.
2005-05-20 04:26:35 +00:00
Jim Meyering
ec4933bcee *** empty log message *** 2005-05-19 10:37:43 +00:00
Jim Meyering
b3e741d36c (AD_mark_helper, AD_mark_current_as_unremovable):
Remove inaccurate-but-harmless `const' attributes.
2005-05-19 10:37:40 +00:00
Jim Meyering
7f163f5ac7 *** empty log message *** 2005-05-19 10:34:52 +00:00
Jim Meyering
1dacfee21a (decode_field_spec): Add an abort after
`error (EXIT_FAILURE, ...' to avoid a gcc warning in caller,
about variables being used uninitialized.
2005-05-19 10:34:46 +00:00
Jim Meyering
2334353619 *** empty log message *** 2005-05-19 08:54:44 +00:00
Jim Meyering
276ae5c469 (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
Use #define rather than a static function, to avoid a warning
when the function was not used.
2005-05-19 08:54:40 +00:00
Jim Meyering
035c732c59 remove trailing blanks 2005-05-18 21:39:11 +00:00
Paul Eggert
666680ddaa Regenerate. 2005-05-18 19:36:47 +00:00
Paul Eggert
83890c76a4 Import localcharset.m4 from gnulib. 2005-05-18 19:34:04 +00:00
Paul Eggert
0b5dba9efb Remove some dependencies and old cruft from fts etc. 2005-05-18 19:32:57 +00:00
Paul Eggert
05218a8c7e Remove test for HAVE_LIMITS_H; we can assume
it's always true now.
2005-05-18 19:32:28 +00:00
Paul Eggert
0045b9321d Add copyright notice.
(factor_LDADD): Remove, as factor no longer needs sqrt.
2005-05-18 19:32:11 +00:00
Paul Eggert
c55596370d Add copyright notice.
(gl_PREREQ): Add gl_LOCALCHARSET.
2005-05-18 19:31:47 +00:00
Paul Eggert
58d6230525 lib-check.m4: Add copyright notice.
(cu_LIB_CHECK): Renamed from gl_LIB_CHECK.
Don't check for sqrt; factor no longer needs it.
Revamp tests for floor, modf, rint, to define SEQ_LIBM.
Redo tests for fesetround to act like the other wons.
Use "cu_saved_libs" for local var name, not "ac_su_saved_lib".
2005-05-18 19:31:20 +00:00
Paul Eggert
1575fd4adc (gl_MACROS): Require AC_FUNC_LSTAT.
Don't check for memcpy, strchr, strerror, strrchr, float.h.
Use AC_REQUIRE on AM_LANGINFO_CODESET and gl_GLIBC21 rather
than invoking them directly.
(gl_CHECK_ALL_HEADERS): Don't check for errno.h, float.h,
limits.h, stddef.h, since we assume C89 now.
2005-05-18 19:31:00 +00:00
Paul Eggert
30fd8394e1 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
2005-05-18 19:30:31 +00:00
Paul Eggert
85d0299334 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
don't use its results.
Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
since we include them unconditionally.  Don't require
AM_STDBOOL_H, since stdbool is a prerequisite.
Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
since we assume C89 or better.
Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
as we don't use their results.
Don't check for fchdir, memmove, memset, strrchr, as we use
them unconditionally.
2005-05-18 19:30:06 +00:00
Paul Eggert
4dcf2356b7 (AC_FUNC_CANONICALIZE_FILE_NAME]): Don't check for stddef.h. 2005-05-18 19:29:41 +00:00
Paul Eggert
ae2b26dd0d Do not include hash.h or cycle-check.h; no longer needed.
(FTS): Use struct hash_table * instead of Hash_table, so that
we no longer need to include hash.h here.
2005-05-18 19:29:11 +00:00
Paul Eggert
b569baa020 Include fts_.h first, to check interface.
Do not include intprops.h; no longer needed.
Include cycle-check.h and hash.h, since fts_.h no longer does.
Remove unnecessary casts of closedir to void.
(fts_build): Use a simpler method (not involving TYPE_SIGNED) to
decide whether to decrement nlinks.
2005-05-18 19:28:48 +00:00
Paul Eggert
0d3649e30d Include canonicalize.h first, to test interface.
Include <stddef.h> unconditionally, since we assume C89 now.
All uses of PTR_INT_TYPE replaced by ptrdiff_t.
2005-05-18 19:28:21 +00:00
Paul Eggert
d067c0cde3 Add copyright notice. gl_LIB_CHECK -> cu_LIB_CHECK. 2005-05-18 19:27:39 +00:00
Paul Eggert
0f10230a24 Fix Cygwin porting problem reported by Eric Blake. 2005-05-16 20:29:08 +00:00
Paul Eggert
002c26a153 Fix Cygwin porting problem reported by Eric Blake.
(DT_IS_DIR): Remove.
(DT_IS_KNOWN, DT_MUST_BE): New macros.
(remove_entry): Use them.
2005-05-16 20:28:53 +00:00
Jim Meyering
d3ea604602 *** empty log message *** 2005-05-16 13:11:04 +00:00
Jim Meyering
40cd9fdf30 (gl_FUNC_FTS): Don't require AC_FUNC_MALLOC or AC_FUNC_REALLOC.
They are not needed.
2005-05-16 13:10:53 +00:00
Paul Eggert
842c8c486f Sync from gnulib (scriptversion change only). 2005-05-15 07:03:04 +00:00
Paul Eggert
99ad01b0d5 Use geteuid, not getuid. Set "initialized" only if it was clear. 2005-05-15 05:57:31 +00:00
Paul Eggert
6517e41a01 Sync from gnulib. 2005-05-15 04:35:48 +00:00
Jim Meyering
53a152ff60 . 2005-05-14 19:13:51 +00:00
Jim Meyering
10f6a16c7b *** empty log message *** 2005-05-14 10:34:13 +00:00
Jim Meyering
4ecefdf18a Register unlinkdir.c and unlinkdir.h via AC_LIBSOURCES.
Add `AC_LIBOBJ([unlinkdir])'.
2005-05-14 10:34:00 +00:00
Paul Eggert
070140df89 Regenerate. 2005-05-14 08:17:38 +00:00
Jim Meyering
afae3029ef tweak cpp indentation on one line 2005-05-14 08:14:47 +00:00
Paul Eggert
676c76bee7 New unlinkdir module. 2005-05-14 08:12:17 +00:00
Paul Eggert
fe7b1c00b9 (gl_PREREQ): Require gl_UNLINKDIR. 2005-05-14 08:11:32 +00:00
Paul Eggert
7b18bf3811 * unlinkdir.c, unlinkdir.h: New files. 2005-05-14 08:09:23 +00:00
Paul Eggert
be13a1f653 * src/remove.c: Use new unlinkdir module. 2005-05-14 08:06:22 +00:00
Paul Eggert
0675749903 Include unlinkdir.h.
(UNLINK_CAN_UNLINK_DIRS): Remove.
(remove_entry): Use cannot_unlink_dirs () rather than
UNLINK_CAN_UNLINK_DIRS.
2005-05-14 08:05:35 +00:00
Jim Meyering
effcdb2647 remove recent temporary additions 2005-05-14 08:05:04 +00:00
Jim Meyering
8ac343fffa Correct cpp indentation 2005-05-14 08:03:44 +00:00
Paul Eggert
2e71ba4dd2 New unlinkdir module. 2005-05-14 08:01:17 +00:00
Jim Meyering
44d59bb168 Update FSF postal mail address. 2005-05-14 07:58:31 +00:00
Jim Meyering
116e6fb244 Update FSF postal mail address. 2005-05-14 07:58:06 +00:00
Jim Meyering
a5d7b5f8aa One more
gethrxtime.c
2005-05-14 07:57:58 +00:00
Jim Meyering
f9be76236b Add these temporarily:
unlocked-io.h
gethrxtime.h
mountlist.h
xtime.h
path-concat.c
2005-05-14 07:57:36 +00:00
Jim Meyering
c6db442aee unlocked-io.h 2005-05-14 07:56:31 +00:00
Jim Meyering
7e387bd78d . 2005-05-14 07:40:16 +00:00
Jim Meyering
979d7201a7 don't add gl_UNLINKDIR just yet :) 2005-05-14 07:36:16 +00:00
Jim Meyering
e4a2650e94 . 2005-05-14 07:34:36 +00:00
Jim Meyering
3788003d66 *** empty log message *** 2005-05-14 07:27:24 +00:00
Jim Meyering
3c0cce93e2 Don't require gl_FUNC_STAT or gl_FUNC_LSTAT. 2005-05-14 07:27:21 +00:00
Jim Meyering
54cd404524 Remove unnecessary file. 2005-05-14 07:27:06 +00:00
Jim Meyering
48cf66ad55 *** empty log message *** 2005-05-14 07:25:57 +00:00
Jim Meyering
661e61bac5 Update FSF postal mail address. 2005-05-14 07:25:26 +00:00
Jim Meyering
f096a0da75 *** empty log message *** 2005-05-14 06:58:11 +00:00
Jim Meyering
c0c815af8d Update FSF postal mail address. 2005-05-14 06:57:06 +00:00
Paul Eggert
4a3c27dd70 "bytes, words and lines" -> "lines, words, and bytes" in comment 2005-05-13 19:35:06 +00:00
Jim Meyering
909dd8df1c fix grammar typo in comment 2005-05-13 08:42:35 +00:00
Jim Meyering
a738692de4 . 2005-05-13 08:20:32 +00:00
Jim Meyering
fbb6084338 rm now performs run-time test to work around buggy readdir implementations 2005-05-13 08:16:53 +00:00
Jim Meyering
79c068deb3 *** empty log message *** 2005-05-13 07:53:57 +00:00
Jim Meyering
ac67bbc649 (gl_MACROS): Don't require GL_FUNC_READDIR. 2005-05-13 07:53:47 +00:00
Jim Meyering
94181613c3 (GL_FUNC_READDIR): Remove, now that remove.c no longer needs it. 2005-05-13 07:53:30 +00:00
Jim Meyering
7c01c060c2 *** empty log message *** 2005-05-13 07:39:56 +00:00
Jim Meyering
c176e34468 * NEWS: `rm -r' now removes all of the files it should, even on
systems with a buggy readdir affecting file systems inaccessible
at configure time.

In some unusual circumstances `rm -r' would fail to remove --
or even consider -- all entries in a directory with more than 254
(SunOS) or 338 (Darwin) entries.  This could cause trouble even on
other types of systems when using an affected file system via e.g.,
NFS.  The underlying cause was a bug in readdir on those systems.
Coreutils-5.2.1 and earlier used a configure-time test designed
to detect precisely those problem systems, but it would detect
the problem and enable remove.c's work-around code only when its
configure-time test was run on a losing file system.  Obviously,
it couldn't detect a problem if the offending file system wasn't
tested or even mounted at coreutils configure time.  Now, rm itself
performs a minimal-cost run-time test to detect the problem.

(CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Define.
(remove_cwd_entries):  When readdir returns NULL for a directory from
which we've removed more than CONSECUTIVE_READDIR_UNLINK_THRESHOLD
entries, call rewinddir and then resume the readdir/unlink loop.
(UNLINK_CAN_UNLINK_DIRS): Rename from ROOT_CAN_UNLINK_DIRS.
2005-05-13 07:39:50 +00:00
Paul Eggert
be5f7b36a1 nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set. 2005-05-12 09:25:16 +00:00
Paul Eggert
13620274ae (main): nohup now closes stdin if it is a terminal, unless
POSIXLY_CORRECT is set.
2005-05-12 09:24:56 +00:00
Paul Eggert
b24a3e8391 (nohup invocation): nohup now closes stdin if it is a terminal, unless
POSIXLY_CORRECT is set.
2005-05-12 09:24:27 +00:00
Paul Eggert
5a1ef0fd79 nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set. 2005-05-12 09:23:56 +00:00
Jim Meyering
83ef1d6911 *** empty log message *** 2005-05-12 08:24:03 +00:00
Jim Meyering
a5c650d56c Assume `free (NULL)' works. 2005-05-12 07:56:14 +00:00
Jim Meyering
55646e00b9 Assume `free (NULL)' works. 2005-05-12 07:55:15 +00:00
Jim Meyering
258fbb8860 Assume `free (NULL)' works. 2005-05-12 07:54:10 +00:00
Jim Meyering
c73cf11291 Assume `free (NULL)' works. 2005-05-12 07:53:37 +00:00
Paul Eggert
6242e3ebfd Update copyright date. 2005-05-11 20:27:11 +00:00
Paul Eggert
156bd843f1 * getdate.texi (General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates.
2005-05-11 20:25:01 +00:00
Paul Eggert
41e07fd117 (General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates; it doesn't yet.
2005-05-11 20:24:42 +00:00
Paul Eggert
4b1117eedf * getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when possible. 2005-05-10 19:10:23 +00:00
Paul Eggert
7a0461caab (gl_GETOPT): Check for Solaris 10 bug, not decl, when possible. 2005-05-10 19:09:23 +00:00
Jim Meyering
b323c05979 . 2005-05-10 13:46:21 +00:00
Jim Meyering
a79a5572e1 *** empty log message *** 2005-05-10 13:39:19 +00:00
Jim Meyering
87d6e640a1 Add Vietnamese (vi). 2005-05-10 13:39:15 +00:00
Jim Meyering
cf99eaf8e7 version: 5.3.0 2005-05-10 13:38:31 +00:00
Jim Meyering
2113d67f69 Skip this test if the user running it owns `/' or has write access to it. 2005-05-10 13:30:39 +00:00
Jim Meyering
cd6c5b7422 *** empty log message *** 2005-05-10 13:30:33 +00:00
Jim Meyering
f1934ed713 *** empty log message *** 2005-05-10 12:59:49 +00:00
Jim Meyering
c2666e4b18 Skip the test if the user running it has write access to `/'. 2005-05-10 12:59:44 +00:00
Jim Meyering
4c2413d79f . 2005-05-10 07:42:12 +00:00
Jim Meyering
d902ba0ad5 (TESTS): Add reply-no. 2005-05-10 07:42:01 +00:00
Jim Meyering
c4fa42049d *** empty log message *** 2005-05-10 07:38:20 +00:00
Jim Meyering
f81cd0f71b *** empty log message *** 2005-05-10 07:35:46 +00:00
Jim Meyering
6a23527114 (abandon_move): Remove erroneous UNWRITABLE check.
This makes `mv -i --reply=no f1 f2' work as expected (in not
performing the move operation).  But note that specifying `-i'
after `--reply=no' does *not* work.
Tiny patch from Vlada Macek.
2005-05-10 07:35:43 +00:00
Jim Meyering
6f1c1df83d *** empty log message *** 2005-05-10 07:28:10 +00:00
Jim Meyering
208bacc4b7 *** empty log message *** 2005-05-10 07:25:24 +00:00
Jim Meyering
7bbaee80e2 *** empty log message *** 2005-05-10 06:59:27 +00:00
Jim Meyering
49f3c23dad Don't print PATH to stderr. 2005-05-10 06:59:24 +00:00
Jim Meyering
1830033440 *** empty log message *** 2005-05-10 06:36:21 +00:00
Paul Eggert
d766c0a42a (fts_sort): Optimize the common case where all pointers smell the same. 2005-05-09 23:54:26 +00:00
Paul Eggert
a7864df9ba * fts_.h, fts.c: More C89 portability fixes. 2005-05-09 18:53:54 +00:00
Paul Eggert
3b3a3a9520 (__P): Remove. All uses rewritten to assume C89 or better.
(fts_open): Don't cast a function value in a possibly-unsafe way.
(fts_compar): New function.
(fts_sort): Use it.
2005-05-09 18:53:33 +00:00
Paul Eggert
3ed3fb2d81 (FTS): Use correct type for fts_compar member.
(FTSENT): New member fts_fts.  Remove members fts_ino, fts_dev,
fts_nlink; no longer needed now that fts_statp is always there.
All uses changed to use fts_statp instead.
2005-05-09 18:53:11 +00:00
Jim Meyering
ea345c5774 . 2005-05-08 18:54:26 +00:00
Paul Eggert
cd8fce3088 cp, ln, mv, rm no longer discard white space when intepreting responses. 2005-05-08 16:52:43 +00:00
Jim Meyering
7f26e14e3a . 2005-05-08 16:52:38 +00:00
Paul Eggert
963e363388 * yesno.c: Include getline.h, not ctype.h.
(yesno): Don't remove leading white space; POSIX doesn't allow it.
Use getline to remove arbitrary restriction on response length.
2005-05-08 16:50:57 +00:00
Jim Meyering
3a1abe7485 remove trailing blanks 2005-05-06 21:08:39 +00:00
Paul Eggert
c0fd619103 dd has new iflag= and oflag= flags "binary" and "text". 2005-05-06 17:57:59 +00:00
Paul Eggert
b3f58e2acf * coreutils.texi (dd invocation): New flags "binary" and "text". 2005-05-06 17:57:45 +00:00
Paul Eggert
db028141f5 (dd invocation): New flags "binary" and "text". 2005-05-06 17:57:35 +00:00
Paul Eggert
026894fd09 (flags, usage): Add support for "binary" and "text". 2005-05-06 17:57:10 +00:00
Paul Eggert
d5f20ebe16 dd has new iflag= and oflag= flags "binary" and "text". 2005-05-06 17:56:49 +00:00
Paul Eggert
f9aa4b0e4b * getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
needless checks.
2005-05-06 00:59:46 +00:00
Paul Eggert
38c0488d28 (gl_GETOPT): Check for Solaris 10 getopt, and avoid needless checks. 2005-05-06 00:59:33 +00:00
Paul Eggert
3cccf50ce3 * makepath.c (make_path): chdir to "//", not "/", if the file name
starts with exactly two slashes.
2005-05-05 08:00:03 +00:00
Paul Eggert
280cc68071 (make_path): chdir to "//", not "/", if the file name
starts with exactly two slashes.
2005-05-05 07:59:48 +00:00
Paul Eggert
04d5428ad3 Regenerate. 2005-05-04 17:25:26 +00:00
Paul Eggert
441a46319c (chmod invocation): chmod -w complains if its
behavior differs from what chmod a-w would do.
2005-05-04 17:24:49 +00:00
Paul Eggert
918d8e5f31 chmod -w now complains if it differs from chmod a-w. 2005-05-04 17:23:38 +00:00
Paul Eggert
b9abf51d74 chmod -w now complains if it differs from chmod a-w. 2005-05-04 17:23:13 +00:00
Paul Eggert
a68066a0fb Initial version. 2005-05-04 17:22:54 +00:00
Paul Eggert
5147bacee1 (TESTS): Add umask-x 2005-05-04 17:22:41 +00:00
Paul Eggert
4432ecc7b5 Include quotearg.h.
(diagnose_surprises): New var.
(process_file): Diagnose surprises.  Simplify the logic a bit,
while we're at it.
(main): Prepare to diagnose surprises.  Remove useless code for
'-' option.
2005-05-04 17:22:25 +00:00
Paul Eggert
28bbebfb89 chmod -w now complains if it differs from chmod a-w. 2005-05-04 17:22:08 +00:00
Paul Eggert
6383922a13 ls --indicator-style=directory renamed to ls --indicator-style=slash. 2005-05-02 18:41:53 +00:00
Paul Eggert
967e54a1e1 (ls invocation): ls --indicator-style=directory
renamed to ls --indicator-style=slash, to avoid confusion with ls
--directory.
2005-05-02 18:41:12 +00:00
Paul Eggert
77be207a57 (usage): ls --indicator-style=directory renamed to ls
--indicator-style=slash, to avoid confusion with ls --directory.
(slash): Renamed from directory_only.  All uses changed.
2005-05-02 18:40:47 +00:00
Paul Eggert
9b1fc199cd ls --indicator-style=directory renamed to ls
--indicator-style=slash, to avoid confusion with ls --directory.
2005-05-02 18:40:20 +00:00
Paul Eggert
ecf4669714 Sync from gnulib. 2005-05-02 04:28:20 +00:00
Paul Eggert
e9d60320ab "chmod +1 foo" is now diagnosed. 2005-05-01 14:33:23 +00:00
Paul Eggert
dfdf88d425 * modechange.h (mode_free): Remove; all callers changed to invoke 'free'.
* modechange.c: Likewise.  Simplify internals a bit.  Prohibit "+0".
2005-05-01 14:28:38 +00:00
Paul Eggert
71a7e54b0d mode_free -> free 2005-05-01 14:27:51 +00:00
Paul Eggert
394b469369 (mode_free): Remove; all callers changed to invoke 'free'. 2005-05-01 14:27:09 +00:00
Paul Eggert
d4502755f4 (mode_free): Remove; all callers changed to invoke 'free'.
xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
(MODE_DONE): New constant.
(struct mode_change): Remove 'next' member.
(make_node_op_equals): New function; like the old one of the
same name, except it allocates an array.
(mode_compile, mode_create_from_ref): Use it.
(mode_compile): Allocate result as an array, not a linked list.
Parse octal string ourself, so that we catch mistakes like "+0".
(mode_adjust): Arg is an array, not a linked list.
2005-05-01 14:26:50 +00:00
Paul Eggert
67a19c8e42 Regenerate. 2005-04-30 00:07:30 +00:00
Paul Eggert
89a64c09ba Log yesterday's changes. 2005-04-30 00:06:06 +00:00
Paul Eggert
60eebc75c9 Document the last two days' worth of changes. 2005-04-30 00:05:46 +00:00
Paul Eggert
73c0749921 Fix typo in ls POSIX changes. 2005-04-29 23:53:39 +00:00
Paul Eggert
2ae6e04c14 (tv): Rename tests from obs to obs-plus
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:33 +00:00
Paul Eggert
37b4097c76 (tv): Rename tests from obs to obs-plus
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:11 +00:00
Paul Eggert
4dad901e78 Fix comment to match new behavior of "sort". 2005-04-29 23:50:52 +00:00
Paul Eggert
87aed84ff4 Don't set _POSIX2_VERSION; no longer needed. 2005-04-29 23:49:47 +00:00
Paul Eggert
8b4811a61b Don't use 'set -' 2005-04-29 21:49:59 +00:00
Paul Eggert
d62f87f164 Don't use 'set -'. 2005-04-29 21:49:20 +00:00
Paul Eggert
57b38dad6b Don't use 'set -'. Simplify test construction.
Work even if the underyling system attaches ACLs to new dirs.
2005-04-29 21:49:06 +00:00
Paul Eggert
b4dcd32039 Don't use 'set -'. Also, don't set _POSIX2_VERSION. 2005-04-29 21:48:48 +00:00
Paul Eggert
57f4da0a00 Test for new -p behavior. Omit -1 option.
The "ls --color" test wasn't being checked; add a check for
"ls --color=auto" instead.
2005-04-29 21:01:29 +00:00
Paul Eggert
483ad6b981 (enum indicator_style): New constant directory_only,
for -p.
(indicator_style_args, indicator_style_types): Set it appropriately.
(decode_switches, gobble_file, print_type_indicator):
(length_of_file_name_and_frills):
Implement the change described in NEWS.
(decode_switches): Quote ">", too.
(usage): Update to match the new behavior.  Describe ">".
2005-04-29 21:01:04 +00:00
Paul Eggert
7d06d88f7e (ls invocation): ls -p now marks only directories. New option
--indicator-style=directory equivalent to -p.
2005-04-29 21:00:01 +00:00
Paul Eggert
acb337ee55 ls -p now appends only directories. New option
--indicator-style=directory equivalent to -p.
2005-04-29 20:59:33 +00:00
Paul Eggert
93e157c519 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
(gl_PREREQ_RMDIR): Remove.
2005-04-29 05:37:52 +00:00
Paul Eggert
21947fea69 (gl_PREREQ): Require gl_STAT_MACROS. 2005-04-29 05:37:32 +00:00
Paul Eggert
42203a8afc (gl_PREREQ_TEMPNAME): Check stdint.h only once.
Don't require AC_HEADER_STAT.
2005-04-29 05:36:52 +00:00
Paul Eggert
3c1de34561 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
it.  Don't require AC_HEADER_STAT.
(gl_PREREQ_LSTAT): Remove.
2005-04-29 05:36:32 +00:00
Paul Eggert
4f3f76a4c3 (gl_FUNC_CHOWN): Don't require AC_HEADER_STAT. 2005-04-29 05:36:07 +00:00
Paul Eggert
ffbed026ca (gl_CHECK_ALL_TYPES): Don't require AC_HEADER_STAT. 2005-04-29 05:35:44 +00:00
Paul Eggert
591126eb65 (gl_PREREQ_EUIDACCESS): Don't require AC_HEADER_STAT. 2005-04-29 05:35:22 +00:00
Paul Eggert
a516ac8256 (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
[!_LIBC] Include "stat-macros.h" instead.
2005-04-29 05:34:55 +00:00
Paul Eggert
6cc5a55044 Don't mention stat-macros.h or AC_HEADER_STAT in other
m4 files, since we'll make the stat-macros module a prerequisite.
2005-04-28 16:55:43 +00:00
Paul Eggert
07f73eefb0 New file, from gnulib, except that gl_STAT_MACROS
also requires AC_HEADER_STAT.
2005-04-28 16:55:16 +00:00
Paul Eggert
9eb4658295 * file-type.c: Include file-type.h first.
* filetype.h: Don't assume <sys/stat.h> was included first.
2005-04-28 16:48:14 +00:00
Paul Eggert
142d83fcd6 Document recent modechange fixes. 2005-04-28 16:39:32 +00:00
Paul Eggert
e8b76516bf Check for ug+r and ug,+x bugs. 2005-04-28 16:32:06 +00:00
Paul Eggert
67f7a0936c Check for =u bug. 2005-04-28 16:31:49 +00:00
Paul Eggert
add32958fc Check for =xX bug. 2005-04-28 16:31:32 +00:00
Paul Eggert
b1fdaf5ac7 (main): Adjust to new modechange API.
Also, free the mode_change object when done.
2005-04-28 16:31:09 +00:00
Paul Eggert
30f5286c50 (change, umask_value): New static vars.
(reference_file): Move this static var to inside "main".
(process_file, process_files): Remove CHANGES arg; now taken from
static var.  All uses changed.
(usage): Fix incorrect description of MODE operand.
(main): For invalid mode usages, output a brief usage message.
Adjust to new modechange API.
2005-04-28 16:29:59 +00:00
Paul Eggert
5580780a37 (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
(struct mode_change): Move to modechange.c; callers don't
need to see this stuff.
(MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
(MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
(mode_change, mode_adjust): Reflect the new signatures noted above.
2005-04-28 16:29:22 +00:00
Paul Eggert
498bb2796f Include stat-macros.h, xalloc.h.
(S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
(S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
Remove.  This is now stat-macros.h's job.
(talloc): Remove.  All callers replaced by xalloc, so that
our invokers don't have to worry about reporting memory failures.
(make_node_op_equals): Remove.
(MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
New constants.
(struct mode_change): Moved here from modechange.h.
(mode_append_entry): Remove.
(mode_compile): Remove MASKED_OPS arg, since it encouraged
apps to have incorrect behavior.  Use simpler algorithm for head
and tail.  Don't futz with umask; that's now the job of mode_adjust.
Detect more invalid usages rather than having somewhat-random behavior.
Don't insert an "a=" action, as that leads to incorrect behavior.
(mode_compile, mode_create_from_ref): Return NULL on error instead
of an enum, since now there's only one way to have an error.  All
callers changed.
(mode_adjust): Accept new arg UMASK_VALUE, and interpret it
at the correct time.  Simplify calculation of "+u" and its ilk.
Don't mishandle "+X".
(mode_free): Remove "register" and localize decls.
2005-04-28 16:29:00 +00:00
Paul Eggert
3f4bb8e0c8 (Mode Structure, Changing Special Permissions):
(Conditional Executability, Numeric Modes):
These days the sticky bit is more often uses as the restricted
deletion flag, so modernize the discussion about this.
(Mode Structure): Linux/GNU -> GNU/Linux.
(Symbolic Modes): Don't imply that "+ur" or "u" is valid.
(Setting Permissions): Don't imply that "+t" is invalid.
Use "rwx" rather than the less-common "rxw" in an example.
(Copying Permissions): Say that ugo is a replacement for
a string of the other letters.  Add spaces around examples.
Use "set-user-ID" rather than "set user ID" to avoid ambiguity.
Use "+t" rather than "o+t", since POSIX doesn't specify the latter.
Mention which combinations are portable and which are GNU.
(Numeric Modes): Don't imply they aren't portable; they are
nowadays.
2005-04-28 16:28:27 +00:00
Paul Eggert
b151294523 Restore support for usages like "head -1" and "tail -1",
even when conforming to POSIX 1003.1-2001.
A few other bug fixes.
2005-04-26 16:45:12 +00:00
Paul Eggert
adcc738109 * coreutils.texi: Don't complain about head -10, etc. 2005-04-26 16:44:51 +00:00
Paul Eggert
6cb41db99f (Standards conformance): Do not mention head -10,
since it now works the same regardless of POSIX version.
(od invocation): -w N -> -w[N].
(pr invocation): -S STRING -> -SSTRING.
(fold invocation): -WIDTH works even when conforming to POSIX
1003.1-2001.
(head invocation, tail invocation): Likewise for -NUM.
(split invocation): Likewise for -LINES.
(uniq invocation): Likewise for -N.
(expand invocation, unexpand invocation): Likewise for -TAB.
(nice invocation): Likewise for -ADJUSTMENT.
(sort invocation): Clarify explanation of +N option.
(uniq invocation): Likewise.
(join invocation): Remove special case for --help, --version.
(touch invocation): Clarify explanation of date options.
(Options for date): -I timespec -> -I[timespec].
2005-04-26 16:44:24 +00:00
Paul Eggert
c906160906 (main): Don't complain about -NUM. 2005-04-26 16:43:45 +00:00
Paul Eggert
c360992faf Remove posixver.h and its uses.
(main): Don't complain about -TAB.
2005-04-26 16:43:33 +00:00
Paul Eggert
369458974f (parse_obsolete_option): Don't complain about -NUM. 2005-04-26 16:43:18 +00:00
Paul Eggert
1e63d9354d Remove posixver.h and its uses.
(main): Don't complain about -NUM option.
2005-04-26 16:43:03 +00:00
Paul Eggert
aa9faf52c4 Remove posixver.h and its uses.
(short_options): New constant, which always supports -y arg.
(COMMON_SHORT_OPTIONS): Remove.
2005-04-26 16:42:51 +00:00
Paul Eggert
8f7612bc5e Remove posixver.h and its uses.
(short_options): New constant, which always supports -S[string].
(COMMON_SHORT_OPTIONS): Remove.
2005-04-26 16:42:38 +00:00
Paul Eggert
d6ac4446c4 Remove posixver.h and its uses.
(short_options): New constant, which always supports -w[num].
(COMMON_SHORT_OPTIONS): Remove.
2005-04-26 16:42:26 +00:00
Paul Eggert
c631833814 Remove posixver.h and its uses.
(main): Always support -NUM option.
2005-04-26 16:41:59 +00:00
Paul Eggert
f9118c1c2e Remove posixver.h and its uses.
(obsolete_usage): Remove.
(join_field_1, join_field_2): Initialize to SIZE_MAX to indicate
they haven't been set yet.
(tab): Now int, not char.  Initialize to -1 to indicate white space
separates columns, so that we can use NUL as a separator.
All uses changed.
(OBSOLETE_LONG_OPTIONS, get_option): Remove.
(string_to_join_field): Remove ERR_MSG_FMT arg; a single format
suffices.  Use xstrtoul for sizes; it suffices.
(decode_field_spec): Report an error and exit on failure.  Return void,
not bool.
(add_field_list): Likewise.
(set_join_field): New function.
(enum operand_status): New enum.
(add_file_name): New args OPERAND_STATUS, JOPTION_COUNT,
PREV_OPTC_STATUS, OPTC_STATUS to handle the bewildering array of
possibilities with obsolete option parsing.
(main): Use it.  Do not depend on POSIX version.
Check for conflicting options.  Parse obsolete options -j1 and -j2
so that it is a pure extension to POSIX 1003.1-2001.
Allow '-t\0' to specify a NUL tab, stealing the code from 'sort'.
2005-04-26 16:41:45 +00:00
Paul Eggert
e8e6441094 Remove posixver.h and its uses.
(header_mode_option): Remove.
(main): Don't complain about obsolete -NUM args.
2005-04-26 16:41:29 +00:00
Paul Eggert
bcb5f0e6da Remove posixver.h and its uses.
(shortopts): New constant.  -DIGIT now always takes an optional arg.
(main): Don't preprocess arg list; that was buggy.  Use method
similar to expand.
2005-04-26 16:41:17 +00:00
Paul Eggert
cf8a5565cf Remove posixver.h and its uses.
(shortopts): New constant.  -DIGIT now always takes an optional arg.
(main): Revamp parsing of -DIGIT to let parse_tab_stops handle it.
Don't complain about -DIGIT.
2005-04-26 16:41:03 +00:00
Paul Eggert
3263435391 Remove posixver.h and its uses.
(COMMON_SHORT_OPTIONS): Remove.
(short_options): New constant.
(short_options, usage): -I now always takes an optional arg.
2005-04-26 16:40:43 +00:00
Paul Eggert
a1a83b43d4 Restore support for usages like "head -1" and "tail -1",
even when conforming to POSIX 1003.1-2001.
Fix bug with "POSIXLY_CORRECT=1 fold file -3".
join now supports a NUL field separator, e.g., "join -t '\0'".
join now detects and reports incompatible options, e.g.,
2005-04-26 16:40:16 +00:00
Paul Eggert
8e794ef5bd * coreutils.texi (install invocation): Use a= instead of 0 for
the point of departure for -m, and explain what it meeams.
(mkdir invocation, mkfifo invocation, mknod invocation):
The umask does not affect the point of departure.
2005-04-24 04:46:33 +00:00
Paul Eggert
4bc27aff4c nohup now exits with status 127 (not 1) when given an invalid option. 2005-04-23 06:01:50 +00:00
Paul Eggert
4e7d4dfd8d (main): If getopt fails, exit with status 127, not status 1. 2005-04-23 05:57:33 +00:00
Paul Eggert
39ecad7d9a * src/nice.c (main): Report proper program name when getopt finds trouble. 2005-04-23 05:41:16 +00:00
Paul Eggert
d3eadc9cbf (main): Report proper program name when getopt finds trouble. 2005-04-23 05:39:55 +00:00
Paul Eggert
db3f41ec77 Test for "mkdir -m =+x dir" bug. 2005-04-22 23:54:05 +00:00
Paul Eggert
fde1a93ab8 (main): Compile mode with MODE_MASK_ALL and initial umask. 2005-04-22 23:53:33 +00:00
Paul Eggert
18f6ab0228 (main): Compile mode with MODE_MASK_ALL and initial umask. 2005-04-22 23:53:13 +00:00
Paul Eggert
5ce302fba5 (main): Compile mode with MODE_MASK_ALL and initial umask. 2005-04-22 23:52:35 +00:00
Paul Eggert
e8feb9eaf5 Fix bug with "mkdir -m =+x dir"; the umask was being ignored
when the "+x" was being evaluated.
2005-04-22 23:52:05 +00:00
Paul Eggert
bd82be6ca9 "mkdir -m =+x dir" no longer ignores the umask when evaluating "+x",
and similarly for mkfifo and mknod.
2005-04-22 23:51:34 +00:00
Paul Eggert
406dac3861 Regenerate. 2005-04-21 00:34:47 +00:00
Paul Eggert
de80f585d6 Port test cases to Microsoft-Windows-related environments,
following suggestions from Eric Blake.
2005-04-21 00:30:51 +00:00
Paul Eggert
2d8996299e Undo previous change.
(sig): New var.  Use it insted of "trap '' CHLD".
Append $EXEEXT to executable name.
2005-04-21 00:30:35 +00:00
Paul Eggert
82e7b3c7ca Undo previous change.
(dd, dd2): New vars, which use $EXEEXT.  All uses of dd and dd2 changed.
2005-04-21 00:30:13 +00:00
Paul Eggert
516e0734b5 (TESTS_ENVIRONMENT): Add EXEEXT. 2005-04-21 00:29:50 +00:00
Paul Eggert
16ded268dd Fetish.pm renamed to Coreutils.pm. 2005-04-20 07:58:09 +00:00
Paul Eggert
42ff8eeaae "fetish" -> "coreutils" in more places. 2005-04-20 07:57:27 +00:00
Paul Eggert
9118673ca3 Renamed Fetish package to Coreutils. 2005-04-20 07:54:54 +00:00
Paul Eggert
6195b00513 (EXTRA_DIST): Add Coreutils.pm and remove Fetish.pm. 2005-04-20 07:53:53 +00:00
Paul Eggert
ee3fb6fadc (package Coreutils): Renamed from package Fetish. 2005-04-20 07:53:09 +00:00
Paul Eggert
50397b4278 * tests/mv/setup (dot_mount_point): Use stat -L. 2005-04-19 07:36:59 +00:00
Paul Eggert
e3f1529533 (dot_mount_point): Use stat -L, in case the
directory is actually a symbolic link.
2005-04-19 07:36:39 +00:00
Paul Eggert
f3a8588fd5 * tests/mv/mv-special-1: Use test -p to test for fifos. 2005-04-19 07:26:46 +00:00
Paul Eggert
a8f2520b15 Use test -p to test for fifos, rather
than the (incorrect) test -f and the (inadequate) ls.  ls is
inadequate because on some hosts a buggy mv will create a file of
the wrong type (problem reported by Eric Blake).  Skip this test
if test -p doesn't work.
2005-04-19 07:26:18 +00:00
Paul Eggert
f55ce3a2dc * tests/chmod/setgid: Use numeric group ids, not symbolic group names. 2005-04-19 07:08:28 +00:00
Paul Eggert
822c4d9a83 Use numeric group ids, not symbolic group names,
since the latter can have shell metacharacters in them (e.g., spaces).
2005-04-19 07:08:08 +00:00
Paul Eggert
08e7216b2c Regenerate. 2005-04-18 23:38:19 +00:00
Paul Eggert
441a757dc8 fetish -> coreutils in some more places 2005-04-18 23:33:55 +00:00
Paul Eggert
9f79304ead (FETISH_GROUP): Renamed from COREUTILS_GROUP. 2005-04-18 23:33:29 +00:00
Paul Eggert
a57516e20f (COREUTILS_GROUPS): Renamed from FETISH_GROUPS. 2005-04-18 23:33:10 +00:00
Paul Eggert
bb40c7aeca (LDADD, $(PROGRAMS)): fetish -> coreutils. 2005-04-18 23:32:49 +00:00
Paul Eggert
09e689caf6 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
variable prefixes.
2005-04-18 23:32:29 +00:00
Paul Eggert
bf9a432a16 (gl_MACROS): Use gl_ or coreutils_ rather than fetish_ for prefixes. 2005-04-18 23:32:12 +00:00
Paul Eggert
973039d61f (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
variable names.
2005-04-18 23:31:42 +00:00
Paul Eggert
d1f3b4fe16 fetish->coreutils in compilation command. 2005-04-18 23:31:22 +00:00
Paul Eggert
93e5749eea coreutils->fetish in comment. 2005-04-18 23:30:55 +00:00
Paul Eggert
8159d49a2a (noinst_LIBRARIES): fetish -> coreutils.
(libcoreutils_a_SOURCES): Renamed from libfetish_a_SOURCES.
All uses changed.
(libcoreutils_a_LIBADD): Renamed from libfetish_a_LIBADD.
All uses changed.
(libcoreutils_a_DEPENDENCIES): Renamed from libfetish_a_DEPENDENCIES.
All uses changed.
2005-04-18 23:30:41 +00:00
Paul Eggert
f6a798eeef (emit_upload_commands): Remove fetish.sf.net. 2005-04-18 23:30:19 +00:00
Paul Eggert
bfc7e64e41 (ftp): Remove fetish.sf.net. 2005-04-18 23:29:51 +00:00
Paul Eggert
9f6ffbac31 Fix typo in comment. 2005-04-18 18:48:22 +00:00
Paul Eggert
17d40155b4 Use "cat", not "test", to test for
../../src/dd.  Problem reported by Eric Blake.
2005-04-18 18:37:36 +00:00
Jim Meyering
60910381af *** empty log message *** 2005-04-18 07:05:11 +00:00
Jim Meyering
c64856e992 Don't include stat-macros.h directly. system.h does that. 2005-04-18 07:03:50 +00:00
Paul Eggert
9b55e54a58 Work around a couple of "make check" failures reported for Cygwin
and ash by Eric Blake.
2005-04-18 06:36:45 +00:00
Paul Eggert
1563f3241e Skip this test if "trap '' CHLD" doesn't work. 2005-04-18 06:35:22 +00:00
Paul Eggert
2cb82c08c6 Skip this test if ../../src/dd isn't readable. 2005-04-18 06:35:06 +00:00
Jim Meyering
d5cca2b3b2 *** empty log message *** 2005-04-16 06:38:22 +00:00
Jim Meyering
037421542d (S_TYPEISSHM): Remove definition.
Get the definition by including "stat-macros.h", instead.
2005-04-16 06:38:20 +00:00
Paul Eggert
776587cbea Fix test suite problems reported by Eric Blake on Cygwin. 2005-04-14 20:35:59 +00:00
Paul Eggert
9ca6f88366 (dot_mount_point): Use stat rather than df, as
it's more reliable.
(other_partition_tmpdir): Remove df from name as that would be
misleading now.
2005-04-14 20:35:34 +00:00
Paul Eggert
b6820a451d Ignore chatter about when files are removed,
since POSIX doesn't require rename to fail across file systems.
2005-04-14 20:35:14 +00:00
Jim Meyering
181e78b2d6 *** empty log message *** 2005-04-14 12:13:26 +00:00
Jim Meyering
22abf053ca Correct typo, fchmod -> fchown, in a comment. 2005-04-14 12:09:00 +00:00
Paul Eggert
5e54cfb18b * getdate.y (zone): Allow relunit_snumber after tZONE. 2005-04-13 18:42:13 +00:00
Paul Eggert
f3f4a9add0 (zone): Allow relunit_snumber after tZONE, so
that "UTC +1 second" continues to work.  Problem reported
by Dmitry V. Levin.
(relunit_snumber): New rule.
(relunit): Use it.
2005-04-13 18:42:00 +00:00
Paul Eggert
a3cdfd525c src/ls.c (usage): "uid" -> "user ID". 2005-04-12 07:41:42 +00:00
Paul Eggert
54ba3e1287 (usage): uid -> user ID 2005-04-12 07:39:38 +00:00
Paul Eggert
94e747e3ac * getdate.y: Fix problem with parsing GMT time stamps during London summers. 2005-04-12 07:21:48 +00:00
Paul Eggert
1d6ad9ddf2 (universal_time_zone_table): New constant.
(time_zone_table): Remove GMT, UT, UTC entries; they're now in
universal_time_zone_table.
(lookup_zone): Prefer universal_time_zone_table to
local_time_zone_table, so that "GMT" time stamps are allowed in
London during the summer.  Problem reported by Ian Abbott.
2005-04-12 07:21:18 +00:00
Jim Meyering
21e982ed81 *** empty log message *** 2005-04-12 06:47:49 +00:00
Jim Meyering
aa3d627011 (tsort): Use "%s" as the format string, rather than a diagnostic or a file name. 2005-04-12 06:47:44 +00:00
Jim Meyering
0510017888 (compare_files): Remove declaration of unused local. 2005-04-12 06:46:10 +00:00
Paul Eggert
19393fd886 For consistency, standardize on "user ID" rather than "uid". 2005-04-12 05:53:02 +00:00
Paul Eggert
7078f2f4bd Reword usage, man pages to use "user ID" rather than "uid" etc. 2005-04-12 05:52:37 +00:00
Paul Eggert
6fabf88aec (usage, main): Use "user ID", not "UID", and similarly for "group ID". 2005-04-12 05:44:47 +00:00
Paul Eggert
064c7a4273 (usage): Use "user ID", not "UID", and similarly
for "group ID".
2005-04-12 05:44:16 +00:00
Paul Eggert
369a314889 Reword to match coreutils.texi. 2005-04-12 05:43:36 +00:00
Paul Eggert
4b087b295a Reword to match user manual. 2005-04-12 05:43:19 +00:00
Paul Eggert
9149393134 For consistency, standardize on "user ID" rather
than "uid" or "UID" or "user id".  Similarly for "group ID".
2005-04-12 05:42:55 +00:00
Paul Eggert
3aeec3ceed Regenerate. 2005-04-11 20:21:07 +00:00
Paul Eggert
d233b6b31e Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:15:45 +00:00
Paul Eggert
348dfa3987 Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:13:42 +00:00
Paul Eggert
786ebb2cec Include stdio_safer.h.
(check_file): Don't assume fopen cannot return stdin or stdout.
2005-04-11 20:13:26 +00:00
Paul Eggert
45e6c262b9 (next_file): Don't assume fopen cannot return stdin. 2005-04-11 20:13:10 +00:00
Paul Eggert
8e8520b0ba (have_read_stdin): Remove; no longer needed. All uses
removed.
(tsort): Do not assume fopen can't return stdin.
Close stdin before returning.  All uses changed.
2005-04-11 20:12:51 +00:00
Paul Eggert
39d496f075 Include unistd-safer.h.
(touch): Use fd_safer.
2005-04-11 20:12:32 +00:00
Paul Eggert
857b9db0e0 Include stdio-safer.h.
(tee): Use fopen_safer.
2005-04-11 20:12:17 +00:00
Paul Eggert
99eb6d3a02 Include unistd-safer.h rather than fcntl-safer.h.
(recheck, tail_file): Use fd_safer rather than open_safer.
2005-04-11 20:12:01 +00:00
Paul Eggert
9db4c89700 Include unistd-safer.h.
(copy_to_temp): Use fd_safer.
(tac_file): Don't assume fopen cannot return stdin.
2005-04-11 20:11:45 +00:00
Paul Eggert
da5dc50751 (bsd_sum_file, sysv_sym_file):
Use same pattern as elsewhere for checking for stdin.
2005-04-11 20:11:27 +00:00
Paul Eggert
a498869855 Include unistd-safer.h.
(cwrite): Use fd_safer.  Replace mystery constant 0666 with symbolic
version, as POSIX requires.
2005-04-11 20:11:08 +00:00
Paul Eggert
66729cdcd3 Include unistd-safer.h.
(create_temp_file): Use fd_safer.
(xfclose): Don't assume fileno (stdin) == STDIN_FILENO, etc.
2005-04-11 20:10:52 +00:00
Paul Eggert
0d49dd9de2 Include unistd-safer.h.
(wipename): Use fd_safer on directory file descriptor.
(wipefile): Remove special case for /dev/fd/* on older hosts.
It didn't work in general, and wasn't documented.
Use fd_safer.
2005-04-11 20:10:23 +00:00
Paul Eggert
caca482cde (main): Don't assume fopen returns stdout after closing
stdout.  Use freopen instead.
2005-04-11 20:10:00 +00:00
Paul Eggert
02b7510866 Include stdio-safer.h.
(open_file): Use fopen_safer.
(close_file): Don't assume fopen does not return stdin.
2005-04-11 20:09:42 +00:00
Paul Eggert
c2377708ec (paste_serial): Don't assume fopen does not return stdin. 2005-04-11 20:09:22 +00:00
Paul Eggert
ab860aae65 (check_and_close): Don't assume fopen does not return stdin. 2005-04-11 20:09:01 +00:00
Paul Eggert
8e14d7ffbb Include unistd-safer.h.
(main): Don't dup stderr to stdin or stdout by mistake.
2005-04-11 20:08:30 +00:00
Paul Eggert
e972b27d05 (digest_file, digest_check):
Don't assume that fopen does not return stdin.
2005-04-11 20:08:11 +00:00
Paul Eggert
aba88afdce Include stdio-safer.h.
(main): Use fopen_safer.  Simplify the resulting code.
2005-04-11 20:07:54 +00:00
Paul Eggert
ea778b6463 (head_file): Don't assume open does not return 0. 2005-04-11 20:07:37 +00:00
Paul Eggert
cc4407f0fe (dc_parse_file): Don't assume fopen does not return stdin. 2005-04-11 20:07:22 +00:00
Paul Eggert
329448f75e Include stdio-safer.h.
(input_desc): Remove unnecessary static initialization.
(set_input_file): Use STDIN_FILENO, not 0.
(create_output_file): Use fopen_safer.
2005-04-11 20:07:00 +00:00
Paul Eggert
0b8c662cf2 Include unistd-safer.h.
(copy_reg): Use fd_safer.
2005-04-11 20:06:34 +00:00
Paul Eggert
fd48557688 Include stdio-safer.h.
(compare_files): Exit right away on I/O error rather than continuing
and producing confusing output and error messages.
Return void, not int; all callers changed.
Use fopen_safer to avoid confusion with file descriptors.
2005-04-11 20:06:13 +00:00
Paul Eggert
aaffac9b6a Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:05:45 +00:00
Paul Eggert
791d815ca0 (gl_PREREQ): Don't require gl_FCNTL_SAFER. 2005-04-11 20:05:34 +00:00
Paul Eggert
366a942b4d (gl_UNISTD_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
Invoke gl_PREREQ_FD_SAFER.
(gl_PREREQ_FD_SAFER): New macro.
2005-04-11 20:05:20 +00:00
Paul Eggert
ed8af4543d (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ. 2005-04-11 20:04:57 +00:00
Paul Eggert
6a0400397d Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:04:29 +00:00
Paul Eggert
5af96ecaf5 (libfetish_a_SOURCES): Remove dup-safer.c,
fcntl-safer.h, fopen-safer.c, open-safer.c, stdio-safer.h,
unistd-safer.h.
2005-04-11 20:03:40 +00:00
Paul Eggert
6d2aaeaa97 (fd_safer): New decl. 2005-04-11 20:03:22 +00:00
Paul Eggert
24560041a8 Include unistd-safer.h.
(save_cwd): Use fd_safer.
2005-04-11 20:03:04 +00:00
Paul Eggert
f4efb825d2 Include stdio-safer.h.
(getusershell): Use fopen_safer.
2005-04-11 20:02:43 +00:00
Paul Eggert
8bd8ca4bf3 Include unistd-safer.h.
(getloadavg): Use fd_safer.
2005-04-11 20:02:28 +00:00
Paul Eggert
01dbbdf612 Include unistd-safer.h.
(fts_safe_changedir): Use fd_safer.
2005-04-11 20:02:06 +00:00
Paul Eggert
74fdf19ae7 Include unistd-safer.h first, to test interface.
(dup_safer) [!deefined F_DUPD]: Use new fd_safer function instead of
rolling our own code.
2005-04-11 20:01:46 +00:00
Paul Eggert
10bcc8d795 Initial revision 2005-04-11 20:01:20 +00:00
Jim Meyering
faac042790 (chopt_free): Mark parameter as unused. 2005-04-10 13:44:45 +00:00
Jim Meyering
084e64d1b7 . 2005-04-10 13:41:44 +00:00
Jim Meyering
31d1fd1eef . 2005-04-09 17:29:20 +00:00
Jim Meyering
493aba2ae5 (close_stdout_wrapper): Likewise.
Don't close STDOUT_FILENO explicitly; close_stdout does it.
2005-04-09 16:29:29 +00:00
Jim Meyering
c06188c05c (__attribute__, ATTRIBUTE_UNUSED): Define.
Mark parameter `sp' with ATTRIBUTE_UNUSED.
2005-04-09 14:19:49 +00:00
Jim Meyering
e115c60a2a (quit): Define with ATTRIBUTE_NORETURN.
Now that close_stdout closes standard output unconditionally,
these workarounds for dd and cat are no longer necessary.
(close_stdout_wrapper): Remove function.
(main): Call atexit with close_stdout, instead.
2005-04-09 14:15:22 +00:00
Jim Meyering
58415b5d5d *** empty log message *** 2005-04-09 14:09:00 +00:00
Jim Meyering
c522a489df (__attribute__, ATTRIBUTE_UNUSED): Define.
(exit_failure_callback, fallback_failure_callback): Mark unused
parameters with ATTRIBUTE_UNUSED.
2005-04-09 14:08:57 +00:00
Jim Meyering
22210b83b4 (canon_host) [HAVE_GETADDRINFO]: Use memset
rather than `= { 0 };' to initialize local `hint'.
2005-04-09 14:08:30 +00:00
Jim Meyering
32e72c50cc *** empty log message *** 2005-04-09 13:57:56 +00:00
Jim Meyering
0eb83b6534 Readability nit:
Change this:
  #  define __attribute__(x)
  to this:
  #  define __attribute__(x) /* empty */
2005-04-09 13:57:51 +00:00
Jim Meyering
517ac833b0 *** empty log message *** 2005-04-09 13:29:01 +00:00
Jim Meyering
5fb6300448 (posixtime) [lint]: Avoid spurious warning from gcc-4's
-Wuninitialized: initialize tm0.tm_year.
2005-04-09 13:28:25 +00:00
Jim Meyering
71984394f3 *** empty log message *** 2005-04-09 12:35:44 +00:00
Jim Meyering
89e0ab6c9e (humblock): Set *options even when returning due to
xstrtoumax conversion failure.  Thanks to a used-uninitialized
warning from gcc-4.
2005-04-09 12:35:41 +00:00
Jim Meyering
56e6bb413f *** empty log message *** 2005-04-09 12:00:36 +00:00
Jim Meyering
3a270c871e *** empty log message *** 2005-04-09 11:57:02 +00:00
Jim Meyering
00e2488d87 (rm invocation): Say that --recursive removes
listed directories too, not just their contents.
2005-04-09 11:56:55 +00:00
Jim Meyering
113bb1ac7b (usage): Mention that --recursive removes listed
directories too, not just their contents.
Say that by default, rm does not remove directories.
2005-04-09 10:39:17 +00:00
Jim Meyering
80607d62d1 *** empty log message *** 2005-04-09 07:25:06 +00:00
Jim Meyering
29cb226323 (sc_system_h_headers): Propagate exit status through trap. 2005-04-09 07:24:49 +00:00
Jim Meyering
6cd4eed0ba Don't include "timespec.h". system.h does that. 2005-04-09 07:23:50 +00:00
Paul Eggert
8ae46b55b4 (iread, iwrite): Use char * buffer, not void *, so we can do pointer
arithmetic on it.
2005-04-09 06:16:14 +00:00
Paul Eggert
c69ead6596 Regenerate. 2005-04-09 05:03:01 +00:00
Paul Eggert
4c8c049f7a Signal-handling cleanup motivated by core dumps in dd. 2005-04-09 05:00:40 +00:00
Paul Eggert
ed74cc7c26 (SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.
2005-04-09 04:57:37 +00:00
Paul Eggert
9fd2c631bf Remove all uses of signals; modern hosts have
/dev/random and don't need this gorp.
Do not include signal.h.
(env, sigill_handler, isaac_seed_machdep): Remove.  All uses removed.
2005-04-09 04:57:15 +00:00
Paul Eggert
bc7c9f0ebc (SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.
2005-04-09 04:56:10 +00:00
Paul Eggert
4f0b9dbd17 Do not include safe-read.h or full-write; no longer needed.
(process_signals): Add forward decl.
(SA_NOCLDSTOP, sigprocmask, sigset_t) [!defined SA_NOCLDSTOP]:
New macros.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(SA_NODEFER) [!defined SA_NODEFER]: New macro.
(SA_RESETHAND) [!defined SA_RESETHAND]: New macro.
(caught_signals, interrupt_signal, info_signal_count, catch_siginfo):
New vars.
(usage): Mention -USR1 versus -INFO.
(cleanup): Don't invoke print_stats; the caller must do it now.
All callers changed.
(quit): Process signals just before exiting.
(interrupt_handler): Simply record the signal and return.
(siginfo_handler): Simply increment the signal counter and return.
(install_handler): Remove, replacing with:
(install_signal_handlers, process_signals, iread, iwrite):
New functions.  All callers to safe_read and full_write replaced
by iread and iwrite.  All callers to install_handler replaced by
install_handlers.

Do not include inttostr.h, no longer needed.
(print_stats, main): Rewrite and simplify formats to use PRIuMAX
instead of umaxtostr.
(print_stats): Work even in languages that have special
forms for two of things, for r_truncate and w_bytes.  We can't
fix delta_s in this way, since ngettext doesn't support floating-point.
(main): Rewrite to avoid casts.
2005-04-09 04:55:40 +00:00
Paul Eggert
f33b6dab82 (SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
(delete_all_files): New arg IN_SIGNAL_HANDLER, to avoid undefined
behavior when called from a signal handler.  All uses changed.
(main) [!defined SA_NOCLDSTOP]:
Use siginterrupt to specify that system calls should be interrupted.
2005-04-09 04:55:05 +00:00
Paul Eggert
65d8e81ce7 (RETSIGTYPE): Remove; no longer needed. All uses replaced with void. 2005-04-09 04:54:23 +00:00
Paul Eggert
33a5790031 (gl_PREREQ_NANOSLEEP): Check for siginterrupt. 2005-04-09 04:53:53 +00:00
Paul Eggert
b1cbacc40c (gl_MACROS): Check for siginterrupt.
(gl_CHECK_ALL_TYPES): Do not require AC_TYPE_SIGNAL.
2005-04-09 04:52:54 +00:00
Paul Eggert
e4abcff12f (rpl_nanosleep): Include "timespec.h" before macros
that might redefine system include files.
(siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
(my_usleep): Use NULL rather than (void *) 0.
(rpl_nanosleep) [!defined SA_NOCLDSTOP]:
Use siginterrupt to specify that system calls should be interrupted.
(rpl_nanosleep): Move initialization of suspended closer to call of
my_usleep.
2005-04-09 04:52:25 +00:00
Paul Eggert
a3d3cf669c (dd invocation): Document the distinction between
INFO and USR1 for dd, and the effect of POSIXLY_CORRECT here.
2005-04-09 04:51:52 +00:00
Paul Eggert
c7eda8c16f Document that dd no longer treats QUIT or PIPE specially,
and when conforming to POSIX no longer treats USR1 specially.
Document that dd no longer dumps core when handling signals.
2005-04-09 04:51:11 +00:00
Jim Meyering
b57df8650a *** empty log message *** 2005-04-07 20:10:54 +00:00
Jim Meyering
3dcd2f2dc6 *** empty log message *** 2005-04-07 20:10:17 +00:00
Jim Meyering
66374c61ee (binary_operator) [LINT]: Initialize lt and rt to 0. 2005-04-07 20:10:03 +00:00
Jim Meyering
3bad149c95 (digest_check) [LINT]: Initialize hex_digest to NULL. 2005-04-07 20:09:46 +00:00
Jim Meyering
ed3d178804 *** empty log message *** 2005-04-07 17:14:45 +00:00
Jim Meyering
d736105221 (binop): Move function definition to precede first use so we can...
(binop): ...remove prototype.
2005-04-07 17:14:14 +00:00
Jim Meyering
6d2f006d8d *** empty log message *** 2005-04-07 17:12:32 +00:00
Jim Meyering
d55d4b6c81 (is_int, age_of, binop): Declare char *' parameters to be const'. 2005-04-07 17:12:27 +00:00
Jim Meyering
eb3520398b *** empty log message *** 2005-04-06 07:41:20 +00:00
Jim Meyering
eafdfb0b5e Remove rw. 2005-04-06 07:41:14 +00:00
Jim Meyering
e4b30a18d1 Remove file -- many invalid message strings. 2005-04-06 07:40:51 +00:00
Paul Eggert
594060f75e Regenerate. 2005-04-05 22:25:26 +00:00
Paul Eggert
d5c4857ed2 Add examples to basename, cat, chgrp, chown, dirname. 2005-04-05 22:23:29 +00:00
Paul Eggert
e8a0c946f5 (usage): Add examples. 2005-04-05 22:21:50 +00:00
Paul Eggert
10b4a29f64 (.x.1): Remove "COMMAND.td/" from examples. 2005-04-05 22:21:14 +00:00
Paul Eggert
26a6039e27 Add examples to cat, chown, chgrp, basename, dirname. Change ln examples
to match that format.
2005-04-05 22:20:31 +00:00
Paul Eggert
a07556afb1 (cat invocation, chown invocation)
(chgrp invocation, basename invocation, dirname invocation):
Add examples, which are copies of the examples newly added
to the usage messages.
(ln invocation): Use same format as other examples above,
for consistency.
2005-04-05 22:20:05 +00:00
Jim Meyering
a24580b5c4 *** empty log message *** 2005-04-05 11:53:59 +00:00
Jim Meyering
44ebdc8d01 (usage): Mention that some shells provide a built-in function by the same name. 2005-04-05 11:53:47 +00:00
Jim Meyering
e4a293284f (usage): Mention that some shells provide a
built-in function by the same name.
2005-04-05 11:53:38 +00:00
Jim Meyering
6d619b4ab7 . 2005-04-05 11:45:49 +00:00
Jim Meyering
41bc49115d *** empty log message *** 2005-04-05 11:45:06 +00:00
Jim Meyering
4c78f3da38 (SUBDIRS): Add tee. 2005-04-05 11:44:54 +00:00
Jim Meyering
a3f5d530ab (AC_CONFIG_FILES): Add tests/tee/Makefile. 2005-04-05 11:44:32 +00:00
Jim Meyering
7d2ad53db7 . 2005-04-05 11:43:03 +00:00
Jim Meyering
dce4a77a99 (tee): When closing files, do not close stdout,
leave this job to close_stdout() instead.
From Dmitry V. Levin.
2005-04-05 11:40:53 +00:00
Jim Meyering
78eefa7b18 *** empty log message *** 2005-04-05 08:56:15 +00:00
Jim Meyering
bc2c07f174 Add Kinyarwanda (rw). 2005-04-05 08:56:04 +00:00
Jim Meyering
f41b4a4bbf version: 5.3.0 2005-04-05 08:55:06 +00:00
Jim Meyering
e3cb2a0a05 (usage): Move USAGE_BUILTIN_WARNING to end of --help output. 2005-04-04 22:30:57 +00:00
Jim Meyering
ce1ecb48b7 (USAGE_BUILTIN_WARNING): remove trailing newline 2005-04-04 22:30:22 +00:00
Jim Meyering
8c3ce409f1 . 2005-04-04 22:29:37 +00:00
Jim Meyering
d09a97d9b5 *** empty log message *** 2005-04-04 22:00:11 +00:00
Jim Meyering
f790ad9dd0 Remove `DESCRIPTION' section, now that --help includes it. 2005-04-04 21:59:58 +00:00
Jim Meyering
fb57ce0811 *** empty log message *** 2005-04-04 21:58:09 +00:00
Jim Meyering
3905751383 (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:57:45 +00:00
Jim Meyering
63a63316a1 *** empty log message *** 2005-04-04 21:57:32 +00:00
Jim Meyering
d3632f3571 (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:57:04 +00:00
Jim Meyering
d209b0f75e (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:56:01 +00:00
Jim Meyering
84812b110d (usage): Mention that some shells provide a built-in
function by the same name.
2005-04-04 21:55:06 +00:00
Jim Meyering
97cce6e83f (USAGE_BUILTIN_WARNING): New macro. 2005-04-04 21:51:30 +00:00
Paul Eggert
cf6866dd8b getdate patch for empty string near dst changes. 2005-04-04 19:52:07 +00:00
Paul Eggert
6be7cfe6d3 (parser_control): rels_seen is now a boolean, not a
count, since there's no maximum.  All uses changed.
Add member dsts_seen.
(local_zone): Accumulate dsts_seen rather than relying on tm_isdst
not being INT_MAX.
(get_date): Initialize dsts_seen, and check that it doesn't go over 1.
Use pc_rels_seen to decide whther a date is absolute.

(number): Don't overwrite year.
(get_date): Initialize pc.year.digits to 0, not 4, to enable above check.
2005-04-04 19:51:49 +00:00
Jim Meyering
7c7da0b74e *** empty log message *** 2005-04-03 13:13:06 +00:00
Jim Meyering
bb0eb686fc (main): Fix off-by-one error.
pr -$(perl -e 'print "0"x63 . 1') would write one byte beyond the
end of a malloc'd buffer.
2005-04-03 13:12:53 +00:00
Jim Meyering
05613505e5 Correct indentation of the two just-split lines. 2005-04-01 22:29:15 +00:00
Jim Meyering
91377273e6 split two longer-than-80-column lines 2005-04-01 20:06:22 +00:00
Jim Meyering
ae9d3a5ab4 *** empty log message *** 2005-04-01 20:05:37 +00:00
Jim Meyering
a76fbd821b (main): Free column_count_string when done with it. 2005-04-01 20:05:33 +00:00
Jim Meyering
0df327a7a9 . 2005-04-01 07:44:41 +00:00
Jim Meyering
04bef369f1 *** empty log message *** 2005-04-01 07:40:44 +00:00
Jim Meyering
9c9c4327e2 Don't let pr treat +1:-1 like +1:18446744073709551615.
(neg-page): Add a test for this.
2005-04-01 07:40:33 +00:00
Jim Meyering
361d16aba9 *** empty log message *** 2005-04-01 07:39:49 +00:00
Jim Meyering
a21d9a21de Don't let pr treat +1:-1 like +1:18446744073709551615.
(strtoumax): Remove declaration.
(first_last_page): Use xstrtoumax in place of strtoumax,
so we don't interpret a negative page number (e.g., in an option
like --pages=1:-1) as valid.
2005-04-01 07:39:45 +00:00
Paul Eggert
015edf8dc7 (gl_READUTMP): Restore the requirement for gl_FUNC_FREE. 2005-03-30 07:41:47 +00:00
Paul Eggert
c5401e922e * readutmp.m4 (gl_READUTMP): Restore requirement for gl_FUNC_FREE. 2005-03-30 07:41:18 +00:00
Paul Eggert
da54271e95 * readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume
utmp file is a regular file.
2005-03-30 07:40:17 +00:00
Paul Eggert
c315ff58b3 (read_utmp) [!defied UTMP_NAME_FUNCTION]: Add support for options.
Don't assume the file is a regular file.
2005-03-30 07:39:33 +00:00
Paul Eggert
bd3b936ce7 who, pinky, uptime, and users now check for valid PIDs in supposed login
sessions.
2005-03-30 05:25:10 +00:00
Paul Eggert
78abb1a757 (who): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero or two arguments.
Omit duplicate code in 2-arg case.
(UT_PID): Moved to ../lib/readutmp.h.
2005-03-30 05:24:05 +00:00
Paul Eggert
08b5977867 (users): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
2005-03-30 05:23:17 +00:00
Paul Eggert
733abad3ed (uptime): New arg OPTIONS. All uses changed.
(main): Check PIDs when invoked with zero arguments.
2005-03-30 05:22:30 +00:00
Paul Eggert
6584af72c9 (short_pinky): Adjust to read_utmp signature change. 2005-03-30 05:21:31 +00:00
Paul Eggert
c769533ecd * readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove.  All uses removed.  This module
no longer relies on free (NULL) working.
2005-03-30 05:20:57 +00:00
Paul Eggert
36b0e99418 (gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove.  All uses removed.  This module
no longer relies on free (NULL) working.
2005-03-30 05:20:25 +00:00
Paul Eggert
3e5310af44 readutmp changes to allow checking for live pids 2005-03-30 05:19:48 +00:00
Paul Eggert
ec764b0a95 (read_utmp): New arg OPTIONS. All uses changed.
(UT_PID): Moved here from ../src/who.c.
(READ_UTMP_CHECK_PIDS): New constant.
2005-03-30 05:19:11 +00:00
Paul Eggert
196fb1bc5c (read_utmp): New arg OPTIONS. All uses changed.
Include signal.h, stdbool.h.
(desirable_utmp_entry): New function.
(read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
using x2nrealloc, to simplify logic.
(read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
size calculation.
2005-03-30 05:18:37 +00:00
Jim Meyering
a3710b1ef6 *** empty log message *** 2005-03-29 19:01:43 +00:00
Jim Meyering
68bc3503b8 (ptr_align): Declare `ptr' parameter to be a
`const' pointer, since this function never writes through it.
2005-03-29 19:01:34 +00:00
Jim Meyering
24e7f6c248 Remove #if-0'd-out code. 2005-03-29 14:09:35 +00:00
Jim Meyering
31927b4957 *** empty log message *** 2005-03-29 12:06:20 +00:00
Jim Meyering
4ae2c738d4 *** empty log message *** 2005-03-29 12:03:31 +00:00
Jim Meyering
363dc86fce (long_options): Use NULL, not `0'. 2005-03-29 11:56:10 +00:00
Jim Meyering
a2131c5559 *** empty log message *** 2005-03-29 08:19:25 +00:00
Jim Meyering
c34d598405 Indent cpp directives. 2005-03-29 08:19:20 +00:00
Jim Meyering
9f9012414f *** empty log message *** 2005-03-29 07:19:29 +00:00
Jim Meyering
0f7921b86f Return success on systems such as cygwin
where no absolute path name can be longer than PATH_MAX.
2005-03-29 07:18:58 +00:00
Jim Meyering
5537c89eb7 . 2005-03-28 21:58:07 +00:00
Jim Meyering
00fcde597c *** empty log message *** 2005-03-28 19:30:14 +00:00
Jim Meyering
129f0dca9d (print_sep_string):
Add `void' to make this an ANSI-style function declaration.
2005-03-28 19:29:54 +00:00
Jim Meyering
15669cf4e1 (ds_init): Add `void' to make this an ANSI-style function declaration. 2005-03-28 19:29:17 +00:00
Jim Meyering
f00c1cbeb8 (get_width_format) [HAVE_RINT && HAVE_MODF && HAVE_FLOOR]:
Add `void' to make this an ANSI-style function declaration.
2005-03-28 19:28:33 +00:00
Jim Meyering
3a14f69532 (sc_tight_scope): Adjust to catch any
new declarations like that of stty.c's `speeds'.
2005-03-28 19:22:36 +00:00
Jim Meyering
d7f7c39c11 (speeds): Declare this array to be static. 2005-03-28 18:41:09 +00:00
Jim Meyering
9ea824018a *** empty log message *** 2005-03-28 18:21:26 +00:00
Jim Meyering
734cf53a3c (long_options): Use NULL, not `0'. 2005-03-28 18:21:13 +00:00
Jim Meyering
1df790f540 *** empty log message *** 2005-03-28 18:18:35 +00:00
Jim Meyering
a73da0345c (follow_mode_string): Use NULL, not `0'. 2005-03-28 18:18:21 +00:00
Jim Meyering
3cae70f6e6 (long_options): Use NULL, not `0'. 2005-03-28 18:17:40 +00:00
Jim Meyering
eab72607cc (docolon): Use NULL, not `0'. 2005-03-28 18:17:02 +00:00
Jim Meyering
1c9ab7efaf *** empty log message *** 2005-03-28 18:16:26 +00:00
Jim Meyering
ce70c7bdc4 (print_user): Use NULL, not `0'. 2005-03-28 18:16:06 +00:00
Jim Meyering
79c88de2cc (print_uptime): Use NULL, not `0'. 2005-03-28 18:15:16 +00:00
Jim Meyering
31e6aa70e6 (delimit_method_string): Use NULL, not `0'. 2005-03-28 18:14:15 +00:00
Jim Meyering
5208f4b7ba (longopts, time_args): Use NULL, not `0'. 2005-03-28 18:13:40 +00:00
Jim Meyering
b0f4666d02 (main): Use NULL, not `0'. 2005-03-28 18:11:18 +00:00
Jim Meyering
77c6ac360f (long_options): Use NULL, not `0'. 2005-03-28 18:10:49 +00:00
Jim Meyering
8d90b78f17 (long_options, mergefps): Use NULL, not `0'. 2005-03-28 18:09:51 +00:00
Jim Meyering
dc9390825f (longopts): Use NULL, not `0'. 2005-03-28 18:08:45 +00:00
Jim Meyering
6a893f06a4 (long_options, format_args): Use NULL, not `0'. 2005-03-28 18:08:12 +00:00
Jim Meyering
63a7783403 (print_entry): Use NULL, not `0'. 2005-03-28 18:06:55 +00:00
Jim Meyering
7ae52d9af9 *** empty log message *** 2005-03-28 18:06:06 +00:00
Jim Meyering
9ac9a47b7f (longopts): Use NULL, not `0'. 2005-03-28 18:05:53 +00:00
Jim Meyering
e1a595d521 (long_options): Use NULL, not `0'. 2005-03-28 18:05:28 +00:00
Jim Meyering
3a9a4b335f (time_style_args, indicator_style_args, long_options)
(format_args, sort_args, time_args, decode_switches)
(gobble_file): Use NULL, not `0'.
2005-03-28 18:04:50 +00:00
Jim Meyering
94064e8436 (longopts): Use NULL, not `0'. 2005-03-28 18:01:04 +00:00
Jim Meyering
2d5fa94300 *** empty log message *** 2005-03-28 18:00:26 +00:00
Jim Meyering
6c816682e0 (time_spec_string): Use NULL, not `0'. 2005-03-28 18:00:16 +00:00
Jim Meyering
637eeea9bd (find_mount_point, show_point): Use NULL, not `0'. 2005-03-28 17:59:54 +00:00
Jim Meyering
d8c14fc15e (extract_regexp): Use NULL, not `0'. 2005-03-28 17:57:57 +00:00
Jim Meyering
3fbb037ff8 (copy_reg): Use NULL, not `0'. 2005-03-28 17:55:43 +00:00
Jim Meyering
87c01f7dcb (long_options): Use NULL, not `0'. 2005-03-28 17:54:13 +00:00
Jim Meyering
47f1cd0d8a (chopt_init): Use NULL, not `0'. 2005-03-28 17:50:54 +00:00
Jim Meyering
5f107875c5 (reply_args): Use NULL, not `0'. 2005-03-28 17:50:14 +00:00
Jim Meyering
b2edc18b20 (sparse_type_string, reply_args, decode_preserve_arg): Use NULL, not `0'. 2005-03-28 17:49:12 +00:00
Jim Meyering
6705c31311 (long_options): Use NULL, not `0'. 2005-03-28 17:47:48 +00:00
Jim Meyering
60d48be63c (long_options): Use NULL, not `0'. 2005-03-28 17:46:55 +00:00
Jim Meyering
aeff09196a *** empty log message *** 2005-03-28 17:37:13 +00:00
Jim Meyering
13f07e7893 (GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.
(GETOPT_VERSION_OPTION_DECL): Likewise.
2005-03-28 17:37:07 +00:00
Jim Meyering
db632b64c4 *** empty log message *** 2005-03-27 16:40:43 +00:00
Jim Meyering
3cb5dca5ce (argmatch): Clarify comment: null-terminated -> NULL-terminated. 2005-03-27 16:40:02 +00:00
Jim Meyering
cc6387b7b2 *** empty log message *** 2005-03-27 08:40:38 +00:00
Jim Meyering
ae95bdc5e7 Use the same global destructor as dcgen. 2005-03-27 08:40:30 +00:00
Jim Meyering
e2b271d81d Simplify further, clean up. Require perl-5.002.
Add a standard-output-closing global destructor.
2005-03-27 08:35:16 +00:00
Paul Eggert
f01ef502f2 Clarify NUL vs null byte vs null character. 2005-03-26 18:43:30 +00:00
Paul Eggert
5bb064a261 Propagate intprops.h comment fixes to mktime.c and strftime.c. 2005-03-26 18:08:24 +00:00
Paul Eggert
759ae5e688 one's complement -> ones' complement 2005-03-26 17:55:33 +00:00
Paul Eggert
608c26a8fc one's complement -> ones' complement 2005-03-26 17:55:05 +00:00
Paul Eggert
e049d578cd Fix comment nits in intprops.h. 2005-03-26 17:49:37 +00:00
Paul Eggert
37a35280a4 Fix comment nits. 2005-03-26 17:49:22 +00:00
Paul Eggert
636fb1e3e7 Simplify dcgen and dircolors.c. 2005-03-26 17:41:26 +00:00
Paul Eggert
6f7e430f4b (parse_line): Use char *, not unsigned char *. This avoids casts.
(dc_parse_stream, main): Avoid casts.
Adjust to simpler data structure generated by new dcgen.
2005-03-26 17:39:17 +00:00
Paul Eggert
4e149db6d1 Squeeze multiple blanks into one. Output a simple
array of adjacent strings rather than a more complicated data
structure; this saves space in the dircolors executable.
2005-03-26 17:38:48 +00:00
Jim Meyering
7699025512 *** empty log message *** 2005-03-26 14:58:28 +00:00
Jim Meyering
4e9420afd2 (usage): Document usage of LS_COLORS. 2005-03-26 14:53:45 +00:00
Paul Eggert
9ada6aa316 * src/dircolors.hin: Add "TERM cygin". 2005-03-26 06:57:50 +00:00
Paul Eggert
80e5790de6 Add "TERM cygwin". 2005-03-26 06:56:01 +00:00
Jim Meyering
0c1819b8c0 *** empty log message *** 2005-03-25 21:00:25 +00:00
Jim Meyering
622816d41a (main): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:48 +00:00
Jim Meyering
3bf2d948e7 (parse_tab_stops, main): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:26 +00:00
Jim Meyering
0d22e40caf (set_fields): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:07 +00:00
Jim Meyering
c7f57f1750 (DECIMAL_DIGIT_ACCUMULATE): Reverse the sense of
the return value, and update callers:
2005-03-25 20:58:57 +00:00
Jim Meyering
65118a9226 *** empty log message *** 2005-03-23 12:47:54 +00:00
Jim Meyering
94155d37e8 Remove duplicate `#include "stat-macros.h"'. 2005-03-23 12:47:46 +00:00
Jim Meyering
be94ae38ee *** empty log message *** 2005-03-22 16:17:56 +00:00
Jim Meyering
c90ac2fad7 Reflect renaming: config -> build-aux. 2005-03-22 16:17:50 +00:00
Jim Meyering
0c7d9eda5c . 2005-03-22 16:17:25 +00:00
Jim Meyering
e56af571b0 Reflect renaming: config -> build-aux. 2005-03-22 16:17:07 +00:00
Jim Meyering
79b78d728d Reflect renaming: config -> build-aux. 2005-03-22 16:09:18 +00:00
Jim Meyering
121ae4951e Reflect renaming: config -> build-aux. 2005-03-22 15:38:40 +00:00
Jim Meyering
22bec77e4c moved to ../build-aux 2005-03-22 15:10:35 +00:00
Jim Meyering
2b7106427d *** empty log message *** 2005-03-22 15:09:58 +00:00
Jim Meyering
bc37fd41ec Reflect renaming: config -> build-aux. 2005-03-22 15:09:54 +00:00
Jim Meyering
538ef610be . 2005-03-22 15:08:26 +00:00
Jim Meyering
0039f4594b *** empty log message *** 2005-03-22 14:51:41 +00:00
Jim Meyering
e49f13c2cf (get_funky_string): Use '\a', rather than 7, for portability to EBCDIC hosts. 2005-03-22 14:51:34 +00:00
Paul Eggert
4986d56f23 Regenerate. 2005-03-21 22:32:29 +00:00
Paul Eggert
3db2fe2c9f * Makefile.am (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.
2005-03-21 22:31:18 +00:00
Paul Eggert
e829931bd6 (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.
2005-03-21 22:31:05 +00:00
Paul Eggert
671a8cf8e1 Import a few more changes from gnulib. 2005-03-21 22:28:15 +00:00
Paul Eggert
4f050cbe26 (gl_XSTRTOL): Add xstrtoul.c to AC_LIBSOURCES.
Add xstrtoul to AC_LIBOBJ.
2005-03-21 22:27:46 +00:00
Paul Eggert
327a29d3fb Add stat-macros.h to AC_LIBSOURCES. 2005-03-21 22:27:09 +00:00
Paul Eggert
78fa4b674d Regenerate. 2005-03-21 20:37:19 +00:00
Paul Eggert
ba6b28e2e8 Replace onceonly.m4 with onceonly_2_57.m4 to shrink "configure". 2005-03-21 20:33:48 +00:00
Paul Eggert
4f21d19987 Import memcasecmp.m4 change from gnulib. 2005-03-21 20:15:37 +00:00
Paul Eggert
0f4308d0f8 gl_FUNC_MEMCASECMP -> gl_MEMCASECMP 2005-03-21 20:15:18 +00:00
Paul Eggert
d658039387 Another change imported from gnulib.
(gl_MEMCASECMP): Renamed from gl_FUNC_MEMCASECMP.
All uses changed.  Require AC_HEADER_STDC instead of invoking it.
Remove check for stddef.h, size_t, const, since we now assume
C89 or better.
2005-03-21 20:14:56 +00:00
Jim Meyering
438cf50659 . 2005-03-21 10:15:27 +00:00
Paul Eggert
e0f53f4ecc Sync from gnulib. 2005-03-21 07:42:07 +00:00
Jim Meyering
3f6b9f946e *** empty log message *** 2005-03-20 19:53:44 +00:00
Jim Meyering
2168f7c7a1 (init_header): Use zero-filled .%09d' format, not space-filled .%9d'. 2005-03-20 19:53:30 +00:00
Jim Meyering
2597fc2497 *** empty log message *** 2005-03-20 19:25:31 +00:00
Jim Meyering
b8c473b62e (init_header): Add missing `%' in format string. 2005-03-20 19:25:15 +00:00
Jim Meyering
3feaa088bd (parse_column_count): Adjust comment to match the code. 2005-03-20 18:40:40 +00:00
Jim Meyering
33f2ed5c4d . 2005-03-19 14:20:47 +00:00
Jim Meyering
d27f65672e *** empty log message *** 2005-03-19 13:58:55 +00:00
Jim Meyering
bb425f2177 (pr_LDADD): Now that pr uses gettime, add
$(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.
2005-03-19 13:58:51 +00:00
Paul Eggert
51fbbff306 pr -D "FORMAT" now accepts the same formats that date +"FORMAT" does. 2005-03-19 06:20:20 +00:00
Paul Eggert
b9307c430e "pr -D FORMAT" now accepts the same formats that "date +FORMAT" does. 2005-03-19 06:20:01 +00:00
Paul Eggert
2bad486665 Include strftime.h, timespec.h.
(init_header): Obtain and format nanosecond part of time stamp.
2005-03-19 06:18:19 +00:00
Paul Eggert
bd73d9d8b6 * strftime.c (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.
2005-03-19 05:33:16 +00:00
Paul Eggert
18445fac86 (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.
2005-03-19 05:33:01 +00:00
Paul Eggert
f89674dc6f nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.
2005-03-19 00:46:47 +00:00
Paul Eggert
435f4c081f * coreutils.texi (nohup invocation): Clarify nohup.out creation. 2005-03-19 00:46:29 +00:00
Paul Eggert
f57d67630f (nohup invocation): Clarify nohup.out creation. 2005-03-19 00:46:16 +00:00
Paul Eggert
c8f3dc402b (main): nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.
Be a little more paranoid about return values;
e.g., check for any negative return from open.
Assume free (NULL) works.
Close file descriptor leak when redirecting standard output to a file.
2005-03-19 00:45:48 +00:00
Paul Eggert
319ebff684 nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.
2005-03-19 00:45:08 +00:00
Jim Meyering
0ef98b62fb comment tweak 2005-03-18 09:38:31 +00:00
Jim Meyering
500175daed Add comments for new macros. 2005-03-18 09:37:54 +00:00
Jim Meyering
aa450da526 fix typo 2005-03-18 06:51:40 +00:00
Jim Meyering
78929b11ca tweak comment 2005-03-17 20:50:50 +00:00
Jim Meyering
9001fbc0fd *** empty log message *** 2005-03-17 19:02:06 +00:00
Jim Meyering
e3a6890029 (gl_PREREQ): Require gl_TYPEOF. 2005-03-17 19:01:39 +00:00
Jim Meyering
9b9bda0ccf (gl_TYPEOF): New file/macro. 2005-03-17 19:01:15 +00:00
Jim Meyering
4ef7ce47dc Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
since so many other C compilers also honor __typeof__.
2005-03-17 19:00:52 +00:00
Jim Meyering
e778babb00 spacing nit 2005-03-17 18:08:46 +00:00
Jim Meyering
cc391abad8 Fix typo. 2005-03-17 17:43:54 +00:00
Jim Meyering
6b0f94088c (DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional. 2005-03-17 17:42:53 +00:00
Jim Meyering
b0a3db0a2f *** empty log message *** 2005-03-17 17:38:28 +00:00
Jim Meyering
308dd0d98c *** empty log message *** 2005-03-17 15:34:53 +00:00
Jim Meyering
9e1e48f018 (main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code. 2005-03-17 15:33:50 +00:00
Jim Meyering
f864f6df1c (parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 15:32:53 +00:00
Jim Meyering
3bf5718c30 (main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code. 2005-03-17 15:32:10 +00:00
Jim Meyering
b90c3e4609 (parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 15:30:00 +00:00
Jim Meyering
183cba6524 (set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 14:35:42 +00:00
Jim Meyering
a26f414348 Use VERIFY macro in place of an equivalent open-coded declaration. 2005-03-17 14:34:23 +00:00
Jim Meyering
c74255c9b6 (VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros. 2005-03-17 14:33:39 +00:00
Jim Meyering
cee4fe1969 Before, this command would make uniq skip 11 fields and print
only the first line.

  $ _POSIX2_VERSION=1 ./uniq -f1 -1 <(seq --format='1 %g' 2)
  1 1
  1 2

(main): Interpret `uniq -f1 -1' like `uniq -f1', not like `uniq -f11'.
2005-03-17 14:27:12 +00:00
Paul Eggert
581b437d32 * strftime.c (my_strftime): Prepend space to format. 2005-03-16 01:01:36 +00:00
Paul Eggert
23f7577282 (my_strftime): Prepend space to format so that we can
reliably distinguish strftime failure from empty output on POSIX
hosts.
2005-03-16 01:01:23 +00:00
Jim Meyering
331efbd2db . 2005-03-15 19:24:19 +00:00
Jim Meyering
2ecd300ec3 . 2005-03-15 18:10:50 +00:00
Jim Meyering
48d98ea22a *** empty log message *** 2005-03-15 18:10:26 +00:00
Jim Meyering
fd304f1e0e Both pr -0' and e.g., pr -03' would evoke `column count too large'.
`pr -0' should give a better diagnostic and `pr -03' should be
equivalent to `pr -3'.

(parse_column_count): Change return type to void.
Call error (EXIT_FAILURE, ... for an invalid string.
(main): Allocate space for column_count_string using malloc.
Accumulate all old-style column-count digits before converting.
When the number of columns is specified via both old-style,
(e.g., -3), and a long option (--columns=5), ensure that only
the last one specified takes effect.

Add tests for the above.
2005-03-15 18:09:05 +00:00
Jim Meyering
6d9f816b5c Both pr -0' and e.g., pr -03' evoke `column count too large'.
`pr -0' should give a better diagnostic and `pr -03' should be
equivalent to `pr -3'.

(parse_column_count): Change return type to void.
Call error (EXIT_FAILURE, ... for an invalid string.
(main): Allocate space for column_count_string using malloc.
Accumulate all old-style column-count digits before converting.
When the number of columns is specified via both old-style,
(e.g., -3), and a long option (--columns=5), ensure that only
the last one specified takes effect.
2005-03-15 18:05:13 +00:00
Jim Meyering
e2938a5d84 *** empty log message *** 2005-03-15 15:39:46 +00:00
Jim Meyering
d583b1ce69 (copy_reg): Copy regular files in binary mode. 2005-03-15 15:39:40 +00:00
Paul Eggert
f7e5bc2908 Fix comments and indenting. 2005-03-15 00:44:29 +00:00
Paul Eggert
53d430be4e Sync mktime.c and strtol.c macros from intprops.h. 2005-03-15 00:40:17 +00:00
Paul Eggert
2f82566ff2 * strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
&& HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[].
2005-03-14 23:23:25 +00:00
Paul Eggert
b6f7c33a38 * NEWS: Restate why ls limits time stamp lengths. 2005-03-14 18:38:05 +00:00
Paul Eggert
b3021f1d18 Reword ls time-stamp limit issue. 2005-03-14 18:36:31 +00:00
Jim Meyering
fed6d86b5d *** empty log message *** 2005-03-12 16:24:13 +00:00
Jim Meyering
9894d59925 *** empty log message *** 2005-03-12 10:59:38 +00:00
Jim Meyering
e1ba36b607 Add a little infrastructure to help prevent future bugs like the
one fixed today.

(xstrcat): New function.
(print_statfs, print_stat): Add buf_len parameter and convert all
uses of strcat to xstrcat.  Update callers.
(print_it): Call print_func with buf_len parameter.
2005-03-12 10:59:23 +00:00
Jim Meyering
d9d9836223 Invoking stat -c FMT with a lone format directive of %s, %f, %h, %s,
could cause a buffer overrun error.

(print_it): Allocate 2 more bytes, to accommodate our
conversion of the stat %s format string to the longer printf %llu one.
Patch from Guochun Shi.
2005-03-12 10:54:20 +00:00
Jim Meyering
2c84165280 *** empty log message *** 2005-03-12 10:51:06 +00:00
Paul Eggert
cc887eac73 "ls" now refuses to generate very long time stamps. 2005-03-11 23:14:31 +00:00
Paul Eggert
9d55554bf1 ls now refuses to generate time stamps containing more than 1000 bytes. 2005-03-11 23:13:58 +00:00
Paul Eggert
1aab3a0c90 * coreutils.texi (Formatting file timestamps): Very long timestamps
may be treated as errors.
2005-03-11 23:13:37 +00:00
Paul Eggert
8e80be2356 (Formatting file timestamps): Very long timestamps
may be treated as errors.
2005-03-11 23:13:19 +00:00
Paul Eggert
e8024715d7 (TIME_STAMP_LEN_MAXIMUM): New constant.
(long_time_expected_width, print_long_format): Use it, to avoid
some possible denial-of-service attacks.
2005-03-11 23:12:43 +00:00
Jim Meyering
e5d16d2b72 *** empty log message *** 2005-03-11 10:04:16 +00:00
Jim Meyering
5dd8c8ca32 Add tests for this:
Prompt once again for `mv -i A B' when A and B are hard links
	to the same file.  This fixes a bug introduced by my 2003-04-04
	(coreutils-5.0.1) change.
2005-03-11 09:37:15 +00:00
Jim Meyering
c2bd74fcea *** empty log message *** 2005-03-11 09:36:56 +00:00
Jim Meyering
d0f21b4a55 Prompt once again for `mv -i A B' when A and B are hard links
to the same file.  This fixes a bug introduced by my 2003-04-04
(coreutils-5.0.1) change.

(abandon_move): New function, factored out of
copy_internal, now that this code is being used from two places.
(copy_internal): Perform the same interactive-related test for
whether it's alright to proceed and (usually) overwrite the
destination file.
2005-03-11 09:36:52 +00:00
Jim Meyering
d1d993432f *** empty log message *** 2005-03-10 12:40:40 +00:00
Jim Meyering
62ae181b3f *** empty log message *** 2005-03-10 12:07:47 +00:00
Jim Meyering
5bb81adac0 (long_time_expected_width): Use x2nrealloc, not alloca,
so format string abuse cannot provoke stack overflow.
(print_long_format): Likewise.
2005-03-10 12:07:31 +00:00
Jim Meyering
ecab5d28df *** empty log message *** 2005-03-10 11:29:32 +00:00
Jim Meyering
9200b53afb *** empty log message *** 2005-03-10 10:01:23 +00:00
Jim Meyering
03252f614c *** empty log message *** 2005-03-10 08:56:00 +00:00
Jim Meyering
c06f2e3a5a (gl_SAVE_CWD): Check for fchdir. 2005-03-10 08:54:50 +00:00
Jim Meyering
aa7845aebb *** empty log message *** 2005-03-10 08:51:53 +00:00
Jim Meyering
82477b8efb Don't segfault for a long header date string, e.g.,
echo a|pr -D +%9999999A

(init_header): Use x2nrealloc, rather than alloca.
Don't bother with fixed-sized initial buffer;  always use x*alloc.
2005-03-10 08:51:49 +00:00
Jim Meyering
6eb7488b32 *** empty log message *** 2005-03-10 08:03:13 +00:00
Jim Meyering
f83e17f928 (tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. 2005-03-10 08:02:24 +00:00
Jim Meyering
075a99ffcf (init_header): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1. 2005-03-10 07:58:34 +00:00
Paul Eggert
4d645f3053 Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.
2005-03-09 23:22:14 +00:00
Jim Meyering
f0f31b512f *** empty log message *** 2005-03-09 23:21:10 +00:00
Jim Meyering
9d0f3eeb6c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.
2005-03-09 23:21:00 +00:00
Jim Meyering
5ccd8ce31d . 2005-03-09 23:16:07 +00:00
Jim Meyering
4f07deaab6 *** empty log message *** 2005-03-09 23:12:48 +00:00
Jim Meyering
d828d15348 (libfetish_a_SOURCES): Remove xstrtol.c and xstrtol.h. 2005-03-09 23:11:19 +00:00
Jim Meyering
5bdf28cfaa *** empty log message *** 2005-03-09 23:10:46 +00:00
Jim Meyering
185b3fffbb (gl_XNANOSLEEP): Add intprops.h. 2005-03-09 23:06:55 +00:00
Jim Meyering
080aae6f46 (gl_UTIMECMP): Add intprops.h. 2005-03-09 23:06:16 +00:00
Jim Meyering
b143ebb28b (gl_USERSPEC): Add intprops.h. 2005-03-09 23:05:32 +00:00
Jim Meyering
0163eb5b63 (gl_FUNC_SIG2STR): Add intprops.h. 2005-03-09 23:04:47 +00:00
Jim Meyering
586d7113c3 (gl_INTTOSTR): Add intprops.h. 2005-03-09 23:03:42 +00:00
Jim Meyering
3b1f5253fd (gl_HUMAN): Add intprops.h. 2005-03-09 23:02:25 +00:00
Jim Meyering
2c60c397c8 (gl_XSTRTOL): Use AC_LIBSOURCES and AC_LIBOBJ to list the required files. 2005-03-09 23:01:36 +00:00
Paul Eggert
541acb39f7 * src/system.h: Include intprops.h instead of rolling our own. 2005-03-09 19:27:23 +00:00
Paul Eggert
87d42256b3 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove;
they are now defined in intprops.h.
2005-03-09 19:27:02 +00:00
Paul Eggert
707034f696 Factor int-properties macros into a single file, except for
glibc-related files.
2005-03-09 19:26:36 +00:00
Paul Eggert
f240872265 Include xstrtol.h first, to test interface.
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:58 +00:00
Paul Eggert
09aa89fc35 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:34 +00:00
Paul Eggert
d7506ef9cd Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
(utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
2005-03-09 19:25:14 +00:00
Paul Eggert
81e7c85bca Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:24:37 +00:00
Paul Eggert
6c5e34b431 Adjust comments to match intprops.h. 2005-03-09 19:24:15 +00:00
Paul Eggert
cb675ad062 (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
2005-03-09 19:23:59 +00:00
Paul Eggert
bdbdf51a00 Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:23:35 +00:00
Paul Eggert
5fd82cbf0d (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
2005-03-09 19:23:05 +00:00
Paul Eggert
064157578c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
2005-03-09 19:22:48 +00:00
Paul Eggert
111fada0c3 (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000. 2005-03-09 19:22:21 +00:00
Paul Eggert
67f958c224 Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
2005-03-09 19:22:05 +00:00
Paul Eggert
0040b0209c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:21:43 +00:00
Paul Eggert
b3c509e6ae * lib/fts.c: Include intprops.h.
(TYPE_SIGNED): Remove.
2005-03-09 19:21:20 +00:00
Paul Eggert
1c6661af1b Initial revision. 2005-03-09 19:20:59 +00:00
Jim Meyering
a699754592 *** empty log message *** 2005-03-09 10:27:16 +00:00
Jim Meyering
7b86ad1c37 Remove entry about named pipes. It was fixed in 5.3.0. 2005-03-09 10:26:52 +00:00
Jim Meyering
b0627f229c * argmatch.m4, cycle-check.m4: New files.
* prereq.m4: Require their macros.
2005-03-09 10:18:43 +00:00
Jim Meyering
72a21d8bfe . 2005-03-09 10:17:51 +00:00
Jim Meyering
c4ce40a9a3 . 2005-03-09 10:17:30 +00:00
Jim Meyering
fce0021622 More migration to AC_LIBSOURCES/AC_LIBOBJ.
(libfetish_a_SOURCES): Remove two more pairs of files:
cycle-check.c, cycle-check.h and argmatch.c, argmatch.h.
2005-03-09 09:41:58 +00:00
Jim Meyering
3dfc177f1a *** empty log message *** 2005-03-09 09:41:38 +00:00
Jim Meyering
24080cef1c *** empty log message *** 2005-03-09 09:41:17 +00:00
Jim Meyering
c8adb91412 *** empty log message *** 2005-03-09 09:40:56 +00:00
Jim Meyering
7c7007fb8a . 2005-03-09 08:56:50 +00:00
Jim Meyering
fed0306054 Don't include "xalloc.h". It's not used. 2005-03-09 08:54:48 +00:00
Paul Eggert
69d87e7bbc * src/date.c (usage): Redo to match recent documentation changes. 2005-03-08 22:20:24 +00:00
Paul Eggert
02019487ea (usage): Redo to match recent documentation changes.
Don't bother documenting which usages are GNU extensions; the list
wasn't correct, and is better left to the printed manual anyway.
2005-03-08 22:20:11 +00:00
Paul Eggert
2db098a3c3 Improve "date invocation" again. 2005-03-08 22:19:54 +00:00
Paul Eggert
e0113b0175 (date invocation): Use an example that makes it
clear tha the default date use space-padded day of month.
Replace "directive" with "conversion specifier" to be consistent
with POSIX.  All uses changed.
Fix menu RHS to match actual directive lists.
(Time conversion specifiers): Renamed from Time directives.
Use @samp consistently, sometimes instead of @code.
Consistently ention which specifiers are GNU extensions.
Give more examples (in some cases, instead of ranges).
Say why %F is preferred for dates.
(Date conversion specifiers): Renamed from Date directives.
Likewise for other changes.
(Padding and other flags): Correct the description.
Document #.  Give an example for %9B.
2005-03-08 22:19:39 +00:00
Jim Meyering
182e347d77 *** empty log message *** 2005-03-06 19:34:46 +00:00
Jim Meyering
048a5ce26c Factor out column-count processing.
Include "inttostr.h".
(parse_column_count): New function.
(main): Use the new function for both old-style, -9, and long,
--columns=-9, options.
2005-03-06 19:34:07 +00:00
Jim Meyering
825846682a *** empty log message *** 2005-03-06 16:34:40 +00:00
Jim Meyering
e098a29c75 Remove `register' keyword. 2005-03-06 16:34:01 +00:00
Jim Meyering
6eb01f34a6 Remove `register' keyword. 2005-03-06 16:33:20 +00:00
Jim Meyering
af20319737 Remove `register' keyword. 2005-03-06 16:31:51 +00:00
Jim Meyering
947457a331 Remove `register' keyword. 2005-03-06 16:30:45 +00:00
Jim Meyering
ea510d7e41 Remove `register' keyword. 2005-03-06 16:26:38 +00:00
Jim Meyering
bd2147af16 Remove `register' keyword. 2005-03-06 16:25:26 +00:00
Jim Meyering
2a005547b7 Remove register keyword. 2005-03-06 16:23:27 +00:00
Jim Meyering
5179365337 Remove register keyword. 2005-03-06 16:20:43 +00:00
Jim Meyering
74e3e13b3a Remove register keyword. 2005-03-06 16:19:44 +00:00
Paul Eggert
c747ee56a7 Remove workaround for nanosleep bug in Linux kernel 2.6.8 or thereabouts. 2005-03-04 06:43:08 +00:00
Jim Meyering
2153bad976 . 2005-03-01 20:50:35 +00:00
Jim Meyering
56553ab2e1 . 2005-03-01 20:27:24 +00:00
Paul Eggert
4fcd0a2251 * src/Makefile.am (nanosec_libs): Remove $(LIB_XANOSLEEP). 2005-03-01 17:29:12 +00:00
Paul Eggert
d8adc99dc1 (nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed. 2005-03-01 17:28:49 +00:00
Paul Eggert
8e7a9fff01 * xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.
2005-03-01 17:26:29 +00:00
Paul Eggert
3ecf3fd1e8 (gl_XNANOSLEEP): Remove configuration attempting
to detect nanosleep bug.
2005-03-01 17:26:16 +00:00
Paul Eggert
23adaf0bed Don't include gethrxtime.h or xtime.h.
(NANOSLEEP_BUG_WORKAROUND): Remove.
(xnanosleep): Remove the workaround.
2005-03-01 17:25:53 +00:00
Jim Meyering
e9551e2d62 *** empty log message *** 2005-03-01 12:27:59 +00:00
Jim Meyering
4303f04545 (copy_internal): Change test of source type from !S_ISREG to S_ISLNK.
Reported by Paul Eggert in
http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00050.html.
2005-03-01 12:27:47 +00:00
Jim Meyering
5b67698846 *** empty log message *** 2005-02-28 10:19:22 +00:00
Jim Meyering
9416c94648 *** empty log message *** 2005-02-28 10:18:32 +00:00
Jim Meyering
79ddee707c *** empty log message *** 2005-02-28 10:03:02 +00:00
Jim Meyering
db042d2022 (xnanosleep): Work around bug in Linux-2.6.8.1's
nanosleep whereby it fails without setting errno upon being resumed
after being suspended.
2005-02-28 10:02:58 +00:00
Paul Eggert
9ba7355604 Regenerate. 2005-02-26 07:42:19 +00:00
Paul Eggert
d37169d9c4 * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again.
2005-02-26 07:38:14 +00:00
Paul Eggert
c8d8d339d3 (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again.  Actually, neither this nor the 2005-01-23
change fixes any bug on any plausible platform; it's more of a
code-clarity thing.
2005-02-26 07:37:49 +00:00
Paul Eggert
f93ba58756 Sync from gnulib. 2005-02-26 07:31:20 +00:00
Paul Eggert
641ef33fac * coreutils.texi: Adjust to match current strftime.c. 2005-02-24 00:28:16 +00:00
Paul Eggert
b2265ebeea (Time directives): Say that %k, %l, and %P are
GNU extensions.
For %p and %P, mention handling of noon and midnight.
For %s, use ISO 8601, and mention handling of leap seconds.
For %S, clarify mention of leap seconds.
For %T, say that it's the same as %H:%M:%S.
For %X, don't say that it must be the same as %H:%M:%S.
For %z and %Z, clarify which time zones are used.  These options
are now affected by --date, so don't claim that they're not.
(Date directives): %C is now all but the last two chars of %Y.
For %D, say that it's equivalent to %m/%d/%y.
For %e, use blank in example.
For %h, use @code for %b.
For %Y, mention what happens with outlandish years.
(Padding and other flags): Renamed from Padding.
Mention that the flags are GNU extensions.
Mention the 0 and ^ flags.
Mention field widths an modifiers.
(Examples of date): - is a flag, not a modifier.
2005-02-24 00:27:44 +00:00
Paul Eggert
157fdac571 strftime.c cleanup to handle outlandish years. 2005-02-24 00:27:17 +00:00
Paul Eggert
3477139eaa Include <stdbool.h>. Use bool where appropriate, instead of int.
(my_strftime): Do not mishandle years close to INT_MAX, by doing
the right thing even if adding 1900 would overflow.  Similarly
for tm_mon + 1 and tm_yday + 1.
Make %Y always equivalent to %C%y, and similarly for %G and %g.
(DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
(DO_SIGNED_NUMBER): New macro.
(my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
2005-02-24 00:26:55 +00:00
Jim Meyering
f49bb33cff (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change. 2005-02-23 23:16:59 +00:00
Jim Meyering
3ef813f9bc *** empty log message *** 2005-02-23 13:53:22 +00:00
Jim Meyering
f0e6764404 *** empty log message *** 2005-02-22 14:31:29 +00:00
Jim Meyering
8574504447 (gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/. 2005-02-22 14:31:26 +00:00
Jim Meyering
c3d9ba45f3 *** empty log message *** 2005-02-22 07:50:20 +00:00
Jim Meyering
8dc2142b92 (gl_PREREQ): Require gl_STRIPSLASH and gl_LINEBUFFER. 2005-02-22 07:50:16 +00:00
Paul Eggert
5677f3f7d9 Regenerate. 2005-02-22 07:21:57 +00:00
Paul Eggert
ff35a3ca2b Fix clock_gettime library access problem on recent GNU/Linux systems. 2005-02-22 07:19:43 +00:00
Paul Eggert
df066e2695 (dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
(nanosec_libs): Add $(LIB_XNANOSLEEP).  Needed for newer GNU/Linux
hosts with clock_gettime.
2005-02-22 07:10:07 +00:00
Paul Eggert
dcf1114082 (gl_PREREQ): Require gl_XNANOSLEEP. 2005-02-22 07:09:37 +00:00
Paul Eggert
55c154ed7d (gl_PREREQ_GETHRXTIME): Require gl_CLOCK_TIME,
gl_USE_SYSTEM_EXTENSIONS.  Check whether CLOCK_MONOTONIC is
defined, and set LIB_GETHRXTIME accordingly.  This is needed
for newer GNU/Linux systems that have clock_gettime, so that they
link in the appropriate library for it when needed.
2005-02-22 07:09:13 +00:00
Paul Eggert
ba8ad9a1e6 (libfetish_a_SOURCES): Remove xnanosleep.c,
xnanosleep.h; now done by ../m4/xnanosleep.m4 automatically.
2005-02-22 07:08:43 +00:00
Paul Eggert
0e1b33afd3 Initial revision. 2005-02-22 07:06:47 +00:00
Paul Eggert
7244117ba2 Regenerate. 2005-02-21 08:26:21 +00:00
Paul Eggert
10ca18d561 Describe recent changes to use realtime clocks if available,
when appropriate; also, gettime now returns void.
2005-02-21 08:20:15 +00:00
Paul Eggert
3178b01865 (time): Remove obsolete decl.
(main): Gettime now returns void.
2005-02-21 08:17:00 +00:00
Paul Eggert
2ec39c3ada Include gethrxtime.h.
(isaac_seed): Use gethrxtime rather than a mishmash.
2005-02-21 08:15:45 +00:00
Paul Eggert
70c98ff92d (time): Remove obsolete decl.
(get_current_time): gettimeofday always returns 0, so don't
check its result.
2005-02-21 08:15:10 +00:00
Paul Eggert
c339d6843e Include gethrxtime.h, xtime.h.
(start_time): Now of type xtime_t, not struct timespec.
(print_stats, main): Use gethrxtime rather than gettime.
2005-02-21 08:14:40 +00:00
Paul Eggert
1b29344371 (main): gettime now returns void. 2005-02-21 08:14:13 +00:00
Paul Eggert
7fd8ef9cc1 (dd_LDADD, shred_LDADD, nanosec_libs):
Remove $(LIB_CLOCK_GETTIME).  These functions now use
gethrxtime instead.
2005-02-21 08:13:12 +00:00
Paul Eggert
e26599af0b (gl_PREREQ): Require gl_GETHRXTIME.
Require gl_STRIPSLASH and gl_LINEBUFFER.
2005-02-21 08:12:37 +00:00
Paul Eggert
d7da695796 (gl_MACROS): Don't check for gethrtime. 2005-02-21 08:11:54 +00:00
Paul Eggert
2d229b0a9e (gl_GETTIME): Check for nanotime. 2005-02-21 08:11:19 +00:00
Paul Eggert
13aa6d899c Include xtime.h and gethrxtime.h, not xalloc.h.
(timespec_subtract): Remove.
(NANOSLEEP_BUG_WORKAROUND): New constant.
(xnanosleep): Use gethrxtime rather than gettime; this simplifies
things considerably.  Use it only on GNU/Linux hosts, since the
workaround shouldn't be needed elsewhere.
2005-02-21 08:10:47 +00:00
Paul Eggert
14d0416864 (gettime): Return void, since it always
succeeds now.  All uses changed.
2005-02-21 08:10:11 +00:00
Paul Eggert
dfefe8e5de (gettime) Return void, since it always
succeeds now.  All uses changed.
[HAVE_NANOTIME]: Prefer nanotime.
Assume gettimeofday succeeds, as POSIX requires.
Assime time () succeeds, since other code already does.
2005-02-21 08:09:30 +00:00
Paul Eggert
fa5269cf6f (get_date): gettime now returns void, not int. 2005-02-21 08:08:38 +00:00
Paul Eggert
2df160349e dd now uses a real-time clock if available, for transfer statistics. 2005-02-21 08:07:28 +00:00
Paul Eggert
9df4b1d7e4 Initial revision. 2005-02-21 08:05:49 +00:00
Paul Eggert
80cc962bd5 Don't assume that the current host supports 64-bit integers. 2005-02-21 07:22:49 +00:00
Paul Eggert
17103c0976 Don't assume that the current host supports integers wider than 32
bits.  Fix comment typo.
2005-02-21 07:12:37 +00:00
Paul Eggert
e0cc736489 (enum RCH_status): Remove trailing comma,
as it's not valid in standard C89.
2005-02-21 06:57:45 +00:00
Jim Meyering
696a24b227 *** empty log message *** 2005-02-20 16:33:43 +00:00
Jim Meyering
2b972d584b *** empty log message *** 2005-02-20 16:33:11 +00:00
Jim Meyering
84c616fa90 (xgethostname): Check for ENOMEM, which is
returned by OSX/Darwin if the specified buffer is not large
enough for the hostname.
2005-02-20 16:33:03 +00:00
Jim Meyering
c922e787b4 update from gnulib 2005-02-20 14:10:28 +00:00
Jim Meyering
7849e2b8e0 *** empty log message *** 2005-02-20 12:25:52 +00:00
Jim Meyering
0acdf67e2d (libfetish_a_SOURCES): Remove linebuffer.[ch] and stripslash.c. 2005-02-20 12:25:43 +00:00
Jim Meyering
173bc2ea67 *** empty log message *** 2005-02-20 12:24:52 +00:00
Jim Meyering
f78bf85485 *** empty log message *** 2005-02-20 12:23:33 +00:00
Jim Meyering
384e3830bc . 2005-02-17 20:28:22 +00:00
Jim Meyering
b32308597f *** empty log message *** 2005-02-15 12:33:35 +00:00
Jim Meyering
bc9a87005f *** empty log message *** 2005-02-15 12:29:47 +00:00
Jim Meyering
4e49c3974f regenerate 2005-02-15 12:29:22 +00:00
Jim Meyering
3695d0212a (human_fstype): Add case/definition for S_MAGIC_JFS
so that file systems of type `jfs' are recognized as such.
2005-02-15 12:23:40 +00:00
Jim Meyering
b353489b18 regen for XFS 2005-02-15 09:01:34 +00:00
Jim Meyering
265fe832fe *** empty log message *** 2005-02-15 08:58:05 +00:00
Jim Meyering
9fea5777f3 (human_fstype): Add case/definition for S_MAGIC_XFS
so that file systems of type `xfs' are recognized as such.
2005-02-15 08:57:59 +00:00
Jim Meyering
df3411b4c3 *** empty log message *** 2005-02-15 08:56:43 +00:00
Jim Meyering
8edee9d8e5 *** empty log message *** 2005-02-15 08:20:55 +00:00
Jim Meyering
83f00235d7 (NZERO) [NZERO == 0]: Undefine and define to 20,
to work around the invalid definition from Darwin 7.7.0.
2005-02-15 08:20:49 +00:00
Jim Meyering
ad8ad412a5 *** empty log message *** 2005-02-15 08:18:26 +00:00
Paul Eggert
b6a2e5d39a Add James Lemley. 2005-02-14 18:15:41 +00:00
Paul Eggert
058e9af0e3 * src/sort.c (mergefps): Use binary search rather than linear. 2005-02-14 18:04:43 +00:00
Paul Eggert
47a3ba5c45 (mergefps): Use binary search rather than linear one
when comparing new line to lines already in main memory.
2005-02-14 18:04:22 +00:00
Jim Meyering
017b3436b8 . 2005-02-13 08:15:24 +00:00
Jim Meyering
eda701b536 (gl_INTTOSTR): Use AC_LIBSOURCES to list the required source files. 2005-02-11 20:27:16 +00:00
Jim Meyering
1beb06ed13 *** empty log message *** 2005-02-11 20:27:02 +00:00
Jim Meyering
9a564239f5 Remove names of files that are now mentioned in AC_LIBSOURCES
and AC_LIBOBJ uses in inttostr.m4.

(libfetish_a_SOURCES): Remove imaxtostr.c,
offtostr.c, and umaxtostr.c.
(EXTRA_DIST): Remove inttostr.c and inttostr.h.
2005-02-11 20:26:57 +00:00
Jim Meyering
199d3f7f87 *** empty log message *** 2005-02-09 09:59:57 +00:00
Jim Meyering
0f25baf061 (gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files. 2005-02-09 09:59:53 +00:00
Jim Meyering
4738975f66 . 2005-02-09 09:58:07 +00:00
Jim Meyering
5eaf6e280a *** empty log message *** 2005-02-09 09:01:48 +00:00
Jim Meyering
045fbb6d7c * src/copy.c (valid_options): Add an assertion that
not both hard_link and symbolic_link are set.
2005-02-09 09:01:44 +00:00
Paul Eggert
b068caba7b stat -f -c %S. 2005-02-08 21:39:23 +00:00
Paul Eggert
058d7358ed (STATFS_FRSIZE): New macro.
(print_statfs): Use it to implement %S.
(do_statfs): Change default formats to include %S.
(usage): Document %S (versus %s).
2005-02-08 21:38:53 +00:00
Paul Eggert
333b98170f (stat invocation): Document stat -f -c %S (versus %s). 2005-02-08 21:38:04 +00:00
Paul Eggert
57d4ab6674 Document stat -f -c %S, plus changes to default formats. 2005-02-08 21:37:26 +00:00
Paul Eggert
8388a2febc * doc/coreutils.texi (stat invocation): Match stat --usage better.
* src/stat.c (usage): Match doc better.
Say that %s is the "Fundamental block size".
2005-02-08 20:46:52 +00:00
Paul Eggert
9440e98dd4 (usage): Normalize terminology, capitalization, and sort order to
match manual.  Say that %s is the "Fundamental block size", since that
is what POSIX says.
2005-02-08 20:45:03 +00:00
Paul Eggert
6eb5971afe (stat invocation): Normalize terminology,
capitalization, and sort order to match --help output.  Mention %c
for file systems.  Say that %s is the "Fundamental block size",
since that is what POSIX says.
2005-02-08 20:44:28 +00:00
Jim Meyering
938fe6521f *** empty log message *** 2005-02-08 09:56:22 +00:00
Jim Meyering
e01c9a1b7a (libfetish_a_SOURCES): Remove memcasecmp.c and memcasecmp.h. 2005-02-08 09:56:15 +00:00
Jim Meyering
d9e9e816f1 Require gl_FUNC_MEMCASECMP. 2005-02-08 09:55:39 +00:00
Jim Meyering
57d7923de4 *** empty log message *** 2005-02-08 09:55:05 +00:00
Jim Meyering
243f1932a8 (gl_FUNC_MEMCASECMP): New file and macro. 2005-02-08 09:55:00 +00:00
Jim Meyering
b99bfaa9f8 remove vestigial `closeout' 2005-02-08 09:43:24 +00:00
Jim Meyering
38421d61de Use AC_REQUIRE where possible, and _ONCE-suffixed versions of macros. 2005-02-07 16:54:14 +00:00
Jim Meyering
a8826c6e63 (vasnprintf) [!USE_SNPRINTF]: Correct the test for integer overflow. 2005-02-07 16:49:58 +00:00
Jim Meyering
c0756a37d4 *** empty log message *** 2005-02-07 16:47:49 +00:00
Jim Meyering
5889debf40 (libfetish_a_SOURCES): Remove fts.c, fts_.h, and
getcwd.h now that they're mentioned in AC_LIBSOURCES and AC_LIBOBJ
uses in the corresponding ../m4/*.m4.
2005-02-07 16:47:39 +00:00
Jim Meyering
14e75538fa *** empty log message *** 2005-02-07 16:45:32 +00:00
Jim Meyering
fbd6608072 (gl_FUNC_FTS): New file and macro. 2005-02-07 16:45:27 +00:00
Jim Meyering
59b1c8cfd0 Require gl_FUNC_FTS. 2005-02-07 16:45:19 +00:00
Jim Meyering
e753c6db67 *** empty log message *** 2005-02-06 18:22:47 +00:00
Jim Meyering
51f856d9d5 (gl_PREREQ_CHDIR_LONG): Depend on gl_FUNC_MEMRCHR. 2005-02-06 18:22:42 +00:00
Jim Meyering
22a1a067f4 (gl_FUNC_MEMRCHR): Check for declaration of memrchr. 2005-02-06 18:22:19 +00:00
Jim Meyering
05132205af s/MD5 and SHA1 signatures/MD5 and SHA1 checksums/ 2005-02-06 18:19:17 +00:00
Paul Eggert
64e8691b46 Regenerate. 2005-02-03 21:55:40 +00:00
Paul Eggert
d6f9651aff Define and use new file memrchr.h. 2005-02-03 21:48:35 +00:00
Paul Eggert
13593ac228 * memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h. 2005-02-03 21:47:43 +00:00
Paul Eggert
d57e28c5f8 * src/system.h: Include "memrchr.h". 2005-02-03 21:46:31 +00:00
Paul Eggert
2b9a84b4dc Include "memrchr.h".
(memrchr) [!HAVE_DECL_MEMRCHR]: Remove decl.
2005-02-03 21:34:34 +00:00
Paul Eggert
c10a2c64d0 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h. 2005-02-03 21:34:06 +00:00
Paul Eggert
f045469c91 [!defined _LIBC]: Include "memrchr.h" rather than <string.h>.
Don't bother including stddef.h.
2005-02-03 21:33:40 +00:00
Paul Eggert
6dc84f8396 Include memrchr.h. 2005-02-03 21:33:02 +00:00
Paul Eggert
a68faae3a1 Initial revision 2005-02-03 21:32:34 +00:00
Jim Meyering
3815c126e1 *** empty log message *** 2005-02-02 14:14:36 +00:00
Jim Meyering
014e2c6ffb *** empty log message *** 2005-02-02 14:14:31 +00:00
Jim Meyering
8fecea5296 Check for $2 -ge 128, rather than $2 = 128, in case
there is a file system type that doesn't support sparse files,
	yet for which metadata takes up additional space.
2005-02-02 14:14:28 +00:00
Jim Meyering
0c453a0d11 Also adjust the test to detect systems that don't support sparse files. 2005-02-02 13:10:23 +00:00
Jim Meyering
806b788972 *** empty log message *** 2005-02-02 08:30:27 +00:00
Jim Meyering
5446b32584 Detect sparse files on NTFS under cygwin. 2005-02-02 08:30:08 +00:00
Paul Eggert
ae65663064 mountlist.h, mountlist.h cleanup, and add support for subfs. 2005-02-01 23:59:45 +00:00
Paul Eggert
52a43df1b1 (MOUNTLIST_H_): New macro, to protect against double inclusion.
Include <sys/types.h>, for dev_t.
(ME_DUMMY, ME_REMOTE): Move to mountlist.c.
2005-02-01 23:58:30 +00:00
Paul Eggert
c4a0cafe71 Include mountlist.h first, to test the interface.
(ME_DUMMY, ME_REMOTE): Moved here from mountlist.c.
(ME_DUMMY): Count "subfs" as a dummy.
2005-02-01 23:58:01 +00:00
Jim Meyering
da6844d3f6 update from gnulib 2005-01-31 13:09:38 +00:00
Jim Meyering
5a6bb969e5 *** empty log message *** 2005-01-30 17:58:04 +00:00
Jim Meyering
708cc3e146 (elide_tail_bytes_pipe): Correct wording in diagnostic. 2005-01-30 17:57:24 +00:00
Jim Meyering
84f0fef1c7 . 2005-01-30 17:41:06 +00:00
Jim Meyering
b601ec502a *** empty log message *** 2005-01-30 14:58:15 +00:00
Jim Meyering
f63d36ff61 Remove unnecessary parentheses in #if directives. 2005-01-30 14:58:11 +00:00
Jim Meyering
2d27dd4f04 *** empty log message *** 2005-01-30 14:50:35 +00:00
Jim Meyering
9c3cb2ad2e [VSWTCH]: Some systems, like Cygwin, use VSWTC
instead of VSWTCH, for use with CSWTCH.
2005-01-30 14:50:22 +00:00
Jim Meyering
b56b097b9a . 2005-01-30 14:44:30 +00:00
Jim Meyering
381cf604e2 *** empty log message *** 2005-01-30 14:31:24 +00:00
Jim Meyering
f13af5d424 Quote user and group names. 2005-01-30 14:31:19 +00:00
Jim Meyering
1ab0c93405 Ignore ACL designation. 2005-01-30 14:30:10 +00:00
Jim Meyering
110280e2ef Ignore ACL designation. 2005-01-30 14:29:03 +00:00
Jim Meyering
828850baaa (.PHONY): Add check-root and root-hint. 2005-01-30 14:28:36 +00:00
Jim Meyering
a13d89b58f . 2005-01-29 14:45:17 +00:00
Jim Meyering
8e65231494 *** empty log message *** 2005-01-29 00:24:08 +00:00
Jim Meyering
1f1da5a429 . 2005-01-29 00:21:24 +00:00
Jim Meyering
38a7e162cd * Makefile.am (libfetish_a_SOURCES): Remove many files from this
list, now that automake determines their names automatically,
thanks to the new AC_LIBSOURCES and AC_LIBOBJ uses in the
corresponding ../m4/*.m4 files.
(EXTRA_DIST): Add getdate.c here, so that we continue to distribute it.
2005-01-29 00:20:50 +00:00
Jim Meyering
dfc5ff02a0 Use AC_LIBSOURCES to list corresponding source (.c, .h, .y) files
so that automake automatically knows to distribute those files.
Use AC_LIBOBJ to ensure that automake automatically knows the
names of always-compiled source files.  Automake already knows
the names of conditionally compiled ones, e.g., due to preexisting
uses of AC_LIBOBJ and AC_REPLACE_FUNCS.
[This is a start.  Many still remain to be fixed...]
2005-01-29 00:16:39 +00:00
Jim Meyering
72d7b860db *** empty log message *** 2005-01-29 00:04:35 +00:00
Jim Meyering
3f74581e29 Require gl_HASH_PJW and gl_BASENAME. 2005-01-29 00:04:30 +00:00
Jim Meyering
9c9aa99232 *** empty log message *** 2005-01-29 00:03:58 +00:00
Jim Meyering
2039f732bb *** empty log message *** 2005-01-27 18:14:15 +00:00
Jim Meyering
20563023de (gl_BASENAME): New file/macro. 2005-01-27 18:10:25 +00:00
Jim Meyering
78931f3234 *** empty log message *** 2005-01-25 12:30:15 +00:00
Jim Meyering
aabf87bc83 Don't include assert.h.
(path_concat): Remove assertion that would have triggered
for ABASE starting with more than one slash.
Reported by Andreas Schwab.
2005-01-25 12:30:01 +00:00
Jim Meyering
313147e76a *** empty log message *** 2005-01-25 09:32:53 +00:00
Jim Meyering
c6449644bc *** empty log message *** 2005-01-25 09:09:09 +00:00
Jim Meyering
748946e773 (path_concat): Set *BASE_IN_RESULT
properly when ABASE is an absolute file name.
Correct the description of this function.
Include <assert.h>.
Add an assertion and a test driver.
This fixes a bug introduced on 2004-07-02.
2005-01-25 09:07:49 +00:00
Paul Eggert
14c329a60c Regenerate. 2005-01-25 00:51:05 +00:00
Paul Eggert
1d2ff68204 (usage): Add comma after "-P" to fix typo in previous patch. 2005-01-25 00:41:36 +00:00
Jim Meyering
69a4ce2497 *** empty log message *** 2005-01-24 08:27:37 +00:00
Jim Meyering
570fe7948b Use S_BLKSIZE value for ST_NBLOCKSIZE where available. 2005-01-24 08:27:15 +00:00
Jim Meyering
b46e3e42eb (all_programs.list): Strip $(EXEEXT) and remove duplicates. 2005-01-24 08:22:06 +00:00
Jim Meyering
6e946041de (all_programs): Revert previous patch; updated all_programs.list fixes this.
(.x.1): No need to add $(EXEEXT).
2005-01-24 08:21:39 +00:00
Jim Meyering
cce40280ea *** empty log message *** 2005-01-24 08:10:59 +00:00
Jim Meyering
c8b7f2bb9c (usage): Merge the descriptions of --no-dereference and -P. 2005-01-24 08:10:53 +00:00
Jim Meyering
96cfa71377 *** empty log message *** 2005-01-24 08:10:36 +00:00
Jim Meyering
597a83d82c *** empty log message *** 2005-01-23 20:38:11 +00:00
Jim Meyering
3131f40264 *** empty log message *** 2005-01-23 14:35:09 +00:00
Paul Eggert
65ef46a51c Use an all-permissive copyright notice, recommended by RMS. 2005-01-23 09:07:57 +00:00
Jim Meyering
908a461e32 (v_etc_file): The version string has moved to
version-etc-fsf.c, search that new file, not version-etc.c.
2005-01-22 09:05:09 +00:00
Paul Eggert
52bf4b2a25 Regenerate. 2005-01-22 06:30:33 +00:00
Paul Eggert
2d50382bd9 Remove "m4/" from listed file names. 2005-01-22 06:28:21 +00:00
Paul Eggert
15ac53209f Sync from gnulib. 2005-01-22 06:25:53 +00:00
Jim Meyering
9e09c422a2 *** empty log message *** 2005-01-21 12:46:36 +00:00
Paul Eggert
be0dc61d80 Add version-etc-fsf. 2005-01-21 00:21:37 +00:00
Paul Eggert
b80668c3f8 (libfetish_a_SOURCES): Add version-etc-fsf.c. 2005-01-21 00:21:01 +00:00
Paul Eggert
8dcf5bba94 Initial version. 2005-01-21 00:20:20 +00:00
Paul Eggert
94e9766114 (version_etc_copyright): Use [] instead of * in prototype. 2005-01-21 00:20:05 +00:00
Paul Eggert
450a7a1aff Remove version_etc_copyright. 2005-01-21 00:19:49 +00:00
Jim Meyering
e824a871b4 . 2005-01-20 22:57:36 +00:00
Paul Eggert
bd88d49b85 * save-cwd.c (save_cwd): Remove code to support non-fchdir case. 2005-01-20 22:17:47 +00:00
Paul Eggert
7e43a4e6c4 (save_cwd): Remove code to support the case
where fchdir is missing or flaky.
2005-01-20 22:17:26 +00:00
Paul Eggert
2b631e90a8 * save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume it. 2005-01-20 22:17:00 +00:00
Paul Eggert
1370cd8736 (gl_SAVE_CWD): Remove check for fcntl; we now assume it. 2005-01-20 22:16:44 +00:00
Jim Meyering
e989e603fa *** empty log message *** 2005-01-19 13:45:22 +00:00
Jim Meyering
2157aa8ba7 (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the same value as for Solaris 9. 2005-01-19 13:44:54 +00:00
Jim Meyering
f4af6f487c *** empty log message *** 2005-01-19 12:52:15 +00:00
Jim Meyering
dea0e69ce0 *** empty log message *** 2005-01-19 12:51:06 +00:00
Jim Meyering
5ff3a2e214 remove diff, in, out 2005-01-19 12:50:12 +00:00
Jim Meyering
3fc13d753c *** empty log message *** 2005-01-19 12:48:19 +00:00
Jim Meyering
d7267a635a A test harness to exercize chdir-long.c's sample main program. 2005-01-19 12:48:15 +00:00
Jim Meyering
b603dc3050 (chdir_long): Update prototype. 2005-01-19 10:22:02 +00:00
Jim Meyering
87f49a3885 *** empty log message *** 2005-01-19 10:21:49 +00:00
Jim Meyering
c2475f7874 (chdir_long): Rewrite to remove limitation on
component length.  This included changing the parameter to be
of type `char *' rather than `char const *'.
2005-01-19 10:21:43 +00:00
Jim Meyering
1c5199e9bf . 2005-01-19 09:59:08 +00:00
Jim Meyering
158377f794 (fdopendir, fstatat): New functions. 2005-01-19 09:58:01 +00:00
Jim Meyering
af5592710c Include headers required for use of DIR and struct stat.
[AT_SYMLINK_NOFOLLOW]: Define.
(fdopendir, fstatat): Add prototypes.
2005-01-19 09:57:49 +00:00
Paul Eggert
b10a836fa0 Use numeric group ids, not symbolic group names, to avoid shell quoting issues. 2005-01-17 22:40:57 +00:00
Jim Meyering
c994637901 . 2005-01-15 21:34:18 +00:00
Jim Meyering
a8e1f0bbe1 *** empty log message *** 2005-01-15 19:56:32 +00:00
Jim Meyering
db0ec0873c *** empty log message *** 2005-01-15 19:51:00 +00:00
Jim Meyering
5737627b41 *** empty log message *** 2005-01-15 17:24:58 +00:00
Jim Meyering
0771bddcb5 *** empty log message *** 2005-01-15 17:24:16 +00:00
Jim Meyering
6d1d7aede0 *** empty log message *** 2005-01-15 17:21:03 +00:00
Jim Meyering
6d003dd014 (isaac_seed) [HAVE_GETHRTIME]: #if-0 this block,
because just calling gethrtime evokes an `illegal instruction'
failure when compiled with Sun's c89 on Solaris 8 and 9.
2005-01-15 17:19:47 +00:00
Jim Meyering
6d638576d4 (isaac_seed) [HAVE_GETHRTIME]: Don't call ISAAC_SEED
twice with the same value of `t'.
Replace nested #if-#else blocks with #if-#elif-#elif chain.
2005-01-15 17:13:03 +00:00
Jim Meyering
244ce2fb1a *** empty log message *** 2005-01-14 16:34:56 +00:00
Jim Meyering
350a0ccc90 *** empty log message *** 2005-01-14 16:30:18 +00:00
Jim Meyering
85d111b3be The test, tests/tail/f-1, failed on powerpc-apple-darwin7.7.0.
(IS_TAILABLE_FILE_TYPE): Adjust definition also to include
sockets, since that's what you get when reading from a command-line-
supplied pipe on Darwin 7.7.
(IS_PIPE_LIKE_FILE_TYPE): Define.
(main): Use new IS_PIPE_LIKE_FILE_TYPE rather than simply S_ISFIFO.
This same change is also required on NetBSD/sparc-1.5.
Reported by Adrian Bunk.
2005-01-14 16:30:15 +00:00
Jim Meyering
6e46196ae9 . 2005-01-14 15:15:58 +00:00
Jim Meyering
5443fe149f *** empty log message *** 2005-01-14 14:16:10 +00:00
Jim Meyering
ffa7a7db3d *** empty log message *** 2005-01-14 14:15:31 +00:00
Jim Meyering
7eff5901c4 (toarith): Rewrite to detect/diagnose integer overflow,
rather than suffering silently.
Before, expr would silently overflow and wrap around:
  $ expr 9223372036854775808 = 0   # $(echo 2^63|bc)
  1
Now it detects the problem and exits nonzero:
  $ ./expr $(echo 2^63|bc) = 0
  ./expr: 9223372036854775808: integer is too large
2005-01-14 14:15:25 +00:00
Jim Meyering
9eea266563 *** empty log message *** 2005-01-14 13:39:51 +00:00
Jim Meyering
2e301f00f3 *** empty log message *** 2005-01-14 13:33:32 +00:00
Jim Meyering
14f7a72f5a Work around tests/touch/empty-file failure on a system
(sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
NULL-means-set-to-current-time semantics.
Remove temporary file immediately, rather than waiting
for configure's at-exit trap code to do it.
2005-01-14 13:33:26 +00:00
Jim Meyering
ec597a0f84 *** empty log message *** 2005-01-14 10:39:15 +00:00
Jim Meyering
6ad556a63c (id_gn): Exit 77, not 1, for a test-framework
failure, so that doesn't cause `make check' to stop.  Nelson Beebe
reported that this test would fail with this diagnostic
`cannot find name for group ID 10' on one of his systems.
2005-01-14 10:39:05 +00:00
Jim Meyering
bf9e735bbd *** empty log message *** 2005-01-13 23:33:22 +00:00
Jim Meyering
24158efbdf (is_int): Don't overflow when evaluating integer constants.
Before, ./test $(echo 2^64|bc) -eq 0 && echo FAIL would print `FAIL'.
2005-01-13 23:27:34 +00:00
Jim Meyering
b54fd550bd *** empty log message *** 2005-01-13 22:17:33 +00:00
Jim Meyering
d5a5cf8f9d (validate): Add code (if-0'd out) to detect
names of temporary files that would clash on 8.3 file systems.
2005-01-13 22:16:29 +00:00
Jim Meyering
c7efc489f3 *** empty log message *** 2005-01-13 22:14:03 +00:00
Jim Meyering
fe44a6d988 (run_tests): Add code (if-0'd out) to detect
names of temporary files that would clash on 8.3 file systems.
2005-01-13 22:13:53 +00:00
Jim Meyering
865844251f *** empty log message *** 2005-01-12 15:27:40 +00:00
Jim Meyering
10d9154380 (repeat-000): Rename to `repeat-zeros' for the same reason. 2005-01-12 15:27:28 +00:00
Jim Meyering
fc539da2b0 Shorten test names to accommodate 8.3 systems. 2005-01-12 15:18:54 +00:00
Jim Meyering
6d843c3bd5 Shorten test names to accommodate 8.3 systems. 2005-01-12 15:18:12 +00:00
Jim Meyering
e803f7bedb regenerate 2005-01-12 15:01:10 +00:00
Jim Meyering
dc339f4f80 (repeat-bigC): Change test name from
`repeat-Compl', to avoid 8.3 conflict with `repeat-compl'.
2005-01-12 15:00:51 +00:00
Jim Meyering
8cebee0f7e *** empty log message *** 2005-01-12 15:00:40 +00:00
Jim Meyering
fec07f5aef *** empty log message *** 2005-01-12 14:59:48 +00:00
Jim Meyering
6c639064c0 . 2005-01-11 21:40:36 +00:00
Jim Meyering
bec6c6cbd7 *** empty log message *** 2005-01-11 17:23:24 +00:00
Jim Meyering
1b1775b518 Update version to 5.3.1. 2005-01-11 17:22:42 +00:00
Jim Meyering
ee0c8162ab *** empty log message *** 2005-01-11 17:03:30 +00:00
Jim Meyering
2c2ab4fe77 *** empty log message *** 2005-01-11 17:02:57 +00:00
Jim Meyering
9be231e152 (obs-ovflo): New test for overflow. 2005-01-11 17:01:35 +00:00
Jim Meyering
c8756077c3 (main): Check for overflow in tabstop values
specified via the obsolete form.  E.g., now this command fails:
_POSIX2_VERSION=1 ./expand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./expand -1'.
2005-01-11 16:54:02 +00:00
Jim Meyering
c2fed1cc19 (main): Check for overflow in tabstop values
specified via the obsolete form.  E.g., now this command fails:
_POSIX2_VERSION=1 ./unexpand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./unexpand -1'.
2005-01-11 16:53:24 +00:00
Jim Meyering
1377220ccf (add_tab_stop): Properly diagnose a tabstop list with decreasing values. 2005-01-11 16:52:47 +00:00
Jim Meyering
0814364bbe *** empty log message *** 2005-01-11 16:51:08 +00:00
Jim Meyering
7b6aa4dea7 (all_programs): Account for $(EXEEXT). 2005-01-11 16:51:03 +00:00
Jim Meyering
d2360a394b (check-README, check-AUTHORS): Account for $(EXEEXT). 2005-01-11 16:50:27 +00:00
Paul Eggert
ff67f295e4 Update copyright date. 2005-01-10 18:12:35 +00:00
Paul Eggert
f0f5a2708a Update copyright date. 2005-01-10 18:11:57 +00:00
Paul Eggert
97409a37e8 Respond to POSIX interpretations about pathchk -p dated 2005-01-06. 2005-01-10 18:09:43 +00:00
Paul Eggert
c1b404410d Add tests for empty file names and pathchk -P. 2005-01-10 18:09:22 +00:00
Paul Eggert
b4e248dea9 (PORTABILITY_OPTION): New constant.
(longopts, usage, main, validate_file_name):
Add support for new -P option.
Reject empty file names (unless -p is not specified and the
current system allows empty file names).
Change --portability so that is now equivalent to -p -P.
Don't test whether file name is too long, if it is known to exist.
(no_leading_hyphen): New function.
2005-01-10 18:09:02 +00:00
Paul Eggert
23c6e3110e Document changes responding to POSIX interpretations about pathchk -p
dated 2005-01-06.
2005-01-10 18:08:12 +00:00
Paul Eggert
183dd5f707 Document changes responding to POSIX interpretations about pathchk -p
dated 2005-01-06.
2005-01-10 18:07:42 +00:00
Jim Meyering
2318511e2d *** empty log message *** 2005-01-09 19:45:00 +00:00
Jim Meyering
25c0a6aabf . 2005-01-08 20:45:23 +00:00
881 changed files with 128498 additions and 105144 deletions

View File

@@ -2,7 +2,9 @@
Makefile
THANKS-to-translators
autom4te.cache
config.cache
config.h
config.log
config.status
config.status.lineno
stamp-h1

View File

@@ -1 +1 @@
5.2.1
5.3.0

View File

5
.x-sc_obsolete_symbols Normal file
View File

@@ -0,0 +1,5 @@
ChangeLog*
Makefile.maint
config.hin
configure
m4/jm-macros.m4

View File

@@ -5,5 +5,6 @@ config-log
tests/misc/nl
po/de.po
m4/lib-ld.m4
m4/lib-prefix.m4
m4/po.m4
aclocal.m4

View File

@@ -1,2 +1,2 @@
config-log
config/config.guess
build-aux/config.guess

View File

@@ -1,5 +1,5 @@
^tests/pr/
Makefile\.in$
^config-log/
^config/texinfo\.tex$
^build-aux/texinfo\.tex$
\.gdb-history$

14
.x-sc_useless_cpp_parens Normal file
View File

@@ -0,0 +1,14 @@
^build-aux/config.guess
^configure
^lib/alloca.c
^lib/fileblocks.c
^lib/fts.c
^lib/getdate.c
^lib/getloadavg.c
^lib/gettext.h
^lib/getusershell.c
^lib/mbswidth.c
^lib/readutmp.h
^lib/strtod.c
^lib/xstrtol.c
^m4/

View File

@@ -2,7 +2,7 @@
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -305,7 +305,7 @@ the "copyright" line and a pointer to where the full notice is found.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.

2283
ChangeLog

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# Systems where /bin/sh is not the default shell need this. The $(shell)
# command below won't work with e.g. stock DOS/Windows shells.

View File

@@ -4,7 +4,9 @@ SUBDIRS = lib src doc man po tests
EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
.kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
.x-sc_space_tab .x-sc_sun_os_names \
.x-sc_file_system \
.x-sc_file_system .x-sc_obsolete_symbols \
.x-sc_useless_cpp_parens \
.x-sc_no_if_have_config_h \
announce-gen \
m4/ChangeLog \
old/fileutils/ChangeLog \
@@ -26,7 +28,7 @@ check-root:
cd tests && $(MAKE) $@
dist-hook:
test -x $(srcdir)/config/install-sh
test -x $(srcdir)/build-aux/install-sh
distcheck-hook:
$(MAKE) my-distcheck

View File

@@ -1,5 +1,5 @@
# Customize Makefile.maint. -*- makefile -*-
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -13,8 +13,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# Use alpha.gnu.org for alpha and beta releases.
# Use ftp.gnu.org for major releases.
@@ -24,25 +24,24 @@ gnu_ftp_host-major = ftp.gnu.org
gnu_rel_host = $(gnu_ftp_host-$(RELEASE_TYPE))
url_dir_list = \
ftp://$(gnu_rel_host)/gnu/coreutils \
http://fetish.sf.net
ftp://$(gnu_rel_host)/gnu/coreutils
# Files to update automatically.
wget_files = \
$(srcdir)/config/config.guess \
$(srcdir)/config/config.sub \
$(srcdir)/config/texinfo.tex
$(srcdir)/build-aux/config.guess \
$(srcdir)/build-aux/config.sub \
$(srcdir)/build-aux/texinfo.tex
# Of the above, texinfo.tex is out of date,
# and the other two are not available.
wget_files =
cvs_files = \
$(srcdir)/config/elisp-comp \
$(srcdir)/config/depcomp \
$(srcdir)/config/mdate-sh \
$(srcdir)/config/missing \
$(srcdir)/config/install-sh \
$(srcdir)/config/mkinstalldirs
$(srcdir)/build-aux/elisp-comp \
$(srcdir)/build-aux/depcomp \
$(srcdir)/build-aux/mdate-sh \
$(srcdir)/build-aux/missing \
$(srcdir)/build-aux/install-sh \
$(srcdir)/build-aux/mkinstalldirs
# $(srcdir)/src/ansi2knr.c

View File

@@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.4 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -38,37 +38,44 @@ host_triplet = @host@
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.hin \
$(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \
INSTALL NEWS THANKS TODO config/ChangeLog config/config.guess \
config/config.rpath config/config.sub config/depcomp \
config/install-sh config/mdate-sh config/missing \
config/mkinstalldirs config/texinfo.tex
INSTALL NEWS THANKS TODO build-aux/ChangeLog \
build-aux/config.guess build-aux/config.rpath \
build-aux/config.sub build-aux/depcomp build-aux/install-sh \
build-aux/mdate-sh build-aux/missing build-aux/mkinstalldirs \
build-aux/texinfo.tex
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/allocsa.m4 \
$(top_srcdir)/m4/assert.m4 $(top_srcdir)/m4/atexit.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/bison.m4 \
$(top_srcdir)/m4/boottime.m4 $(top_srcdir)/m4/c-strtod.m4 \
$(top_srcdir)/m4/calloc.m4 $(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/argmatch.m4 $(top_srcdir)/m4/assert.m4 \
$(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/basename.m4 \
$(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
$(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
$(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/canonicalize.m4 \
$(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
$(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
$(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/closeout.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/d-ino.m4 \
$(top_srcdir)/m4/d-type.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/cycle-check.m4 \
$(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
$(top_srcdir)/m4/diacrit.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/dirname.m4 $(top_srcdir)/m4/dos.m4 \
$(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
$(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
$(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
$(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/file-type.m4 \
$(top_srcdir)/m4/fileblocks.m4 $(top_srcdir)/m4/filemode.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/fd-reopen.m4 \
$(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
$(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
$(top_srcdir)/m4/fnmatch.m4 $(top_srcdir)/m4/fpending.m4 \
$(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
$(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
$(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
$(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getgroups.m4 \
$(top_srcdir)/m4/gethostname.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
$(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
$(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getndelim2.m4 $(top_srcdir)/m4/getopt.m4 \
$(top_srcdir)/m4/getpagesize.m4 $(top_srcdir)/m4/getpass.m4 \
$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gettime.m4 \
@@ -76,54 +83,60 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/getugroups.m4 \
$(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
$(top_srcdir)/m4/group-member.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
$(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/idcache.m4 \
$(top_srcdir)/m4/intmax_t.m4 $(top_srcdir)/m4/inttostr.m4 \
$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/jm-macros.m4 \
$(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
$(top_srcdir)/m4/lchown.m4 $(top_srcdir)/m4/lib-check.m4 \
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash-pjw.m4 \
$(top_srcdir)/m4/hash.m4 $(top_srcdir)/m4/host-os.m4 \
$(top_srcdir)/m4/human.m4 $(top_srcdir)/m4/iconv.m4 \
$(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/intmax_t.m4 \
$(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
$(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
$(top_srcdir)/m4/jm-macros.m4 $(top_srcdir)/m4/jm-winsz1.m4 \
$(top_srcdir)/m4/jm-winsz2.m4 $(top_srcdir)/m4/lchown.m4 \
$(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/linebuffer.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/localcharset.m4 \
$(top_srcdir)/m4/long-options.m4 \
$(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
$(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
$(top_srcdir)/m4/makepath.m4 $(top_srcdir)/m4/mbrtowc.m4 \
$(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
$(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
$(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbstate_t.m4 \
$(top_srcdir)/m4/mbswidth.m4 $(top_srcdir)/m4/md5.m4 \
$(top_srcdir)/m4/memcasecmp.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/memcmp.m4 $(top_srcdir)/m4/memcoll.m4 \
$(top_srcdir)/m4/memcpy.m4 $(top_srcdir)/m4/memmove.m4 \
$(top_srcdir)/m4/mempcpy.m4 $(top_srcdir)/m4/memrchr.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
$(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
$(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
$(top_srcdir)/m4/nanosleep.m4 $(top_srcdir)/m4/nls.m4 \
$(top_srcdir)/m4/obstack.m4 $(top_srcdir)/m4/onceonly.m4 \
$(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/path-concat.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-p.m4 \
$(top_srcdir)/m4/mkdir-slash.m4 $(top_srcdir)/m4/mkstemp.m4 \
$(top_srcdir)/m4/mktime.m4 $(top_srcdir)/m4/modechange.m4 \
$(top_srcdir)/m4/mountlist.m4 $(top_srcdir)/m4/nanosleep.m4 \
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/obstack.m4 \
$(top_srcdir)/m4/onceonly_2_57.m4 $(top_srcdir)/m4/openat.m4 \
$(top_srcdir)/m4/pathmax.m4 $(top_srcdir)/m4/perl.m4 \
$(top_srcdir)/m4/physmem.m4 $(top_srcdir)/m4/po.m4 \
$(top_srcdir)/m4/posixtm.m4 $(top_srcdir)/m4/posixver.m4 \
$(top_srcdir)/m4/prereq.m4 $(top_srcdir)/m4/progtest.m4 \
$(top_srcdir)/m4/putenv.m4 $(top_srcdir)/m4/quote.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readdir.m4 \
$(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/readtokens.m4 \
$(top_srcdir)/m4/readutmp.m4 $(top_srcdir)/m4/regex.m4 \
$(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/restrict.m4 \
$(top_srcdir)/m4/rmdir-errno.m4 $(top_srcdir)/m4/rmdir.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readlink.m4 \
$(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
$(top_srcdir)/m4/regex.m4 $(top_srcdir)/m4/rename.m4 \
$(top_srcdir)/m4/restrict.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
$(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
$(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
$(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
$(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
$(top_srcdir)/m4/setenv.m4 $(top_srcdir)/m4/settime.m4 \
$(top_srcdir)/m4/sha1.m4 $(top_srcdir)/m4/sig2str.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/st_mtim.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/socklen.m4 \
$(top_srcdir)/m4/sockpfaf.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/stat-macros.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
$(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stdint_h.m4 \
$(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/stdio-safer.m4 \
$(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/strcase.m4 $(top_srcdir)/m4/strcspn.m4 \
$(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
$(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \
$(top_srcdir)/m4/stripslash.m4 $(top_srcdir)/m4/strndup.m4 \
$(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
$(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strstr.m4 \
$(top_srcdir)/m4/strtod.m4 $(top_srcdir)/m4/strtoimax.m4 \
$(top_srcdir)/m4/strtol.m4 $(top_srcdir)/m4/strtoll.m4 \
@@ -134,23 +147,25 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/uintptr_t.m4 \
$(top_srcdir)/m4/ullong_max.m4 $(top_srcdir)/m4/ulonglong.m4 \
$(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
$(top_srcdir)/m4/unlink-busy.m4 \
$(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \
$(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4 \
$(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \
$(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \
$(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \
$(top_srcdir)/m4/utimes.m4 $(top_srcdir)/m4/vasnprintf.m4 \
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/wchar_t.m4 \
$(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xreadlink.m4 \
$(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtoimax.m4 \
$(top_srcdir)/m4/xstrtol.m4 $(top_srcdir)/m4/xstrtoumax.m4 \
$(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/version-etc.m4 \
$(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \
$(top_srcdir)/m4/xalloc.m4 $(top_srcdir)/m4/xfts.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xnanosleep.m4 \
$(top_srcdir)/m4/xreadlink.m4 $(top_srcdir)/m4/xstrtod.m4 \
$(top_srcdir)/m4/xstrtoimax.m4 $(top_srcdir)/m4/xstrtol.m4 \
$(top_srcdir)/m4/xstrtoumax.m4 $(top_srcdir)/m4/yesno.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno configure.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
SOURCES =
@@ -201,13 +216,13 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EOVERFLOW = @EOVERFLOW@
EXEEXT = @EXEEXT@
FESETROUND_LIBM = @FESETROUND_LIBM@
FNMATCH_H = @FNMATCH_H@
GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
GETOPT_H = @GETOPT_H@
GLIBC21 = @GLIBC21@
GMSGFMT = @GMSGFMT@
GNU_PACKAGE = @GNU_PACKAGE@
GREP = @GREP@
HAVE__BOOL = @HAVE__BOOL@
HELP2MAN = @HELP2MAN@
INSTALL_DATA = @INSTALL_DATA@
@@ -215,6 +230,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INTLLIBS = @INTLLIBS@
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
KMEM_GROUP = @KMEM_GROUP@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
@@ -225,6 +241,7 @@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
LIB_CRYPT = @LIB_CRYPT@
LIB_EACCESS = @LIB_EACCESS@
LIB_FDATASYNC = @LIB_FDATASYNC@
LIB_GETHRXTIME = @LIB_GETHRXTIME@
LIB_NANOSLEEP = @LIB_NANOSLEEP@
LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@
@@ -252,7 +269,6 @@ RANLIB = @RANLIB@
SEQ_LIBM = @SEQ_LIBM@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SQRT_LIBM = @SQRT_LIBM@
STDBOOL_H = @STDBOOL_H@
STRIP = @STRIP@
U = @U@
@@ -260,6 +276,7 @@ USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
YACC = @YACC@
YFLAGS = @YFLAGS@
ac_ct_CC = @ac_ct_CC@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
@@ -277,23 +294,30 @@ build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
@@ -302,7 +326,9 @@ SUBDIRS = lib src doc man po tests
EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
.kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
.x-sc_space_tab .x-sc_sun_os_names \
.x-sc_file_system \
.x-sc_file_system .x-sc_obsolete_symbols \
.x-sc_useless_cpp_parens \
.x-sc_no_if_have_config_h \
announce-gen \
m4/ChangeLog \
old/fileutils/ChangeLog \
@@ -389,7 +415,13 @@ uninstall-info-am:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
@@ -401,7 +433,7 @@ $(RECURSIVE_TARGETS):
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
@@ -409,7 +441,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
@@ -430,7 +468,7 @@ maintainer-clean-recursive:
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
@@ -511,7 +549,7 @@ distdir: $(DISTFILES)
esac
$(am__remove_distdir)
mkdir $(distdir)
$(mkdir_p) $(distdir)/config $(distdir)/m4 $(distdir)/old/fileutils $(distdir)/old/sh-utils $(distdir)/old/textutils $(distdir)/po
$(mkdir_p) $(distdir)/build-aux $(distdir)/m4 $(distdir)/old/fileutils $(distdir)/old/sh-utils $(distdir)/old/textutils $(distdir)/po
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
@@ -758,7 +796,7 @@ check-root:
cd tests && $(MAKE) $@
dist-hook:
test -x $(srcdir)/config/install-sh
test -x $(srcdir)/build-aux/install-sh
distcheck-hook:
$(MAKE) my-distcheck

View File

@@ -16,15 +16,15 @@
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301, USA.
# This is reported not to work with make-3.79.1
# ME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
ME := Makefile.maint
# Do not save the original name or timestamp in the .tar.gz file.
GZIP_ENV = '--no-name --best'
GZIP_ENV = '--no-name --best --rsyncable'
CVS = cvs
@@ -71,10 +71,11 @@ syntax-check-rules = \
sc_cast_of_argument_to_free \
sc_cast_of_x_alloc_return_value \
sc_cast_of_alloca_return_value \
sc_changelog \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
sc_no_if_have_config_h \
sc_obsolete_symbols \
sc_prohibit_atoi_atof \
sc_prohibit_jm_in_m4 \
sc_root_tests \
@@ -83,7 +84,8 @@ syntax-check-rules = \
sc_system_h_headers \
sc_tight_scope \
sc_trailing_blank \
sc_unmarked_diagnostics
sc_unmarked_diagnostics \
sc_useless_cpp_parens
syntax-check: $(syntax-check-rules)
# @grep -E '# *include <(limits|std(def|arg|bool))\.h>' \
@@ -97,6 +99,12 @@ syntax-check: $(syntax-check-rules)
# exit 1; } || :
# FIXME: don't allow `#include .strings\.h' anywhere
# FIXME: add a check for this.
# Nearly every lib/*.c file must include config.h, like this:
# #ifdef HAVE_CONFIG_H
# # include <config.h>
# #endif
sc_cast_of_argument_to_free:
@grep -E '\<free \(\(' $(srcdir)/{lib,src}/*.[chly] && \
{ echo '$(ME): don'\''t cast free argument' 1>&2; \
@@ -147,6 +155,20 @@ sc_file_system:
'rewrite to use "file system"' 1>&2; \
exit 1; } || :
sc_no_if_have_config_h:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
grep '^# *if HAVE_CONFIG_H' \
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
{ echo '$(ME): found use of #if HAVE_CONFIG_H; use #ifdef' \
1>&2; exit 1; } || :
sc_obsolete_symbols:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
grep -E '\<(HAVE_FCNTL_H)\>' \
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
{ echo '$(ME): do not use HAVE_FCNTL_H' \
1>&2; exit 1; } || :
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
# Each nonempty line must start with a year number, or a TAB.
@@ -159,7 +181,8 @@ sc_changelog:
# with the strings from the two affected variables.
dd_c = $(srcdir)/src/dd.c
sc_dd_max_sym_length:
@len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c);\
@test -f $(dd_c) || exit 0; \
len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c); \
sed -n '/flags\[\] =$$/,/^};/p' $(dd_c) ) \
|sed -n '/"/s/^[^"]*"\([^"]*\)".*/\1/p' \
| wc --max-line-length); \
@@ -206,7 +229,7 @@ sc_root_tests:
sc_system_h_headers: .re-list
@if test -f $(srcdir)/src/system.h; then \
( $(CVS_LIST) ) > /dev/null 2>&1 || exit 0; \
trap 'rm -f .re-list' 0 1 2 3 15; \
trap 'rc=$$?; rm -f .re-list; exit $$rc' 0 1 2 3 15; \
grep -E -f .re-list \
$$($(CVS_LIST) src | grep -Ev '(copy|system)\.h$$') \
&& { echo '$(ME): the above are already included via system.h'\
@@ -240,6 +263,15 @@ sc_unmarked_diagnostics:
{ echo '$(ME): found unmarked diagnostic(s)' 1>&2; \
exit 1; } || :
# Avoid useless parentheses like those in this example:
# #if defined (SYMBOL) || defined (SYM2)
sc_useless_cpp_parens:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
grep '^# *if .*defined *(' \
$$($(CVS_LIST) | grep -vEf .x-$@ ) && \
{ echo '$(ME): found useless parentheses in cpp directive' \
1>&2; exit 1; } || :
# Ensure that date's --help output stays in sync with the info
# documentation for GNU strftime. The only exception is %N,
# which date accepts but GNU strftime does not.
@@ -260,7 +292,7 @@ strftime-check:
# to emit a definition for each substituted variable.
makefile-check:
grep -E '@[A-Z_0-9]+@' `find . -name Makefile.am` \
&& { echo 'Makefile.maint: use $(...), not @...@' 1>&2; exit 1; } || :
&& { echo 'Makefile.maint: use $$(...), not @...@' 1>&2; exit 1; } || :
news-date-check: NEWS
today=`date +%Y-%m-%d`; \
@@ -342,7 +374,7 @@ v_etc_file = lib/version-etc.c
# Make sure that the copyright date in $(v_etc_file) is up to date.
copyright-check:
@if test -f $(v_etc_file); then \
grep '"Copyright (C) $(shell date +%Y) Free' $(v_etc_file) \
grep 'enum { COPYRIGHT_YEAR = 2005 };' $(v_etc_file) \
>/dev/null \
|| { echo 'out of date copyright in $(v_etc_file); update it' 1>&2; \
exit 1; }; \
@@ -394,6 +426,8 @@ null_AM_MAKEFLAGS = \
# by the use of _(). The --disable-nls effectively defines away that macro,
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
# treated as a failure. Also, check for shadowing problems with -Wshadow.
# These CFLAGS are pretty strict. If you build this target, you probably
# have to have a recent version of gcc and glibc headers.
TMPDIR ?= /tmp
t=$(TMPDIR)/$(PACKAGE)/test
my-distcheck: $(local-check)
@@ -402,7 +436,7 @@ my-distcheck: $(local-check)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
cd $(t)/$(distdir) \
&& ./configure --disable-nls \
&& $(MAKE) CFLAGS='-Wformat -Werror -Wshadow' \
&& $(MAKE) CFLAGS='-Werror -Wall -Wformat -Wshadow' \
AM_MAKEFLAGS='$(null_AM_MAKEFLAGS)' \
&& $(MAKE) dvi \
&& $(MAKE) check \
@@ -501,15 +535,15 @@ po-update:
# with each of the files that belongs to some other package and is
# regularly updated from the specified URL.
wget_files ?= \
$(srcdir)/config/config.guess \
$(srcdir)/config/config.sub \
$(srcdir)/config/texinfo.tex \
$(srcdir)/build-aux/config.guess \
$(srcdir)/build-aux/config.sub \
$(srcdir)/build-aux/texinfo.tex \
$(srcdir)/src/ansi2knr.c
get-targets = $(patsubst %, get-%, $(wget_files))
config.guess-url_prefix = $(ftp-gnu)/config/
config.sub-url_prefix = $(ftp-gnu)/config/
config.guess-url_prefix = $(ftp-gnu)/build-aux/
config.sub-url_prefix = $(ftp-gnu)/build-aux/
ansi2knr.c-url_prefix = ftp://ftp.cs.wisc.edu/ghost/
@@ -527,10 +561,10 @@ $(get-targets):
&& $(move_if_change) $(target).t $(target)
cvs_files ?= \
$(srcdir)/config/depcomp \
$(srcdir)/config/install-sh \
$(srcdir)/config/missing \
$(srcdir)/config/mkinstalldirs \
$(srcdir)/build-aux/depcomp \
$(srcdir)/build-aux/install-sh \
$(srcdir)/build-aux/missing \
$(srcdir)/build-aux/mkinstalldirs \
$(srcdir)/src/ansi2knr.c
automake_repo=:pserver:anoncvs:anoncvs@sources.redhat.com:/cvs/automake
.PHONY: wget-update
@@ -555,7 +589,6 @@ emit_upload_commands:
@echo =====================================
@echo =====================================
@echo "$(srcdir)/gnupload $(GNUPLOADFLAGS) \\"
@echo " --to fetish.sf.net:fetish-ftp \\"
@echo " --to $(gnu_rel_host):coreutils \\"
@echo " $(rel-files)"
@echo '# send the /tmp/announcement e-mail'

239
NEWS
View File

@@ -1,5 +1,227 @@
GNU coreutils NEWS -*- outline -*-
* Major changes in release 5.90 (2005-09-29) [unstable]
** Bring back support for `head -NUM', `tail -NUM', etc. even when
conforming to POSIX 1003.1-2001. The following changes apply only
when conforming to POSIX 1003.1-2001; there is no effect when
conforming to older POSIX versions.
The following usages now behave just as when conforming to older POSIX:
date -I
expand -TAB1[,TAB2,...]
fold -WIDTH
head -NUM
join -j FIELD
join -j1 FIELD
join -j2 FIELD
join -o FIELD_NAME1 FIELD_NAME2...
nice -NUM
od -w
pr -S
split -NUM
tail -[NUM][bcl][f] [FILE]
The following usages no longer work, due to the above changes:
date -I TIMESPEC (use `date -ITIMESPEC' instead)
od -w WIDTH (use `od -wWIDTH' instead)
pr -S STRING (use `pr -SSTRING' instead)
A few usages still have behavior that depends on which POSIX standard is
being conformed to, and portable applications should beware these
problematic usages. These include:
Problematic Standard-conforming replacement, depending on
usage whether you prefer the behavior of:
POSIX 1003.2-1992 POSIX 1003.1-2001
sort +4 sort -k 5 sort ./+4
tail +4 tail -n +4 tail ./+4
tail - main.c tail main.c tail -- - main.c
tail -c 4 tail -c 10 ./4 tail -c4
touch 12312359 f touch -t 12312359 f touch ./12312359 f
uniq +4 uniq -s 4 uniq ./+4
These changes are in response to decisions taken in the January 2005
Austin Group standardization meeting. For more details, please see
"Utility Syntax Guidelines" in the Minutes of the January 2005
Meeting <http://www.opengroup.org/austin/docs/austin_239.html>.
** Binary input and output are now implemented more consistently.
These changes affect only platforms like MS-DOS that distinguish
between binary and text files.
The following programs now always use text input/output:
expand unexpand
The following programs now always use binary input/output to copy data:
cp install mv shred
The following programs now always use binary input/output to copy
data, except for stdin and stdout when it is a terminal.
head tac tail tee tr
(cat behaves similarly, unless one of the options -bensAE is used.)
cat's --binary or -B option has been removed. It existed only on
MS-DOS-like platforms, and didn't work as documented there.
md5sum and sha1sum now obey the -b or --binary option, even if
standard input is a terminal, and they no longer report files to be
binary if they actually read them in text mode.
** Changes for better conformance to POSIX
cp, ln, mv, rm changes:
Leading white space is now significant in responses to yes-or-no questions.
For example, if "rm" asks "remove regular file `foo'?" and you respond
with " y" (i.e., space before "y"), it counts as "no".
dd changes:
On a QUIT or PIPE signal, dd now exits without printing statistics.
On hosts lacking the INFO signal, dd no longer treats the USR1
signal as if it were INFO when POSIXLY_CORRECT is set.
If the file F is non-seekable and contains fewer than N blocks,
then before copying "dd seek=N of=F" now extends F with zeroed
blocks until F contains N blocks.
fold changes:
When POSIXLY_CORRECT is set, "fold file -3" is now equivalent to
"fold file ./-3", not the obviously-erroneous "fold file ./-w3".
ls changes:
-p now marks only directories; it is equivalent to the new option
--indicator-style=slash. Use --file-type or
--indicator-style=file-type to get -p's old behavior.
nice changes:
Documentation and diagnostics now refer to "nicenesses" (commonly
in the range -20...19) rather than "nice values" (commonly 0...39).
nohup changes:
nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.
nohup now exits with status 127 (not 1) when given an invalid option.
pathchk changes:
It now rejects the empty name in the normal case. That is,
"pathchk -p ''" now fails, and "pathchk ''" fails unless the
current host (contra POSIX) allows empty file names.
The new -P option checks whether a file name component has leading "-",
as suggested in interpretation "Austin-039:XCU:pathchk:pathchk -p"
<http://www.opengroup.org/austin/interps/doc.tpl?gdid=6232>.
It also rejects the empty name even if the current host accepts it; see
<http://www.opengroup.org/austin/interps/doc.tpl?gdid=6233>.
The --portability option is now equivalent to -p -P.
** Bug fixes
chmod, mkdir, mkfifo, and mknod formerly mishandled rarely-used symbolic
permissions like =xX and =u, and did not properly diagnose some invalid
strings like g+gr, ug,+x, and +1. These bugs have been fixed.
csplit could produce corrupt output, given input lines longer than 8KB
dd now computes statistics using a realtime clock (if available)
rather than the time-of-day clock, to avoid glitches if the
time-of-day is changed while dd is running. Also, it avoids
using unsafe code in signal handlers; this fixes some core dumps.
expr and test now correctly compare integers of unlimited magnitude.
expr now detects integer overflow when converting strings to integers,
rather than silently wrapping around.
ls now refuses to generate time stamps containing more than 1000 bytes, to
foil potential denial-of-service attacks on hosts with very large stacks.
"mkdir -m =+x dir" no longer ignores the umask when evaluating "+x",
and similarly for mkfifo and mknod.
"mkdir -p /tmp/a/b dir" no longer attempts to create the `.'-relative
directory, dir (in /tmp/a), when, after creating /tmp/a/b, it is unable
to return to its initial working directory. Similarly for "install -D
file /tmp/a/b/file".
"pr -D FORMAT" now accepts the same formats that "date +FORMAT" does.
stat now exits nonzero if a file operand does not exist
** Improved robustness
Date no longer needs to allocate virtual memory to do its job,
so it can no longer fail due to an out-of-memory condition,
no matter how large the result.
** Improved portability
hostid now prints exactly 8 hexadecimal digits, possibly with leading zeros,
and without any spurious leading "fff..." on 64-bit hosts.
nice now works on Darwin 7.7.0 in spite of its invalid definition of NZERO.
`rm -r' can remove all entries in a directory even when it is on a
file system for which readdir is buggy and that was not checked by
coreutils' old configure-time run-test.
sleep no longer fails when resumed after being suspended on linux-2.6.8.1,
in spite of that kernel's buggy nanosleep implementation.
** New features
chmod -w now complains if its behavior differs from what chmod a-w
would do, and similarly for chmod -r, chmod -x, etc.
cp and mv: the --reply=X option is deprecated
date accepts the new option --rfc-3339=TIMESPEC. The old --iso-8602 (-I)
option is deprecated; it still works, but new applications should avoid it.
date, du, ls, and pr's time formats now support new %:z, %::z, %:::z
specifiers for numeric time zone offsets like -07:00, -07:00:00, and -07.
dd has new iflag= and oflag= flags "binary" and "text", which have an
effect only on nonstandard platforms that distinguish text from binary I/O.
du accepts new options: --time[=TYPE] and --time-style=STYLE
join now supports a NUL field separator, e.g., "join -t '\0'".
join now detects and reports incompatible options, e.g., "join -t x -t y",
ls no longer outputs an extra space between the mode and the link count
when none of the listed files has an ACL.
md5sum --check now accepts multiple input files, and similarly for sha1sum.
If stdin is a terminal, nohup now redirects it from /dev/null to
prevent the command from tying up an OpenSSH session after you logout.
"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" exists and
"-FOO" is not a valid option.
stat -f -c %S outputs the fundamental block size (used for block counts).
stat -f's default output format has been changed to output this size as well.
stat -f recognizes file systems of type XFS and JFS
"touch -" now touches standard output, not a file named "-".
uname -a no longer generates the -p and -i outputs if they are unknown.
* Major changes in release 5.3.0 (2005-01-08) [unstable]
** Bug fixes
@@ -7,7 +229,7 @@ GNU coreutils NEWS -*- outline -*-
Several fixes to chgrp and chown for compatibility with POSIX and BSD:
Do not affect symbolic links by default.
Now, operate on whatever a symbolic points to, instead.
Now, operate on whatever a symbolic link points to, instead.
To get the old behavior, use --no-dereference (-h).
--dereference now works, even when the specified owner
@@ -72,15 +294,15 @@ GNU coreutils NEWS -*- outline -*-
Fixes for "nice":
If it fails to lower the nice value due to lack of permissions,
If it fails to lower the niceness due to lack of permissions,
it goes ahead and runs the command anyway, as POSIX requires.
It no longer incorrectly reports an error if the current nice
value happens to be -1.
It no longer incorrectly reports an error if the current niceness
happens to be -1.
It no longer assumes that nice values range from -20 through 19.
It no longer assumes that nicenesses range from -20 through 19.
It now consistently adjusts out-of-range nice values to the
It now consistently adjusts out-of-range nicenesses to the
closest values in range; formerly it sometimes reported an error.
pathchk no longer accepts trailing options, e.g., "pathchk -p foo -b"
@@ -406,6 +628,7 @@ GNU coreutils NEWS -*- outline -*-
"-o LIST1,LIST2..." respectively. If join was compiled on a
POSIX 1003.1-2001 system, you may enable the old behavior
by setting _POSIX2_VERSION=199209 in your environment.
[This change was reverted in coreutils 5.3.1.]
* Major changes in release 5.1.0 (2003-12-21):
@@ -954,10 +1177,10 @@ point at which the packages merged to form the coreutils:
--process (-p), --runlevel (-r), --short (-s), --time (-t), --users (-u).
The -u option now produces POSIX-specified results and is the same as
the long option `--users'. --idle is no longer the same as -u.
* The following changes apply on systems conforming to POSIX 1003.1-2001,
and are required by the new POSIX standard:
* The following changes apply on systems conforming to POSIX 1003.1-2001:
- `date -I' is no longer supported. Instead, use `date --iso-8601'.
- `nice -NUM' is no longer supported. Instead, use `nice -n NUM'.
[This change was reverted in coreutils 5.3.1.]
* New 'uname' options -i or --hardware-platform, and -o or --operating-system.
'uname -a' now outputs -i and -o information at the end.
New uname option --kernel-version is an alias for -v.

6
README
View File

@@ -58,6 +58,7 @@ If you run the tests on a SunOS4.1.4 system, expect the ctime-part of
the ls `time-1' test to fail. I believe that is due to a bug in the
way Sun implemented link(2) and chmod(2).
***********************
HPUX 11.x build failure
-----------------------
@@ -114,6 +115,11 @@ would run this command:
env VERBOSE=yes make check -C tests/mv TESTS=hard-link-1 >> log 2>&1
For some tests, you can get even more detail by including
DEBUG=yes in the environment:
env DEBUG=yes VERBOSE=yes make check -C tests/mv TESTS=hard-link-1 >> log 2>&1
and then include the contents of the file `log' in your bug report.
***************************************

View File

@@ -19,7 +19,7 @@ srcdir=$pwd/src
path='export PATH='$srcdir':${PATH#*:}'
pre='#!/bin/sh\n'"$path"'\n'
n=9
vg='exec /usr/bin/valgrind --logfile-fd=3 --leak-check=yes --track-fds=yes --quiet --num-callers='$n
vg='exec /usr/bin/valgrind --log-fd=3 --leak-check=yes --track-fds=yes --quiet --num-callers='$n
cat <<EOF > src/vg/gen
for i in $coreutils; do
printf "$pre$vg \$i"' "\$@"\n' > \$i

18
THANKS
View File

@@ -10,6 +10,7 @@ the bug-report mailing list (as seen on last line of e.g., cp --help).
A Costa agcosta@gis.net
Achim Blumensath blume@corona.oche.de
Adam Klein aklein@debian.org
Adrian Bunk bunk@stusta.de
Akim Demaille demaille@inf.enst.fr
Alain Magloire alain@qnx.com
Alan Iwi iwi@atm.ox.ac.uk
@@ -57,6 +58,7 @@ Ben Harris bjh21@netbsd.org
Benjamin Cutler cutlerbc@simla.colostate.edu
Bengt Martensson bengt@mathematik.uni-Bremen.de
Bernard Giroud bernard.giroud@creditlyonnais.ch
Bernd Eckenfels ecki@debian.org
Bernd Leibing bernd.leibing@rz.uni-ulm.de
Bernd Melchers melchers@cis.fu-berlin.de
Bernhard Baehr bernhard.baehr@gmx.de
@@ -107,6 +109,7 @@ Dániel Varga danielv@axelero.hu
Danny Levinson danny.levinson@overture.com
Darren Salt ds@youmustbejoking.demon.co.uk
Dave Beckett dajobe@dajobe.org
David Alan Gilbert gilbertd@treblig.org
David Dyck dcd@tc.fluke.COM
David Eisner cradle@umd.edu
David Flynn dav@chess.plus.com
@@ -129,12 +132,14 @@ Doug McLaren dougmc@comco.com
Dragos Harabor dharabor@us.oracle.com
Duncan Roe duncanr@optimation.com.au
Ed Avis ed@membled.com
Edward Welbourne eddy@opera.com
Edzer Pebesma Edzer.Pebesma@rivm.nl
Eirik Fuller eirik@hackrat.com
Eivind eivindt@multinet.no
Eli Zaretskii eliz@is.elta.co.il
Emile LeBlanc leblanc@math.toronto.edu
Eric Backus ericb@lsid.hp.com
Eric Blake ebb9@byu.net
Eric G. Miller egm2@jps.net
Eric Pemente pemente@northpark.edu
Eric S. Raymond esr@snark.thyrsus.com
@@ -163,6 +168,7 @@ Geoff Whale geoffw@cse.unsw.EDU.AU
Gerhard Poul gpoul@gnu.org
Germano Leichsenring germano@jedi.cs.kobe-u.ac.jp
Göran Uddeborg goeran@uddeborg.pp.se
Guochun Shi gshi@ncsa.uiuc.edu
GOTO Masanori gotom@debian.or.jp
Greg Louis glouis@dynamicro.on.ca
Greg McGary gkm@gnu.org
@@ -192,6 +198,7 @@ Ingo Saitz ingo@debian.org
Ivo Timmermans ivo@debian.org
James james@albion.glarp.com
James Antill jmanti%essex.ac.uk@seralph21.essex.ac.uk
James Lemley James.Lemley@acxiom.com
James Sneeringer jvs@ocslink.com
James Tanis jtt@soscorp.com
James Youngman james+usenet@free-lunch.demon.co.uk
@@ -215,6 +222,7 @@ Jim Dennis jimd@starshine.org
Joakim Rosqvist dvljrt@cs.umu.se
Jochen Hein jochen@jochen.org
Joe Orton joe@manyfish.co.uk
Johan Boule bohan@bohan.dyndns.org
Johan Danielsson joda@pdc.kth.se
John Bley jbb6@acpub.duke.edu
John David Anglin dave.anglin@nrc.ca
@@ -235,6 +243,7 @@ Juan M. Guerrero st001906@hrz1.hrz.tu-darmstadt.de
Jungshik Shin jshin@pantheon.yale.edu
Jürgen Fluk louis@dachau.marco.de
Jurriaan thunder7@xs4all.nl
Justin Pryzby justinpryzby@users.sourceforge.net
jvogel jvogel@linkny.com
Kai Henningsen kai@debian.org
Kai-Uwe Rommel rommel@informatik.tu-muenchen.de
@@ -249,6 +258,7 @@ Keith M. Briggs keith.briggs@bt.com
Keith Owens kaos@audio.apana.org.au
Keith Thompson kst@cts.com
Ken Pizzini kenp@halcyon.com
Kevin Mudrick kmudrick@healthmarketscience.com
Kristin E Thomas kristint@us.ibm.com
Kjetil Torgrim Homme kjetilho@ifi.uio.no
Kristoffer Rose kris@diku.dk
@@ -260,6 +270,7 @@ Leonard N. Zubkoff lnz@dandelion.com
Leonardo Milano lmilano@udel.edu
Lorne Baker lbaker@nitro.avint.net
Luke Hassell lukehassell@yahoo.com
Luke Kendall lukekendall@optushome.com.au
M. P. Suzuki mpsuzuki@hiroshima-u.ac.jp
Maciej Kwapulinski pikpok@univ.gda.pl
Manas Garg manas@cygsoft.com
@@ -279,6 +290,7 @@ Mark Hewitt mhewitt@armature.com
Mark Hounschell markh@compro.net
Mark Hubbart discord@mac.com
Mark Kettenis kettenis@phys.uva.nl
Mark Melahn mmelahn@gmail.com
Mark Nudelman marknu@flash.net
Mark W. Eichin eichin@cygnus.com
Markus Demleitner msdemlei@auriga.ari.uni-heidelberg.de
@@ -331,6 +343,7 @@ Michiel Bacchiani bacchian@raven.bu.edu
Mike Castle dalgoda@ix.netcom.com
Mike Coleman mkc@mathdogs.com
Mike Jetzer mjetzer@mke.catalystwms.com
Mike Frysinger vapier@gentoo.org
Mikko Tuumanen m@sorvankyla.yok.utu.fi
Mikulas Patocka mikulas@artax.karlin.mff.cuni.cz
Miles Bader miles@gnu.ai.mit.edu
@@ -345,6 +358,7 @@ Niklas Edmundsson nikke@acc.umu.se
Nikola Milutinovic Nikola.Milutinovic@ev.co.yu
Noah Friedman friedman@splode.com
Noel Cragg noel@red-bean.com
Norbert Kiesel nkiesel@tbdnetworks.com
Olatunji Oluwabukunmi Ruwase tjruwase@stanford.edu
Olav Morkrid olav@funcom.com
Ole Laursen olau@hardworking.dk
@@ -407,6 +421,7 @@ Sander van Malssen svm@kozmix.ow.nl
Santiago Vila Doncel sanvila@unex.es
Savochkin Andrey Vladimirovich saw@msu.ru
Scott Lurndal slurn@griffin.engr.sgi.com
Sébastien Maret smaret@umich.edu
Shing-Shong Shei shei@cs.indiana.edu
Soeren Sonnenburg sonnenburg@informatik.hu-berlin.de
Solar Designer solar@owl.openwall.com
@@ -429,6 +444,7 @@ Thomas Bushnell thomas@gnu.ai.mit.edu
Thomas Goerlich thomas@schnappmatik.de
Thomas Luzat thomas@luzat.com
Thomas Quinot thomas@Cuivre.FR.EU.ORG
Thomas Wolff mined@towo.net
Tim J. Robbins tjr@FreeBSD.org
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Tim Smithers mouse@dmouse.com.au
@@ -446,12 +462,14 @@ Tony Robinson ajr@eng.cam.ac.uk
Torbjorn Granlund tege@nada.kth.se
Torbjorn Lindgren tl@funcom.no
Torsten Landschoff torsten@pclab.ifg.uni-kiel.de
Tristan Miller psychonaut@nothingisreal.com
Ulrich Drepper drepper@gnu.org
Ulrich Hermisson ulrich_hermisson@hotmail.com
Urs Thuermann urs@isnogud.escape.de
Uwe H. Steinfeld usteinfeld@gmx.net
Vesselin Atanasov vesselin@bgnet.bg
Vin Shelton acs@alumni.princeton.edu
Vlada Macek tuttle@bbs.fsik.cvut.cz
Volker Borchert bt@teknon.de
Volker Paul vpaul@dohle.com
Wartan Hachaturow wart@tepkom.ru

31
TODO
View File

@@ -63,11 +63,6 @@ df: alignment problem of `Used' heading with e.g., -mP
tr: support nontrivial equivalence classes, e.g. [=e=] with LC_COLLATE=fr_FR
fix tail -f to work with named pipes; reported by Ian D. Allen
$ mkfifo j; tail -f j & sleep 1; echo x > j
./tail: j: file truncated
./tail: j: cannot seek to offset 0: Illegal seek
lib/strftime.c: Since %N is the only format that we need but that
glibc's strftime doesn't support, consider using a wrapper that
would expand /%(-_)?\d*N/ to the desired string and then pass the
@@ -165,16 +160,36 @@ Changes expected to go in, post-5.2.1:
pb (progress bar) from Miika Pekkarinen
------------------------------
Look into improving the performance of md5sum.
`openssl md5' is consistently about 30% faster than md5sum on an idle
AMD 2000-XP system with plenty of RAM and a 261 MB input file.
openssl's md5 implementation is in assembly, generated by a perl script.
On an AMD-64 system, using a 700MB file on a tmpfs file system
(and enough RAM so that no actual disk reads were performed),
GNU md5sum is slightly faster than `openssl md5', e.g.:
2.38s user 0.38s system 100% cpu 2.756 total (gnu md5sum)
vs.
2.52s user 0.34s system 100% cpu 2.869 total
However, `openssl sha1' is about 5% faster than GNU sha1sum:
3.32s user 0.33s system 99% cpu 3.653 total (openssl sha1)
3.45s user 0.39s system 99% cpu 3.843 total (gnu sha1sum)
The above are using the debian-sid (amd_64 alioth) binaries from
coreutils-5.2.1. When I compile the latest (coreutils-cvs) with
gcc-4.0 -O3, I get slightly (2-3%) better sha1sum performance,
and a ~7% *decrease* in performance for md5sum. I suspect that
with the right compiler options you can do much better.
------------------------------
Have euidaccess.m4 check for eaccess as well as euidaccess
If found, then do `#define euidaccess eaccess'.
Remove long-deprecated options like -V for version-control and
tail's --allow-missing
Remove long-deprecated options like tail's --allow-missing
Add a distcheck-time test to ensure that every distributed
file is either read-only(indicating generated) or is
@@ -201,3 +216,5 @@ Adapt tools like wc, tr, fmt, etc. (most of the textutils) to be
multibyte aware. The problem is that I want to avoid duplicating
significant blocks of logic, yet I also want to incur only minimal
(preferably `no') cost when operating in single-byte mode.
Remove all uses of the `register' keyword

447
aclocal.m4 vendored
View File

@@ -1,7 +1,7 @@
# generated automatically by aclocal 1.9.4 -*- Autoconf -*-
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
# Free Software Foundation, Inc.
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -11,23 +11,11 @@
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# -*- Autoconf -*-
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# Generated from amversion.in; do not edit by hand.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_AUTOMAKE_VERSION(VERSION)
# ----------------------------
@@ -40,26 +28,15 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
# Call AM_AUTOMAKE_VERSION so it can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.9.4])])
[AM_AUTOMAKE_VERSION([1.9.6])])
# AM_AUX_DIR_EXPAND
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
@@ -106,26 +83,16 @@ AC_PREREQ([2.50])dnl
am_aux_dir=`cd $ac_aux_dir && pwd`
])
# AM_CONDITIONAL -*- Autoconf -*-
# AM_CONDITIONAL -*- Autoconf -*-
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 6
# serial 7
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
# -------------------------------------
@@ -149,26 +116,15 @@ AC_CONFIG_COMMANDS_PRE(
Usually this means the macro was only invoked conditionally.]])
fi])])
# serial 7 -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 8
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
# written in clear, in which case automake, when reading aclocal.m4,
@@ -177,7 +133,6 @@ fi])])
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
# _AM_DEPENDENCIES(NAME)
# ----------------------
# See how the compiler implements dependency checking.
@@ -317,27 +272,16 @@ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
AC_SUBST([AMDEPBACKSLASH])
])
# Generate code to set up dependency tracking. -*- Autoconf -*-
# Generate code to set up dependency tracking. -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
# Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#serial 2
#serial 3
# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
@@ -396,30 +340,19 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Do all the work for Automake. -*- Autoconf -*-
# Do all the work for Automake. -*- Autoconf -*-
# This macro actually does too much some checks are only needed if
# your package does certain things. But this isn't really a big deal.
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# serial 12
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 11
# This macro actually does too much. Some checks are only needed if
# your package does certain things. But this isn't really a big deal.
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
# AM_INIT_AUTOMAKE([OPTIONS])
@@ -521,51 +454,27 @@ for _am_header in $config_headers :; do
done
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_SH
# ------------------
# Define $install_sh.
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
AC_DEFUN([AM_PROG_INSTALL_SH],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
install_sh=${install_sh-"$am_aux_dir/install-sh"}
AC_SUBST(install_sh)])
# -*- Autoconf -*-
# Copyright (C) 2003 Free Software Foundation, Inc.
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 1
# serial 2
# Check whether the underlying file-system supports filenames
# with a leading dot. For instance MS-DOS doesn't.
@@ -580,26 +489,15 @@ fi
rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 2
# serial 3
# AM_MAKE_INCLUDE()
# -----------------
@@ -643,27 +541,16 @@ AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
# -*- Autoconf -*-
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 3
# serial 4
# AM_MISSING_PROG(NAME, PROGRAM)
# ------------------------------
@@ -689,27 +576,16 @@ else
fi
])
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_MKDIR_P
# ---------------
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
# created by `make install' are always world readable, even if the
# installer happens to have an overly restrictive umask (e.g. 077).
@@ -763,26 +639,15 @@ else
fi
AC_SUBST([mkdir_p])])
# Helper functions for option handling. -*- Autoconf -*-
# Helper functions for option handling. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 2
# serial 3
# _AM_MANGLE_OPTION(NAME)
# -----------------------
@@ -807,26 +672,14 @@ AC_DEFUN([_AM_SET_OPTIONS],
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 3
# serial 4
AC_DEFUN([AM_C_PROTOTYPES],
[AC_REQUIRE([AC_C_PROTOTYPES])
@@ -844,28 +697,16 @@ AC_SUBST(ANSI2KNR)dnl
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
# Check to make sure that the build environment is sane. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# Check to make sure that the build environment is sane.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 3
# serial 4
# AM_SANITY_CHECK
# ---------------
@@ -908,25 +749,14 @@ Check your system clock])
fi
AC_MSG_RESULT(yes)])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_STRIP
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# ---------------------
# One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip
@@ -949,25 +779,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
# Check how to create a tarball. -*- Autoconf -*-
# Copyright (C) 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 1
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 2
# _AM_PROG_TAR(FORMAT)
# --------------------
@@ -1059,9 +877,12 @@ m4_include([m4/acl.m4])
m4_include([m4/afs.m4])
m4_include([m4/alloca.m4])
m4_include([m4/allocsa.m4])
m4_include([m4/argmatch.m4])
m4_include([m4/assert.m4])
m4_include([m4/atexit.m4])
m4_include([m4/autobuild.m4])
m4_include([m4/backupfile.m4])
m4_include([m4/basename.m4])
m4_include([m4/bison.m4])
m4_include([m4/boottime.m4])
m4_include([m4/c-strtod.m4])
@@ -1075,8 +896,10 @@ m4_include([m4/clock_time.m4])
m4_include([m4/cloexec.m4])
m4_include([m4/closeout.m4])
m4_include([m4/codeset.m4])
m4_include([m4/cycle-check.m4])
m4_include([m4/d-ino.m4])
m4_include([m4/d-type.m4])
m4_include([m4/diacrit.m4])
m4_include([m4/dirfd.m4])
m4_include([m4/dirname.m4])
m4_include([m4/dos.m4])
@@ -1089,20 +912,26 @@ m4_include([m4/exclude.m4])
m4_include([m4/exitfail.m4])
m4_include([m4/extensions.m4])
m4_include([m4/fcntl-safer.m4])
m4_include([m4/fd-reopen.m4])
m4_include([m4/file-type.m4])
m4_include([m4/fileblocks.m4])
m4_include([m4/filemode.m4])
m4_include([m4/filenamecat.m4])
m4_include([m4/fnmatch.m4])
m4_include([m4/fpending.m4])
m4_include([m4/free.m4])
m4_include([m4/fstypename.m4])
m4_include([m4/fsusage.m4])
m4_include([m4/ftruncate.m4])
m4_include([m4/fts.m4])
m4_include([m4/getaddrinfo.m4])
m4_include([m4/getcwd-path-max.m4])
m4_include([m4/getcwd.m4])
m4_include([m4/getdate.m4])
m4_include([m4/getdelim.m4])
m4_include([m4/getgroups.m4])
m4_include([m4/gethostname.m4])
m4_include([m4/gethrxtime.m4])
m4_include([m4/getline.m4])
m4_include([m4/getndelim2.m4])
m4_include([m4/getopt.m4])
@@ -1116,6 +945,7 @@ m4_include([m4/getusershell.m4])
m4_include([m4/glibc21.m4])
m4_include([m4/group-member.m4])
m4_include([m4/hard-locale.m4])
m4_include([m4/hash-pjw.m4])
m4_include([m4/hash.m4])
m4_include([m4/host-os.m4])
m4_include([m4/human.m4])
@@ -1134,17 +964,21 @@ m4_include([m4/lib-check.m4])
m4_include([m4/lib-ld.m4])
m4_include([m4/lib-link.m4])
m4_include([m4/lib-prefix.m4])
m4_include([m4/linebuffer.m4])
m4_include([m4/link-follow.m4])
m4_include([m4/localcharset.m4])
m4_include([m4/long-options.m4])
m4_include([m4/longdouble.m4])
m4_include([m4/longlong.m4])
m4_include([m4/ls-mntd-fs.m4])
m4_include([m4/lstat.m4])
m4_include([m4/makepath.m4])
m4_include([m4/mbchar.m4])
m4_include([m4/mbiter.m4])
m4_include([m4/mbrtowc.m4])
m4_include([m4/mbstate_t.m4])
m4_include([m4/mbswidth.m4])
m4_include([m4/md5.m4])
m4_include([m4/memcasecmp.m4])
m4_include([m4/memchr.m4])
m4_include([m4/memcmp.m4])
m4_include([m4/memcoll.m4])
@@ -1153,6 +987,7 @@ m4_include([m4/memmove.m4])
m4_include([m4/mempcpy.m4])
m4_include([m4/memrchr.m4])
m4_include([m4/memset.m4])
m4_include([m4/mkdir-p.m4])
m4_include([m4/mkdir-slash.m4])
m4_include([m4/mkstemp.m4])
m4_include([m4/mktime.m4])
@@ -1161,9 +996,8 @@ m4_include([m4/mountlist.m4])
m4_include([m4/nanosleep.m4])
m4_include([m4/nls.m4])
m4_include([m4/obstack.m4])
m4_include([m4/onceonly.m4])
m4_include([m4/onceonly_2_57.m4])
m4_include([m4/openat.m4])
m4_include([m4/path-concat.m4])
m4_include([m4/pathmax.m4])
m4_include([m4/perl.m4])
m4_include([m4/physmem.m4])
@@ -1175,7 +1009,6 @@ m4_include([m4/progtest.m4])
m4_include([m4/putenv.m4])
m4_include([m4/quote.m4])
m4_include([m4/quotearg.m4])
m4_include([m4/readdir.m4])
m4_include([m4/readlink.m4])
m4_include([m4/readtokens.m4])
m4_include([m4/readutmp.m4])
@@ -1184,6 +1017,7 @@ m4_include([m4/rename.m4])
m4_include([m4/restrict.m4])
m4_include([m4/rmdir-errno.m4])
m4_include([m4/rmdir.m4])
m4_include([m4/root-dev-ino.m4])
m4_include([m4/rpmatch.m4])
m4_include([m4/safe-read.m4])
m4_include([m4/safe-write.m4])
@@ -1195,21 +1029,26 @@ m4_include([m4/settime.m4])
m4_include([m4/sha1.m4])
m4_include([m4/sig2str.m4])
m4_include([m4/signed.m4])
m4_include([m4/socklen.m4])
m4_include([m4/sockpfaf.m4])
m4_include([m4/ssize_t.m4])
m4_include([m4/st_dm_mode.m4])
m4_include([m4/st_mtim.m4])
m4_include([m4/stat-macros.m4])
m4_include([m4/stat-prog.m4])
m4_include([m4/stat.m4])
m4_include([m4/stat-time.m4])
m4_include([m4/stdbool.m4])
m4_include([m4/stdint_h.m4])
m4_include([m4/stdio-safer.m4])
m4_include([m4/stdlib-safer.m4])
m4_include([m4/stpcpy.m4])
m4_include([m4/strcase.m4])
m4_include([m4/strcspn.m4])
m4_include([m4/strdup.m4])
m4_include([m4/strftime.m4])
m4_include([m4/stripslash.m4])
m4_include([m4/strndup.m4])
m4_include([m4/strnlen.m4])
m4_include([m4/strnumcmp.m4])
m4_include([m4/strpbrk.m4])
m4_include([m4/strstr.m4])
m4_include([m4/strtod.m4])
@@ -1231,6 +1070,7 @@ m4_include([m4/ulonglong.m4])
m4_include([m4/unicodeio.m4])
m4_include([m4/unistd-safer.m4])
m4_include([m4/unlink-busy.m4])
m4_include([m4/unlinkdir.m4])
m4_include([m4/unlocked-io.m4])
m4_include([m4/uptime.m4])
m4_include([m4/userspec.m4])
@@ -1242,10 +1082,13 @@ m4_include([m4/utimes-null.m4])
m4_include([m4/utimes.m4])
m4_include([m4/vasnprintf.m4])
m4_include([m4/vasprintf.m4])
m4_include([m4/version-etc.m4])
m4_include([m4/wchar_t.m4])
m4_include([m4/wint_t.m4])
m4_include([m4/xalloc.m4])
m4_include([m4/xfts.m4])
m4_include([m4/xgetcwd.m4])
m4_include([m4/xnanosleep.m4])
m4_include([m4/xreadlink.m4])
m4_include([m4/xstrtod.m4])
m4_include([m4/xstrtoimax.m4])

View File

@@ -6,7 +6,7 @@ use Getopt::Long;
use Digest::MD5;
use Digest::SHA1;
(my $VERSION = '$Revision: 1.22 $ ') =~ tr/[0-9].//cd;
(my $VERSION = '$Revision: 1.23 $ ') =~ tr/[0-9].//cd;
(my $ME = $0) =~ s|.*/||;
my %valid_release_types = map {$_ => 1} qw (alpha beta major);
@@ -134,7 +134,7 @@ sub print_signatures (@)
{
my (@file) = @_;
print "Here are the MD5 and SHA1 signatures:\n";
print "Here are the MD5 and SHA1 checksums:\n";
print "\n";
foreach my $meth (qw (md5 sha1))

View File

@@ -1,3 +1,46 @@
2005-09-21 Paul Eggert <eggert@cs.ucla.edu>
* install-sh, config.guess: Sync from gnulib.
2005-07-01 Jim Meyering <jim@meyering.net>
* config.guess, config.sub, mdate-sh, missing, mkinstalldirs:
* texinfo.tex: Update from gnulib.
2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
* config.guess, config.sub, texinfo.tex: Sync from gnulib.
2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
* config.guess: Sync from gnulib.
2005-05-15 Paul Eggert <eggert@cs.ucla.edu>
* depcomp, install-sh, mdate-sh, missing, pmkinstalldirs:
Sync from gnulib (scriptversion change only).
2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
* config.guess, config.sub: Sync from gnulib.
2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
* config.guess, config.sub, texinfo.tex: Sync from gnulib.
2005-03-20 Paul Eggert <eggert@cs.ucla.edu>
* config.rpath: Sync from gnulib.
2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
* config.guess, config.sub, depcomp, install-sh, mdate-sh, missing,
mkinstalldirs: Sync from gnulib.
2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
* config.sub: Sync from gnulib.
2004-12-17 Jim Meyering <jim@meyering.net>
* install-sh: Sync from gnulib.

File diff suppressed because it is too large Load Diff

View File

@@ -2,28 +2,13 @@
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Copyright 1996-2005 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
@@ -50,6 +35,8 @@ host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cc_basename=`echo "$CC" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
wl=
@@ -60,6 +47,13 @@ else
aix*)
wl='-Wl,'
;;
darwin*)
case "$cc_basename" in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | pw32* | os2*)
;;
hpux9* | hpux10* | hpux11*)
@@ -71,13 +65,19 @@ else
newsos6)
;;
linux*)
case $CC in
icc|ecc)
case $cc_basename in
icc* | ecc*)
wl='-Wl,'
;;
ccc)
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
esac
;;
osf3* | osf4* | osf5*)
@@ -96,6 +96,9 @@ else
;;
sysv4*MP*)
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
@@ -138,7 +141,7 @@ if test "$with_gnu_ld" = yes; then
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we can use
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
@@ -173,6 +176,13 @@ if test "$with_gnu_ld" = yes; then
sunos4*)
hardcode_direct=yes
;;
linux*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
@@ -266,7 +276,7 @@ else
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi4*)
bsdi[45]*)
;;
cygwin* | mingw* | pw32*)
# When not using gcc, we currently assume that we are using
@@ -277,8 +287,17 @@ else
libext=lib
;;
darwin* | rhapsody*)
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
hardcode_direct=no
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case "$cc_basename" in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
@@ -295,7 +314,7 @@ else
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd*)
freebsd* | kfreebsd*-gnu | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
@@ -438,7 +457,7 @@ case "$host_os" in
;;
beos*)
;;
bsdi4*)
bsdi[45]*)
;;
cygwin* | mingw* | pw32*)
shrext=.dll
@@ -450,6 +469,8 @@ case "$host_os" in
;;
freebsd1*)
;;
kfreebsd*-gnu)
;;
freebsd*)
;;
gnu*)
@@ -486,11 +507,13 @@ case "$host_os" in
;;
linux*)
;;
knetbsd*-gnu)
;;
netbsd*)
;;
newsos6)
;;
nto-qnx)
nto-qnx*)
;;
openbsd*)
;;
@@ -519,7 +542,7 @@ escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"

View File

@@ -1,9 +1,9 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
timestamp='2004-11-30'
timestamp='2005-07-08'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -21,14 +21,15 @@ timestamp='2004-11-30'
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
#
@@ -70,7 +71,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
@@ -83,11 +84,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit 0 ;;
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit 0 ;;
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit 0 ;;
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
@@ -99,7 +100,7 @@ while test $# -gt 0 ; do
*local*)
# First pass through any local machine types.
echo $1
exit 0;;
exit ;;
* )
break ;;
@@ -231,13 +232,14 @@ case $basic_machine in
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| m32r | m32rle | m68000 | m68k | m88k | mcore \
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -246,6 +248,7 @@ case $basic_machine in
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
@@ -254,15 +257,17 @@ case $basic_machine in
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| ms1 \
| msp430 \
| ns16k | ns32k \
| openrisc | or32 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b \
| strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
@@ -271,6 +276,9 @@ case $basic_machine in
| z8k)
basic_machine=$basic_machine-unknown
;;
m32c)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
@@ -298,7 +306,7 @@ case $basic_machine in
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
| bs2000-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
@@ -310,7 +318,7 @@ case $basic_machine in
| ip2k-* | iq2000-* \
| m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | mcore-* \
| m88110-* | m88k-* | maxq-* | mcore-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
@@ -319,6 +327,7 @@ case $basic_machine in
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
@@ -327,6 +336,7 @@ case $basic_machine in
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| ms1-* \
| msp430-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
@@ -334,9 +344,10 @@ case $basic_machine in
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
@@ -348,6 +359,8 @@ case $basic_machine in
| ymp-* \
| z8k-*)
;;
m32c-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
@@ -758,9 +771,8 @@ case $basic_machine in
basic_machine=hppa1.1-oki
os=-proelf
;;
or32 | or32-*)
openrisc | openrisc-*)
basic_machine=or32-unknown
os=-coff
;;
os400)
basic_machine=powerpc-ibm
@@ -1086,12 +1098,9 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
@@ -1178,7 +1187,8 @@ case $os in
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1196,7 +1206,7 @@ case $os in
os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
@@ -1385,6 +1395,9 @@ case $basic_machine in
*-be)
os=-beos
;;
*-haiku)
os=-haiku
;;
*-ibm)
os=-aix
;;
@@ -1556,7 +1569,7 @@ case $basic_machine in
esac
echo $basic_machine$os
exit 0
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)

View File

@@ -1,9 +1,9 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2004-05-31.23
scriptversion=2005-07-09.11
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,8 +17,8 @@ scriptversion=2004-05-31.23
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -50,11 +50,11 @@ Environment variables:
Report bugs to <bug-automake@gnu.org>.
EOF
exit 0
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit 0
exit $?
;;
esac
@@ -287,36 +287,43 @@ tru64)
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
if test "$libtool" = yes; then
# Dependencies are output in .lo.d with libtool 1.4.
# With libtool 1.5 they are output both in $dir.libs/$base.o.d
# and in $dir.libs/$base.o.d and $dir$base.o.d. We process the
# latter, because the former will be cleaned when $dir.libs is
# erased.
tmpdepfile1="$dir.libs/$base.lo.d"
tmpdepfile2="$dir$base.o.d"
tmpdepfile3="$dir.libs/$base.d"
# With Tru64 cc, shared objects can also be used to make a
# static library. This mecanism is used in libtool 1.4 series to
# handle both shared and static libraries in a single compilation.
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
#
# With libtool 1.5 this exception was removed, and libtool now
# generates 2 separate objects for the 2 libraries. These two
# compilations output dependencies in in $dir.libs/$base.o.d and
# in $dir$base.o.d. We have to check for both files, because
# one of the two compilations can be disabled. We should prefer
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
# automatically cleaned when .libs/ is deleted, while ignoring
# the former would cause a distcleancheck panic.
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
tmpdepfile2=$dir$base.o.d # libtool 1.5
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1="$dir$base.o.d"
tmpdepfile2="$dir$base.d"
tmpdepfile3="$dir$base.d"
tmpdepfile1=$dir$base.o.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
tmpdepfile4=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
exit $stat
fi
if test -f "$tmpdepfile1"; then
tmpdepfile="$tmpdepfile1"
elif test -f "$tmpdepfile2"; then
tmpdepfile="$tmpdepfile2"
else
tmpdepfile="$tmpdepfile3"
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
do
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a tab and a space in the [].
@@ -460,7 +467,8 @@ cpp)
done
"$@" -E |
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2004-12-17.09
scriptversion=2005-09-13.16
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -58,7 +58,21 @@ stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
chmodcmd="$chmodprog 0755"
posix_glob=
posix_mkdir=
# Symbolic mode for testing mkdir with directories.
# It is the same as 755, but also tests that "u+" works.
test_mode=u=rwx,g=rx,o=rx,u+wx
# Desired mode of installed file.
mode=0755
# Desired mode of newly created intermediate directories.
# It is empty if not known yet.
intermediate_mode=
chmodcmd=$chmodprog
chowncmd=
chgrpcmd=
stripcmd=
@@ -109,9 +123,9 @@ while test -n "$1"; do
shift
continue;;
--help) echo "$usage"; exit 0;;
--help) echo "$usage"; exit $?;;
-m) chmodcmd="$chmodprog $2"
-m) mode=$2
shift
shift
continue;;
@@ -134,7 +148,7 @@ while test -n "$1"; do
shift
continue;;
--version) echo "$0 $scriptversion"; exit 0;;
--version) echo "$0 $scriptversion"; exit $?;;
*) # When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
@@ -164,6 +178,8 @@ if test -z "$1"; then
exit 0
fi
test -n "$dir_arg" || trap '(exit $?); exit' 1 2 13 15
for src
do
# Protect names starting with `-'.
@@ -173,15 +189,11 @@ do
if test -n "$dir_arg"; then
dst=$src
src=
if test -d "$dst"; then
mkdircmd=:
chmodcmd=
else
mkdircmd=$mkdirprog
fi
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
@@ -208,53 +220,122 @@ do
echo "$0: $dstarg: Is a directory" >&2
exit 1
fi
dst=$dst/`basename "$src"`
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
# This sed command emulates the dirname command.
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
obsolete_mkdir_used=false
# Make sure that the destination directory exists.
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
posix_mkdir=false
if $mkdirprog -m $test_mode -p -- / >/dev/null 2>&1; then
posix_mkdir=true
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./-m "$test_mode" ./-p ./-- 2>/dev/null
fi ;;
esac
# Skip lots of stat calls in the usual case.
if test ! -d "$dstdir"; then
defaultIFS='
'
IFS="${IFS-$defaultIFS}"
if
$posix_mkdir && {
oIFS=$IFS
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
shift
IFS=$oIFS
# With -d, create the new directory with the user-specified mode.
# Otherwise, create it using the same intermediate mode that
# mkdir -p would use when creating intermediate directories.
# POSIX says that this mode is "$(umask -S),u+wx", so use that
# if umask -S works.
pathcomp=
if test -n "$dir_arg"; then
mkdir_mode=$mode
else
case $intermediate_mode in
'')
if umask_S=`(umask -S) 2>/dev/null`; then
intermediate_mode=$umask_S,u+wx
else
intermediate_mode=$test_mode
fi ;;
esac
mkdir_mode=$intermediate_mode
fi
while test $# -ne 0 ; do
pathcomp=$pathcomp$1
$mkdirprog -m "$mkdir_mode" -p -- "$dstdir"
}
then :
else
# mkdir does not conform to POSIX, or it failed possibly due to
# a race condition. Create the directory the slow way, step by
# step, checking for races as we go.
case $dstdir in
/*) pathcomp=/ ;;
-*) pathcomp=./ ;;
*) pathcomp= ;;
esac
case $posix_glob in
'')
if (set -f) 2>/dev/null; then
posix_glob=true
else
posix_glob=false
fi ;;
esac
oIFS=$IFS
IFS=/
$posix_glob && set -f
set fnord $dstdir
shift
if test ! -d "$pathcomp"; then
$mkdirprog "$pathcomp"
# mkdir can fail with a `File exist' error in case several
# install-sh are creating the directory concurrently. This
# is OK.
test -d "$pathcomp" || exit
fi
pathcomp=$pathcomp/
done
$posix_glob && set +f
IFS=$oIFS
for d
do
test "x$d" = x && continue
pathcomp=$pathcomp$d
if test ! -d "$pathcomp"; then
$mkdirprog "$pathcomp"
# Don't fail if two instances are running concurrently.
test -d "$pathcomp" || exit 1
fi
pathcomp=$pathcomp/
done
obsolete_mkdir_used=true
fi
fi
if test -n "$dir_arg"; then
$doit $mkdircmd "$dst" \
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd "$mode" "$dst"; } || exit 1
else
dstfile=`basename "$dst"`
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
@@ -262,7 +343,6 @@ do
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
trap '(exit $?); exit' 1 2 13 15
# Copy the file name to the temp name.
$doit $cpprog "$src" "$dsttmp" &&
@@ -276,10 +356,10 @@ do
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
&& { test -z "$chmodcmd" || $doit $chmodcmd "$mode" "$dsttmp"; } &&
# Now rename the file to the real destination.
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
{ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
|| {
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
@@ -291,11 +371,12 @@ do
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
if test -f "$dstdir/$dstfile"; then
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
if test -f "$dst"; then
$doit $rmcmd -f "$dst" 2>/dev/null \
|| { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
&& { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
|| {
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
else
@@ -304,16 +385,13 @@ do
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
$doit $mvcmd "$dsttmp" "$dst"
}
}
fi || { (exit 1); exit 1; }
done
} || exit 1
# The final little trick to "correctly" pass the exit status to the exit trap.
{
(exit 0); exit 0
}
trap - 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)

View File

@@ -1,9 +1,10 @@
#!/bin/sh
# Get modification time of a file or directory and pretty-print it.
scriptversion=2004-12-08.12
scriptversion=2005-06-29.22
# Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc.
# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software
# Foundation, Inc.
# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
#
# This program is free software; you can redistribute it and/or modify
@@ -18,7 +19,7 @@ scriptversion=2004-12-08.12
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -42,11 +43,11 @@ Pretty-print the modification time of FILE.
Report bugs to <bug-automake@gnu.org>.
EOF
exit 0
exit $?
;;
-v | --v*)
echo "mdate-sh $scriptversion"
exit 0
exit $?
;;
esac
@@ -58,7 +59,15 @@ export LC_ALL
LC_TIME=C
export LC_TIME
save_arg1="$1"
# GNU ls changes its time format in response to the TIME_STYLE
# variable. Since we cannot assume `unset' works, revert this
# variable to its documented default.
if test "${TIME_STYLE+set}" = set; then
TIME_STYLE=posix-long-iso
export TIME_STYLE
fi
save_arg1=$1
# Find out how to get the extended ls output of a file or directory.
if ls -L /dev/null 1>/dev/null 2>&1; then
@@ -107,13 +116,32 @@ do
done
# Get the extended ls output of the file or directory.
set x`eval "$ls_command \"\$save_arg1\""`
set dummy x`eval "$ls_command \"\$save_arg1\""`
# Remove all preceding arguments
eval $command
# Get the month. Next argument is day, followed by the year or time.
case $1 in
# Because of the dummy argument above, month is in $2.
#
# On a POSIX system, we should have
#
# $# = 5
# $1 = file size
# $2 = month
# $3 = day
# $4 = year or time
# $5 = filename
#
# On Darwin 7.7.0 and 7.6.0, we have
#
# $# = 4
# $1 = day
# $2 = month
# $3 = year or time
# $4 = filename
# Get the month.
case $2 in
Jan) month=January; nummonth=1;;
Feb) month=February; nummonth=2;;
Mar) month=March; nummonth=3;;
@@ -128,7 +156,10 @@ case $1 in
Dec) month=December; nummonth=12;;
esac
day=$2
case $3 in
???*) day=$1;;
*) day=$3; shift;;
esac
# Here we have to deal with the problem that the ls output gives either
# the time of day or the year.

View File

@@ -1,9 +1,9 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2004-09-07.08
scriptversion=2005-06-08.21
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
@@ -19,8 +19,8 @@ scriptversion=2004-09-07.08
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -87,12 +87,12 @@ Supported PROGRAM values:
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
Send bug reports to <bug-automake@gnu.org>."
exit 0
exit $?
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing $scriptversion (GNU Automake)"
exit 0
exit $?
;;
-*)
@@ -288,11 +288,18 @@ WARNING: \`$1' is $msg. You should only need it if
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
# The file to touch is that specified with -o ...
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
# ... or it is the one specified with @setfilename ...
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
# ... or it is derived from the source name (dir/f.texi becomes f.info)
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
# If the file does not exist, the user really needs makeinfo;
# let's fail without touching anything.
test -f $file || exit 1
touch $file
;;

View File

@@ -1,7 +1,7 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2004-02-15.20
scriptversion=2005-06-29.22
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
@@ -12,7 +12,7 @@ scriptversion=2004-02-15.20
# <automake-patches@gnu.org>.
errstatus=0
dirmode=""
dirmode=
usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
@@ -27,7 +27,7 @@ while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage"
exit 0
exit $?
;;
-m) # -m PERM arg
shift
@@ -37,7 +37,7 @@ while test $# -gt 0 ; do
;;
--version)
echo "$0 $scriptversion"
exit 0
exit $?
;;
--) # stop option processing
shift
@@ -103,13 +103,21 @@ esac
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
case $file in
/*) pathcomp=/ ;;
*) pathcomp= ;;
esac
oIFS=$IFS
IFS=/
set fnord $file
shift
IFS=$oIFS
pathcomp=
for d
do
pathcomp="$pathcomp$d"
test "x$d" = x && continue
pathcomp=$pathcomp$d
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
@@ -124,7 +132,7 @@ do
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=""
lasterr=
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
@@ -134,7 +142,7 @@ do
fi
fi
pathcomp="$pathcomp/"
pathcomp=$pathcomp/
done
done

File diff suppressed because it is too large Load Diff

View File

@@ -89,9 +89,6 @@
*/
#undef GETLOADAVG_PRIVILEGED
/* Define if gettimeofday clobbers localtime's static buffer. */
#undef GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER
/* The concatenation of the strings `GNU ', and PACKAGE. */
#undef GNU_PACKAGE
@@ -115,8 +112,8 @@
includes <alloca.h> only if HAVE_ALLOCA_H is defined. */
#undef HAVE_ALLOCA_H
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H
/* Define if you have an arithmetic hrtime_t type. */
#undef HAVE_ARITHMETIC_HRTIME_T
/* Define to 1 if you have the `atexit' function. */
#undef HAVE_ATEXIT
@@ -137,6 +134,14 @@
/* Define to 1 if you have the `canonicalize_file_name' function. */
#undef HAVE_CANONICALIZE_FILE_NAME
/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
CoreFoundation framework. */
#undef HAVE_CFLOCALECOPYCURRENT
/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
the CoreFoundation framework. */
#undef HAVE_CFPREFERENCESCOPYAPPVALUE
/* Define to 1 if your system has a working `chown' function. */
#undef HAVE_CHOWN
@@ -152,6 +157,9 @@
/* Define to 1 if you have the `clock_settime' function. */
#undef HAVE_CLOCK_SETTIME
/* Define if you have compound literals. */
#undef HAVE_COMPOUND_LITERALS
/* FIXME */
#undef HAVE_C_LINE
@@ -227,6 +235,10 @@
don't. */
#undef HAVE_DECL_GETC_UNLOCKED
/* Define to 1 if you have the declaration of `getdelim', and to 0 if you
don't. */
#undef HAVE_DECL_GETDELIM
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
*/
#undef HAVE_DECL_GETENV
@@ -239,6 +251,14 @@
don't. */
#undef HAVE_DECL_GETGRGID
/* Define to 1 if you have the declaration of `gethrtime', and to 0 if you
don't. */
#undef HAVE_DECL_GETHRTIME
/* Define to 1 if you have the declaration of `getline', and to 0 if you
don't. */
#undef HAVE_DECL_GETLINE
/* Define to 1 if you have the declaration of `getlogin', and to 0 if you
don't. */
#undef HAVE_DECL_GETLOGIN
@@ -355,6 +375,10 @@
don't. */
#undef HAVE_DECL_TTYNAME
/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
*/
#undef HAVE_DECL_TZNAME
/* Define to 1 if you have the declaration of wcwidth(), and to 0 otherwise.
*/
#undef HAVE_DECL_WCWIDTH
@@ -402,26 +426,23 @@
/* Define if you have the declaration of errno. */
#undef HAVE_ERRNO_DECL
/* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define to 1 if you have the `euidaccess' function. */
#undef HAVE_EUIDACCESS
/* Define to 1 if you have the `fchdir' function. */
#undef HAVE_FCHDIR
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the `fchmod' function. */
#undef HAVE_FCHMOD
/* Define to 1 if you have the `fchown' function. */
#undef HAVE_FCHOWN
/* Define to 1 if you have the `fdatasync' function. */
#undef HAVE_FDATASYNC
/* Define to 1 if you have the `fesetround' function. */
#undef HAVE_FESETROUND
/* Define to 1 if you have the <float.h> header file. */
#undef HAVE_FLOAT_H
/* Define to 1 if you have the `flockfile' function. */
#undef HAVE_FLOCKFILE
/* Define to 1 if you have the `floor' function. */
#undef HAVE_FLOOR
@@ -438,12 +459,21 @@
/* Define to 1 if you have the `ftruncate' function. */
#undef HAVE_FTRUNCATE
/* Define to 1 if you have the `funlockfile' function. */
#undef HAVE_FUNLOCKFILE
/* Define to 1 if you have the `futimes' function. */
#undef HAVE_FUTIMES
/* Define to 1 if you have the `futimesat' function. */
#undef HAVE_FUTIMESAT
/* Define if struct statfs has the f_fstypename member. */
#undef HAVE_F_FSTYPENAME_IN_STATFS
/* Define to 1 if you have the `gai_strerror' function. */
#undef HAVE_GAI_STRERROR
/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO
@@ -453,21 +483,12 @@
/* Define to 1 if your system has a working `getgroups' function. */
#undef HAVE_GETGROUPS
/* Define to 1 if you have the `gethostbyaddr' function. */
#undef HAVE_GETHOSTBYADDR
/* Define to 1 if you have the `gethostbyname' function. */
#undef HAVE_GETHOSTBYNAME
/* Define to 1 if you have the `gethostid' function. */
#undef HAVE_GETHOSTID
/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME
/* Define to 1 if you have the `gethrtime' function. */
#undef HAVE_GETHRTIME
/* Define to 1 if you have the `getloadavg' function. */
#undef HAVE_GETLOADAVG
@@ -486,9 +507,6 @@
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the `getpass' function. */
#undef HAVE_GETPASS
/* Define to 1 if you have the `getspnam' function. */
#undef HAVE_GETSPNAM
@@ -516,9 +534,6 @@
/* Define if you have the iconv() function. */
#undef HAVE_ICONV
/* Define to 1 if you have the `inet_ntoa' function. */
#undef HAVE_INET_NTOA
/* Define to 1 if you have the `initgroups' function. */
#undef HAVE_INITGROUPS
@@ -532,9 +547,18 @@
declares uintmax_t. */
#undef HAVE_INTTYPES_H_WITH_UINTMAX
/* Define to 1 if <sys/socket.h> defines AF_INET. */
#undef HAVE_IPV4
/* Define to 1 if <sys/socket.h> defines AF_INET6. */
#undef HAVE_IPV6
/* Define to 1 if you have the `isascii' function. */
#undef HAVE_ISASCII
/* Define to 1 if you have the `isblank' function. */
#undef HAVE_ISBLANK
/* Define to 1 if you have the `iswcntrl' function. */
#undef HAVE_ISWCNTRL
@@ -568,12 +592,12 @@
/* Define to 1 if you have the `ypsec' library (-lypsec). */
#undef HAVE_LIBYPSEC
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define to 1 if you have the `listmntent' function. */
#undef HAVE_LISTMNTENT
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define if you have the 'long double' type. */
#undef HAVE_LONG_DOUBLE
@@ -636,6 +660,9 @@
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET
/* Define to 1 if you have the `microuptime' function. */
#undef HAVE_MICROUPTIME
/* Define to 1 if you have the `mkfifo' function. */
#undef HAVE_MKFIFO
@@ -645,18 +672,18 @@
/* Define to 1 if you have the <mntent.h> header file. */
#undef HAVE_MNTENT_H
/* Define to 1 if you have the <mnttab.h> header file. */
#undef HAVE_MNTTAB_H
/* Define to 1 if you have the `modf' function. */
#undef HAVE_MODF
/* Define to 1 if you have the `nanotime' function. */
#undef HAVE_NANOTIME
/* Define to 1 if you have the `nanouptime' function. */
#undef HAVE_NANOUPTIME
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H
/* Define to 1 if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define to 1 if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
@@ -669,6 +696,9 @@
/* Define to 1 if you have the <nfs/vfs.h> header file. */
#undef HAVE_NFS_VFS_H
/* Define to 1 if you have the `nice' function. */
#undef HAVE_NICE
/* Define to 1 if you have the <nlist.h> header file. */
#undef HAVE_NLIST_H
@@ -693,6 +723,9 @@
/* Define to 1 if you have the <paths.h> header file. */
#undef HAVE_PATHS_H
/* Define to 1 if you have the <priv.h> header file. */
#undef HAVE_PRIV_H
/* Define if your system has the /proc/uptime special file. */
#undef HAVE_PROC_UPTIME
@@ -757,19 +790,15 @@
/* Define to 1 if you have the `sig2str' function. */
#undef HAVE_SIG2STR
/* Define to 1 if you have the `siginterrupt' function. */
#undef HAVE_SIGINTERRUPT
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the `sqrt' function. */
#undef HAVE_SQRT
/* Define to 1 if you have the `statvfs' function. */
#undef HAVE_STATVFS
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#undef HAVE_STAT_EMPTY_STRING_BUG
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
@@ -795,12 +824,6 @@
/* Define to 1 if you have the `stpcpy' function. */
#undef HAVE_STPCPY
/* Define to 1 if you have the `strcasecmp' function. */
#undef HAVE_STRCASECMP
/* Define to 1 if you have the `strchr' function. */
#undef HAVE_STRCHR
/* Define to 1 if you have the `strcoll' function and it is properly defined.
*/
#undef HAVE_STRCOLL
@@ -811,9 +834,6 @@
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the `strerror_r' function. */
#undef HAVE_STRERROR_R
@@ -832,15 +852,12 @@
/* Define to 1 if you have the `strndup' function. */
#undef HAVE_STRNDUP
/* Define to 1 if you have the <stropts.h> header file. */
#undef HAVE_STROPTS_H
/* Define to 1 if you have the `strpbrk' function. */
#undef HAVE_STRPBRK
/* Define to 1 if you have the `strrchr' function. */
#undef HAVE_STRRCHR
/* Define to 1 if you have the `strstr' function. */
#undef HAVE_STRSTR
/* Define to 1 if you have the `strtoimax' function. */
#undef HAVE_STRTOIMAX
@@ -905,6 +922,18 @@
/* Define to 1 if `f_type' is member of `struct statvfs'. */
#undef HAVE_STRUCT_STATVFS_F_TYPE
/* Define to 1 if `st_atimensec' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_ATIMENSEC
/* Define to 1 if `st_atimespec.tv_nsec' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC
/* Define to 1 if `st_atim.st__tim.tv_nsec' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC
/* Define to 1 if `st_atim.tv_nsec' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC
/* Define to 1 if `st_author' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_AUTHOR
@@ -914,6 +943,9 @@
/* Define to 1 if `st_blocks' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BLOCKS
/* Define to 1 if `st_spare1' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_SPARE1
/* Define if struct timespec is declared in <time.h>. */
#undef HAVE_STRUCT_TIMESPEC
@@ -1019,9 +1051,6 @@
/* Define to 1 if you have the <sys/filsys.h> header file. */
#undef HAVE_SYS_FILSYS_H
/* Define to 1 if you have the <sys/fstyp.h> header file. */
#undef HAVE_SYS_FSTYP_H
/* Define to 1 if you have the <sys/fs/s5param.h> header file. */
#undef HAVE_SYS_FS_S5PARAM_H
@@ -1083,9 +1112,6 @@
/* Define to 1 if you have the <sys/table.h> header file. */
#undef HAVE_SYS_TABLE_H
/* Define to 1 if you have the <sys/timeb.h> header file. */
#undef HAVE_SYS_TIMEB_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
@@ -1104,9 +1130,15 @@
/* Define to 1 if you have the `table' function. */
#undef HAVE_TABLE
/* Define to 1 if you have the `tcgetattr' function. */
#undef HAVE_TCGETATTR
/* Define to 1 if you have the `tcgetpgrp' function. */
#undef HAVE_TCGETPGRP
/* Define to 1 if you have the `tcsetattr' function. */
#undef HAVE_TCSETATTR
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
@@ -1181,6 +1213,9 @@
/* Define to 1 if you have the `wcrtomb' function. */
#undef HAVE_WCRTOMB
/* Define to 1 if you have the `wcscoll' function. */
#undef HAVE_WCSCOLL
/* Define to 1 if you have the `wcslen' function. */
#undef HAVE_WCSLEN
@@ -1202,9 +1237,6 @@
/* Define to 1 if you have the `wmempcpy' function. */
#undef HAVE_WMEMPCPY
/* Define if readdir is found to work properly in some unusual cases. */
#undef HAVE_WORKING_READDIR
/* Define if utimes works properly. */
#undef HAVE_WORKING_UTIMES
@@ -1218,6 +1250,9 @@
/* Define to 1 if you have the `__fpending' function. */
#undef HAVE___FPENDING
/* Define to 1 if you have the `__fsetlocking' function. */
#undef HAVE___FSETLOCKING
/* Define to 1 if you have the `__secure_getenv' function. */
#undef HAVE___SECURE_GETENV
@@ -1300,9 +1335,6 @@
/* Define to 1 if assertions should be disabled. */
#undef NDEBUG
/* FIXME */
#undef NICE_PRIORITY
/* Define to 1 if your `struct nlist' has an `n_un' member. Obsolete, depend
on `HAVE_STRUCT_NLIST_N_UN_N_NAME */
#undef NLIST_NAME_UNION
@@ -1341,13 +1373,10 @@
/* Define to 1 if the C compiler supports function prototypes. */
#undef PROTOTYPES
/* Define if rename does not work for source paths with a trailing slash, like
the one from SunOS 4.1.1_U1. */
/* Define if rename does not work for source file names with a trailing slash,
like the one from SunOS 4.1.1_U1. */
#undef RENAME_TRAILING_SLASH_BUG
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* the value to which errno is set when rmdir fails on a nonempty directory */
#undef RMDIR_ERRNO_NOT_EMPTY
@@ -1404,10 +1433,6 @@
/* Define to 1 if strerror_r returns char *. */
#undef STRERROR_R_CHAR_P
/* Define to be the nanoseconds member of struct stat's st_mtim, if it exists.
*/
#undef ST_MTIM_NSEC
/* Define to 1 on System V Release 4. */
#undef SVR4
@@ -1431,9 +1456,9 @@
a pointer exists and the standard includes do not define UINTPTR_MAX. */
#undef UINTPTR_MAX
/* Define as the maximum value of the type 'unsigned long long int', if the
system doesn't define it, and if the system has that type. */
#undef ULLONG_MAX
/* Define if ULONG_MAX < ULLONG_MAX, even if your compiler does not support
ULLONG_MAX. */
#undef ULONG_MAX_LT_ULLONG_MAX
/* Define to 1 for Encore UMAX. */
#undef UMAX
@@ -1442,6 +1467,9 @@
<sys/cpustats.h>. */
#undef UMAX4_3
/* Define to 1 if unlink (dir) cannot possibly succeed. */
#undef UNLINK_CANNOT_UNLINK_DIR
/* Define to 1 if you want getc etc. to use unlocked I/O if available.
Unlocked I/O can improve performance in unithreaded apps, but it is not
safe for multithreaded apps. */
@@ -1491,6 +1519,9 @@
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE
/* Define if you want regoff_t to be at least as wide POSIX requires. */
#undef _REGEX_LARGE_OFFSETS
/* Define for Solaris 2.5.1 so uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the
#define below would cause a syntax error. */
@@ -1500,6 +1531,9 @@
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Define to rpl_ if the getcwd replacement function should be used. */
#undef __GETCWD_PREFIX
@@ -1535,6 +1569,9 @@
/* Define to a replacement function name for getline(). */
#undef getline
/* Define to a replacement function name for getpass(). */
#undef getpass
/* Define to rpl_gettimeofday if the replacement function should be used. */
#undef gettimeofday
@@ -1592,7 +1629,7 @@
/* Define to rpl_nanosleep if the replacement function should be used. */
#undef nanosleep
/* Define to `long' if <sys/types.h> does not define. */
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
/* Define to `int' if <sys/types.h> does not define. */
@@ -1601,9 +1638,54 @@
/* Define to rpl_putenv if the replacement function should be used. */
#undef putenv
/* Define to rpl_re_comp if the replacement should be used. */
#undef re_comp
/* Define to rpl_re_compile_fastmap if the replacement should be used. */
#undef re_compile_fastmap
/* Define to rpl_re_compile_pattern if the replacement should be used. */
#undef re_compile_pattern
/* Define to rpl_re_exec if the replacement should be used. */
#undef re_exec
/* Define to rpl_re_match if the replacement should be used. */
#undef re_match
/* Define to rpl_re_match_2 if the replacement should be used. */
#undef re_match_2
/* Define to rpl_re_search if the replacement should be used. */
#undef re_search
/* Define to rpl_re_search_2 if the replacement should be used. */
#undef re_search_2
/* Define to rpl_re_set_registers if the replacement should be used. */
#undef re_set_registers
/* Define to rpl_re_set_syntax if the replacement should be used. */
#undef re_set_syntax
/* Define to rpl_re_syntax_options if the replacement should be used. */
#undef re_syntax_options
/* Define to rpl_realloc if the replacement function should be used. */
#undef realloc
/* Define to rpl_regcomp if the replacement should be used. */
#undef regcomp
/* Define to rpl_regerror if the replacement should be used. */
#undef regerror
/* Define to rpl_regexec if the replacement should be used. */
#undef regexec
/* Define to rpl_regfree if the replacement should be used. */
#undef regfree
/* Define to rpl_rename if the replacement function should be used. */
#undef rename
@@ -1614,12 +1696,18 @@
/* Define to empty if the C compiler doesn't support this keyword. */
#undef signed
/* Define to `unsigned' if <sys/types.h> does not define. */
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
/* Map `socklen_t' to `int' if it is missing. */
#undef socklen_t
/* Define as a signed type of the same size as size_t. */
#undef ssize_t
/* Define to rpl_strcasecmp always. */
#undef strcasecmp
/* Define to rpl_strnlen if the replacement function should be used. */
#undef strnlen

29300
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,31 @@
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
AC_INIT([GNU coreutils],[5.3.0],[bug-coreutils@gnu.org])
dnl Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2005,
dnl 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software Foundation,
dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
dnl Written by Jim Meyering.
AC_INIT([GNU coreutils],[5.90],[bug-coreutils@gnu.org])
AC_CONFIG_SRCDIR(src/ls.c)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_HEADERS([config.h:config.hin])
AB_INIT()
AM_INIT_AUTOMAKE([1.8.3 gnits dist-bzip2])
gl_DEFAULT_POSIX2_VERSION
@@ -15,7 +36,6 @@ AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_PROG_RANLIB
AC_PROG_LN_S
AC_CANONICAL_HOST
AC_CHECK_FUNCS(uname,
@@ -30,7 +50,6 @@ AC_CHECK_FUNCS(gethostid,
gl_MACROS
AC_HEADER_TIOCGWINSZ()
gl_WINSIZE_IN_PTEM
AC_MSG_CHECKING(whether localtime caches TZ)
@@ -95,29 +114,24 @@ if test $ac_cv_func_syslog = no; then
done
fi
AC_MSG_CHECKING(for 3-argument setpriority function)
AC_CACHE_VAL(utils_cv_func_setpriority,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
#include <sys/resource.h>]], [[setpriority(0, 0, 0);]])],
[utils_cv_func_setpriority=yes],
[utils_cv_func_setpriority=no])])
AC_MSG_RESULT($utils_cv_func_setpriority)
if test $utils_cv_func_setpriority = yes; then
OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
MAN="$MAN nice.1"
else
AC_MSG_CHECKING(for nice function)
AC_CACHE_VAL(utils_cv_func_nice,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[nice();]])],
[utils_cv_func_nice=yes],
[utils_cv_func_nice=no])])
AC_MSG_RESULT($utils_cv_func_nice)
if test $utils_cv_func_nice = yes; then
AC_DEFINE(NICE_PRIORITY, 1, [FIXME])
OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
MAN="$MAN nice.1"
fi
AC_CACHE_CHECK([for 3-argument setpriority function],
[utils_cv_func_setpriority],
[AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/time.h>
#include <sys/resource.h>
]],
[[setpriority (0, 0, 0);]])],
[utils_cv_func_setpriority=yes],
[utils_cv_func_setpriority=no])])
if test $utils_cv_func_setpriority = no; then
AC_CHECK_FUNCS([nice])
fi
case $utils_cv_func_setpriority,$ac_cv_func_nice in
*yes*)
OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
MAN="$MAN nice.1";;
esac
AC_DEFUN([coreutils_DUMMY_1],
[
@@ -232,7 +246,7 @@ AC_CHECK_DECLS([strsignal, sys_siglist, _sys_siglist, __sys_siglist], , ,
# For src/kill.c and src/printf.c.
AC_CHECK_DECLS([strtoimax, strtoumax])
gl_LIB_CHECK
cu_LIB_CHECK
AM_GNU_GETTEXT([external], [need-ngettext])
AM_GNU_GETTEXT_VERSION(0.13.1)
@@ -251,7 +265,6 @@ AC_CONFIG_FILES(
tests/chown/Makefile
tests/cp/Makefile
tests/cut/Makefile
tests/date/Makefile
tests/dd/Makefile
tests/dircolors/Makefile
tests/du/Makefile
@@ -282,6 +295,7 @@ AC_CONFIG_FILES(
tests/tac/Makefile
tests/tail-2/Makefile
tests/tail/Makefile
tests/tee/Makefile
tests/test/Makefile
tests/touch/Makefile
tests/tr/Makefile

View File

@@ -1,3 +1,257 @@
2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (touch invocation):
"touch -" now touches standard output.
2005-09-17 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (who invocation): Remove a stray '+'.
2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (uname invocation): uname -a no longer generates
the -p and -i outputs if they are unknown.
2005-09-13 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (Time conversion specifiers, Options for date):
Document date --rfc-3339 and new specifiers %:z, %::z, %:::z. Use
"date and time" consistently; the old version sometimes said "time
and date". Fix a minor bug in the documentation for --rfc-2822:
it claimed day-of-month < 10 had leading space, not leading zero.
Use a consistent format for terms like "RFC".
(uname invocation): Mention that Linux outputs "unknown" for
-i and -p.
2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".
2005-09-07 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (nice invocation): Use "niceness", not "nice value"
to talk about nice values offset by -20. Don't use the word
"priority" when niceness is intended.
2005-08-15 Jim Meyering <jim@meyering.net>
* coreutils.texi (join invocation): Itemize the defaults.
From Karl Berry.
2005-08-12 Jim Meyering <jim@meyering.net>
* coreutils.texi (cp invocation, mv invocation): Remove square
brackets in --reply=[HOW]. Reported by Oscar Liljeblad.
2005-07-19 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (md5sum invocation): --check now allows multiple
FILE inputs.
2005-07-18 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (false invocation):
Mention that false is often built-in, and that it exits
with status >1 on some hosts.
(true invocation): Remove now-incorrect "non-POSIX mode" reference.
2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (nohup invocation): POSIXLY_CORRECT no longer
affects nohup's behavior. Input is redirected from /dev/null.
2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (cat invocation): Remove -B or --binary option
(available on MS-DOS-like platforms only). Explain when text and
binary mode are used now.
(md5sum invocation): -b actually does have an effect on Unix: it
causes "*" to be output. Explain when text and binary mode are
used now.
2005-07-03 Jim Meyering <jim@meyering.net>
* coreutils.texi (cp invocation): Mark --reply as deprecated.
(mv invocation): Likewise.
2005-06-24 Jim Meyering <jim@meyering.net>
* coreutils.texi (cp invocation): Clarify how --reply=no works.
2005-06-14 William Brendling <wbrendling@gmail.com>
* coreutils.texi (du invocation): New options --last-time and
--time-style.
2005-06-19 Jim Meyering <jim@meyering.net>
* coreutils.texi (ln invocation): Change a few `paths' to `file names'.
* Makefile.am (check-texinfo): Also catch uses of path, pathname.
2005-06-17 Jim Meyering <jim@meyering.net>
* coreutils.texi (shred invocation): Clarify that shred
works on ext3 as long as it's not in data=journal mode.
Patch from Mark Melahn.
2005-06-16 Jim Meyering <jim@meyering.net>
* coreutils.texi (Backup options): Undocument --version-control=S (-V).
2005-06-07 Jim Meyering <jim@meyering.net>
* coreutils.texi (ln invocation): Examples, from Bob Proulx.
2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
* coreutils.texi (readlink invocation): "path component" ->
"component", since we don't use the POSIX "path" nomenclature.
2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
* getdate.texi (General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates; it doesn't yet.
Problem reported by Nic Ferrier.
2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (dd invocation): New flags "binary" and "text".
2005-05-04 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (chmod invocation): chmod -w complains if its
behavior differs from what chmod a-w would do.
2005-05-02 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (ls invocation): ls --indicator-style=directory
renamed to ls --indicator-style=slash, to avoid confusion with ls
--directory.
2005-04-28 Paul Eggert <eggert@cs.ucla.edu>
* perm.texi (Mode Structure, Changing Special Permissions):
(Conditional Executability, Numeric Modes):
These days the sticky bit is more often uses as the restricted
deletion flag, so modernize the discussion about this.
(Mode Structure): Linux/GNU -> GNU/Linux.
(Symbolic Modes): Don't imply that "+ur" or "u" is valid.
(Setting Permissions): Don't imply that "+t" is invalid.
Use "rwx" rather than the less-common "rxw" in an example.
(Copying Permissions): Say that ugo is a replacement for
a string of the other letters. Add spaces around examples.
Use "set-user-ID" rather than "set user ID" to avoid ambiguity.
Use "+t" rather than "o+t", since POSIX doesn't specify the latter.
Mention which combinations are portable and which are GNU.
(Numeric Modes): Don't imply they aren't portable; they are
nowadays.
2005-04-26 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (Standards conformance): Do not mention head -10,
since it now works the same regardless of POSIX version.
(od invocation): -w N -> -w[N].
(pr invocation): -S STRING -> -SSTRING.
(fold invocation): -WIDTH works even when conforming to POSIX
1003.1-2001.
(head invocation, tail invocation): Likewise for -NUM.
(split invocation): Likewise for -LINES.
(uniq invocation): Likewise for -N.
(expand invocation, unexpand invocation): Likewise for -TAB.
(nice invocation): Likewise for -ADJUSTMENT.
(sort invocation): Clarify explanation of +N option.
(uniq invocation): Likewise.
(join invocation): Remove special case for --help, --version.
(touch invocation): Clarify explanation of date options.
(Options for date): -I timespec -> -I[timespec].
2005-04-23 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (install invocation): Use a= instead of 0 for
the point of departure for -m, and explain what it meeams.
(mkdir invocation, mkfifo invocation, mknod invocation):
The umask does not affect the point of departure.
Problem reported by Mike Stone.
2005-04-11 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi: For consistency, standardize on "user ID" rather
than "uid" or "UID" or "user id". Similarly for "group ID".
2005-04-09 Jim Meyering <jim@meyering.net>
* coreutils.texi (rm invocation): Say that --recursive removes
listed directories too, not just their contents.
2005-04-08 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (dd invocation): Document the distinction between
INFO and USR1 for dd, and the effect of POSIXLY_CORRECT here.
2005-04-05 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (cat invocation, chown invocation)
(chgrp invocation, basename invocation, dirname invocation):
Add examples, which are copies of the examples newly added
to the usage messages.
(ln invocation): Use same format as other examples above,
for consistency.
2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi: Clarify NUL vs null byte vs null character.
2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (nohup invocation): Clarify nohup.out creation.
2005-03-11 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (Formatting file timestamps): Very long timestamps
may be treated as errors.
2005-03-08 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi (date invocation): Use an example that makes it
clear tha the default date use space-padded day of month.
Replace "directive" with "conversion specifier" to be consistent
with POSIX. All uses changed.
Fix menu RHS to match actual directive lists.
(Time conversion specifiers): Renamed from Time directives.
Use @samp consistently, sometimes instead of @code.
Consistently ention which specifiers are GNU extensions.
Give more examples (in some cases, instead of ranges).
Say why %F is preferred for dates.
(Date conversion specifiers): Renamed from Date directives.
Likewise for other changes.
(Padding and other flags): Correct the description.
Document #. Give an example for %9B.
2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
* coreutils.texi: Adjust to match current strftime.c.
(Time directives): Say that %k, %l, and %P are GNU extensions.
For %p and %P, mention handling of noon and midnight.
For %s, use ISO 8601, and mention handling of leap seconds.
For %S, clarify mention of leap seconds.
For %T, say that it's the same as %H:%M:%S.
For %X, don't say that it must be the same as %H:%M:%S.
For %z and %Z, clarify which time zones are used. These options
are now affected by --date, so don't claim that they're not.
(Date directives): %C is now all but the last two chars of %Y.
For %D, say that it's equivalent to %m/%d/%y.
For %e, use blank in example.
For %h, use @code for %b.
For %Y, mention what happens with outlandish years.
(Padding and other flags): Renamed from Padding.
Mention that the flags are GNU extensions.
Mention the 0 and ^ flags.
Mention field widths an modifiers.
(Examples of date): - is a flag, not a modifier.
2005-01-07 Jim Meyering <jim@meyering.net>
* coreutils.texi (sort invocation): Specify that a string

View File

@@ -46,6 +46,8 @@ check-texinfo:
'/\bPOSIX\b/ && !/\@acronym{POSIX}/ && !/^\* / || /{posix}/ and print,exit 1' \
$(srcdir)/*.texi 2> /dev/null || fail=1; }; \
grep -iwE 'builtins?' $(srcdir)/*.texi && fail=1; \
grep -iwE 'path(name)?s?' $(srcdir)/*.texi \
| grep -vE '@vindex PATH$$|@env{PATH}' && fail=1; \
exit $$fail
check: check-texinfo

View File

@@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.4 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -41,29 +41,35 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/allocsa.m4 \
$(top_srcdir)/m4/assert.m4 $(top_srcdir)/m4/atexit.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/bison.m4 \
$(top_srcdir)/m4/boottime.m4 $(top_srcdir)/m4/c-strtod.m4 \
$(top_srcdir)/m4/calloc.m4 $(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/argmatch.m4 $(top_srcdir)/m4/assert.m4 \
$(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/basename.m4 \
$(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
$(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
$(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/canonicalize.m4 \
$(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
$(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
$(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/closeout.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/d-ino.m4 \
$(top_srcdir)/m4/d-type.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/cycle-check.m4 \
$(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
$(top_srcdir)/m4/diacrit.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/dirname.m4 $(top_srcdir)/m4/dos.m4 \
$(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
$(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
$(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
$(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/file-type.m4 \
$(top_srcdir)/m4/fileblocks.m4 $(top_srcdir)/m4/filemode.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/fd-reopen.m4 \
$(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
$(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
$(top_srcdir)/m4/fnmatch.m4 $(top_srcdir)/m4/fpending.m4 \
$(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
$(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
$(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
$(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getgroups.m4 \
$(top_srcdir)/m4/gethostname.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
$(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
$(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getndelim2.m4 $(top_srcdir)/m4/getopt.m4 \
$(top_srcdir)/m4/getpagesize.m4 $(top_srcdir)/m4/getpass.m4 \
$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gettime.m4 \
@@ -71,54 +77,60 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/getugroups.m4 \
$(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
$(top_srcdir)/m4/group-member.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
$(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/idcache.m4 \
$(top_srcdir)/m4/intmax_t.m4 $(top_srcdir)/m4/inttostr.m4 \
$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/jm-macros.m4 \
$(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
$(top_srcdir)/m4/lchown.m4 $(top_srcdir)/m4/lib-check.m4 \
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash-pjw.m4 \
$(top_srcdir)/m4/hash.m4 $(top_srcdir)/m4/host-os.m4 \
$(top_srcdir)/m4/human.m4 $(top_srcdir)/m4/iconv.m4 \
$(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/intmax_t.m4 \
$(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
$(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
$(top_srcdir)/m4/jm-macros.m4 $(top_srcdir)/m4/jm-winsz1.m4 \
$(top_srcdir)/m4/jm-winsz2.m4 $(top_srcdir)/m4/lchown.m4 \
$(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/linebuffer.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/localcharset.m4 \
$(top_srcdir)/m4/long-options.m4 \
$(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
$(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
$(top_srcdir)/m4/makepath.m4 $(top_srcdir)/m4/mbrtowc.m4 \
$(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
$(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
$(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbstate_t.m4 \
$(top_srcdir)/m4/mbswidth.m4 $(top_srcdir)/m4/md5.m4 \
$(top_srcdir)/m4/memcasecmp.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/memcmp.m4 $(top_srcdir)/m4/memcoll.m4 \
$(top_srcdir)/m4/memcpy.m4 $(top_srcdir)/m4/memmove.m4 \
$(top_srcdir)/m4/mempcpy.m4 $(top_srcdir)/m4/memrchr.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
$(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
$(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
$(top_srcdir)/m4/nanosleep.m4 $(top_srcdir)/m4/nls.m4 \
$(top_srcdir)/m4/obstack.m4 $(top_srcdir)/m4/onceonly.m4 \
$(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/path-concat.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-p.m4 \
$(top_srcdir)/m4/mkdir-slash.m4 $(top_srcdir)/m4/mkstemp.m4 \
$(top_srcdir)/m4/mktime.m4 $(top_srcdir)/m4/modechange.m4 \
$(top_srcdir)/m4/mountlist.m4 $(top_srcdir)/m4/nanosleep.m4 \
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/obstack.m4 \
$(top_srcdir)/m4/onceonly_2_57.m4 $(top_srcdir)/m4/openat.m4 \
$(top_srcdir)/m4/pathmax.m4 $(top_srcdir)/m4/perl.m4 \
$(top_srcdir)/m4/physmem.m4 $(top_srcdir)/m4/po.m4 \
$(top_srcdir)/m4/posixtm.m4 $(top_srcdir)/m4/posixver.m4 \
$(top_srcdir)/m4/prereq.m4 $(top_srcdir)/m4/progtest.m4 \
$(top_srcdir)/m4/putenv.m4 $(top_srcdir)/m4/quote.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readdir.m4 \
$(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/readtokens.m4 \
$(top_srcdir)/m4/readutmp.m4 $(top_srcdir)/m4/regex.m4 \
$(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/restrict.m4 \
$(top_srcdir)/m4/rmdir-errno.m4 $(top_srcdir)/m4/rmdir.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readlink.m4 \
$(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
$(top_srcdir)/m4/regex.m4 $(top_srcdir)/m4/rename.m4 \
$(top_srcdir)/m4/restrict.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
$(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
$(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
$(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
$(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
$(top_srcdir)/m4/setenv.m4 $(top_srcdir)/m4/settime.m4 \
$(top_srcdir)/m4/sha1.m4 $(top_srcdir)/m4/sig2str.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/st_mtim.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/socklen.m4 \
$(top_srcdir)/m4/sockpfaf.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/stat-macros.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
$(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stdint_h.m4 \
$(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/stdio-safer.m4 \
$(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/strcase.m4 $(top_srcdir)/m4/strcspn.m4 \
$(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
$(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \
$(top_srcdir)/m4/stripslash.m4 $(top_srcdir)/m4/strndup.m4 \
$(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
$(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strstr.m4 \
$(top_srcdir)/m4/strtod.m4 $(top_srcdir)/m4/strtoimax.m4 \
$(top_srcdir)/m4/strtol.m4 $(top_srcdir)/m4/strtoll.m4 \
@@ -129,28 +141,30 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/uintptr_t.m4 \
$(top_srcdir)/m4/ullong_max.m4 $(top_srcdir)/m4/ulonglong.m4 \
$(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
$(top_srcdir)/m4/unlink-busy.m4 \
$(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \
$(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4 \
$(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \
$(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \
$(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \
$(top_srcdir)/m4/utimes.m4 $(top_srcdir)/m4/vasnprintf.m4 \
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/wchar_t.m4 \
$(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xreadlink.m4 \
$(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtoimax.m4 \
$(top_srcdir)/m4/xstrtol.m4 $(top_srcdir)/m4/xstrtoumax.m4 \
$(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/version-etc.m4 \
$(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \
$(top_srcdir)/m4/xalloc.m4 $(top_srcdir)/m4/xfts.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xnanosleep.m4 \
$(top_srcdir)/m4/xreadlink.m4 $(top_srcdir)/m4/xstrtod.m4 \
$(top_srcdir)/m4/xstrtoimax.m4 $(top_srcdir)/m4/xstrtol.m4 \
$(top_srcdir)/m4/xstrtoumax.m4 $(top_srcdir)/m4/yesno.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
INFO_DEPS = $(srcdir)/coreutils.info
TEXINFO_TEX = $(top_srcdir)/config/texinfo.tex
am__TEXINFO_TEX_DIR = $(top_srcdir)/config
TEXINFO_TEX = $(top_srcdir)/build-aux/texinfo.tex
am__TEXINFO_TEX_DIR = $(top_srcdir)/build-aux
DVIS = coreutils.dvi
PDFS = coreutils.pdf
PSS = coreutils.ps
@@ -189,13 +203,13 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EOVERFLOW = @EOVERFLOW@
EXEEXT = @EXEEXT@
FESETROUND_LIBM = @FESETROUND_LIBM@
FNMATCH_H = @FNMATCH_H@
GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
GETOPT_H = @GETOPT_H@
GLIBC21 = @GLIBC21@
GMSGFMT = @GMSGFMT@
GNU_PACKAGE = @GNU_PACKAGE@
GREP = @GREP@
HAVE__BOOL = @HAVE__BOOL@
HELP2MAN = @HELP2MAN@
INSTALL_DATA = @INSTALL_DATA@
@@ -203,6 +217,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INTLLIBS = @INTLLIBS@
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
KMEM_GROUP = @KMEM_GROUP@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
@@ -213,6 +228,7 @@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
LIB_CRYPT = @LIB_CRYPT@
LIB_EACCESS = @LIB_EACCESS@
LIB_FDATASYNC = @LIB_FDATASYNC@
LIB_GETHRXTIME = @LIB_GETHRXTIME@
LIB_NANOSLEEP = @LIB_NANOSLEEP@
LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@
@@ -249,7 +265,6 @@ RANLIB = @RANLIB@
SEQ_LIBM = @SEQ_LIBM@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SQRT_LIBM = @SQRT_LIBM@
STDBOOL_H = @STDBOOL_H@
STRIP = @STRIP@
U = @U@
@@ -257,6 +272,7 @@ USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
YACC = @YACC@
YFLAGS = @YFLAGS@
ac_ct_CC = @ac_ct_CC@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
@@ -274,23 +290,30 @@ build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
@@ -340,9 +363,11 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
restore=: && backupdir="$(am__leading_dot)am$$$$" && \
am__cwd=`pwd` && cd $(srcdir) && \
rm -rf $$backupdir && mkdir $$backupdir && \
for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
done; \
if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
cd "$$am__cwd"; \
if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
-o $@ $<; \
@@ -386,7 +411,7 @@ coreutils.html: coreutils.texi $(srcdir)/version.texi
$(srcdir)/version.texi: $(srcdir)/stamp-vti
$(srcdir)/stamp-vti: coreutils.texi $(top_srcdir)/configure
@(dir=.; test -f ./coreutils.texi || dir=$(srcdir); \
set `$(SHELL) $(top_srcdir)/config/mdate-sh $$dir/coreutils.texi`; \
set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/coreutils.texi`; \
echo "@set UPDATED $$1 $$2 $$3"; \
echo "@set UPDATED-MONTH $$2 $$3"; \
echo "@set EDITION $(VERSION)"; \
@@ -403,10 +428,11 @@ mostlyclean-vti:
maintainer-clean-vti:
-rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
.dvi.ps:
TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
$(DVIPS) -o $@ $<
uninstall-info-am:
$(PRE_UNINSTALL)
@$(PRE_UNINSTALL)
@if (install-info --version && \
install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
list='$(INFO_DEPS)'; \
@@ -422,7 +448,7 @@ uninstall-info-am:
relfile=`echo "$$file" | sed 's|^.*/||'`; \
relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
(if cd "$(DESTDIR)$(infodir)"; then \
echo " rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9])"; \
echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \
rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
else :; fi); \
done
@@ -641,6 +667,8 @@ check-texinfo:
'/\bPOSIX\b/ && !/\@acronym{POSIX}/ && !/^\* / || /{posix}/ and print,exit 1' \
$(srcdir)/*.texi 2> /dev/null || fail=1; }; \
grep -iwE 'builtins?' $(srcdir)/*.texi && fail=1; \
grep -iwE 'path(name)?s?' $(srcdir)/*.texi \
| grep -vE '@vindex PATH$$|@env{PATH}' && fail=1; \
exit $$fail
check: check-texinfo

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
@end ifnottex
@display
Copyright (C) 2000 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

View File

@@ -1,7 +1,7 @@
@c GNU date syntax documentation
@c Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@c 2003, 2004 Free Software Foundation, Inc.
@c 2003, 2004, 2005 Free Software Foundation, Inc.
@c Permission is granted to copy, distribute and/or modify this document
@c under the terms of the GNU Free Documentation License, Version 1.1 or
@@ -127,8 +127,8 @@ $ LC_ALL=C TZ=UTC0 date
Mon Mar 1 00:21:42 UTC 2004
$ TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ'
2004-03-01 00:21:42Z
$ date --iso-8601=ns # a GNU extension
2004-02-29T16:21:42,692722128-0800
$ date --iso-8601=ns | tr T ' ' # --iso-8601 is a GNU extension.
2004-02-29 16:21:42,692722128-0800
$ date --rfc-2822 # a GNU extension
Sun, 29 Feb 2004 16:21:42 -0800
$ date +'%Y-%m-%d %H:%M:%S %z' # %z is a GNU extension.

View File

@@ -70,11 +70,12 @@ matter what group the user who creates them is in.
@cindex swap space, saving text image in
@cindex text image, saving in swap space
@cindex restricted deletion flag
save the program's text image on the swap device so it will load more
quickly when run (called the @dfn{sticky bit}). For directories on some
systems, prevent users from removing or renaming a file in a directory
prevent users from removing or renaming a file in a directory
unless they own the file or the directory; this is called the
@dfn{restricted deletion flag} for the directory.
For regular files on some systems, save the program's text image on the
swap device so it will load more quickly when run; this is called the
@dfn{sticky bit}.
@end enumerate
In addition to the permissions listed above, there may be file attributes
@@ -86,7 +87,8 @@ specific to the file system. For example:
@table @asis
@item ext2
On GNU and Linux/GNU the file permissions (``attributes'') specific to
On @acronym{GNU} and @acronym{GNU}/Linux the file permissions
(``attributes'') specific to
the ext2 file system are set using @command{chattr}.
@item FFS
@@ -122,9 +124,13 @@ their previous values, and perhaps on the current @code{umask} as well
The format of symbolic modes is:
@example
@r{[}ugoa@dots{}@r{][[}+-=@r{][}rwxXstugo@dots{}@r{]}@dots{}@r{][},@dots{}@r{]}
@r{[}ugoa@dots{}@r{][}+-=@r{]}@var{perms}@dots{}@r{[},@dots{}@r{]}
@end example
@noindent
where @var{perms} is either zero or more letters from the set
@samp{rwxXst}, or a single letter from the set @samp{ugo}.
The following sections describe the operators and other details of
symbolic modes.
@@ -193,7 +199,7 @@ have for the file.
@end table
The @var{permissions} part tells what kind of access to the file should
be changed; it is zero or more of the following letters. As with the
be changed; it is normally zero or more of the following letters. As with the
@var{users} part, the order does not matter when more than one letter is
given. Omitting the @var{permissions} part is useful only with the
@samp{=} operation, where it gives the specified @var{users} no access
@@ -242,7 +248,7 @@ go=
Another way to specify the same thing is:
@example
og-rxw
og-rwx
@end example
@node Copying Permissions
@@ -251,12 +257,15 @@ og-rxw
@cindex copying existing permissions
@cindex permissions, copying existing
You can base a file's permissions on its existing permissions. To do
this, instead of using @samp{r}, @samp{w}, or @samp{x} after the
this, instead of using a series of @samp{r}, @samp{w}, or @samp{x}
letters after the
operator, you use the letter @samp{u}, @samp{g}, or @samp{o}. For
example, the mode
@example
o+g
@end example
@noindent
adds the permissions for users who are in a file's group to the
permissions that other users have for the file. Thus, if the file
@@ -282,35 +291,34 @@ To change a file's permission to set the group ID on execution, use
@samp{g} in the @var{users} part of the symbolic mode and
@samp{s} in the @var{permissions} part.
To change a file's permission to stay permanently on the swap device,
use @samp{o} in the @var{users} part of the symbolic mode and
To change a file's permission to set the restricted deletion flag or sticky bit,
omit the @var{users} part of the symbolic mode (or use @samp{a}) and put
@samp{t} in the @var{permissions} part.
For example, to add set user ID permission to a program,
For example, to add set-user-ID permission to a program,
you can use the mode:
@example
u+s
@end example
To remove both set user ID and set group ID permission from
To remove both set-user-ID and set-group-ID permission from
it, you can use the mode:
@example
ug-s
@end example
To cause a program to be saved on the swap device, you can use
To set the restricted deletion flag or sticky bit, you can use
the mode:
@example
o+t
+t
@end example
Remember that the special permissions only affect files that are
executable, plus, on some systems, directories (on which they have
different meanings; @pxref{Mode Structure}).
Also, the combinations @samp{u+t}, @samp{g+t}, and @samp{o+s} have no effect.
The combination @samp{o+s} has no effect. On @acronym{GNU} systems
the combinations @samp{u+t} and @samp{g+t} have no effect, and
@samp{o+t} acts like plain @samp{+t}.
The @samp{=} operator is not very useful with special permissions; for
example, the mode:
@@ -320,7 +328,7 @@ o=t
@end example
@noindent
does cause the file to be saved on the swap device, but it also
does set the restricted deletion flag or sticky bit, but it also
removes all read, write, and execute permissions that users not in the
file's group might have had for it.
@@ -330,9 +338,7 @@ file's group might have had for it.
@cindex conditional executability
There is one more special type of symbolic permission: if you use
@samp{X} instead of @samp{x}, execute permission is affected only if the
file already had execute permission or is a directory. It affects
directories' execute permission even if they did not initially have any
execute permissions set.
file is a directory or already had execute permission.
For example, this mode:
@@ -341,8 +347,8 @@ a+X
@end example
@noindent
gives all users permission to execute files (or search directories) if
anyone could before.
gives all users permission to search directories, or to execute files if
anyone could execute them before.
@node Multiple Changes
@subsection Making Multiple Changes
@@ -453,9 +459,9 @@ the file to all users.
@cindex numeric modes
@cindex file permissions, numeric
@cindex octal numbers for file modes
File permissions are stored internally as integers. As an
As an
alternative to giving a symbolic mode, you can give an octal (base 8)
number that corresponds to the internal representation of the new mode.
number that represents the new mode.
This number is always interpreted in octal; you do not have to add a
leading 0, as you do in C. Mode 0055 is the same as mode 55.
@@ -463,11 +469,11 @@ A numeric mode is usually shorter than the corresponding symbolic
mode, but it is limited in that it cannot take into account a file's
previous permissions; it can only set them absolutely.
On most systems, the permissions granted to the user,
The permissions granted to the user,
to other users in the file's group,
and to other users not in the file's group are each stored as three
and to other users not in the file's group each require three
bits, which are represented as one octal digit. The three special
permissions are also each stored as one bit, and they are as a group
permissions also require one bit each, and they are as a group
represented as another octal digit. Here is how the bits are arranged,
starting with the lowest valued bit:
@@ -491,7 +497,7 @@ Mode Permission
400 Read
Special permissions:
1000 Save text image on swap device
1000 Restricted deletion flag or sticky bit
2000 Set group ID on execution
4000 Set user ID on execution
@end example
@@ -499,4 +505,4 @@ Mode Permission
For example, numeric mode 4755 corresponds to symbolic mode
@samp{u=rwxs,go=rx}, and numeric mode 664 corresponds to symbolic mode
@samp{ug=rw,o=r}. Numeric mode 0 corresponds to symbolic mode
@samp{ugo=}.
@samp{a=}.

View File

@@ -17,8 +17,8 @@ scriptversion=2004-01-28.17
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# Originally written by Alexandre Duret-Lutz <adl@gnu.org>.

View File

@@ -5,6 +5,9 @@ exit.h
fnmatch_.h
fts.c
fts_.h
getaddrinfo.h
getdelim.h
getline.h
getndelim2.h
getopt.c
getopt.h
@@ -12,17 +15,27 @@ getopt1.c
getopt_.h
getopt_int.h
getpagesize.h
getpass.c
gettext.h
localcharset.h
mbchar.h
mbuiter.h
md5.h
obstack.h
printf-args.h
printf-parse.h
regcomp.c
regex.c
regex.h
regex_internal.c
regex_internal.h
stat-time.h
stdbool_.h
strcase.h
strdup.h
strndup.h
strnlen.h
strnlen1.h
strtoul.c
time_r.h
utimecmp.h

View File

@@ -2,11 +2,11 @@
Makefile
alloca.h
charset.alias
fnmatch.h
fts.h
getdate.c
getdate.tab.c
getopt.h
fnmatch.h
fts.h
lstat.c
poll.h
ref-add.sed

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
## Makefile for gnulib/lib -*-Makefile-*-
# Copyright (C) 1995-2004 Free Software Foundation, Inc.
# Copyright (C) 1995-2005 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -14,10 +14,10 @@
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301, USA.
noinst_LIBRARIES = libfetish.a
noinst_LIBRARIES = libcoreutils.a
noinst_PROGRAMS = t-fpending
LDADD = $(noinst_LIBRARIES)
@@ -25,132 +25,43 @@ LDADD = $(noinst_LIBRARIES)
AM_CPPFLAGS = -I.. -I$(srcdir)
DEFS += -DLIBDIR=\"$(libdir)\"
## Put relatively complex files at the beginning of the list so
## that parallel compiles finish a tiny bit sooner. I don't see
## a way to make regex.c appear earlier in the list, since it's
## added by automake, but on systems with an up to date GNU libc,
## regex.c isn't even compiled.
libfetish_a_SOURCES = \
acl.h acl.c \
getdate.h getdate.y \
posixtm.c posixtm.h \
posixver.c posixver.h \
strftime.c strftime.h \
hash.c hash.h \
hash-pjw.c hash-pjw.h \
__fpending.h \
libcoreutils_a_SOURCES = \
allocsa.c allocsa.h \
argmatch.c argmatch.h \
backupfile.c backupfile.h \
basename.c \
c-strtod.c c-strtod.h c-strtold.c \
canon-host.c \
canonicalize.c canonicalize.h \
cloexec.c cloexec.h \
closeout.c closeout.h \
cycle-check.c cycle-check.h \
dev-ino.h \
diacrit.c diacrit.h \
dirname.c dirname.h \
dirfd.h \
dup-safer.c \
euidaccess.h \
exclude.c exclude.h \
exit.h \
exitfail.c exitfail.h \
fcntl-safer.h \
filemode.c filemode.h \
file-type.c file-type.h \
fopen-safer.c \
fsusage.h \
fts.c fts_.h \
fprintftime.c fprintftime.h \
full-read.c full-read.h \
full-write.c full-write.h \
getcwd.h \
getline.h \
getpagesize.h \
getpass.h \
gettime.c \
getaddrinfo.h \
gettext.h \
getugroups.c \
group-member.h \
hard-locale.c hard-locale.h \
human.c human.h \
idcache.c \
imaxtostr.c \
linebuffer.c linebuffer.h \
localcharset.c localcharset.h \
long-options.c long-options.h \
makepath.c makepath.h \
mbchar.h \
mbswidth.c mbswidth.h \
md5.c md5.h \
memcasecmp.c memcasecmp.h \
memcoll.c memcoll.h \
modechange.c modechange.h \
mountlist.h \
offtostr.c \
open-safer.c \
path-concat.c path-concat.h \
pathmax.h \
physmem.c physmem.h \
quote.c quote.h \
quotearg.c quotearg.h \
mbuiter.h \
readtokens0.c readtokens0.h \
readtokens.c readtokens.h \
readutmp.h \
regex.h \
root-dev-ino.c root-dev-ino.h \
safe-read.c safe-read.h \
safe-write.c safe-write.h \
same.c same.h \
savedir.c savedir.h \
setenv.h \
settime.c \
sha1.c sha1.h \
sig2str.h \
stat-macros.h \
stdio-safer.h \
stripslash.c \
strdup.h \
strndup.h \
strverscmp.h \
strcase.h \
strnlen1.c strnlen1.h \
strstr.h \
time_r.c time_r.h \
timespec.h \
umaxtostr.c \
unicodeio.c unicodeio.h \
unistd-safer.h \
unlocked-io.h \
userspec.c userspec.h \
utimecmp.c utimecmp.h \
utimens.c utimens.h \
version-etc.c version-etc.h \
xalloc.h \
verify.h \
xalloc-die.c \
xfts.c xfts.h \
xgetcwd.c xgetcwd.h \
xgethostname.c xgethostname.h \
xmalloc.c \
xmemcoll.c xmemcoll.h \
xnanosleep.c xnanosleep.h \
xreadlink.c xreadlink.h \
xstrndup.c xstrndup.h \
xstrtod.c xstrtod.h \
xstrtoimax.c \
xstrtol.c xstrtol.h \
xstrtoul.c \
xstrtoumax.c \
yesno.c yesno.h
xstrtoumax.c
libfetish_a_SOURCES += \
libcoreutils_a_SOURCES += \
printf-args.h \
printf-parse.h \
vasprintf.h \
vasnprintf.h
libfetish_a_LIBADD = $(LIBOBJS) $(ALLOCA)
libfetish_a_DEPENDENCIES = $(libfetish_a_LIBADD)
libcoreutils_a_LIBADD = $(LIBOBJS) $(ALLOCA)
libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
lib_OBJECTS = $(libfetish_a_OBJECTS)
lib_OBJECTS = $(libcoreutils_a_OBJECTS)
BUILT_SOURCES = getdate.c
@@ -159,9 +70,8 @@ MAINTAINERCLEANFILES = $(BUILT_SOURCES)
MOSTLYCLEANFILES =
SUFFIXES =
EXTRA_DIST = config.charset ref-add.sin ref-del.sin \
getndelim2.c getndelim2.h \
inttostr.c inttostr.h
EXTRA_DIST = getdate.c config.charset ref-add.sin ref-del.sin \
getndelim2.c getndelim2.h
# We need the following in order to install a simple file in $(libdir)
# which is shared with other installed packages. We use a list of referencing

View File

@@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.4 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -14,11 +14,9 @@
@SET_MAKE@
# Copyright (C) 1995-2004 Free Software Foundation, Inc.
# Copyright (C) 1995-2005 Free Software Foundation, Inc.
SOURCES = $(libfetish_a_SOURCES) t-fpending.c
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@@ -44,50 +42,91 @@ host_triplet = @host@
noinst_PROGRAMS = t-fpending$(EXEEXT)
subdir = lib
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
ChangeLog TODO __fpending.c alloca.c asnprintf.c asprintf.c \
atexit.c calloc.c chdir-long.c chdir-long.h chown.c dirfd.c \
dup2.c error.c error.h euidaccess.c fchdir-stub.c \
fchown-stub.c fileblocks.c fnmatch.c free.c fsusage.c \
ftruncate.c getcwd.c getdate.c getgroups.c gethostname.c \
getline.c getloadavg.c getndelim2.c getopt.c getopt1.c \
getpass.c gettimeofday.c getusershell.c group-member.c \
lchown.c lchown.h lstat.c malloc.c memchr.c memcmp.c memcpy.c \
memmove.c mempcpy.c mempcpy.h memrchr.c memset.c mkdir.c \
mkstemp.c mktime.c mountlist.c nanosleep.c obstack.c obstack.h \
openat.c openat.h printf-args.c printf-parse.c putenv.c \
raise.c readlink.c readutmp.c realloc.c regex.c rename.c \
rmdir.c rpmatch.c save-cwd.c save-cwd.h setenv.c sig2str.c \
stat.c stpcpy.c strcasecmp.c strcspn.c strdup.c strncasecmp.c \
strndup.c strnlen.c strpbrk.c strstr.c strtod.c strtoimax.c \
strtol.c strtoll.c strtoul.c strtoull.c strtoumax.c \
strverscmp.c tempname.c unsetenv.c utime.c vasnprintf.c \
vasprintf.c
ChangeLog TODO __fpending.c __fpending.h acl.c acl.h alloca.c \
argmatch.c argmatch.h asnprintf.c asprintf.c atexit.c \
backupfile.c backupfile.h basename.c c-strtod.c c-strtod.h \
c-strtold.c calloc.c canon-host.c canon-host.h canonicalize.c \
canonicalize.h chdir-long.c chdir-long.h chown.c cloexec.c \
cloexec.h closeout.c closeout.h creat-safer.c cycle-check.c \
cycle-check.h dev-ino.h diacrit.c diacrit.h dirfd.c dirfd.h \
dirname.c dirname.h dup-safer.c dup2.c error.c error.h \
euidaccess.c exclude.c exclude.h exitfail.c exitfail.h \
fchdir-stub.c fchown-stub.c fcntl--.h fcntl-safer.h \
fd-reopen.c fd-reopen.h fd-safer.c file-type.c file-type.h \
fileblocks.c filemode.c filemode.h filenamecat.c filenamecat.h \
fnmatch.c fopen-safer.c free.c fsusage.c fsusage.h ftruncate.c \
fts-cycle.c fts.c fts_.h gai_strerror.c getaddrinfo.c getcwd.c \
getcwd.h getdate.h getdate.y getdelim.c getdelim.h getgroups.c \
gethostname.c gethrxtime.c gethrxtime.h getline.c getline.h \
getloadavg.c getndelim2.c getopt.c getopt1.c getpagesize.h \
getpass.c getpass.h gettime.c gettimeofday.c getugroups.c \
getusershell.c group-member.c group-member.h hard-locale.c \
hard-locale.h hash-pjw.c hash-pjw.h hash.c hash.h human.c \
human.h idcache.c imaxtostr.c intprops.h inttostr.c inttostr.h \
lchown.c lchown.h linebuffer.c linebuffer.h long-options.c \
long-options.h lstat.c lstat.h malloc.c mbchar.c md5.c md5.h \
memcasecmp.c memcasecmp.h memchr.c memcmp.c memcoll.c \
memcoll.h memcpy.c memmove.c mempcpy.c mempcpy.h memrchr.c \
memrchr.h memset.c mkdir-p.c mkdir-p.h mkdir.c mkstemp-safer.c \
mkstemp.c mktime.c modechange.c modechange.h mountlist.c \
mountlist.h nanosleep.c obstack.c obstack.h offtostr.c \
open-safer.c openat-die.c openat.c openat.h pathmax.h \
physmem.c physmem.h pipe-safer.c posixtm.c posixtm.h \
posixver.c posixver.h printf-args.c printf-parse.c putenv.c \
quote.c quote.h quotearg.c quotearg.h raise.c readlink.c \
readtokens.c readtokens.h readutmp.c readutmp.h realloc.c \
regcomp.c regex.c regex.h regex_internal.c regex_internal.h \
regexec.c rename.c rmdir.c root-dev-ino.c root-dev-ino.h \
rpmatch.c safe-read.c safe-read.h safe-write.c safe-write.h \
same.c same.h save-cwd.c save-cwd.h savedir.c savedir.h \
setenv.c setenv.h settime.c sha1.c sha1.h sig2str.c sig2str.h \
stat-macros.h stat-time.h stdio--.h stdio-safer.h stdlib--.h \
stdlib-safer.h stpcpy.c strcasecmp.c strcspn.c strdup.c \
strdup.h strftime.c strftime.h strintcmp.c stripslash.c \
strncasecmp.c strndup.c strndup.h strnlen.c strnlen.h \
strnumcmp-in.h strnumcmp.c strnumcmp.h strpbrk.c strstr.c \
strtod.c strtoimax.c strtol.c strtoll.c strtoul.c strtoull.c \
strtoumax.c strverscmp.c strverscmp.h tempname.c timespec.h \
umaxtostr.c unistd--.h unistd-safer.h unlinkdir.c unlinkdir.h \
unlocked-io.h unsetenv.c userspec.c userspec.h utime.c \
utimecmp.c utimecmp.h utimens.c utimens.h vasnprintf.c \
vasprintf.c version-etc-fsf.c version-etc.c version-etc.h \
xalloc.h xfts.c xfts.h xgetcwd.c xgetcwd.h xmalloc.c \
xnanosleep.c xnanosleep.h xreadlink.c xreadlink.h xstrtod.c \
xstrtod.h xstrtol.c xstrtol.h xstrtoul.c xtime.h yesno.c \
yesno.h
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/allocsa.m4 \
$(top_srcdir)/m4/assert.m4 $(top_srcdir)/m4/atexit.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/bison.m4 \
$(top_srcdir)/m4/boottime.m4 $(top_srcdir)/m4/c-strtod.m4 \
$(top_srcdir)/m4/calloc.m4 $(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/argmatch.m4 $(top_srcdir)/m4/assert.m4 \
$(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
$(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/basename.m4 \
$(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
$(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
$(top_srcdir)/m4/canon-host.m4 \
$(top_srcdir)/m4/canonicalize.m4 \
$(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
$(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
$(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/closeout.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/d-ino.m4 \
$(top_srcdir)/m4/d-type.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/cycle-check.m4 \
$(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
$(top_srcdir)/m4/diacrit.m4 $(top_srcdir)/m4/dirfd.m4 \
$(top_srcdir)/m4/dirname.m4 $(top_srcdir)/m4/dos.m4 \
$(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
$(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
$(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
$(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/file-type.m4 \
$(top_srcdir)/m4/fileblocks.m4 $(top_srcdir)/m4/filemode.m4 \
$(top_srcdir)/m4/fcntl-safer.m4 $(top_srcdir)/m4/fd-reopen.m4 \
$(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
$(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
$(top_srcdir)/m4/fnmatch.m4 $(top_srcdir)/m4/fpending.m4 \
$(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
$(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
$(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
$(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getgroups.m4 \
$(top_srcdir)/m4/gethostname.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
$(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
$(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
$(top_srcdir)/m4/getndelim2.m4 $(top_srcdir)/m4/getopt.m4 \
$(top_srcdir)/m4/getpagesize.m4 $(top_srcdir)/m4/getpass.m4 \
$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gettime.m4 \
@@ -95,54 +134,60 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/getugroups.m4 \
$(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
$(top_srcdir)/m4/group-member.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
$(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/idcache.m4 \
$(top_srcdir)/m4/intmax_t.m4 $(top_srcdir)/m4/inttostr.m4 \
$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/jm-macros.m4 \
$(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
$(top_srcdir)/m4/lchown.m4 $(top_srcdir)/m4/lib-check.m4 \
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash-pjw.m4 \
$(top_srcdir)/m4/hash.m4 $(top_srcdir)/m4/host-os.m4 \
$(top_srcdir)/m4/human.m4 $(top_srcdir)/m4/iconv.m4 \
$(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/intmax_t.m4 \
$(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
$(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
$(top_srcdir)/m4/jm-macros.m4 $(top_srcdir)/m4/jm-winsz1.m4 \
$(top_srcdir)/m4/jm-winsz2.m4 $(top_srcdir)/m4/lchown.m4 \
$(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/linebuffer.m4 $(top_srcdir)/m4/link-follow.m4 \
$(top_srcdir)/m4/localcharset.m4 \
$(top_srcdir)/m4/long-options.m4 \
$(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
$(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
$(top_srcdir)/m4/makepath.m4 $(top_srcdir)/m4/mbrtowc.m4 \
$(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
$(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
$(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbstate_t.m4 \
$(top_srcdir)/m4/mbswidth.m4 $(top_srcdir)/m4/md5.m4 \
$(top_srcdir)/m4/memcasecmp.m4 $(top_srcdir)/m4/memchr.m4 \
$(top_srcdir)/m4/memcmp.m4 $(top_srcdir)/m4/memcoll.m4 \
$(top_srcdir)/m4/memcpy.m4 $(top_srcdir)/m4/memmove.m4 \
$(top_srcdir)/m4/mempcpy.m4 $(top_srcdir)/m4/memrchr.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
$(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
$(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
$(top_srcdir)/m4/nanosleep.m4 $(top_srcdir)/m4/nls.m4 \
$(top_srcdir)/m4/obstack.m4 $(top_srcdir)/m4/onceonly.m4 \
$(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/path-concat.m4 \
$(top_srcdir)/m4/memset.m4 $(top_srcdir)/m4/mkdir-p.m4 \
$(top_srcdir)/m4/mkdir-slash.m4 $(top_srcdir)/m4/mkstemp.m4 \
$(top_srcdir)/m4/mktime.m4 $(top_srcdir)/m4/modechange.m4 \
$(top_srcdir)/m4/mountlist.m4 $(top_srcdir)/m4/nanosleep.m4 \
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/obstack.m4 \
$(top_srcdir)/m4/onceonly_2_57.m4 $(top_srcdir)/m4/openat.m4 \
$(top_srcdir)/m4/pathmax.m4 $(top_srcdir)/m4/perl.m4 \
$(top_srcdir)/m4/physmem.m4 $(top_srcdir)/m4/po.m4 \
$(top_srcdir)/m4/posixtm.m4 $(top_srcdir)/m4/posixver.m4 \
$(top_srcdir)/m4/prereq.m4 $(top_srcdir)/m4/progtest.m4 \
$(top_srcdir)/m4/putenv.m4 $(top_srcdir)/m4/quote.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readdir.m4 \
$(top_srcdir)/m4/readlink.m4 $(top_srcdir)/m4/readtokens.m4 \
$(top_srcdir)/m4/readutmp.m4 $(top_srcdir)/m4/regex.m4 \
$(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/restrict.m4 \
$(top_srcdir)/m4/rmdir-errno.m4 $(top_srcdir)/m4/rmdir.m4 \
$(top_srcdir)/m4/quotearg.m4 $(top_srcdir)/m4/readlink.m4 \
$(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
$(top_srcdir)/m4/regex.m4 $(top_srcdir)/m4/rename.m4 \
$(top_srcdir)/m4/restrict.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
$(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
$(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
$(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
$(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
$(top_srcdir)/m4/setenv.m4 $(top_srcdir)/m4/settime.m4 \
$(top_srcdir)/m4/sha1.m4 $(top_srcdir)/m4/sig2str.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/st_mtim.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat.m4 \
$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/socklen.m4 \
$(top_srcdir)/m4/sockpfaf.m4 $(top_srcdir)/m4/ssize_t.m4 \
$(top_srcdir)/m4/st_dm_mode.m4 $(top_srcdir)/m4/stat-macros.m4 \
$(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
$(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stdint_h.m4 \
$(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/stdio-safer.m4 \
$(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stpcpy.m4 \
$(top_srcdir)/m4/strcase.m4 $(top_srcdir)/m4/strcspn.m4 \
$(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
$(top_srcdir)/m4/strndup.m4 $(top_srcdir)/m4/strnlen.m4 \
$(top_srcdir)/m4/stripslash.m4 $(top_srcdir)/m4/strndup.m4 \
$(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
$(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strstr.m4 \
$(top_srcdir)/m4/strtod.m4 $(top_srcdir)/m4/strtoimax.m4 \
$(top_srcdir)/m4/strtol.m4 $(top_srcdir)/m4/strtoll.m4 \
@@ -153,75 +198,55 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/afs.m4 \
$(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/uintptr_t.m4 \
$(top_srcdir)/m4/ullong_max.m4 $(top_srcdir)/m4/ulonglong.m4 \
$(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
$(top_srcdir)/m4/unlink-busy.m4 \
$(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \
$(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4 \
$(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \
$(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \
$(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \
$(top_srcdir)/m4/utimes.m4 $(top_srcdir)/m4/vasnprintf.m4 \
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/wchar_t.m4 \
$(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xreadlink.m4 \
$(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtoimax.m4 \
$(top_srcdir)/m4/xstrtol.m4 $(top_srcdir)/m4/xstrtoumax.m4 \
$(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/version-etc.m4 \
$(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \
$(top_srcdir)/m4/xalloc.m4 $(top_srcdir)/m4/xfts.m4 \
$(top_srcdir)/m4/xgetcwd.m4 $(top_srcdir)/m4/xnanosleep.m4 \
$(top_srcdir)/m4/xreadlink.m4 $(top_srcdir)/m4/xstrtod.m4 \
$(top_srcdir)/m4/xstrtoimax.m4 $(top_srcdir)/m4/xstrtol.m4 \
$(top_srcdir)/m4/xstrtoumax.m4 $(top_srcdir)/m4/yesno.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
LIBRARIES = $(noinst_LIBRARIES)
AR = ar
ARFLAGS = cru
libfetish_a_AR = $(AR) $(ARFLAGS)
libcoreutils_a_AR = $(AR) $(ARFLAGS)
am__DEPENDENCIES_1 = @LIBOBJS@
am__DEPENDENCIES_2 = @ALLOCA@
am_libfetish_a_OBJECTS = acl.$(OBJEXT) getdate.$(OBJEXT) \
posixtm.$(OBJEXT) posixver.$(OBJEXT) strftime.$(OBJEXT) \
hash.$(OBJEXT) hash-pjw.$(OBJEXT) allocsa.$(OBJEXT) \
argmatch.$(OBJEXT) backupfile.$(OBJEXT) basename.$(OBJEXT) \
c-strtod.$(OBJEXT) c-strtold.$(OBJEXT) canon-host.$(OBJEXT) \
canonicalize.$(OBJEXT) cloexec.$(OBJEXT) closeout.$(OBJEXT) \
cycle-check.$(OBJEXT) diacrit.$(OBJEXT) dirname.$(OBJEXT) \
dup-safer.$(OBJEXT) exclude.$(OBJEXT) exitfail.$(OBJEXT) \
filemode.$(OBJEXT) file-type.$(OBJEXT) fopen-safer.$(OBJEXT) \
fts.$(OBJEXT) full-read.$(OBJEXT) full-write.$(OBJEXT) \
gettime.$(OBJEXT) getugroups.$(OBJEXT) hard-locale.$(OBJEXT) \
human.$(OBJEXT) idcache.$(OBJEXT) imaxtostr.$(OBJEXT) \
linebuffer.$(OBJEXT) localcharset.$(OBJEXT) \
long-options.$(OBJEXT) makepath.$(OBJEXT) mbswidth.$(OBJEXT) \
md5.$(OBJEXT) memcasecmp.$(OBJEXT) memcoll.$(OBJEXT) \
modechange.$(OBJEXT) offtostr.$(OBJEXT) open-safer.$(OBJEXT) \
path-concat.$(OBJEXT) physmem.$(OBJEXT) quote.$(OBJEXT) \
quotearg.$(OBJEXT) readtokens0.$(OBJEXT) readtokens.$(OBJEXT) \
root-dev-ino.$(OBJEXT) safe-read.$(OBJEXT) \
safe-write.$(OBJEXT) same.$(OBJEXT) savedir.$(OBJEXT) \
settime.$(OBJEXT) sha1.$(OBJEXT) stripslash.$(OBJEXT) \
time_r.$(OBJEXT) umaxtostr.$(OBJEXT) unicodeio.$(OBJEXT) \
userspec.$(OBJEXT) utimecmp.$(OBJEXT) utimens.$(OBJEXT) \
version-etc.$(OBJEXT) xalloc-die.$(OBJEXT) xfts.$(OBJEXT) \
xgetcwd.$(OBJEXT) xgethostname.$(OBJEXT) xmalloc.$(OBJEXT) \
xmemcoll.$(OBJEXT) xnanosleep.$(OBJEXT) xreadlink.$(OBJEXT) \
xstrndup.$(OBJEXT) xstrtod.$(OBJEXT) xstrtoimax.$(OBJEXT) \
xstrtol.$(OBJEXT) xstrtoul.$(OBJEXT) xstrtoumax.$(OBJEXT) \
yesno.$(OBJEXT)
libfetish_a_OBJECTS = $(am_libfetish_a_OBJECTS)
am_libcoreutils_a_OBJECTS = allocsa.$(OBJEXT) fprintftime.$(OBJEXT) \
full-read.$(OBJEXT) full-write.$(OBJEXT) \
localcharset.$(OBJEXT) mbswidth.$(OBJEXT) \
readtokens0.$(OBJEXT) strnlen1.$(OBJEXT) time_r.$(OBJEXT) \
unicodeio.$(OBJEXT) xalloc-die.$(OBJEXT) \
xgethostname.$(OBJEXT) xmemcoll.$(OBJEXT) xstrndup.$(OBJEXT) \
xstrtoimax.$(OBJEXT) xstrtoumax.$(OBJEXT)
libcoreutils_a_OBJECTS = $(am_libcoreutils_a_OBJECTS)
PROGRAMS = $(noinst_PROGRAMS)
t_fpending_SOURCES = t-fpending.c
t_fpending_OBJECTS = t-fpending.$(OBJEXT)
t_fpending_LDADD = $(LDADD)
am__DEPENDENCIES_3 = libfetish.a
am__DEPENDENCIES_3 = libcoreutils.a
t_fpending_DEPENDENCIES = $(am__DEPENDENCIES_3)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
SOURCES = $(libfetish_a_SOURCES) t-fpending.c
DIST_SOURCES = $(libfetish_a_SOURCES) t-fpending.c
SOURCES = $(libcoreutils_a_SOURCES) t-fpending.c
DIST_SOURCES = $(libcoreutils_a_SOURCES) t-fpending.c
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -251,13 +276,13 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EOVERFLOW = @EOVERFLOW@
EXEEXT = @EXEEXT@
FESETROUND_LIBM = @FESETROUND_LIBM@
FNMATCH_H = @FNMATCH_H@
GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
GETOPT_H = @GETOPT_H@
GLIBC21 = @GLIBC21@
GMSGFMT = @GMSGFMT@
GNU_PACKAGE = @GNU_PACKAGE@
GREP = @GREP@
HAVE__BOOL = @HAVE__BOOL@
HELP2MAN = @HELP2MAN@
INSTALL_DATA = @INSTALL_DATA@
@@ -265,6 +290,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INTLLIBS = @INTLLIBS@
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
KMEM_GROUP = @KMEM_GROUP@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
@@ -275,6 +301,7 @@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
LIB_CRYPT = @LIB_CRYPT@
LIB_EACCESS = @LIB_EACCESS@
LIB_FDATASYNC = @LIB_FDATASYNC@
LIB_GETHRXTIME = @LIB_GETHRXTIME@
LIB_NANOSLEEP = @LIB_NANOSLEEP@
LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@
@@ -302,7 +329,6 @@ RANLIB = @RANLIB@
SEQ_LIBM = @SEQ_LIBM@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SQRT_LIBM = @SQRT_LIBM@
STDBOOL_H = @STDBOOL_H@
STRIP = @STRIP@
U = @U@
@@ -310,6 +336,7 @@ USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
YACC = @YACC@
YFLAGS = @YFLAGS@
ac_ct_CC = @ac_ct_CC@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
@@ -327,67 +354,49 @@ build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
noinst_LIBRARIES = libfetish.a
noinst_LIBRARIES = libcoreutils.a
LDADD = $(noinst_LIBRARIES)
AM_CPPFLAGS = -I.. -I$(srcdir)
libfetish_a_SOURCES = acl.h acl.c getdate.h getdate.y posixtm.c \
posixtm.h posixver.c posixver.h strftime.c strftime.h hash.c \
hash.h hash-pjw.c hash-pjw.h __fpending.h allocsa.c allocsa.h \
argmatch.c argmatch.h backupfile.c backupfile.h basename.c \
c-strtod.c c-strtod.h c-strtold.c canon-host.c canonicalize.c \
canonicalize.h cloexec.c cloexec.h closeout.c closeout.h \
cycle-check.c cycle-check.h dev-ino.h diacrit.c diacrit.h \
dirname.c dirname.h dirfd.h dup-safer.c euidaccess.h exclude.c \
exclude.h exit.h exitfail.c exitfail.h fcntl-safer.h \
filemode.c filemode.h file-type.c file-type.h fopen-safer.c \
fsusage.h fts.c fts_.h full-read.c full-read.h full-write.c \
full-write.h getcwd.h getline.h getpagesize.h getpass.h \
gettime.c gettext.h getugroups.c group-member.h hard-locale.c \
hard-locale.h human.c human.h idcache.c imaxtostr.c \
linebuffer.c linebuffer.h localcharset.c localcharset.h \
long-options.c long-options.h makepath.c makepath.h mbswidth.c \
mbswidth.h md5.c md5.h memcasecmp.c memcasecmp.h memcoll.c \
memcoll.h modechange.c modechange.h mountlist.h offtostr.c \
open-safer.c path-concat.c path-concat.h pathmax.h physmem.c \
physmem.h quote.c quote.h quotearg.c quotearg.h readtokens0.c \
readtokens0.h readtokens.c readtokens.h readutmp.h regex.h \
root-dev-ino.c root-dev-ino.h safe-read.c safe-read.h \
safe-write.c safe-write.h same.c same.h savedir.c savedir.h \
setenv.h settime.c sha1.c sha1.h sig2str.h stat-macros.h \
stdio-safer.h stripslash.c strdup.h strndup.h strverscmp.h \
time_r.c time_r.h timespec.h umaxtostr.c unicodeio.c \
unicodeio.h unistd-safer.h unlocked-io.h userspec.c userspec.h \
utimecmp.c utimecmp.h utimens.c utimens.h version-etc.c \
version-etc.h xalloc.h xalloc-die.c xfts.c xfts.h xgetcwd.c \
xgetcwd.h xgethostname.c xgethostname.h xmalloc.c xmemcoll.c \
xmemcoll.h xnanosleep.c xnanosleep.h xreadlink.c xreadlink.h \
xstrndup.c xstrndup.h xstrtod.c xstrtod.h xstrtoimax.c \
xstrtol.c xstrtol.h xstrtoul.c xstrtoumax.c yesno.c yesno.h \
libcoreutils_a_SOURCES = allocsa.c allocsa.h euidaccess.h exit.h \
fprintftime.c fprintftime.h full-read.c full-read.h \
full-write.c full-write.h getaddrinfo.h gettext.h \
localcharset.c localcharset.h mbchar.h mbswidth.c mbswidth.h \
mbuiter.h readtokens0.c readtokens0.h strcase.h strnlen1.c \
strnlen1.h strstr.h time_r.c time_r.h unicodeio.c unicodeio.h \
verify.h xalloc-die.c xgethostname.c xgethostname.h xmemcoll.c \
xmemcoll.h xstrndup.c xstrndup.h xstrtoimax.c xstrtoumax.c \
printf-args.h printf-parse.h vasprintf.h vasnprintf.h
libfetish_a_LIBADD = $(LIBOBJS) $(ALLOCA)
libfetish_a_DEPENDENCIES = $(libfetish_a_LIBADD)
lib_OBJECTS = $(libfetish_a_OBJECTS)
libcoreutils_a_LIBADD = $(LIBOBJS) $(ALLOCA)
libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
lib_OBJECTS = $(libcoreutils_a_OBJECTS)
BUILT_SOURCES = getdate.c $(STDBOOL_H) $(ALLOCA_H) $(FNMATCH_H) \
$(GETOPT_H)
CLEANFILES = charset.alias ref-add.sed ref-del.sed
@@ -395,9 +404,9 @@ MAINTAINERCLEANFILES = $(BUILT_SOURCES)
MOSTLYCLEANFILES = stdbool.h stdbool.ht alloca.h alloca.h-t fnmatch.h \
fnmatch.h-t getopt.h getopt.h-t
SUFFIXES = .sed .sin
EXTRA_DIST = config.charset ref-add.sin ref-del.sin getndelim2.c \
getndelim2.h inttostr.c inttostr.h stdbool_.h alloca_.h \
fnmatch_.h fnmatch_loop.c getopt_.h getopt_int.h
EXTRA_DIST = getdate.c config.charset ref-add.sin ref-del.sin \
getndelim2.c getndelim2.h stdbool_.h alloca_.h fnmatch_.h \
fnmatch_loop.c getopt_.h getopt_int.h
charset_alias = $(DESTDIR)$(libdir)/charset.alias
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
all: $(BUILT_SOURCES)
@@ -437,10 +446,10 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
libfetish.a: $(libfetish_a_OBJECTS) $(libfetish_a_DEPENDENCIES)
-rm -f libfetish.a
$(libfetish_a_AR) libfetish.a $(libfetish_a_OBJECTS) $(libfetish_a_LIBADD)
$(RANLIB) libfetish.a
libcoreutils.a: $(libcoreutils_a_OBJECTS) $(libcoreutils_a_DEPENDENCIES)
-rm -f libcoreutils.a
$(libcoreutils_a_AR) libcoreutils.a $(libcoreutils_a_OBJECTS) $(libcoreutils_a_LIBADD)
$(RANLIB) libcoreutils.a
clean-noinstPROGRAMS:
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
@@ -455,75 +464,147 @@ distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/__fpending.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/acl.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/alloca.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/argmatch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/asnprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/asprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/atexit.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/backupfile.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/basename.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/c-strtod.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/c-strtold.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/calloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/canon-host.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/canonicalize.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/chdir-long.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/chown.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/cloexec.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/closeout.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/creat-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/cycle-check.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/diacrit.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dirfd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dirname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dup-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dup2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/error.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/euidaccess.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/exclude.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/exitfail.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fchdir-stub.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fchown-stub.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fd-reopen.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fd-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/file-type.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fileblocks.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/filemode.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/filenamecat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fnmatch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fopen-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/free.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fsusage.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ftruncate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fts-cycle.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fts.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gai_strerror.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getaddrinfo.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getcwd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getdate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getdate.y@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getdelim.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getgroups.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gethostname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gethrxtime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getline.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getloadavg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getndelim2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt1.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getpass.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gettime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gettimeofday.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getugroups.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getusershell.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/group-member.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/hard-locale.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/hash-pjw.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/hash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/human.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/idcache.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/imaxtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/inttostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/lchown.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/linebuffer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/long-options.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/lstat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/malloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mbchar.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/md5.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memcasecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memchr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memcmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memcoll.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memcpy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memmove.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mempcpy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memrchr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memset.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mkdir-p.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mkdir.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mkstemp-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mkstemp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mktime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/modechange.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mountlist.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/nanosleep.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/obstack.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/offtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/open-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/openat-die.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/openat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/physmem.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/pipe-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/posixtm.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/posixver.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/printf-args.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/printf-parse.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/putenv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/quote.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/quotearg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/raise.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/readlink.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/readtokens.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/readutmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/realloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/regcomp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/regex.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/regex_internal.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/regexec.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/rename.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/rmdir.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/root-dev-ino.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/rpmatch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/safe-read.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/safe-write.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/same.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/save-cwd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/savedir.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/setenv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/settime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sha1.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sig2str.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/stat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/stpcpy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strcasecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strcspn.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strdup.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strftime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strintcmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/stripslash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strncasecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strndup.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnlen.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnumcmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strpbrk.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strstr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strtod.Po@am__quote@
@@ -535,93 +616,43 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strtoumax.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strverscmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/tempname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/umaxtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/unlinkdir.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/unsetenv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/userspec.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/utime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/utimecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/utimens.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vasnprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vasprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acl.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/version-etc-fsf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/version-etc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xfts.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xgetcwd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xmalloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xnanosleep.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xreadlink.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xstrtod.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xstrtol.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xstrtoul.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/yesno.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocsa.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/argmatch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backupfile.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/basename.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c-strtod.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c-strtold.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/canon-host.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/canonicalize.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cloexec.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/closeout.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cycle-check.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diacrit.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exclude.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exitfail.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file-type.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fopen-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fts.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fprintftime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/full-read.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/full-write.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getugroups.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hard-locale.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash-pjw.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/human.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idcache.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imaxtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linebuffer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localcharset.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/long-options.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makepath.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbswidth.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memcasecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memcoll.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/modechange.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/offtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/open-safer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path-concat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/physmem.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posixtm.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posixver.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quote.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quotearg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readtokens.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readtokens0.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/root-dev-ino.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe-read.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe-write.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/same.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/savedir.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/settime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha1.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strftime.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stripslash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnlen1.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/t-fpending.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time_r.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/umaxtostr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicodeio.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/userspec.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utimecmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utimens.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version-etc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xalloc-die.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfts.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xgetcwd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xgethostname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmemcoll.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xnanosleep.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xreadlink.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrndup.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtod.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtoimax.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtol.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtoul.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtoumax.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yesno.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
@@ -766,7 +797,6 @@ distclean-generic:
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
-rm -f getdate.c
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am

View File

@@ -13,11 +13,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@@ -1,7 +1,3 @@
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stddef.h>
#include <stdio.h>

View File

@@ -1,6 +1,6 @@
/* acl.c - access control lists
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,11 +14,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Written by Paul Eggert. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -39,11 +39,11 @@
# define MIN_ACL_ENTRIES 4
#endif
/* Return 1 if PATH has a nontrivial access control list, 0 if not,
/* Return 1 if FILE has a nontrivial access control list, 0 if not,
and -1 (setting errno) if an error is encountered. */
int
file_has_acl (char const *path, struct stat const *pathstat)
file_has_acl (char const *file, struct stat const *filestat)
{
/* FIXME: This implementation should work on recent-enough versions
of HP-UX, Solaris, and Unixware, but it simply returns 0 with
@@ -52,9 +52,9 @@ file_has_acl (char const *path, struct stat const *pathstat)
fix-related ideas. */
#if HAVE_ACL && defined GETACLCNT
if (! S_ISLNK (pathstat->st_mode))
if (! S_ISLNK (filestat->st_mode))
{
int n = acl (path, GETACLCNT, 0, NULL);
int n = acl (file, GETACLCNT, 0, NULL);
return n < 0 ? (errno == ENOSYS ? 0 : -1) : (MIN_ACL_ENTRIES < n);
}
#endif

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Written by Paul Eggert. */

View File

@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA. */
/* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef _ALLOCSA_H
#define _ALLOCSA_H

View File

@@ -1,6 +1,6 @@
/* argmatch.c -- find a match for a string in an array
Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004 Free
Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -15,12 +15,12 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by David MacKenzie <djm@ai.mit.edu>
Modified by Akim Demaille <demaille@inf.enst.fr> */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -73,7 +73,7 @@ argmatch_exit_fn argmatch_die = __argmatch_die;
/* If ARG is an unambiguous match for an element of the
null-terminated array ARGLIST, return the index in ARGLIST
NULL-terminated array ARGLIST, return the index in ARGLIST
of the matched element, else -1 if it does not match any element
or -2 if it is ambiguous (is a prefix of more than one element).

View File

@@ -1,6 +1,6 @@
/* argmatch.h -- definitions and prototypes for argmatch.c
Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004 Free Software
Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004, 2005 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by David MacKenzie <djm@ai.mit.edu>
Modified by Akim Demaille <demaille@inf.enst.fr> */
@@ -25,24 +25,15 @@
# include <stddef.h>
# include "verify.h"
# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
# define ARGMATCH_CONSTRAINT(Arglist, Vallist) \
(ARRAY_CARDINALITY (Arglist) == ARRAY_CARDINALITY (Vallist) + 1)
/* Assert there are as many real arguments as there are values
(argument list ends with a NULL guard). ARGMATCH_VERIFY is
preferred, since it is guaranteed to be checked at compile-time.
ARGMATCH_ASSERT is for backward compatibility only. */
(argument list ends with a NULL guard). */
# define ARGMATCH_VERIFY(Arglist, Vallist) \
struct argmatch_verify \
{ \
char argmatch_verify[ARGMATCH_CONSTRAINT(Arglist, Vallist) ? 1 : -1]; \
}
# define ARGMATCH_ASSERT(Arglist, Vallist) \
assert (ARGMATCH_CONSTRAINT (Arglist, Vallist))
# define ARGMATCH_VERIFY(Arglist, Vallist) \
verify (ARRAY_CARDINALITY (Arglist) == ARRAY_CARDINALITY (Vallist) + 1)
/* Return the index of the element of ARGLIST (NULL terminated) that
matches with ARG. If VALLIST is not NULL, then use it to resolve

View File

@@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>

View File

@@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>

View File

@@ -1,7 +1,9 @@
/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
/* This function is in the public domain. --Mike Stump. */
#include "config.h"
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
int
atexit (void (*f) (void))

View File

@@ -1,7 +1,7 @@
/* backupfile.c -- make Emacs style backup file names
Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,12 +16,12 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert and David MacKenzie.
Some algorithms adapted from GNU Emacs. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -38,9 +38,7 @@
#include <limits.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <unistd.h>
#if HAVE_DIRENT_H
# include <dirent.h>
@@ -334,13 +332,13 @@ find_backup_file_name (char const *file, enum backup_type backup_type)
static char const * const backup_args[] =
{
/* In a series of synonyms, present the most meaning full first, so
/* In a series of synonyms, present the most meaningful first, so
that argmatch_valid be more readable. */
"none", "off",
"simple", "never",
"existing", "nil",
"numbered", "t",
0
NULL
};
static const enum backup_type backup_types[] =
@@ -351,6 +349,10 @@ static const enum backup_type backup_types[] =
numbered_backups, numbered_backups
};
/* Ensure that these two vectors have the same number of elements,
not counting the final NULL in the first one. */
ARGMATCH_VERIFY (backup_args, backup_types);
/* Return the type of backup specified by VERSION.
If VERSION is NULL or the empty string, return numbered_existing_backups.
If VERSION is invalid or ambiguous, fail with a diagnostic appropriate

View File

@@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef BACKUPFILE_H_
# define BACKUPFILE_H_

View File

@@ -1,6 +1,6 @@
/* basename.c -- return the last element in a path
/* basename.c -- return the last element in a file name
Copyright (C) 1990, 1998, 1999, 2000, 2001, 2003, 2004 Free
Copyright (C) 1990, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -15,9 +15,9 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */

View File

@@ -1,6 +1,6 @@
/* calloc() function that is glibc compatible.
This wrapper function is required at least on Tru64 UNIX 5.1.
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,11 +14,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* written by Jim Meyering */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#undef calloc
@@ -32,10 +32,9 @@ void *
rpl_calloc (size_t n, size_t s)
{
size_t bytes;
if (n == 0)
n = 1;
if (s == 0)
s = 1;
if (n == 0 || s == 0)
return calloc (1, 1);
/* Defend against buggy calloc implementations that mishandle
size_t overflow. */

View File

@@ -1,9 +1,8 @@
/* Host name canonicalization
Copyright (C) 1995, 1999, 2000, 2002, 2003, 2004 Free Software
Foundation, Inc.
Copyright (C) 2005 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
Written by Derek Price <derek@ximbiot.com>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -17,111 +16,75 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#include "canon-host.h"
#include "getaddrinfo.h"
#include "strdup.h"
/* Returns the canonical hostname associated with HOST (allocated in a static
buffer), or NULL if it can't be determined. */
/* Store the last error for the single-threaded version of this function. */
static int last_cherror;
/* Single-threaded of wrapper for canon_host_r. After a NULL return, error
messages may be retrieved via ch_strerror(). */
char *
canon_host (char const *host)
canon_host (const char *host)
{
char *h_addr_copy = NULL;
#if HAVE_GETADDRINFO
{
struct addrinfo hint = { 0 };
struct addrinfo *res = NULL;
hint.ai_flags = AI_CANONNAME;
if (getaddrinfo (host, NULL, &hint, &res) == 0)
{
h_addr_copy = strdup (res->ai_canonname);
freeaddrinfo (res);
}
}
#elif HAVE_GETHOSTBYNAME
{
struct hostent *he = gethostbyname (host);
if (he)
{
# ifdef HAVE_GETHOSTBYADDR
char *addr = NULL;
/* Try and get an ascii version of the numeric host address. */
switch (he->h_addrtype)
{
# ifdef HAVE_INET_NTOA
case AF_INET:
addr = inet_ntoa (*(struct in_addr *) he->h_addr);
break;
# endif /* HAVE_INET_NTOA */
}
if (addr && strcmp (he->h_name, addr) == 0)
{
/* gethostbyname has returned a string representation of the IP
address, for example, "127.0.0.1". So now, look up the host
name via the address. Although it may seem reasonable to look
up the host name via the address, we must not pass `he->h_addr'
directly to gethostbyaddr because on some systems he->h_addr
is located in a static library buffer that is reused in the
gethostbyaddr call. Make a copy and use that instead. */
h_addr_copy = (char *) malloc (he->h_length);
if (h_addr_copy == NULL)
he = NULL;
else
{
memcpy (h_addr_copy, he->h_addr, he->h_length);
he = gethostbyaddr (h_addr_copy, he->h_length, he->h_addrtype);
free (h_addr_copy);
}
}
# endif /* HAVE_GETHOSTBYADDR */
if (he)
h_addr_copy = strdup (he->h_name);
}
}
#endif /* HAVE_GETHOSTBYNAME */
return h_addr_copy;
return canon_host_r (host, &last_cherror);
}
#ifdef TEST_CANON_HOST
int
main (int argc, char **argv)
/* Return a malloc'd string containing the canonical hostname associated with
HOST, or NULL if a canonical name cannot be determined. On NULL return,
if CHERROR is not NULL, set *CHERROR to an error code as returned by
getaddrinfo(). Use ch_strerror_r() or gai_strerror() to convert a *CHERROR
value to a string suitable for error messages.
WARNINGS
HOST must be a string representation of a resolvable name for this host.
Strings containing an IP address in dotted decimal notation will be
returned as-is, without further resolution.
The use of the word "canonical" in this context is unfortunate but
entrenched. The value returned by this function will be the end result
of the resolution of any CNAME chains in the DNS. There may only be one
such value for any given hostname, though the actual IP address
referenced by this value and the device using that IP address may each
actually have any number of such "canonical" hostnames. See the POSIX
getaddrinfo spec <http://www.opengroup.org/susv3xsh/getaddrinfo.html">,
RFC 1034 <http://www.faqs.org/rfcs/rfc1034.html>, & RFC 2181
<http://www.faqs.org/rfcs/rfc2181.html> for more on what this confusing
term really refers to. */
char *
canon_host_r (char const *host, int *cherror)
{
int i;
for (i = 1; i < argc; i++)
char *retval = NULL;
static struct addrinfo hints;
struct addrinfo *res = NULL;
int status;
hints.ai_flags = AI_CANONNAME;
status = getaddrinfo (host, NULL, &hints, &res);
if (!status)
{
char *s = canon_host (argv[i]);
printf ("%s: %s\n", argv[i], (s ? s : "<undef>"));
retval = strdup (res->ai_canonname);
if (!retval && cherror)
*cherror = EAI_MEMORY;
freeaddrinfo (res);
}
exit (0);
else if (cherror)
*cherror = status;
return retval;
}
/* Return a string describing the last error encountered by canon_host. */
const char *
ch_strerror (void)
{
return gai_strerror (last_cherror);
}
#endif /* TEST_CANON_HOST */

30
lib/canon-host.h Normal file
View File

@@ -0,0 +1,30 @@
/* Host name canonicalization
Copyright (C) 2005 Free Software Foundation, Inc.
Written by Derek Price <derek@ximbiot.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef CANON_HOST_H
# define CANON_HOST_H 1
char *canon_host (char const *host);
char *canon_host_r (char const *host, int *cherror);
const char *ch_strerror (void);
# define ch_strerror_r(cherror) gai_strerror (cherror);
#endif /* !CANON_HOST_H */

View File

@@ -1,5 +1,5 @@
/* Return the canonical absolute name of a given file.
Copyright (C) 1996-2004 Free Software Foundation, Inc.
Copyright (C) 1996-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,23 +14,16 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
#else
void free ();
#endif
#include "canonicalize.h"
#if defined STDC_HEADERS || defined HAVE_STRING_H
# include <string.h>
#else
# include <strings.h>
#endif
#include <stdlib.h>
#include <string.h>
#if HAVE_SYS_PARAM_H
# include <sys/param.h>
@@ -38,14 +31,13 @@ void free ();
#include <sys/stat.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <unistd.h>
#include <errno.h>
#include <stddef.h>
#include "cycle-check.h"
#include "path-concat.h"
#include "filenamecat.h"
#include "stat-macros.h"
#include "xalloc.h"
#include "xgetcwd.h"
@@ -54,32 +46,13 @@ void free ();
# define __set_errno(Val) errno = (Val)
#endif
/* If __PTRDIFF_TYPE__ is
defined, as with GNU C, use that; that way we don't pollute the
namespace with <stddef.h>'s symbols. Otherwise, if <stddef.h> is
available, include it and use ptrdiff_t. In traditional C, long is
the best that we can do. */
#ifdef __PTRDIFF_TYPE__
# define PTR_INT_TYPE __PTRDIFF_TYPE__
#else
# ifdef HAVE_STDDEF_H
# include <stddef.h>
# define PTR_INT_TYPE ptrdiff_t
# else
# define PTR_INT_TYPE long
# endif
#endif
#include "canonicalize.h"
#include "pathmax.h"
#include "stat-macros.h"
#include "xreadlink.h"
#if !HAVE_CANONICALIZE_FILE_NAME
/* Return the canonical absolute name of file NAME. A canonical name
does not contain any `.', `..' components nor any repeated path
separators ('/') or symlinks. All path components must exist.
does not contain any `.', `..' components nor any repeated file name
separators ('/') or symlinks. All components must exist.
The result is malloc'd. */
char *
@@ -105,7 +78,7 @@ canonicalize_file_name (const char *name)
/* All known hosts with resolvepath (e.g. Solaris 7) don't turn
relative names into absolute ones, so prepend the working
directory if the path is not absolute. */
directory if the file name is not absolute. */
if (name[0] != '/')
{
char *wd;
@@ -113,7 +86,7 @@ canonicalize_file_name (const char *name)
if (!(wd = xgetcwd ()))
return NULL;
extra_buf = path_concat (wd, name, NULL);
extra_buf = file_name_concat (wd, name, NULL);
name = extra_buf;
free (wd);
}
@@ -151,15 +124,17 @@ canonicalize_file_name (const char *name)
#endif /* !HAVE_CANONICALIZE_FILE_NAME */
/* Return the canonical absolute name of file NAME. A canonical name
does not contain any `.', `..' components nor any repeated path
separators ('/') or symlinks. Whether path components must exist
does not contain any `.', `..' components nor any repeated file name
separators ('/') or symlinks. Whether components must exist
or not depends on canonicalize mode. The result is malloc'd. */
char *
canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
{
char *rpath, *dest, *extra_buf = NULL;
const char *start, *end, *rpath_limit;
char *rname, *dest, *extra_buf = NULL;
char const *start;
char const *end;
char const *rname_limit;
size_t extra_len = 0;
struct cycle_check_state cycle_state;
@@ -177,38 +152,38 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
if (name[0] != '/')
{
rpath = xgetcwd ();
if (!rpath)
rname = xgetcwd ();
if (!rname)
return NULL;
dest = strchr (rpath, '\0');
if (dest - rpath < PATH_MAX)
dest = strchr (rname, '\0');
if (dest - rname < PATH_MAX)
{
char *p = xrealloc (rpath, PATH_MAX);
dest = p + (dest - rpath);
rpath = p;
rpath_limit = rpath + PATH_MAX;
char *p = xrealloc (rname, PATH_MAX);
dest = p + (dest - rname);
rname = p;
rname_limit = rname + PATH_MAX;
}
else
{
rpath_limit = dest;
rname_limit = dest;
}
}
else
{
rpath = xmalloc (PATH_MAX);
rpath_limit = rpath + PATH_MAX;
rpath[0] = '/';
dest = rpath + 1;
rname = xmalloc (PATH_MAX);
rname_limit = rname + PATH_MAX;
rname[0] = '/';
dest = rname + 1;
}
cycle_check_init (&cycle_state);
for (start = end = name; *start; start = end)
{
/* Skip sequence of multiple path-separators. */
/* Skip sequence of multiple file name separators. */
while (*start == '/')
++start;
/* Find end of path component. */
/* Find end of component. */
for (end = start; *end && *end != '/'; ++end)
/* Nothing. */;
@@ -219,7 +194,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
else if (end - start == 2 && start[0] == '.' && start[1] == '.')
{
/* Back up to previous component, ignore if at root already. */
if (dest > rpath + 1)
if (dest > rname + 1)
while ((--dest)[-1] != '/');
}
else
@@ -229,26 +204,26 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
if (dest[-1] != '/')
*dest++ = '/';
if (dest + (end - start) >= rpath_limit)
if (dest + (end - start) >= rname_limit)
{
PTR_INT_TYPE dest_offset = dest - rpath;
size_t new_size = rpath_limit - rpath;
ptrdiff_t dest_offset = dest - rname;
size_t new_size = rname_limit - rname;
if (end - start + 1 > PATH_MAX)
new_size += end - start + 1;
else
new_size += PATH_MAX;
rpath = xrealloc (rpath, new_size);
rpath_limit = rpath + new_size;
rname = xrealloc (rname, new_size);
rname_limit = rname + new_size;
dest = rpath + dest_offset;
dest = rname + dest_offset;
}
dest = memcpy (dest, start, end - start);
dest += end - start;
*dest = '\0';
if (lstat (rpath, &st) < 0)
if (lstat (rname, &st) != 0)
{
if (can_mode == CAN_EXISTING)
goto error;
@@ -271,7 +246,7 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
goto error;
}
buf = xreadlink (rpath, st.st_size);
buf = xreadlink (rname, st.st_size);
if (!buf)
{
if (can_mode == CAN_MISSING)
@@ -300,10 +275,10 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
name = end = memcpy (extra_buf, buf, n);
if (buf[0] == '/')
dest = rpath + 1; /* It's an absolute symlink */
dest = rname + 1; /* It's an absolute symlink */
else
/* Back up to previous component, ignore if at root already: */
if (dest > rpath + 1)
if (dest > rname + 1)
while ((--dest)[-1] != '/');
free (buf);
@@ -318,15 +293,15 @@ canonicalize_filename_mode (const char *name, canonicalize_mode_t can_mode)
}
}
}
if (dest > rpath + 1 && dest[-1] == '/')
if (dest > rname + 1 && dest[-1] == '/')
--dest;
*dest = '\0';
free (extra_buf);
return rpath;
return rname;
error:
free (extra_buf);
free (rpath);
free (rname);
return NULL;
}

View File

@@ -1,5 +1,5 @@
/* Return the canonical absolute name of a given file.
Copyright (C) 1996-2004 Free Software Foundation, Inc.
Copyright (C) 1996-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,17 +14,17 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef CANONICALIZE_H_
# define CANONICALIZE_H_
enum canonicalize_mode_t
{
/* All path components must exist. */
/* All components must exist. */
CAN_EXISTING = 0,
/* All path components excluding last one must exist. */
/* All components excluding last one must exist. */
CAN_ALL_BUT_LAST = 1,
/* No requirements on components existence. */

View File

@@ -1,5 +1,5 @@
/* provide a chdir function that tries not to fail due to ENAMETOOLONG
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,11 +13,13 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* written by Jim Meyering */
#include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "chdir-long.h"
@@ -30,76 +32,48 @@
#include <assert.h>
#include <limits.h>
#include "mempcpy.h"
#include "memrchr.h"
#include "openat.h"
#ifndef O_DIRECTORY
# define O_DIRECTORY 0
#endif
#ifndef MIN
# define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
#ifndef PATH_MAX
# error "compile this file only if your system defines PATH_MAX"
#endif
/* FIXME: this use of `MIN' is our sole concession to arbitrary limitations.
If, for some system, PATH_MAX is larger than 8191 and you call
chdir_long with a directory name that is longer than PATH_MAX,
yet that contains a single component that is more than 8191 bytes
long, then this function will fail. */
#define MAX_COMPONENT_LENGTH MIN (PATH_MAX - 1, 8 * 1024)
struct cd_buf
{
/* FIXME maybe allocate this via malloc, rather than using the stack.
But that would be the sole use of malloc. Is it worth it to
let chdir_long fail due to a low-memory condition?
But when using malloc, and assuming we remove the `concession'
above, we'll still have to avoid allocating 2^31 bytes on
systems that define PATH_MAX to very large number.
Ideally, we'd allocate enough to deal with most names, and
dynamically increase the buffer size only when necessary. */
char buffer[MAX_COMPONENT_LENGTH + 1];
char *avail;
int fd;
};
/* Like memchr, but return the number of bytes from MEM
to the first occurrence of C thereafter. Search only
LEN bytes. Return LEN if C is not found. */
static inline size_t
memchrcspn (char const *mem, int c, size_t len)
{
char const *found = memchr (mem, c, len);
if (!found)
return len;
len = found - mem;
return len;
}
static void
static inline void
cdb_init (struct cd_buf *cdb)
{
cdb->avail = cdb->buffer;
cdb->fd = AT_FDCWD;
}
static inline bool
cdb_empty (struct cd_buf const *cdb)
{
return cdb->avail == cdb->buffer;
}
static inline int
cdb_fchdir (struct cd_buf const *cdb)
{
return fchdir (cdb->fd);
}
static inline void
cdb_free (struct cd_buf const *cdb)
{
if (0 <= cdb->fd)
{
bool close_fail = close (cdb->fd);
assert (! close_fail);
}
}
/* Given a file descriptor of an open directory (or AT_FDCWD), CDB->fd,
try to open the CDB->fd-relative directory, DIR. If the open succeeds,
update CDB->fd with the resulting descriptor, close the incoming file
descriptor, and return zero. Upon failure, return -1 and set errno. */
static int
cdb_advance_fd (struct cd_buf *cdb, char const *dir)
{
@@ -111,85 +85,37 @@ cdb_advance_fd (struct cd_buf *cdb, char const *dir)
return -1;
}
if (cdb->fd != AT_FDCWD)
close (cdb->fd);
cdb_free (cdb);
cdb->fd = new_fd;
return 0;
}
static int
cdb_flush (struct cd_buf *cdb)
/* Return a pointer to the first non-slash in S. */
static inline char *
find_non_slash (char const *s)
{
if (cdb_empty (cdb))
return 0;
cdb->avail[0] = '\0';
if (cdb_advance_fd (cdb, cdb->buffer) != 0)
return -1;
cdb->avail = cdb->buffer;
return 0;
size_t n_slash = strspn (s, "/");
return (char *) s + n_slash;
}
static void
cdb_free (struct cd_buf *cdb)
{
if (0 <= cdb->fd && close (cdb->fd) != 0)
abort ();
}
/* This is a function much like chdir, but without the PATH_MAX limitation
on the length of the directory name. A significant difference is that
it must be able to modify (albeit only temporarily) the directory
name. It handles an arbitrarily long directory name by operating
on manageable portions of the name. On systems without the openat
syscall, this means changing the working directory to more and more
`distant' points along the long directory name and then restoring
the working directory. If any of those attempts to save or restore
the working directory fails, this function exits nonzero.
static int
cdb_append (struct cd_buf *cdb, char const *s, size_t len)
{
char const *end = cdb->buffer + sizeof cdb->buffer;
/* Insert a slash separator if there is a preceding byte
and it's not a slash. */
bool need_slash = (cdb->buffer < cdb->avail && cdb->avail[-1] != '/');
size_t n_free;
if (sizeof cdb->buffer < len + 1)
{
/* This single component is too long. */
errno = ENAMETOOLONG;
return -1;
}
/* See if there's enough room for the `/', the new component and
a trailing NUL. */
n_free = end - cdb->avail;
if (n_free < need_slash + len + 1)
{
if (cdb_flush (cdb) != 0)
return -1;
need_slash = false;
}
if (need_slash)
*(cdb->avail)++ = '/';
cdb->avail = mempcpy (cdb->avail, s, len);
return 0;
}
/* This is a wrapper around chdir that works even on PATH_MAX-limited
systems. It handles an arbitrarily long directory name by extracting
and processing manageable portions of the name. On systems without
the openat syscall, this means changing the working directory to
more and more `distant' points along the long directory name and
then restoring the working directory.
If any of those attempts to change or restore the working directory
fails, this function exits nonzero.
Note that this function may still fail with errno == ENAMETOOLONG,
but only if the specified directory name contains a component that
is long enough to provoke such a failure all by itself (e.g. if the
component is longer than PATH_MAX on systems that define PATH_MAX). */
Note that this function may still fail with errno == ENAMETOOLONG, but
only if the specified directory name contains a component that is long
enough to provoke such a failure all by itself (e.g. if the component
has length PATH_MAX or greater on systems that define PATH_MAX). */
int
chdir_long (char const *dir)
chdir_long (char *dir)
{
int e = chdir (dir);
if (e == 0 || errno != ENAMETOOLONG)
@@ -197,70 +123,79 @@ chdir_long (char const *dir)
{
size_t len = strlen (dir);
char const *dir_end = dir + len;
char const *d;
char *dir_end = dir + len;
struct cd_buf cdb;
size_t n_leading_slash;
cdb_init (&cdb);
/* If DIR is the empty string, then the chdir above
must have failed and set errno to ENOENT. */
assert (0 < len);
assert (PATH_MAX <= len);
if (*dir == '/')
/* Count leading slashes. */
n_leading_slash = strspn (dir, "/");
/* Handle any leading slashes as well as any name that matches
the regular expression, m!^//hostname[/]*! . Handling this
prefix separately usually results in a single additional
cdb_advance_fd call, but it's worthwhile, since it makes the
code in the following loop cleaner. */
if (n_leading_slash == 2)
{
/* Names starting with exactly two slashes followed by at least
one non-slash are special --
for example, in some environments //Hostname/file may
denote a file on a different host.
Preserve those two leading slashes. Treat all other
sequences of slashes like a single one. */
if (3 <= len && dir[1] == '/' && dir[2] != '/')
int err;
/* Find next slash.
We already know that dir[2] is neither a slash nor '\0'. */
char *slash = memchr (dir + 3, '/', dir_end - (dir + 3));
if (slash == NULL)
{
size_t name_len = 1 + strcspn (dir + 3, "/");
if (cdb_append (&cdb, dir, 2 + name_len) != 0)
goto Fail;
/* Advance D to next slash or to end of string. */
d = dir + 2 + name_len;
assert (*d == '/' || *d == '\0');
}
else
{
if (cdb_append (&cdb, "/", 1) != 0)
goto Fail;
d = dir + 1;
errno = ENAMETOOLONG;
return -1;
}
*slash = '\0';
err = cdb_advance_fd (&cdb, dir);
*slash = '/';
if (err != 0)
goto Fail;
dir = find_non_slash (slash + 1);
}
else
else if (n_leading_slash)
{
d = dir;
if (cdb_advance_fd (&cdb, "/") != 0)
goto Fail;
dir += n_leading_slash;
}
while (1)
assert (*dir != '/');
assert (dir <= dir_end);
while (PATH_MAX <= dir_end - dir)
{
/* Skip any slashes to find start of next component --
or the end of DIR. */
char const *start = d + strspn (d, "/");
if (*start == '\0')
int err;
/* Find a slash that is PATH_MAX or fewer bytes away from dir.
I.e. see if there is a slash that will give us a name of
length PATH_MAX-1 or less. */
char *slash = memrchr (dir, '/', PATH_MAX);
if (slash == NULL)
{
if (cdb_flush (&cdb) != 0)
goto Fail;
break;
}
/* If the remaining portion is no longer than PATH_MAX, then
flush anything that is buffered and do the rest in one chunk. */
if (dir_end - start <= PATH_MAX)
{
if (cdb_flush (&cdb) != 0
|| cdb_advance_fd (&cdb, start) != 0)
goto Fail;
break;
errno = ENAMETOOLONG;
return -1;
}
len = memchrcspn (start, '/', dir_end - start);
assert (len == strcspn (start, "/"));
d = start + len;
if (cdb_append (&cdb, start, len) != 0)
*slash = '\0';
assert (slash - dir < PATH_MAX);
err = cdb_advance_fd (&cdb, dir);
*slash = '/';
if (err != 0)
goto Fail;
dir = find_non_slash (slash + 1);
}
if (dir < dir_end)
{
if (cdb_advance_fd (&cdb, dir) != 0)
goto Fail;
}
@@ -318,21 +253,24 @@ main (int argc, char *argv[])
error (EXIT_FAILURE, errno,
"chdir_long failed: %s", line);
{
/* Using `pwd' here makes sense only if it is a robust implementation,
like the one in coreutils after the 2004-04-19 changes. */
char const *cmd = "pwd";
execlp (cmd, (char *) NULL);
error (EXIT_FAILURE, errno, "%s", cmd);
}
if (argc <= 1)
{
/* Using `pwd' here makes sense only if it is a robust implementation,
like the one in coreutils after the 2004-04-19 changes. */
char const *cmd = "pwd";
execlp (cmd, (char *) NULL);
error (EXIT_FAILURE, errno, "%s", cmd);
}
/* not reached */
abort ();
fclose (stdin);
fclose (stderr);
exit (EXIT_SUCCESS);
}
#endif
/*
Local Variables:
compile-command: "gcc -DTEST_CHDIR=1 -DHAVE_CONFIG_H -I.. -g -O -W -Wall chdir-long.c libfetish.a"
compile-command: "gcc -DTEST_CHDIR=1 -DHAVE_CONFIG_H -I.. -g -O -W -Wall chdir-long.c libcoreutils.a"
End:
*/

View File

@@ -1,5 +1,5 @@
/* provide a chdir function that tries not to fail due to ENAMETOOLONG
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering. */
@@ -31,5 +31,5 @@
#ifndef PATH_MAX
# define chdir_long(Dir) chdir (Dir)
#else
int chdir_long (char const *dir);
int chdir_long (char *dir);
#endif

View File

@@ -1,6 +1,6 @@
/* provide consistent interface to chown for systems that don't interpret
an ID of -1 as meaning `don't change the corresponding ID'.
Copyright (C) 1997, 2004 Free Software Foundation, Inc.
Copyright (C) 1997, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,11 +14,13 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* written by Jim Meyering */
#include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
/* Disable the definition of chown to rpl_chown (from config.h) in this
file. Otherwise, we'd get conflicting prototypes for rpl_chown on
@@ -27,14 +29,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#else
# include <sys/file.h>
#endif
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
/* Provide a more-closely POSIX-conforming version of chown on
@@ -53,7 +49,7 @@ rpl_chown (const char *file, uid_t uid, gid_t gid)
/* Stat file to get id(s) that should remain unchanged. */
if (stat (file, &file_stats))
return 1;
return -1;
if (gid == (gid_t) -1)
gid = file_stats.st_gid;

View File

@@ -1,5 +1,5 @@
/* closexec.c - set or clear the close-on-exec descriptor flag
Copyright (C) 1991, 2004 Free Software Foundation, Inc.
Copyright (C) 1991, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,23 +13,18 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The code is taken from glibc/manual/llio.texi */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "cloexec.h"
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <unistd.h>
#include <fcntl.h>
#ifndef FD_CLOEXEC
# define FD_CLOEXEC 1

View File

@@ -15,9 +15,9 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef CLOSEOUT_H
# define CLOSEOUT_H 1

View File

@@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# The table consists of lines of the form
# ALIAS CANONICAL
@@ -37,12 +37,12 @@
# ISO-8859-4 Y osf solaris freebsd darwin
# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd darwin
# ISO-8859-6 Y glibc aix hpux solaris
# ISO-8859-7 Y glibc aix hpux irix osf solaris
# ISO-8859-7 Y glibc aix hpux irix osf solaris darwin
# ISO-8859-8 Y glibc aix hpux osf solaris
# ISO-8859-9 Y glibc aix hpux irix osf solaris
# ISO-8859-13 glibc
# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin
# ISO-8859-13 glibc darwin
# ISO-8859-14 glibc
# ISO-8859-15 glibc aix osf solaris freebsd
# ISO-8859-15 glibc aix osf solaris freebsd darwin
# KOI8-R Y glibc solaris freebsd darwin
# KOI8-U Y glibc freebsd darwin
# KOI8-T glibc
@@ -99,7 +99,7 @@
# HP-KANA8 hpux
# DEC-KANJI osf
# DEC-HANYU osf
# UTF-8 Y glibc aix hpux osf solaris
# UTF-8 Y glibc aix hpux osf solaris darwin
#
# Note: Names which are not marked as being a MIME name should not be used in
# Internet protocols for information interchange (mail, news, etc.).
@@ -395,7 +395,7 @@ case "$os" in
echo "BIG5 BIG5"
echo "SJIS SHIFT_JIS"
;;
darwin*)
darwin[56]*)
# Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore
# localcharset.c falls back to using the full locale name
# from the environment variables.
@@ -436,6 +436,36 @@ case "$os" in
echo "ja_JP.SJIS SHIFT_JIS"
echo "ko_KR.EUC EUC-KR"
;;
darwin*)
# Darwin 7.5 has nl_langinfo(CODESET), but it is useless:
# - It returns the empty string when LANG is set to a locale of the
# form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8
# LC_CTYPE file.
# - The environment variables LANG, LC_CTYPE, LC_ALL are not set by
# the system; nl_langinfo(CODESET) returns "US-ASCII" in this case.
# - The documentation says:
# "... all code that calls BSD system routines should ensure
# that the const *char parameters of these routines are in UTF-8
# encoding. All BSD system functions expect their string
# parameters to be in UTF-8 encoding and nothing else."
# It also says
# "An additional caveat is that string parameters for files,
# paths, and other file-system entities must be in canonical
# UTF-8. In a canonical UTF-8 Unicode string, all decomposable
# characters are decomposed ..."
# but this is not true: You can pass non-decomposed UTF-8 strings
# to file system functions, and it is the OS which will convert
# them to decomposed UTF-8 before accessing the file system.
# - The Apple Terminal application displays UTF-8 by default.
# - However, other applications are free to use different encodings:
# - xterm uses ISO-8859-1 by default.
# - TextEdit uses MacRoman by default.
# We prefer UTF-8 over decomposed UTF-8-MAC because one should
# minimize the use of decomposed Unicode. Unfortunately, through the
# Darwin file system, decomposed UTF-8 strings are leaked into user
# space nevertheless.
echo "* UTF-8"
;;
beos*)
# BeOS has a single locale, and it has UTF-8 encoding.
echo "* UTF-8"

33
lib/creat-safer.c Normal file
View File

@@ -0,0 +1,33 @@
/* Invoke creat, but avoid some glitches.
Copyright (C) 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "fcntl-safer.h"
#include <fcntl.h>
#include "unistd-safer.h"
int
creat_safer (char const *file, mode_t mode)
{
return fd_safer (creat (file, mode));
}

View File

@@ -1,6 +1,6 @@
/* help detect directory cycles efficiently
Copyright (C) 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,11 +15,11 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -32,7 +32,6 @@
#include <stdbool.h>
#include "cycle-check.h"
#include "xalloc.h"
#define SAME_INODE(Stat_buf_1, Stat_buf_2) \
((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \

View File

@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering */

View File

@@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>

View File

@@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
extern const char diacrit_base[]; /* characters without diacritics */
extern const char diacrit_diac[]; /* diacritic code for each character */

View File

@@ -13,11 +13,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Jim Meyering. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@@ -13,14 +13,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Written by Jim Meyering. */
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#if HAVE_DIRENT_H

View File

@@ -1,6 +1,6 @@
/* dirname.c -- return all but the last element in a path
/* dirname.c -- return all but the last element in a file name
Copyright (C) 1990, 1998, 2000, 2001, 2003, 2004 Free Software
Copyright (C) 1990, 1998, 2000, 2001, 2003, 2004, 2005 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -15,9 +15,9 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -26,40 +26,40 @@
#include <string.h>
#include "xalloc.h"
/* Return the length of `dirname (PATH)', or zero if PATH is
/* Return the length of `dirname (FILE)', or zero if FILE is
in the working directory. Works properly even if
there are trailing slashes (by effectively ignoring them). */
size_t
dir_len (char const *path)
dir_len (char const *file)
{
size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (path);
size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file);
size_t length;
/* Strip the basename and any redundant slashes before it. */
for (length = base_name (path) - path; prefix_length < length; length--)
if (! ISSLASH (path[length - 1]))
for (length = base_name (file) - file; prefix_length < length; length--)
if (! ISSLASH (file[length - 1]))
return length;
/* But don't strip the only slash from "/". */
return prefix_length + ISSLASH (path[prefix_length]);
return prefix_length + ISSLASH (file[prefix_length]);
}
/* Return the leading directories part of PATH,
/* Return the leading directories part of FILE,
allocated with xmalloc.
Works properly even if there are trailing slashes
(by effectively ignoring them). */
char *
dir_name (char const *path)
dir_name (char const *file)
{
size_t length = dir_len (path);
bool append_dot = (length == FILE_SYSTEM_PREFIX_LEN (path));
char *newpath = xmalloc (length + append_dot + 1);
memcpy (newpath, path, length);
size_t length = dir_len (file);
bool append_dot = (length == FILE_SYSTEM_PREFIX_LEN (file));
char *dir = xmalloc (length + append_dot + 1);
memcpy (dir, file, length);
if (append_dot)
newpath[length++] = '.';
newpath[length] = 0;
return newpath;
dir[length++] = '.';
dir[length] = 0;
return dir;
}
#ifdef TEST_DIRNAME
@@ -108,13 +108,13 @@ main (int argc, char *argv[])
buff[MAX_BUFF_LEN] = 0;
while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0])
{
char path[MAX_BUFF_LEN];
char file[MAX_BUFF_LEN];
char expected_result[MAX_BUFF_LEN];
char const *result;
sscanf (buff, "%s %s", path, expected_result);
result = dir_name (path);
sscanf (buff, "%s %s", file, expected_result);
result = dir_name (file);
if (strcmp (result, expected_result))
printf ("%s: got %s, expected %s\n", path, result, expected_result);
printf ("%s: got %s, expected %s\n", file, result, expected_result);
}
return 0;
}

View File

@@ -1,6 +1,6 @@
/* Take file names apart into directory and base names.
Copyright (C) 1998, 2001, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1998, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef DIRNAME_H_
# define DIRNAME_H_ 1
@@ -31,17 +31,17 @@
# endif
# ifndef FILE_SYSTEM_PREFIX_LEN
# define FILE_SYSTEM_PREFIX_LEN(Filename) 0
# define FILE_SYSTEM_PREFIX_LEN(File_name) 0
# endif
# define IS_ABSOLUTE_FILE_NAME(F) ISSLASH ((F)[FILE_SYSTEM_PREFIX_LEN (F)])
# define IS_RELATIVE_FILE_NAME(F) (! IS_ABSOLUTE_FILE_NAME (F))
char *base_name (char const *path);
char *dir_name (char const *path);
size_t base_len (char const *path);
size_t dir_len (char const *path);
char *base_name (char const *file);
char *dir_name (char const *file);
size_t base_len (char const *file);
size_t dir_len (char const *file);
bool strip_trailing_slashes (char *path);
bool strip_trailing_slashes (char *file);
#endif /* not DIRNAME_H_ */

View File

@@ -1,5 +1,5 @@
/* Invoke dup, but avoid some glitches.
Copyright (C) 2001, 2004 Free Software Foundation, Inc.
Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,29 +13,23 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <errno.h>
#include "unistd-safer.h"
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <unistd.h>
#ifndef STDERR_FILENO
# define STDERR_FILENO 2
#endif
#include <unistd-safer.h>
/* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or
STDERR_FILENO. */
@@ -45,15 +39,8 @@ dup_safer (int fd)
#ifdef F_DUPFD
return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
#else
int f = dup (fd);
if (0 <= f && f <= STDERR_FILENO)
{
int f1 = dup_safer (f);
int e = errno;
close (f);
errno = e;
f = f1;
}
return f;
/* fd_safer calls us back, but eventually the recursion unwinds and
does the right thing. */
return fd_safer (dup (fd));
#endif
}

View File

@@ -1,5 +1,5 @@
/* Duplicate an open file descriptor to a specified file descriptor.
Copyright (C) 1999, 2004 Free Software Foundation, Inc.
Copyright (C) 1999, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,23 +13,17 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* written by Paul Eggert */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <errno.h>
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <fcntl.h>
#include <unistd.h>
#ifndef F_DUPFD
static int

View File

@@ -1,5 +1,5 @@
/* Error handler for noninteractive utilities
Copyright (C) 1990-1998, 2000-2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1990-1998, 2000-2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
@@ -29,9 +29,7 @@
#include <stdlib.h>
#include <string.h>
#ifdef _LIBC
# include <libintl.h>
#else
#if !_LIBC && ENABLE_NLS
# include "gettext.h"
#endif

View File

@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef _ERROR_H
#define _ERROR_H 1

View File

@@ -1,6 +1,6 @@
/* euidaccess -- check if effective user id can access file
Copyright (C) 1990, 1991, 1995, 1998, 2000, 2003, 2004 Free
Copyright (C) 1990, 1991, 1995, 1998, 2000, 2003, 2004, 2005 Free
Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -17,12 +17,12 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by David MacKenzie and Torbjorn Granlund.
Adapted for GNU C library by Roland McGrath. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -32,22 +32,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#if HAVE_UNISTD_H || defined _LIBC
# include <unistd.h>
#endif
#include <unistd.h>
#if HAVE_LIBGEN_H
# include <libgen.h>
#endif
#ifndef _POSIX_VERSION
uid_t getuid ();
gid_t getgid ();
uid_t geteuid ();
gid_t getegid ();
#endif
#include <errno.h>
#ifndef __set_errno
# define __set_errno(val) errno = (val)
@@ -84,21 +74,21 @@ gid_t getegid ();
#endif
/* Return 0 if the user has permission of type MODE on file PATH;
/* Return 0 if the user has permission of type MODE on FILE;
otherwise, return -1 and set `errno'.
Like access, except that it uses the effective user and group
id's instead of the real ones, and it does not always check for read-only
file system, text busy, etc. */
int
euidaccess (const char *path, int mode)
euidaccess (const char *file, int mode)
{
#if defined EFF_ONLY_OK
return access (path, mode | EFF_ONLY_OK);
return access (file, mode | EFF_ONLY_OK);
#elif defined ACC_SELF
return accessx (path, mode, ACC_SELF);
return accessx (file, mode, ACC_SELF);
#elif HAVE_EACCESS
return eaccess (path, mode);
return eaccess (file, mode);
#else
uid_t uid = getuid ();
@@ -117,7 +107,7 @@ euidaccess (const char *path, int mode)
safe. */
if (mode == F_OK)
return stat (path, &stats);
return stat (file, &stats);
else
{
int result;
@@ -128,7 +118,7 @@ euidaccess (const char *path, int mode)
if (gid != egid)
setregid (egid, gid);
result = access (path, mode);
result = access (file, mode);
saved_errno = errno;
/* Restore them. */
@@ -150,9 +140,9 @@ euidaccess (const char *path, int mode)
unsigned int granted;
if (uid == euid && gid == egid)
/* If we are not set-uid or set-gid, access does the same. */
return access (path, mode);
return access (file, mode);
if (stat (path, &stats))
if (stat (file, &stats) != 0)
return -1;
/* The super-user can read and write any file, and execute any file

View File

@@ -1,7 +1,7 @@
/* exclude.c -- exclude file names
Copyright (C) 1992, 1993, 1994, 1997, 1999, 2000, 2001, 2002, 2003,
2004 Free Software Foundation, Inc.
2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,11 +16,11 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert <eggert@twinsun.com> */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -35,6 +35,7 @@
#include "exclude.h"
#include "fnmatch.h"
#include "strcase.h"
#include "xalloc.h"
#if USE_UNLOCKED_IO
@@ -134,7 +135,7 @@ fnmatch_no_wildcards (char const *pattern, char const *f, int options)
/* Return true if EX excludes F. */
bool
excluded_filename (struct exclude const *ex, char const *f)
excluded_file_name (struct exclude const *ex, char const *f)
{
size_t exclude_count = ex->exclude_count;
@@ -193,17 +194,17 @@ add_exclude (struct exclude *ex, char const *pattern, int options)
patopts->options = options;
}
/* Use ADD_FUNC to append to EX the patterns in FILENAME, each with
/* Use ADD_FUNC to append to EX the patterns in FILE_NAME, each with
OPTIONS. LINE_END terminates each pattern in the file. If
LINE_END is a space character, ignore trailing spaces and empty
lines in FILE. Return -1 on failure, 0 on success. */
int
add_exclude_file (void (*add_func) (struct exclude *, char const *, int),
struct exclude *ex, char const *filename, int options,
struct exclude *ex, char const *file_name, int options,
char line_end)
{
bool use_stdin = filename[0] == '-' && !filename[1];
bool use_stdin = file_name[0] == '-' && !file_name[1];
FILE *in;
char *buf = NULL;
char *p;
@@ -216,7 +217,7 @@ add_exclude_file (void (*add_func) (struct exclude *, char const *, int),
if (use_stdin)
in = stdin;
else if (! (in = fopen (filename, "r")))
else if (! (in = fopen (file_name, "r")))
return -1;
while ((c = getc (in)) != EOF)

View File

@@ -1,7 +1,7 @@
/* exclude.h -- declarations for excluding file names
Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001, 2002, 2003 Free
Software Foundation, Inc.
Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001, 2002, 2003, 2005
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert <eggert@twinsun.com> */
@@ -40,4 +40,4 @@ void free_exclude (struct exclude *);
void add_exclude (struct exclude *, char const *, int);
int add_exclude_file (void (*) (struct exclude *, char const *, int),
struct exclude *, char const *, int, char);
bool excluded_filename (struct exclude const *, char const *);
bool excluded_file_name (struct exclude const *, char const *);

View File

@@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef _EXIT_H
#define _EXIT_H

View File

@@ -15,9 +15,9 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

View File

@@ -15,6 +15,6 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
extern int volatile exit_failure;

View File

@@ -1,4 +1,6 @@
#include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <errno.h>

28
lib/fcntl--.h Normal file
View File

@@ -0,0 +1,28 @@
/* Like fcntl.h, but redefine some names to avoid glitches.
Copyright (C) 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */
#include <fcntl.h>
#include "fcntl-safer.h"
#undef open
#define open open_safer
#undef creat
#define creat creat_safer

View File

@@ -1,6 +1,6 @@
/* Invoke fcntl functions, but avoid some glitches.
/* Invoke fcntl-like functions, but avoid some glitches.
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,8 +14,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */
#include <sys/types.h>
int open_safer (char const *, int, ...);
int creat_safer (char const *, mode_t);

47
lib/fd-reopen.c Normal file
View File

@@ -0,0 +1,47 @@
/* Invoke open, but return either a desired file descriptor or -1.
Copyright (C) 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */
#include "fd-reopen.h"
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
/* Open a file to a particular file descriptor. This is like standard
`open', except it always returns DESIRED_FD if successful. */
int
fd_reopen (int desired_fd, char const *file, int flags, mode_t mode)
{
int fd;
close (desired_fd);
fd = open (file, flags, mode);
if (fd == desired_fd || fd < 0)
return fd;
else
{
int fd2 = fcntl (fd, F_DUPFD, desired_fd);
int saved_errno = errno;
close (fd);
errno = saved_errno;
return fd2;
}
}

23
lib/fd-reopen.h Normal file
View File

@@ -0,0 +1,23 @@
/* Invoke open, but return either a desired file descriptor or -1.
Copyright (C) 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Paul Eggert. */
#include <sys/types.h>
int fd_reopen (int, char const *, int, mode_t);

Some files were not shown because too many files have changed in this diff Show More