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