platform/upstream/coreutils.git
18 years agoSync from gnulib.
Paul Eggert [Thu, 22 Sep 2005 06:05:39 +0000 (06:05 +0000)]
Sync from gnulib.

18 years agoSort.
Paul Eggert [Thu, 22 Sep 2005 05:47:40 +0000 (05:47 +0000)]
Sort.

18 years ago(ENOSYS): Define to EEXIST if not defined.
Paul Eggert [Thu, 22 Sep 2005 05:42:26 +0000 (05:42 +0000)]
(ENOSYS): Define to EEXIST if not defined.
(make_dir_parents): Treat ENOSYS like EEXIST.

18 years ago.
Jim Meyering [Wed, 21 Sep 2005 17:07:09 +0000 (17:07 +0000)]
.

18 years ago.
Jim Meyering [Wed, 21 Sep 2005 16:43:17 +0000 (16:43 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Wed, 21 Sep 2005 14:05:50 +0000 (14:05 +0000)]
*** empty log message ***

18 years agoRequire that this test be run as non-root.
Jim Meyering [Wed, 21 Sep 2005 14:05:45 +0000 (14:05 +0000)]
Require that this test be run as non-root.
Otherwise, it fails due to the fact that the chmod 0 . doesn't
affect root.

18 years ago*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 17:48:07 +0000 (17:48 +0000)]
*** empty log message ***

18 years ago(write_protected_non_symlink): Change comment to agree with the code.
Jim Meyering [Tue, 20 Sep 2005 17:48:02 +0000 (17:48 +0000)]
(write_protected_non_symlink): Change comment to agree with the code.

18 years ago*** empty log message ***
Jim Meyering [Tue, 20 Sep 2005 13:51:20 +0000 (13:51 +0000)]
*** empty log message ***

18 years ago(fdopendir): Be sure to close the supplied
Jim Meyering [Tue, 20 Sep 2005 13:51:01 +0000 (13:51 +0000)]
(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.

18 years agotweak
Jim Meyering [Tue, 20 Sep 2005 13:24:29 +0000 (13:24 +0000)]
tweak

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 15:45:09 +0000 (15:45 +0000)]
*** empty log message ***

18 years ago(unlinkat): New function.
Jim Meyering [Mon, 19 Sep 2005 15:45:05 +0000 (15:45 +0000)]
(unlinkat): New function.

18 years ago(unlinkat): Add prototype.
Jim Meyering [Mon, 19 Sep 2005 15:44:57 +0000 (15:44 +0000)]
(unlinkat): Add prototype.

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 13:34:51 +0000 (13:34 +0000)]
*** empty log message ***

18 years ago(remove_dir): Return RM_ERROR, not `1',
Jim Meyering [Mon, 19 Sep 2005 13:34:47 +0000 (13:34 +0000)]
(remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.

18 years ago*** empty log message ***
Jim Meyering [Mon, 19 Sep 2005 06:48:06 +0000 (06:48 +0000)]
*** empty log message ***

18 years ago(remove_cwd_entries): Syntactic tweak: move an
Jim Meyering [Mon, 19 Sep 2005 06:47:47 +0000 (06:47 +0000)]
(remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.

18 years ago*** empty log message ***
Jim Meyering [Sat, 17 Sep 2005 09:14:52 +0000 (09:14 +0000)]
*** empty log message ***

18 years ago(usage): Request that additions be sent to bug-coreutils@gnu.org, too.
Jim Meyering [Sat, 17 Sep 2005 09:14:48 +0000 (09:14 +0000)]
(usage): Request that additions be sent to bug-coreutils@gnu.org, too.

18 years agocoreutils.texi (who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 07:45:02 +0000 (07:45 +0000)]
coreutils.texi (who invocation): Remove a stray '+'.

18 years ago(who invocation): Remove a stray '+'.
Paul Eggert [Sat, 17 Sep 2005 07:44:42 +0000 (07:44 +0000)]
(who invocation): Remove a stray '+'.

18 years ago(set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; they were
Paul Eggert [Sat, 17 Sep 2005 06:54:22 +0000 (06:54 +0000)]
(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.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:19:57 +0000 (18:19 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 18:07:50 +0000 (18:07 +0000)]
*** empty log message ***

18 years ago(rfc822-1): Compensate for Solaris 5.9's /bin/sh,
Jim Meyering [Fri, 16 Sep 2005 18:07:46 +0000 (18:07 +0000)]
(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.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 17:54:56 +0000 (17:54 +0000)]
*** empty log message ***

18 years agowhoops. Update expected output, too.
Jim Meyering [Fri, 16 Sep 2005 17:54:34 +0000 (17:54 +0000)]
whoops.  Update expected output, too.

18 years ago(subfmt-up1): Put quotes around format string
Jim Meyering [Fri, 16 Sep 2005 17:53:40 +0000 (17:53 +0000)]
(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.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 09:36:04 +0000 (09:36 +0000)]
*** empty log message ***

18 years ago(main): When failing to truncate, mention both the seek block count
Jim Meyering [Fri, 16 Sep 2005 09:35:47 +0000 (09:35 +0000)]
(main): When failing to truncate, mention both the seek block count
and the block size, in case the block size is very large.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 08:19:00 +0000 (08:19 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 08:10:15 +0000 (08:10 +0000)]
*** empty log message ***

18 years agoInclude fprintftime.h.
Jim Meyering [Fri, 16 Sep 2005 08:08:32 +0000 (08:08 +0000)]
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.

18 years ago(show_date): Correct comment: this function no longer handles a
Jim Meyering [Fri, 16 Sep 2005 08:08:00 +0000 (08:08 +0000)]
(show_date): Correct comment: this function no longer handles a
NULL format string.

18 years ago(show_date): Remove now-spurious braces.
Jim Meyering [Fri, 16 Sep 2005 07:59:20 +0000 (07:59 +0000)]
(show_date): Remove now-spurious braces.

18 years agoRegenerate.
Paul Eggert [Fri, 16 Sep 2005 07:58:03 +0000 (07:58 +0000)]
Regenerate.

18 years agoImport file time stamp resolution improvements from gnulib.
Paul Eggert [Fri, 16 Sep 2005 07:55:12 +0000 (07:55 +0000)]
Import file time stamp resolution improvements from gnulib.

18 years ago.
Jim Meyering [Fri, 16 Sep 2005 07:53:31 +0000 (07:53 +0000)]
.

18 years agoInclude stat-time.h, and use its functions instead of the obsolete
Paul Eggert [Fri, 16 Sep 2005 07:50:33 +0000 (07:50 +0000)]
Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.

18 years agoInclude stat-time.h, and use its functions instead of the obsolete
Paul Eggert [Fri, 16 Sep 2005 07:42:56 +0000 (07:42 +0000)]
Include stat-time.h, and use its functions instead of the obsolete
TIMESPEC_NS macro.
(get_mtime): Renamed from age_of.  All uses changed.

18 years agoRemove; no longer needed.
Paul Eggert [Fri, 16 Sep 2005 07:41:10 +0000 (07:41 +0000)]
Remove; no longer needed.

18 years ago(gl_TIMESPEC): Require AC_C_INLINE.
Paul Eggert [Fri, 16 Sep 2005 07:40:48 +0000 (07:40 +0000)]
(gl_TIMESPEC): Require AC_C_INLINE.
Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.

18 years ago(gl_PREREQ): Require gl_STAT_TIME.
Paul Eggert [Fri, 16 Sep 2005 07:40:19 +0000 (07:40 +0000)]
(gl_PREREQ): Require gl_STAT_TIME.

18 years ago(gl_CHECK_ALL_TYPES): Do not require
Paul Eggert [Fri, 16 Sep 2005 07:40:02 +0000 (07:40 +0000)]
(gl_CHECK_ALL_TYPES): Do not require
AC_STRUCT_ST_MTIM_NSEC; it's obsolete.

18 years agoInclude stat-time.h.
Paul Eggert [Fri, 16 Sep 2005 07:39:41 +0000 (07:39 +0000)]
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.

18 years ago(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
Paul Eggert [Fri, 16 Sep 2005 07:39:18 +0000 (07:39 +0000)]
(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.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:39:08 +0000 (07:39 +0000)]
*** empty log message ***

18 years agoNew file.
Paul Eggert [Fri, 16 Sep 2005 07:38:17 +0000 (07:38 +0000)]
New file.

18 years agoNew file.
Paul Eggert [Fri, 16 Sep 2005 07:36:48 +0000 (07:36 +0000)]
New file.

18 years agoAdd stat-time.h.
Paul Eggert [Fri, 16 Sep 2005 07:36:35 +0000 (07:36 +0000)]
Add stat-time.h.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:35:32 +0000 (07:35 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:33:41 +0000 (07:33 +0000)]
*** empty log message ***

18 years agoInclude fprintftime.h.
Jim Meyering [Fri, 16 Sep 2005 07:33:36 +0000 (07:33 +0000)]
Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.

18 years ago(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.
Jim Meyering [Fri, 16 Sep 2005 07:32:13 +0000 (07:32 +0000)]
(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:31:34 +0000 (07:31 +0000)]
*** empty log message ***

18 years ago[FPRINTFTIME] (fprintftime): Provide a new interface:
Jim Meyering [Fri, 16 Sep 2005 07:31:29 +0000 (07:31 +0000)]
[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.

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:01:00 +0000 (07:01 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 06:54:26 +0000 (06:54 +0000)]
*** empty log message ***

18 years ago(subfmt-up1): Test the combination of the
Jim Meyering [Fri, 16 Sep 2005 06:54:19 +0000 (06:54 +0000)]
(subfmt-up1): Test the combination of the
to-upper-case modifier (^) and a conversion specifier that
expands to a string containing lower case characters.

18 years ago(usage, main): uname -a no longer generates the -p and -i outputs if
Paul Eggert [Thu, 15 Sep 2005 19:57:04 +0000 (19:57 +0000)]
(usage, main): uname -a no longer generates the -p and -i outputs if
they are unknown.

18 years agouname -a no longer generates the -p and -i outputs if they are unknown.
Paul Eggert [Thu, 15 Sep 2005 19:56:35 +0000 (19:56 +0000)]
uname -a no longer generates the -p and -i outputs if they are unknown.

18 years agoRewrite previous strftime change slightly.
Paul Eggert [Thu, 15 Sep 2005 18:48:13 +0000 (18:48 +0000)]
Rewrite previous strftime change slightly.

18 years ago(my_strftime): Rewrite the previous change slightly,
Paul Eggert [Thu, 15 Sep 2005 18:47:56 +0000 (18:47 +0000)]
(my_strftime): Rewrite the previous change slightly,
to make it a bit faster and (I hope) clearer.

18 years ago*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 16:10:41 +0000 (16:10 +0000)]
*** empty log message ***

18 years ago(my_strftime): Be sure to use L_('x') for literals.
Jim Meyering [Wed, 14 Sep 2005 16:10:38 +0000 (16:10 +0000)]
(my_strftime): Be sure to use L_('x') for literals.

18 years ago*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 10:02:57 +0000 (10:02 +0000)]
*** empty log message ***

18 years ago(my_strftime): Parse the colons of %:::z *after* the
Jim Meyering [Wed, 14 Sep 2005 10:02:54 +0000 (10:02 +0000)]
(my_strftime): Parse the colons of %:::z *after* the
optional field width, not before, so we accept %9:z, not %:9z.

18 years ago*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 09:54:27 +0000 (09:54 +0000)]
*** empty log message ***

18 years ago(tz-5w, tz-5wf): Test new %:z format with a field width.
Jim Meyering [Wed, 14 Sep 2005 09:54:15 +0000 (09:54 +0000)]
(tz-5w, tz-5wf): Test new %:z format with a field width.

18 years agoFix typos noted by Eric Blake.
Paul Eggert [Wed, 14 Sep 2005 06:59:17 +0000 (06:59 +0000)]
Fix typos noted by Eric Blake.

18 years agoAdd tz-1 through tz-5.
Paul Eggert [Wed, 14 Sep 2005 06:58:44 +0000 (06:58 +0000)]
Add tz-1 through tz-5.

18 years ago(my_strftime): Fix typo in octal number introduced in last change.
Paul Eggert [Wed, 14 Sep 2005 06:58:08 +0000 (06:58 +0000)]
(my_strftime): Fix typo in octal number introduced in last change.

18 years agodu and pr also have +:z etc.
Paul Eggert [Wed, 14 Sep 2005 06:57:35 +0000 (06:57 +0000)]
du and pr also have +:z etc.

18 years agoMerge md5 from libc, and clean up some sha1 glitches.
Paul Eggert [Tue, 13 Sep 2005 23:32:50 +0000 (23:32 +0000)]
Merge md5 from libc, and clean up some sha1 glitches.

18 years ago(SWAP): Renamed from NOTSWAP, to avoid a horrible misnaming.
Paul Eggert [Tue, 13 Sep 2005 23:32:35 +0000 (23:32 +0000)]
(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.

18 years ago(struct sha1_ctx): Mark buffer as being aligned.
Paul Eggert [Tue, 13 Sep 2005 23:32:15 +0000 (23:32 +0000)]
(struct sha1_ctx): Mark buffer as being aligned.

18 years ago(CYCLIC): New macro. All uses of rol changed to use CYCLIC.
Paul Eggert [Tue, 13 Sep 2005 23:32:01 +0000 (23:32 +0000)]
(CYCLIC): New macro.  All uses of rol changed to use CYCLIC.
Redo comment to minimize changes from libc.

18 years ago(__GNUC_PREREQ, __THROW, __attribute__): New macros.
Paul Eggert [Tue, 13 Sep 2005 23:31:37 +0000 (23:31 +0000)]
(__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.

18 years agoFix wording in previous patch.
Paul Eggert [Tue, 13 Sep 2005 23:01:59 +0000 (23:01 +0000)]
Fix wording in previous patch.

18 years ago(uname invocation): Mention that Linux outputs "unknown" for -i and -p.
Paul Eggert [Tue, 13 Sep 2005 22:57:25 +0000 (22:57 +0000)]
(uname invocation): Mention that Linux outputs "unknown" for -i and -p.

18 years ago* src/dd.c: Detect some very unlikely buffer overflows.
Paul Eggert [Tue, 13 Sep 2005 22:43:11 +0000 (22:43 +0000)]
* 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.

18 years ago(docolon): Add IF_LINT check to avoid GCC warning.
Paul Eggert [Tue, 13 Sep 2005 22:30:56 +0000 (22:30 +0000)]
(docolon): Add IF_LINT check to avoid GCC warning.

18 years ago* configure.ac: Don't invoke AC_CONFIGURE_HOST directly.
Paul Eggert [Tue, 13 Sep 2005 22:20:25 +0000 (22:20 +0000)]
* configure.ac: Don't invoke AC_CONFIGURE_HOST directly.

18 years agoAdd date --rfc-3339.
Paul Eggert [Tue, 13 Sep 2005 22:09:25 +0000 (22:09 +0000)]
Add date --rfc-3339.

18 years agoAdd tests for --rfc-3339.
Paul Eggert [Tue, 13 Sep 2005 22:09:03 +0000 (22:09 +0000)]
Add tests for --rfc-3339.

18 years ago(TIME_SPEC_DATE): No longer needs to be nonzero, so
Paul Eggert [Tue, 13 Sep 2005 22:08:41 +0000 (22:08 +0000)]
(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.

18 years ago(my_strftime): Add support for %:z, %::z, %:::z.
Paul Eggert [Tue, 13 Sep 2005 22:08:18 +0000 (22:08 +0000)]
(my_strftime): Add support for %:z, %::z, %:::z.
Fix bug in formats like %2N.

18 years ago(Time conversion specifiers, Options for date):
Paul Eggert [Tue, 13 Sep 2005 22:07:58 +0000 (22:07 +0000)]
(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".

18 years agodate has a new --rfc-3339 option, and the old --iso-8601
Paul Eggert [Tue, 13 Sep 2005 22:07:34 +0000 (22:07 +0000)]
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.

18 years agotweak comment
Jim Meyering [Tue, 13 Sep 2005 21:25:21 +0000 (21:25 +0000)]
tweak comment

18 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 21:11:29 +0000 (21:11 +0000)]
*** empty log message ***

18 years agoRevert unintended change that removed definitions
Jim Meyering [Tue, 13 Sep 2005 21:11:25 +0000 (21:11 +0000)]
Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.

18 years agomostly update copyrights CPPI-1_12
Jim Meyering [Tue, 13 Sep 2005 15:46:12 +0000 (15:46 +0000)]
mostly update copyrights

18 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 15:43:51 +0000 (15:43 +0000)]
*** empty log message ***

18 years agoescape a $ in a diagnostic
Jim Meyering [Tue, 13 Sep 2005 15:42:45 +0000 (15:42 +0000)]
escape a $ in a diagnostic

18 years agodon't check for HAVE_UNISTD_H
Jim Meyering [Tue, 13 Sep 2005 14:58:56 +0000 (14:58 +0000)]
don't check for HAVE_UNISTD_H

18 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 14:14:46 +0000 (14:14 +0000)]
*** empty log message ***

18 years ago(GZIP_ENV): Add --rsyncable option.
Jim Meyering [Tue, 13 Sep 2005 14:14:41 +0000 (14:14 +0000)]
(GZIP_ENV): Add --rsyncable option.