platform/upstream/coreutils.git
18 years agoNew file listing exceptions to the above rule.
Jim Meyering [Sun, 13 Nov 2005 15:06:05 +0000 (15:06 +0000)]
New file listing exceptions to the above rule.
Some are legit, others are simply grandfathered in.

18 years ago*** empty log message ***
Jim Meyering [Sun, 13 Nov 2005 15:05:51 +0000 (15:05 +0000)]
*** empty log message ***

18 years agoRequire that most .c files include <config.h>.
Jim Meyering [Sun, 13 Nov 2005 15:05:45 +0000 (15:05 +0000)]
Require that most .c files include <config.h>.
(sc_require_config_h): New rule.
(syntax-check-rules): Add it.

18 years ago*** empty log message ***
Jim Meyering [Sun, 13 Nov 2005 14:07:11 +0000 (14:07 +0000)]
*** empty log message ***

18 years agoInclude <config.h>, required for possible replacement of mkstemp.
Jim Meyering [Sun, 13 Nov 2005 14:07:06 +0000 (14:07 +0000)]
Include <config.h>, required for possible replacement of mkstemp.

18 years ago.
Jim Meyering [Sat, 12 Nov 2005 19:11:27 +0000 (19:11 +0000)]
.

18 years agoUpdate from gnulib.
Jim Meyering [Sat, 12 Nov 2005 19:11:17 +0000 (19:11 +0000)]
Update from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Sat, 12 Nov 2005 10:16:50 +0000 (10:16 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sat, 12 Nov 2005 10:06:34 +0000 (10:06 +0000)]
*** empty log message ***

18 years agoEmulate openat-family functions using Linux's procfs, if possible.
Jim Meyering [Sat, 12 Nov 2005 10:06:29 +0000 (10:06 +0000)]
Emulate openat-family functions using Linux's procfs, if possible.
Idea and some code from Ulrich Drepper's glibc changes.

(BUILD_PROC_NAME): New macro.
Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
(rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
before falling back on save_cwd and restore_cwd.
(fdopendir, fstatat, unlinkat): Likewise.

18 years agos/expensive/very expensive/ in a comment.
Jim Meyering [Sat, 12 Nov 2005 08:54:17 +0000 (08:54 +0000)]
s/expensive/very expensive/ in a comment.

18 years agoremove now-unused file
Jim Meyering [Sat, 12 Nov 2005 08:39:27 +0000 (08:39 +0000)]
remove now-unused file

18 years ago*** empty log message ***
Jim Meyering [Sat, 12 Nov 2005 08:36:52 +0000 (08:36 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Sat, 12 Nov 2005 08:29:35 +0000 (08:29 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Fri, 11 Nov 2005 17:16:30 +0000 (17:16 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 11 Nov 2005 17:16:01 +0000 (17:16 +0000)]
*** empty log message ***

18 years agoMention `readlink -f' bug fix in 5.3.0 news.
Jim Meyering [Fri, 11 Nov 2005 17:15:06 +0000 (17:15 +0000)]
Mention `readlink -f' bug fix in 5.3.0 news.
Mention new readlink options in `New features' section.

18 years ago*** empty log message ***
Jim Meyering [Thu, 10 Nov 2005 23:20:09 +0000 (23:20 +0000)]
*** empty log message ***

18 years ago(fstatat, unlinkat): Perform the syscall directly,
Jim Meyering [Thu, 10 Nov 2005 23:20:05 +0000 (23:20 +0000)]
(fstatat, unlinkat): Perform the syscall directly,
skipping the save_cwd...restore_cwd overhead, if FILE is absolute.

18 years ago(gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
Paul Eggert [Thu, 10 Nov 2005 20:21:07 +0000 (20:21 +0000)]
(gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
or gettimeofday; no longer needed.

18 years agogethrxtime now uses gettime
Paul Eggert [Thu, 10 Nov 2005 20:20:51 +0000 (20:20 +0000)]
gethrxtime now uses gettime

18 years agoFix comment
Paul Eggert [Thu, 10 Nov 2005 20:20:31 +0000 (20:20 +0000)]
Fix comment

18 years agoInclude "timespec.h" rather than the sys/time / time
Paul Eggert [Thu, 10 Nov 2005 20:20:20 +0000 (20:20 +0000)]
Include "timespec.h" rather than the sys/time / time
business.
(gethrxtime) [! (HAVE_NANOUPTIME
|| (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
|| HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
our own approximation.

18 years agogethrxtime now uses gettime
Paul Eggert [Thu, 10 Nov 2005 20:20:02 +0000 (20:20 +0000)]
gethrxtime now uses gettime

18 years agoUse /dev/full if possible for descriptor 0 -- like glibc now does.
Jim Meyering [Wed, 9 Nov 2005 20:53:41 +0000 (20:53 +0000)]
Use /dev/full if possible for descriptor 0 -- like glibc now does.
Fall back on /dev/null if opening /dev/full fails.

18 years ago*** empty log message ***
Jim Meyering [Tue, 8 Nov 2005 21:11:00 +0000 (21:11 +0000)]
*** empty log message ***

18 years agoMerge in changes from b5_9x branch.
Jim Meyering [Tue, 8 Nov 2005 21:10:52 +0000 (21:10 +0000)]
Merge in changes from b5_9x branch.

18 years agols now defaults to --time-style='locale', which in turn acts
Paul Eggert [Tue, 8 Nov 2005 21:00:10 +0000 (21:00 +0000)]
ls now defaults to --time-style='locale', which in turn acts
like --time-style='posix-long-iso' if the locale settings are messed up.

18 years ago(decode_switches): ls now defaults to --time-style='locale', which in
Paul Eggert [Tue, 8 Nov 2005 20:59:49 +0000 (20:59 +0000)]
(decode_switches): ls now defaults to --time-style='locale', which in
turn acts like --time-style='posix-long-iso' if the locale settings
are messed up.

18 years ago(Formatting file timestamps): ls now defaults to
Paul Eggert [Tue, 8 Nov 2005 20:59:19 +0000 (20:59 +0000)]
(Formatting file timestamps): ls now defaults to
--time-style='locale', which in turn acts like
--time-style='posix-long-iso' if the locale settings are messed up.

18 years agols now defaults to --time-style='locale'.
Paul Eggert [Tue, 8 Nov 2005 20:58:57 +0000 (20:58 +0000)]
ls now defaults to --time-style='locale'.

18 years ago*** empty log message ***
Jim Meyering [Tue, 8 Nov 2005 08:20:04 +0000 (08:20 +0000)]
*** empty log message ***

18 years agos/expensive/very expensive/ in a comment.
Jim Meyering [Tue, 8 Nov 2005 08:19:57 +0000 (08:19 +0000)]
s/expensive/very expensive/ in a comment.

18 years ago*** empty log message ***
Jim Meyering [Mon, 7 Nov 2005 21:42:30 +0000 (21:42 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Mon, 7 Nov 2005 21:42:26 +0000 (21:42 +0000)]
*** empty log message ***

18 years ago(usage): Fix descriptions of --sort, --time.
Jim Meyering [Mon, 7 Nov 2005 21:42:23 +0000 (21:42 +0000)]
(usage): Fix descriptions of --sort, --time.

18 years ago*** empty log message ***
Jim Meyering [Mon, 7 Nov 2005 21:39:40 +0000 (21:39 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 5 Nov 2005 09:35:16 +0000 (09:35 +0000)]
*** empty log message ***

19 years agoInclude filenamecat.c.
Jim Meyering [Sat, 5 Nov 2005 09:34:57 +0000 (09:34 +0000)]
Include filenamecat.c.
(FILE_BASENAME_CONCAT): Remove.
(do_link): Remove last arg DEST_IS_DIR.  All callers changed.
(main): Use file_name_concat, base_name, and strip_trailing_slashes
instead of FILE_BASENAME_CONCAT.  This simplifies the code, and avoids
the use of alloca.

19 years ago.
Jim Meyering [Fri, 4 Nov 2005 10:15:01 +0000 (10:15 +0000)]
.

19 years ago.
Jim Meyering [Fri, 4 Nov 2005 10:14:53 +0000 (10:14 +0000)]
.

19 years agomention the du bug fix
Jim Meyering [Fri, 4 Nov 2005 10:10:54 +0000 (10:10 +0000)]
mention the du bug fix

19 years ago*** empty log message ***
Jim Meyering [Fri, 4 Nov 2005 10:10:36 +0000 (10:10 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Fri, 4 Nov 2005 10:08:54 +0000 (10:08 +0000)]
*** empty log message ***

19 years ago(process_file): Don't overflow for files of size >= 2^31
Jim Meyering [Fri, 4 Nov 2005 10:08:51 +0000 (10:08 +0000)]
(process_file): Don't overflow for files of size >= 2^31
on systems with stat.st_blocks of a signed 32-bit type.
This bug causes trouble on some AIX 5.1 systems.
Report and trivial patch from Paul Townsend:
<http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00033.html>

19 years agofix typo in comment
Jim Meyering [Fri, 4 Nov 2005 10:02:36 +0000 (10:02 +0000)]
fix typo in comment

19 years ago*** empty log message ***
Jim Meyering [Fri, 4 Nov 2005 09:58:29 +0000 (09:58 +0000)]
*** empty log message ***

19 years agoMark this test as `very-expensive'
Jim Meyering [Fri, 4 Nov 2005 09:56:38 +0000 (09:56 +0000)]
Mark this test as `very-expensive'

19 years agomark this as a very-expensive test
Jim Meyering [Fri, 4 Nov 2005 09:54:59 +0000 (09:54 +0000)]
mark this as a very-expensive test

19 years ago(TESTS): Add 2g.
Jim Meyering [Fri, 4 Nov 2005 09:54:15 +0000 (09:54 +0000)]
(TESTS): Add 2g.

19 years agoTest for a bug that bites at least on AIX 5.1 systems.
Jim Meyering [Fri, 4 Nov 2005 09:53:17 +0000 (09:53 +0000)]
Test for a bug that bites at least on AIX 5.1 systems.

19 years agojust like expensive, but `very'
Jim Meyering [Fri, 4 Nov 2005 09:52:09 +0000 (09:52 +0000)]
just like expensive, but `very'

19 years ago(EXTRA_DIST): Add very-expensive.
Jim Meyering [Fri, 4 Nov 2005 09:51:42 +0000 (09:51 +0000)]
(EXTRA_DIST): Add very-expensive.

19 years agorm -d no longer has any effect, and we plan to remove it (and maybe ln -d).
Paul Eggert [Wed, 2 Nov 2005 21:56:49 +0000 (21:56 +0000)]
rm -d no longer has any effect, and we plan to remove it (and maybe ln -d).

19 years ago(usage): Don't mention rm -d.
Paul Eggert [Wed, 2 Nov 2005 21:53:20 +0000 (21:53 +0000)]
(usage): Don't mention rm -d.

19 years ago(rm_option_init): Don't initialize unlink_dirs member, which went away.
Paul Eggert [Wed, 2 Nov 2005 21:52:33 +0000 (21:52 +0000)]
(rm_option_init): Don't initialize unlink_dirs member, which went away.

19 years ago(struct rm_options): Remove unlink_dirs.
Paul Eggert [Wed, 2 Nov 2005 21:51:57 +0000 (21:51 +0000)]
(struct rm_options): Remove unlink_dirs.

19 years ago(rm invocation): Don't mention --directory (-d).
Paul Eggert [Wed, 2 Nov 2005 21:51:35 +0000 (21:51 +0000)]
(rm invocation): Don't mention --directory (-d).

19 years agoMention that rm -d and maybe ln -d are scheduled for
Paul Eggert [Wed, 2 Nov 2005 21:51:16 +0000 (21:51 +0000)]
Mention that rm -d and maybe ln -d are scheduled for
removal in 2006.

19 years ago*** empty log message ***
Jim Meyering [Wed, 2 Nov 2005 21:29:32 +0000 (21:29 +0000)]
*** empty log message ***

19 years agoFix typo in comment: s/fileutils/coreutils.
Jim Meyering [Wed, 2 Nov 2005 21:29:28 +0000 (21:29 +0000)]
Fix typo in comment: s/fileutils/coreutils.

19 years ago*** empty log message ***
Jim Meyering [Wed, 2 Nov 2005 20:45:24 +0000 (20:45 +0000)]
*** empty log message ***

19 years agoRedirect stderr to /dev/null so the
Jim Meyering [Wed, 2 Nov 2005 20:44:59 +0000 (20:44 +0000)]
Redirect stderr to /dev/null so the
M+N records in/out don't pollute `make check' output.

19 years ago*** empty log message ***
Jim Meyering [Wed, 2 Nov 2005 20:37:10 +0000 (20:37 +0000)]
*** empty log message ***

19 years ago(sk-seek4): New test, to exercise the bug
Jim Meyering [Wed, 2 Nov 2005 20:36:36 +0000 (20:36 +0000)]
(sk-seek4): New test, to exercise the bug
fixed on 2005-10-31.  This test uses the new, IN_PIPE specifier.

19 years agoAccept a new type of input specifier: IN_PIPE,
Jim Meyering [Wed, 2 Nov 2005 20:35:52 +0000 (20:35 +0000)]
Accept a new type of input specifier: IN_PIPE,
to indicate that the input file should be piped into the command
under test (via `cat FILE | $prog ...').

19 years ago.
Jim Meyering [Wed, 2 Nov 2005 10:04:14 +0000 (10:04 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Wed, 2 Nov 2005 09:58:43 +0000 (09:58 +0000)]
*** empty log message ***

19 years ago(remove_entry): Emit a better diagnostic when rm
Jim Meyering [Wed, 2 Nov 2005 09:47:39 +0000 (09:47 +0000)]
(remove_entry): Emit a better diagnostic when rm
(without -r) fails to remove a directory on a non-Linux system.
This change affects only newer Solaris systems (with priv_*
functions like priv_allocset).  Reported by Keith Thompson.

19 years agotest for today's fix
Jim Meyering [Wed, 2 Nov 2005 09:38:38 +0000 (09:38 +0000)]
test for today's fix

19 years ago(TESTS): Add dir-nonrecur.
Jim Meyering [Wed, 2 Nov 2005 09:38:16 +0000 (09:38 +0000)]
(TESTS): Add dir-nonrecur.

19 years ago"touch 0101000000" now operates as POSIX 1002.1-2001 requires.
Paul Eggert [Tue, 1 Nov 2005 23:43:38 +0000 (23:43 +0000)]
"touch 0101000000" now operates as POSIX 1002.1-2001 requires.

19 years agoAdd y2000 test.
Paul Eggert [Tue, 1 Nov 2005 23:42:57 +0000 (23:42 +0000)]
Add y2000 test.

19 years ago(main): Pass PDS_PRE_2000 to posixtime.
Paul Eggert [Tue, 1 Nov 2005 23:42:36 +0000 (23:42 +0000)]
(main): Pass PDS_PRE_2000 to posixtime.

19 years ago(PDS_PRE_2000): New macro.
Paul Eggert [Tue, 1 Nov 2005 23:42:16 +0000 (23:42 +0000)]
(PDS_PRE_2000): New macro.

19 years ago(year): Arg is now syntax_bits rather than allow_century.
Paul Eggert [Tue, 1 Nov 2005 23:41:56 +0000 (23:41 +0000)]
(year): Arg is now syntax_bits rather than allow_century.
All usages changed.  Reject dates outside the range 1969-1999 if
PDS_PRE_2000 is used.

19 years ago(touch invocation): The old usage works only for 1969-1999 now.
Paul Eggert [Tue, 1 Nov 2005 23:41:33 +0000 (23:41 +0000)]
(touch invocation): The old usage works only for 1969-1999 now.

19 years ago"touch 0101000000" now operates as POSIX 1003.1-2001 requires.
Paul Eggert [Tue, 1 Nov 2005 23:41:13 +0000 (23:41 +0000)]
"touch 0101000000" now operates as POSIX 1003.1-2001 requires.

19 years ago"tail -c 2 FILE" now operates as POSIX 1003.1-2001 requires.
Paul Eggert [Tue, 1 Nov 2005 23:06:32 +0000 (23:06 +0000)]
"tail -c 2 FILE" now operates as POSIX 1003.1-2001 requires.

19 years ago(c-2, c-2-minus, c2, c2-minus): New tests.
Paul Eggert [Tue, 1 Nov 2005 23:05:52 +0000 (23:05 +0000)]
(c-2, c-2-minus, c2, c2-minus): New tests.
(test_vector): Add special cases for _POSIX2_VERSION, and
regularize the old ones a bit.

19 years ago(parse_obsolete_option): Implement fix for "tail -c 2 FILE".
Paul Eggert [Tue, 1 Nov 2005 23:05:29 +0000 (23:05 +0000)]
(parse_obsolete_option): Implement fix for "tail -c 2 FILE".

19 years ago(tail invocation): Describe obsolete usages
Paul Eggert [Tue, 1 Nov 2005 23:05:00 +0000 (23:05 +0000)]
(tail invocation): Describe obsolete usages
like "tail -2" more precisely.

19 years agotail -c 2 FILE now operates as POSIX 1002.1-2001 requires.
Paul Eggert [Tue, 1 Nov 2005 23:04:37 +0000 (23:04 +0000)]
tail -c 2 FILE now operates as POSIX 1002.1-2001 requires.

19 years ago* src/dd.c (skip): Fix off-by-one error.
Paul Eggert [Mon, 31 Oct 2005 08:39:36 +0000 (08:39 +0000)]
* src/dd.c (skip): Fix off-by-one error.

19 years ago(skip): Fix off-by-one error reported by Theodoros V. Kalamatianos.
Paul Eggert [Mon, 31 Oct 2005 08:39:14 +0000 (08:39 +0000)]
(skip): Fix off-by-one error reported by Theodoros V. Kalamatianos.

19 years agoTrivial changes to support SCO systems.
Paul Eggert [Sun, 30 Oct 2005 23:05:16 +0000 (23:05 +0000)]
Trivial changes to support SCO systems.

19 years ago(gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well as PATH_MAX.
Paul Eggert [Sun, 30 Oct 2005 23:04:55 +0000 (23:04 +0000)]
(gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well as PATH_MAX.
Revamp wording and local variables to suggest the intended function of
the PATH_MAX check.

19 years ago(gl_FUNC_FPENDING): Correct check for SCO systems,
Paul Eggert [Sun, 30 Oct 2005 23:04:17 +0000 (23:04 +0000)]
(gl_FUNC_FPENDING): Correct check for SCO systems,
where __ptr is null when no I/O is pending.

19 years agoFix porting problems reported by Theodoros V. Kalamatianos.
Paul Eggert [Sun, 30 Oct 2005 21:46:00 +0000 (21:46 +0000)]
Fix porting problems reported by Theodoros V. Kalamatianos.

19 years ago* tests/mkdir/p-3: Require that the test be run as non-root.
Paul Eggert [Sun, 30 Oct 2005 21:45:45 +0000 (21:45 +0000)]
* tests/mkdir/p-3: Require that the test be run as non-root.

19 years agoRequire that the test be run as non-root.
Paul Eggert [Sun, 30 Oct 2005 21:44:53 +0000 (21:44 +0000)]
Require that the test be run as non-root.

19 years ago[defined HAVE_CONFIG_H]: Include <config.h>, so that large files can be opened.
Paul Eggert [Sun, 30 Oct 2005 21:44:31 +0000 (21:44 +0000)]
[defined HAVE_CONFIG_H]: Include <config.h>, so that large files can be opened.

19 years ago(futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
Paul Eggert [Sun, 30 Oct 2005 21:32:02 +0000 (21:32 +0000)]
(futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
Don't assume that futimes failing means we must fail.

19 years ago(__getcwd): Don't assume that system calls after readdir
Paul Eggert [Sun, 30 Oct 2005 01:31:32 +0000 (01:31 +0000)]
(__getcwd): Don't assume that system calls after readdir
leave errno alone.  Problem reported by Dmitry V. Levin.

19 years ago(savedir): Don't assume that xrealloc etc. leave errno alone.
Paul Eggert [Fri, 28 Oct 2005 23:06:42 +0000 (23:06 +0000)]
(savedir): Don't assume that xrealloc etc. leave errno alone.

19 years agosrc/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
Paul Eggert [Fri, 28 Oct 2005 22:17:27 +0000 (22:17 +0000)]
src/ln.c (FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
boundary between DEST and SOURCE in the result.

19 years ago(FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
Paul Eggert [Fri, 28 Oct 2005 22:17:00 +0000 (22:17 +0000)]
(FILE_BASENAME_CONCAT): Omit unnecessary slashes in the
boundary between DEST and SOURCE in the result.

19 years ago*** empty log message ***
Jim Meyering [Thu, 27 Oct 2005 19:44:45 +0000 (19:44 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 27 Oct 2005 16:27:15 +0000 (16:27 +0000)]
*** empty log message ***

19 years ago(main) [!O_BINARY]: Changed default read mode
Jim Meyering [Thu, 27 Oct 2005 16:27:04 +0000 (16:27 +0000)]
(main) [!O_BINARY]: Changed default read mode
back to text, to sync with documentation and for backwards compatibility.