platform/upstream/coreutils.git
21 years agoSync with gnulib.
Jim Meyering [Mon, 18 Aug 2003 08:53:29 +0000 (08:53 +0000)]
Sync with gnulib.

21 years agoSync with gnulib.
Jim Meyering [Mon, 18 Aug 2003 08:52:59 +0000 (08:52 +0000)]
Sync with gnulib.

21 years ago*** empty log message ***
Jim Meyering [Mon, 18 Aug 2003 08:34:34 +0000 (08:34 +0000)]
*** empty log message ***

21 years agoMerge from gnulib.
Jim Meyering [Mon, 18 Aug 2003 07:51:29 +0000 (07:51 +0000)]
Merge from gnulib.

(libfetish_a_SOURCES): Remove getndelim2.c,
getndelim2.h, xstrtoimax.c.  Add localcharset.h.
(CLEANFILES, SUFFIXES): Initialize to empty.
(EXTRA_DIST): Add getndelim2.c, getndelim2.h.
(install-exec-local): Use $(GLIBC21), not @GLIBC21@.
Do not mkdir libdir if not glibc21.
(charset.alias): @host@ -> $(host).
(SUFFIXES, .sin.sed, CLEANFILES): Reorder rules
to match gnulib module suggestions.

21 years agoInclude <stdbool.h>, <limits.h>.
Jim Meyering [Mon, 18 Aug 2003 07:47:40 +0000 (07:47 +0000)]
Include <stdbool.h>, <limits.h>.
(_POSIX_NAME_MAX): Define if not defined.
(MIN): New macro.
(same_name): If file names are silently truncated, report
that the file names are the same if they are the same after
the silent truncation.

21 years ago*** empty log message ***
Jim Meyering [Sun, 17 Aug 2003 17:58:22 +0000 (17:58 +0000)]
*** empty log message ***

21 years agoNew file, from gnulib.
Jim Meyering [Sun, 17 Aug 2003 17:58:01 +0000 (17:58 +0000)]
New file, from gnulib.

21 years agoSync with gnulib.
Jim Meyering [Sun, 17 Aug 2003 17:57:38 +0000 (17:57 +0000)]
Sync with gnulib.

21 years ago.
Jim Meyering [Sun, 17 Aug 2003 17:55:24 +0000 (17:55 +0000)]
.

21 years ago(fu_cv_sys_truncating_statfs): Remove; now done by gnulib .m4 files.
Jim Meyering [Sun, 17 Aug 2003 17:50:30 +0000 (17:50 +0000)]
(fu_cv_sys_truncating_statfs): Remove; now done by gnulib .m4 files.
(jm_DUMMY_1): Require gl_READUTMP, not jm_PREREQ_READUTMP.

21 years ago(strtoull): Remove unused declaration.
Jim Meyering [Sun, 17 Aug 2003 17:48:14 +0000 (17:48 +0000)]
(strtoull): Remove unused declaration.

21 years ago(who invocation): Begin adding missing option documentation.
Jim Meyering [Sun, 17 Aug 2003 17:10:25 +0000 (17:10 +0000)]
(who invocation): Begin adding missing option documentation.

21 years ago(who invocation): Add an entry for -l, --login.
Jim Meyering [Sun, 17 Aug 2003 16:13:30 +0000 (16:13 +0000)]
(who invocation): Add an entry for -l, --login.
Remove `-l' from the entry for --lookup.

21 years ago*** empty log message ***
Jim Meyering [Sun, 17 Aug 2003 16:04:04 +0000 (16:04 +0000)]
*** empty log message ***

21 years agoAvoid unnecessary and sometimes time-consuming hostname lookups.
Jim Meyering [Sun, 17 Aug 2003 16:04:00 +0000 (16:04 +0000)]
Avoid unnecessary and sometimes time-consuming hostname lookups.
(print_user): Likewise.

This fixes a typo I introduced in who-users.c on 1996-02-23.

21 years agoAvoid unnecessary and sometimes time-consuming hostname lookups.
Jim Meyering [Sun, 17 Aug 2003 16:03:42 +0000 (16:03 +0000)]
Avoid unnecessary and sometimes time-consuming hostname lookups.
(print_entry): Likewise.

This fixes a typo I introduced in who-users.c on 1996-02-23.

21 years ago(makefile-check): Add 0-9 to the range of characters disallowed between `@...@'.
Jim Meyering [Sun, 17 Aug 2003 07:57:29 +0000 (07:57 +0000)]
(makefile-check): Add 0-9 to the range of characters disallowed between `@...@'.

21 years ago*** empty log message ***
Jim Meyering [Sun, 17 Aug 2003 07:53:48 +0000 (07:53 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 17 Aug 2003 07:50:40 +0000 (07:50 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 17 Aug 2003 07:49:10 +0000 (07:49 +0000)]
.

21 years ago(TESTS): Add tail-n0f.
Jim Meyering [Sun, 17 Aug 2003 07:47:03 +0000 (07:47 +0000)]
(TESTS): Add tail-n0f.

21 years ago(.x.1): `@'-prefix a few commands
Jim Meyering [Sat, 16 Aug 2003 20:49:04 +0000 (20:49 +0000)]
(.x.1): `@'-prefix a few commands

21 years agouse only -f, not -rf
Jim Meyering [Sat, 16 Aug 2003 20:46:47 +0000 (20:46 +0000)]
use only -f, not -rf

21 years ago*** empty log message ***
Jim Meyering [Sat, 16 Aug 2003 20:46:13 +0000 (20:46 +0000)]
*** empty log message ***

21 years ago(.x.1): Ensure that generated PROGRAM.1 files are read-only.
Jim Meyering [Sat, 16 Aug 2003 20:46:08 +0000 (20:46 +0000)]
(.x.1): Ensure that generated PROGRAM.1 files are read-only.

21 years ago*** empty log message ***
Jim Meyering [Sat, 16 Aug 2003 17:39:51 +0000 (17:39 +0000)]
*** empty log message ***

21 years ago(tail_lines): Fix a potential (but very hard to exercise)
Jim Meyering [Sat, 16 Aug 2003 17:34:41 +0000 (17:34 +0000)]
(tail_lines): Fix a potential (but very hard to exercise)
race condition bug.  The bug would be triggered when tailing a file
with file pointer not at beginning of file, and where the file was
truncated to have a length of less than the initial offset at just
the right moment (between the two lseek calls in this function).

21 years agoAn invalid initial value for *read_pos would result in
Jim Meyering [Sat, 16 Aug 2003 17:28:33 +0000 (17:28 +0000)]
An invalid initial value for *read_pos would result in
`tail -n0 -f FILE' and `tail -c0 -f FILE' doing what amounted to a
busy-wait rather than sleeping between iterations.  The bug manifests
itself only when tailing regular files that are initially nonempty.

(tail_bytes): Set *read_pos to new file offset after
each xlseek call.
(tail_lines): Likewise, after lseek calls.

21 years ago(tail_bytes): Set *read_pos to new file offset after each xlseek call.
Jim Meyering [Sat, 16 Aug 2003 17:27:52 +0000 (17:27 +0000)]
(tail_bytes): Set *read_pos to new file offset after each xlseek call.
(tail_lines): Likewise, after lseek calls.

21 years ago*** empty log message ***
Jim Meyering [Sat, 16 Aug 2003 13:22:23 +0000 (13:22 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 11:03:31 +0000 (11:03 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:33:59 +0000 (09:33 +0000)]
*** empty log message ***

21 years ago(sc_sun_os_names): Use exclusion list in separate file.
Jim Meyering [Fri, 15 Aug 2003 09:33:55 +0000 (09:33 +0000)]
(sc_sun_os_names): Use exclusion list in separate file.

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:32:59 +0000 (09:32 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:32:16 +0000 (09:32 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:28:38 +0000 (09:28 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:13:23 +0000 (09:13 +0000)]
*** empty log message ***

21 years ago(sc_space_tab): Use exclusion list in separate file.
Jim Meyering [Fri, 15 Aug 2003 09:13:06 +0000 (09:13 +0000)]
(sc_space_tab): Use exclusion list in separate file.

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 09:09:35 +0000 (09:09 +0000)]
*** empty log message ***

21 years agoRemove some SPACEs before TAB.
Jim Meyering [Fri, 15 Aug 2003 09:08:29 +0000 (09:08 +0000)]
Remove some SPACEs before TAB.

21 years ago.
Jim Meyering [Fri, 15 Aug 2003 06:54:15 +0000 (06:54 +0000)]
.

21 years ago(ASSORT): New var.
Jim Meyering [Fri, 15 Aug 2003 06:53:38 +0000 (06:53 +0000)]
(ASSORT): New var.
(all_programs): Use it.

21 years ago(ASSORT): New var.
Jim Meyering [Fri, 15 Aug 2003 06:53:02 +0000 (06:53 +0000)]
(ASSORT): New var.
(check-README, ../AUTHORS): Use it.

21 years ago(ASSORT): New var.
Jim Meyering [Fri, 15 Aug 2003 06:52:34 +0000 (06:52 +0000)]
(ASSORT): New var.
(check-x-vs-1, programs): Use it.

21 years ago(LC_ALL): Set to C.
Jim Meyering [Fri, 15 Aug 2003 06:51:20 +0000 (06:51 +0000)]
(LC_ALL): Set to C.

21 years agoregenerate
Jim Meyering [Fri, 15 Aug 2003 06:50:09 +0000 (06:50 +0000)]
regenerate

21 years ago.
Jim Meyering [Fri, 15 Aug 2003 06:43:29 +0000 (06:43 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 06:43:19 +0000 (06:43 +0000)]
*** empty log message ***

21 years agoInclude "physmem.h" before system includes.
Jim Meyering [Fri, 15 Aug 2003 06:43:16 +0000 (06:43 +0000)]
Include "physmem.h" before system includes.

21 years ago*** empty log message ***
Jim Meyering [Fri, 15 Aug 2003 06:34:42 +0000 (06:34 +0000)]
*** empty log message ***

21 years ago(gl_FUNC_UTIMES): Use `conftest.utimes' as the test
Jim Meyering [Fri, 15 Aug 2003 06:34:38 +0000 (06:34 +0000)]
(gl_FUNC_UTIMES): Use `conftest.utimes' as the test
file name, not `x'.  The former will be removed automatically.

21 years ago(Makefile.am): Remove README. CPPI-1_11
Jim Meyering [Wed, 13 Aug 2003 09:37:02 +0000 (09:37 +0000)]
(Makefile.am): Remove README.

21 years ago.
Jim Meyering [Wed, 13 Aug 2003 09:36:39 +0000 (09:36 +0000)]
.

21 years ago.
Jim Meyering [Wed, 13 Aug 2003 09:35:14 +0000 (09:35 +0000)]
.

21 years agoregenerate
Jim Meyering [Wed, 13 Aug 2003 09:35:04 +0000 (09:35 +0000)]
regenerate

21 years agoSimplify.
Jim Meyering [Wed, 13 Aug 2003 09:34:51 +0000 (09:34 +0000)]
Simplify.

21 years ago*** empty log message ***
Jim Meyering [Wed, 13 Aug 2003 09:19:08 +0000 (09:19 +0000)]
*** empty log message ***

21 years agoRemove extra copy of cvs-diff-check rule.
Jim Meyering [Wed, 13 Aug 2003 07:33:17 +0000 (07:33 +0000)]
Remove extra copy of cvs-diff-check rule.
Remove reference to config-log.

21 years ago(syntax checks): Use cvsu more (so we check only
Jim Meyering [Wed, 13 Aug 2003 07:03:09 +0000 (07:03 +0000)]
(syntax checks): Use cvsu more (so we check only
version-controlled files), rather than hard-coding exclusions
for generated files like cppi.c.

21 years agonew version from autoconf
Jim Meyering [Wed, 13 Aug 2003 06:14:50 +0000 (06:14 +0000)]
new version from autoconf

21 years ago*** empty log message ***
Jim Meyering [Tue, 12 Aug 2003 16:17:42 +0000 (16:17 +0000)]
*** empty log message ***

21 years agoAdd Irish (ga).
Jim Meyering [Tue, 12 Aug 2003 16:17:38 +0000 (16:17 +0000)]
Add Irish (ga).

21 years agoversion: 5.0.90
Jim Meyering [Tue, 12 Aug 2003 16:17:10 +0000 (16:17 +0000)]
version: 5.0.90

21 years agogrammar tweak
Jim Meyering [Tue, 12 Aug 2003 11:35:24 +0000 (11:35 +0000)]
grammar tweak

21 years ago*** empty log message ***
Jim Meyering [Mon, 11 Aug 2003 18:27:58 +0000 (18:27 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Mon, 11 Aug 2003 18:25:04 +0000 (18:25 +0000)]
.

21 years ago.
Jim Meyering [Mon, 11 Aug 2003 14:35:58 +0000 (14:35 +0000)]
.

21 years agofold -s -wN would infloop for N < 8 with TABs in the input.
Jim Meyering [Mon, 11 Aug 2003 14:35:52 +0000 (14:35 +0000)]
fold -s -wN would infloop for N < 8 with TABs in the input.
E.g., this would not terminate: printf 'a\tb' | fold -w2 -s

(fold_file): Move contents of `else'-block
out of conditional so it's used also for --spaces (-s).

21 years agotest for fix of 2003-08-11
Jim Meyering [Mon, 11 Aug 2003 14:35:13 +0000 (14:35 +0000)]
test for fix of 2003-08-11

21 years ago(TESTS): Add fold.
Jim Meyering [Mon, 11 Aug 2003 14:34:51 +0000 (14:34 +0000)]
(TESTS): Add fold.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Aug 2003 17:50:14 +0000 (17:50 +0000)]
*** empty log message ***

21 years ago[!NICE_PRIORITY]: Include <sys/resource.h> after
Jim Meyering [Sun, 10 Aug 2003 17:50:11 +0000 (17:50 +0000)]
[!NICE_PRIORITY]: Include <sys/resource.h> after
system.h so the types from time.h and sys/time.h are available.
It appears that this is necessary for OpenBSD, NetBSD, and
Darwin 6.5 (MacOS 10.2.5).  Reported by Nelson Beebe.

21 years ago.
Jim Meyering [Sun, 10 Aug 2003 13:33:11 +0000 (13:33 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Aug 2003 13:32:24 +0000 (13:32 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 10 Aug 2003 13:32:18 +0000 (13:32 +0000)]
.

21 years agotweak comments
Jim Meyering [Sun, 10 Aug 2003 13:31:42 +0000 (13:31 +0000)]
tweak comments

21 years agoRequire gl_FUNC_UTIMES.
Jim Meyering [Sun, 10 Aug 2003 13:30:39 +0000 (13:30 +0000)]
Require gl_FUNC_UTIMES.
Don't check for utime or utimes.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Aug 2003 13:30:03 +0000 (13:30 +0000)]
*** empty log message ***

21 years ago(utimens): Revert most of last change.
Jim Meyering [Sun, 10 Aug 2003 13:29:56 +0000 (13:29 +0000)]
(utimens): Revert most of last change.
Test HAVE_WORKING_UTIMES instead of HAVE_UTIMES.

21 years ago(gl_FUNC_UTIMES): New file.
Jim Meyering [Sun, 10 Aug 2003 13:28:38 +0000 (13:28 +0000)]
(gl_FUNC_UTIMES): New file.

21 years agoRename to utimes-null.m4.
Jim Meyering [Sun, 10 Aug 2003 10:06:14 +0000 (10:06 +0000)]
Rename to utimes-null.m4.

21 years agoRenamed from utimes.m4.
Jim Meyering [Sun, 10 Aug 2003 09:57:26 +0000 (09:57 +0000)]
Renamed from utimes.m4.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Aug 2003 06:21:10 +0000 (06:21 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sat, 9 Aug 2003 18:38:02 +0000 (18:38 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Aug 2003 18:37:52 +0000 (18:37 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sat, 9 Aug 2003 18:37:08 +0000 (18:37 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Aug 2003 18:36:27 +0000 (18:36 +0000)]
*** empty log message ***

21 years ago(jm_PREREQ): Require gl_UTIMENS.
Jim Meyering [Sat, 9 Aug 2003 18:36:16 +0000 (18:36 +0000)]
(jm_PREREQ): Require gl_UTIMENS.

21 years agoInclude utimens.h.
Jim Meyering [Sat, 9 Aug 2003 18:35:07 +0000 (18:35 +0000)]
Include utimens.h.
Set file timestamps with utimens, not utime.

21 years ago(libeftish_a_SOURCES): Add utimens.c, utimens.h.
Jim Meyering [Sat, 9 Aug 2003 18:24:52 +0000 (18:24 +0000)]
(libeftish_a_SOURCES): Add utimens.c, utimens.h.

21 years agoTest HAVE_UTIME, not HAVE_UTIMES.
Jim Meyering [Sat, 9 Aug 2003 18:23:45 +0000 (18:23 +0000)]
Test HAVE_UTIME, not HAVE_UTIMES.
Prefer utime, since it works and utimes doesn't on some systems.

21 years agoInclude utimens.h.
Jim Meyering [Sat, 9 Aug 2003 17:48:41 +0000 (17:48 +0000)]
Include utimens.h.
(copy_internal): Set file timestamps with utimens, not utime.

21 years agoInclude utimens.h.
Jim Meyering [Sat, 9 Aug 2003 17:47:34 +0000 (17:47 +0000)]
Include utimens.h.
(change_timestamps): Set file timestamps with utimens, not utime.

21 years agoInclude utimens.h.
Jim Meyering [Sat, 9 Aug 2003 17:46:13 +0000 (17:46 +0000)]
Include utimens.h.
(re_protect): Set file timestamps with utimens, not utime.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Aug 2003 17:23:13 +0000 (17:23 +0000)]
*** empty log message ***

21 years ago(gl_PREREQ_VASNPRINTF): Solaris 2.5.1 needs -lw to get the wcslen function.
Jim Meyering [Sat, 9 Aug 2003 17:23:09 +0000 (17:23 +0000)]
(gl_PREREQ_VASNPRINTF): Solaris 2.5.1 needs -lw to get the wcslen function.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Aug 2003 17:01:55 +0000 (17:01 +0000)]
*** empty log message ***

21 years ago(sc_sun_os_names): New rule.
Jim Meyering [Sat, 9 Aug 2003 17:01:23 +0000 (17:01 +0000)]
(sc_sun_os_names): New rule.
(syntax-check-rules): Add it.

21 years agoTweak Solaris OS version number in comment.
Jim Meyering [Sat, 9 Aug 2003 16:35:19 +0000 (16:35 +0000)]
Tweak Solaris OS version number in comment.

21 years ago(main): Tweak Solaris OS version number in comment.
Jim Meyering [Sat, 9 Aug 2003 16:34:32 +0000 (16:34 +0000)]
(main): Tweak Solaris OS version number in comment.