platform/upstream/coreutils.git
19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Jul 2005 19:56:19 +0000 (19:56 +0000)]
*** empty log message ***

19 years agoupdate from gnulib
Jim Meyering [Fri, 1 Jul 2005 19:54:48 +0000 (19:54 +0000)]
update from gnulib

19 years ago* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert [Fri, 1 Jul 2005 17:25:56 +0000 (17:25 +0000)]
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
declares only 'struct timespec;' (!).

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:33:55 +0000 (20:33 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Thu, 30 Jun 2005 20:32:46 +0000 (20:32 +0000)]
.

19 years agoRequire gl_STDOPEN.
Jim Meyering [Thu, 30 Jun 2005 20:24:45 +0000 (20:24 +0000)]
Require gl_STDOPEN.

19 years ago(gl_STDOPEN): New file/macro.
Jim Meyering [Thu, 30 Jun 2005 20:24:02 +0000 (20:24 +0000)]
(gl_STDOPEN): New file/macro.

19 years agoAdd copyright.
Jim Meyering [Thu, 30 Jun 2005 20:23:09 +0000 (20:23 +0000)]
Add copyright.
Include <fcntl.h> and <unistd.h> unconditionally --
it seems to be ok to do this, these days.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:23:00 +0000 (20:23 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 20:16:01 +0000 (20:16 +0000)]
*** empty log message ***

19 years agoRewritten by Paul Eggert.
Jim Meyering [Thu, 30 Jun 2005 20:13:40 +0000 (20:13 +0000)]
Rewritten by Paul Eggert.
Now, the minimum overhead is just two system calls: dup and close.

19 years agoNew file. As yet unused.
Jim Meyering [Thu, 30 Jun 2005 20:10:39 +0000 (20:10 +0000)]
New file.  As yet unused.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:48:02 +0000 (16:48 +0000)]
*** empty log message ***

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:54 +0000 (16:47 +0000)]
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:38 +0000 (16:47 +0000)]
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.

19 years agoAdd uses of ARGMATCH_VERIFY to ensure that
Jim Meyering [Thu, 30 Jun 2005 16:47:00 +0000 (16:47 +0000)]
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.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:41:04 +0000 (16:41 +0000)]
*** empty log message ***

19 years ago(VERIFY): Guard definition with #ifndef.
Jim Meyering [Thu, 30 Jun 2005 16:40:59 +0000 (16:40 +0000)]
(VERIFY): Guard definition with #ifndef.
(VERIFY_EXPR): Undef before defining.

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:40:08 +0000 (16:40 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 30 Jun 2005 16:39:46 +0000 (16:39 +0000)]
*** empty log message ***

19 years ago[!VERIFY] (VERIFY): Define.
Jim Meyering [Thu, 30 Jun 2005 16:39:41 +0000 (16:39 +0000)]
[!VERIFY] (VERIFY): Define.
(ARGMATCH_VERIFY): Use it, so this macro may be used more than
once in any given scope.

19 years ago(VERIFY_EXPR): Undef and add a comment.
Jim Meyering [Thu, 30 Jun 2005 15:46:05 +0000 (15:46 +0000)]
(VERIFY_EXPR): Undef and add a comment.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 21:24:48 +0000 (21:24 +0000)]
*** empty log message ***

19 years ago(getuser, getuidbyname, getgroup, getgidbyname): Likewise.
Jim Meyering [Wed, 29 Jun 2005 21:24:44 +0000 (21:24 +0000)]
(getuser, getuidbyname, getgroup, getgidbyname): Likewise.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 21:22:31 +0000 (21:22 +0000)]
*** empty log message ***

19 years ago(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Jim Meyering [Wed, 29 Jun 2005 21:22:06 +0000 (21:22 +0000)]
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 17:11:02 +0000 (17:11 +0000)]
*** empty log message ***

19 years agoUse one fewer helper macro.
Jim Meyering [Wed, 29 Jun 2005 17:10:44 +0000 (17:10 +0000)]
Use one fewer helper macro.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 16:33:27 +0000 (16:33 +0000)]
*** empty log message ***

19 years ago(VERIFY_EXPR): Define.
Jim Meyering [Wed, 29 Jun 2005 16:33:17 +0000 (16:33 +0000)]
(VERIFY_EXPR): Define.
(X2REALLOC): New macro, to make using x2realloc a little safer.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 16:29:19 +0000 (16:29 +0000)]
*** empty log message ***

19 years ago(main): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:27:37 +0000 (16:27 +0000)]
(main): Use X2REALLOC rather than x2realloc.

19 years ago(fillbuf): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:26:20 +0000 (16:26 +0000)]
(fillbuf): Use X2REALLOC rather than x2realloc.

19 years ago(show_date): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:26:01 +0000 (16:26 +0000)]
(show_date): Use X2REALLOC rather than x2realloc.

19 years ago(main, store_char): Use X2REALLOC rather than x2realloc.
Jim Meyering [Wed, 29 Jun 2005 16:25:50 +0000 (16:25 +0000)]
(main, store_char): Use X2REALLOC rather than x2realloc.

19 years agoUpdate sole use of VERIFY.
Jim Meyering [Wed, 29 Jun 2005 16:23:31 +0000 (16:23 +0000)]
Update sole use of VERIFY.
Use X2REALLOC, rather than x2realloc.

19 years ago(VERIFY): Rewrite to use string-concatenation
Jim Meyering [Wed, 29 Jun 2005 16:23:15 +0000 (16:23 +0000)]
(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.

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 10:43:19 +0000 (10:43 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 10:07:45 +0000 (10:07 +0000)]
*** empty log message ***

19 years ago(gobble_file): Use stat.st_author, not stat.st_uid
Jim Meyering [Wed, 29 Jun 2005 10:03:10 +0000 (10:03 +0000)]
(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.

19 years agosplit long line in copyright comment
Jim Meyering [Tue, 28 Jun 2005 17:50:01 +0000 (17:50 +0000)]
split long line in copyright comment

19 years ago*** empty log message ***
Jim Meyering [Tue, 28 Jun 2005 16:33:25 +0000 (16:33 +0000)]
*** empty log message ***

19 years ago(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.
Jim Meyering [Tue, 28 Jun 2005 16:33:20 +0000 (16:33 +0000)]
(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.

19 years ago(dump_strings): Use x2realloc on 1-byte base types, not x2nrealloc.
Jim Meyering [Tue, 28 Jun 2005 16:31:31 +0000 (16:31 +0000)]
(dump_strings): Use x2realloc on 1-byte base types, not x2nrealloc.

19 years ago(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.
Jim Meyering [Tue, 28 Jun 2005 16:29:42 +0000 (16:29 +0000)]
(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.

19 years ago*** empty log message ***
Jim Meyering [Tue, 28 Jun 2005 16:22:44 +0000 (16:22 +0000)]
*** empty log message ***

19 years ago(main, store_char): Use x2realloc on 1-byte base types, not x2nrealloc.
Jim Meyering [Tue, 28 Jun 2005 16:22:36 +0000 (16:22 +0000)]
(main, store_char): Use x2realloc on 1-byte base types, not x2nrealloc.

19 years ago.
Jim Meyering [Mon, 27 Jun 2005 11:13:43 +0000 (11:13 +0000)]
.

19 years ago.
Jim Meyering [Mon, 27 Jun 2005 08:50:22 +0000 (08:50 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Sun, 26 Jun 2005 13:32:23 +0000 (13:32 +0000)]
*** empty log message ***

19 years agoRequire gl_DIACRIT.
Jim Meyering [Sun, 26 Jun 2005 13:32:17 +0000 (13:32 +0000)]
Require gl_DIACRIT.

19 years ago(libcoreutils_a_SOURCES): Remove diacrit.c and diacrit.h.
Jim Meyering [Sun, 26 Jun 2005 13:31:16 +0000 (13:31 +0000)]
(libcoreutils_a_SOURCES): Remove diacrit.c and diacrit.h.

19 years agoWhoops. Add this, too:
Jim Meyering [Sat, 25 Jun 2005 22:01:49 +0000 (22:01 +0000)]
Whoops.  Add this, too:
  AC_LIBOBJ([version-etc-fsf])

19 years ago*** empty log message ***
Jim Meyering [Sat, 25 Jun 2005 21:32:05 +0000 (21:32 +0000)]
*** empty log message ***

19 years ago(libcoreutils_a_SOURCES): Remove version-etc.c version-etc.h
Jim Meyering [Sat, 25 Jun 2005 21:31:59 +0000 (21:31 +0000)]
(libcoreutils_a_SOURCES): Remove version-etc.c version-etc.h
and version-etc-fsf.c.

19 years ago*** empty log message ***
Jim Meyering [Sat, 25 Jun 2005 21:31:44 +0000 (21:31 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 25 Jun 2005 21:29:46 +0000 (21:29 +0000)]
*** empty log message ***

19 years ago(gl_VERSION_ETC): New file/macro.
Jim Meyering [Sat, 25 Jun 2005 21:29:40 +0000 (21:29 +0000)]
(gl_VERSION_ETC): New file/macro.

19 years agoRequire gl_VERSION_ETC.
Jim Meyering [Sat, 25 Jun 2005 21:29:31 +0000 (21:29 +0000)]
Require gl_VERSION_ETC.

19 years ago(libcoreutils_a_SOURCES): Remove dev-ino.h too, now that we
Jim Meyering [Sat, 25 Jun 2005 21:25:42 +0000 (21:25 +0000)]
(libcoreutils_a_SOURCES): Remove dev-ino.h too, now that we
get it via root-dev-ino.m4

19 years agoRemove dev-ino.h, now that we get it via root-dev-ino.m4
Jim Meyering [Sat, 25 Jun 2005 21:25:29 +0000 (21:25 +0000)]
Remove dev-ino.h, now that we get it via root-dev-ino.m4

19 years ago*** empty log message ***
Jim Meyering [Sat, 25 Jun 2005 12:38:44 +0000 (12:38 +0000)]
*** empty log message ***

19 years agoRequire gl_ROOT_DEV_INO.
Jim Meyering [Sat, 25 Jun 2005 12:38:40 +0000 (12:38 +0000)]
Require gl_ROOT_DEV_INO.

19 years agoAlso require dev-ino.h.
Jim Meyering [Sat, 25 Jun 2005 12:37:51 +0000 (12:37 +0000)]
Also require dev-ino.h.

19 years agoAdd this:
Jim Meyering [Sat, 25 Jun 2005 12:36:58 +0000 (12:36 +0000)]
Add this:
  AC_REQUIRE([AC_FUNC_LSTAT])

19 years ago(gl_ROOT_DEV_INO): New file/macro.
Jim Meyering [Sat, 25 Jun 2005 12:35:49 +0000 (12:35 +0000)]
(gl_ROOT_DEV_INO): New file/macro.

19 years ago*** empty log message ***
Jim Meyering [Sat, 25 Jun 2005 12:35:23 +0000 (12:35 +0000)]
*** empty log message ***

19 years ago(libcoreutils_a_SOURCES): Remove root-dev-ino.c and root-dev-ino.h.
Jim Meyering [Sat, 25 Jun 2005 12:35:13 +0000 (12:35 +0000)]
(libcoreutils_a_SOURCES): Remove root-dev-ino.c and root-dev-ino.h.

19 years ago(canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to initialize local `hint'.
Paul Eggert [Fri, 24 Jun 2005 17:33:58 +0000 (17:33 +0000)]
(canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to initialize local `hint'.

19 years ago.
Jim Meyering [Fri, 24 Jun 2005 08:06:28 +0000 (08:06 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Fri, 24 Jun 2005 08:05:54 +0000 (08:05 +0000)]
*** empty log message ***

19 years ago(cp invocation): Clarify how --reply=no works.
Jim Meyering [Fri, 24 Jun 2005 08:05:51 +0000 (08:05 +0000)]
(cp invocation): Clarify how --reply=no works.

19 years ago(usage): Clarify how --reply=no works.
Jim Meyering [Fri, 24 Jun 2005 08:02:36 +0000 (08:02 +0000)]
(usage): Clarify how --reply=no works.

19 years agoAddress some "du" issues.
Paul Eggert [Thu, 23 Jun 2005 22:38:43 +0000 (22:38 +0000)]
Address some "du" issues.

19 years agoDo not include hard-locale.h.
Paul Eggert [Thu, 23 Jun 2005 22:38:28 +0000 (22:38 +0000)]
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.

19 years ago(ls invocation): Fix typo: --time=use is
Paul Eggert [Thu, 23 Jun 2005 22:37:58 +0000 (22:37 +0000)]
(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.

19 years agodu's --last-time option is now --time.
Paul Eggert [Thu, 23 Jun 2005 22:37:33 +0000 (22:37 +0000)]
du's --last-time option is now --time.

19 years agoUse AC_LIBSOURCES and AC_LIBOBJ.
Jim Meyering [Thu, 23 Jun 2005 18:42:29 +0000 (18:42 +0000)]
Use AC_LIBSOURCES and AC_LIBOBJ.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 18:41:55 +0000 (18:41 +0000)]
*** empty log message ***

19 years ago(libcoreutils_a_SOURCES): Remove xstrtod.c and xstrtod.h.
Jim Meyering [Thu, 23 Jun 2005 18:41:48 +0000 (18:41 +0000)]
(libcoreutils_a_SOURCES): Remove xstrtod.c and xstrtod.h.

19 years agoUse AC_LIBSOURCES and AC_LIBOBJ.
Jim Meyering [Thu, 23 Jun 2005 18:41:17 +0000 (18:41 +0000)]
Use AC_LIBSOURCES and AC_LIBOBJ.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 16:56:58 +0000 (16:56 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Thu, 23 Jun 2005 16:34:18 +0000 (16:34 +0000)]
.

19 years ago(libcoreutils_a_SOURCES): Remove xreadlink.c and xreadlink.h.
Jim Meyering [Thu, 23 Jun 2005 16:24:32 +0000 (16:24 +0000)]
(libcoreutils_a_SOURCES): Remove xreadlink.c and xreadlink.h.

19 years agoUse AC_LIBSOURCES and AC_LIBOBJ.
Jim Meyering [Thu, 23 Jun 2005 16:24:06 +0000 (16:24 +0000)]
Use AC_LIBSOURCES and AC_LIBOBJ.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 15:35:09 +0000 (15:35 +0000)]
*** empty log message ***

19 years agowhoops: use puts, not fputs
Jim Meyering [Thu, 23 Jun 2005 15:34:52 +0000 (15:34 +0000)]
whoops: use puts, not fputs

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 15:28:07 +0000 (15:28 +0000)]
*** empty log message ***

19 years ago(time_format): Add `const' attribute.
Jim Meyering [Thu, 23 Jun 2005 15:27:55 +0000 (15:27 +0000)]
(time_format): Add `const' attribute.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 15:20:11 +0000 (15:20 +0000)]
*** empty log message ***

19 years ago(show_date): Use fputs rather than printf ("%s\n",.
Jim Meyering [Thu, 23 Jun 2005 15:20:05 +0000 (15:20 +0000)]
(show_date): Use fputs rather than printf ("%s\n",.

19 years ago(show_date): Add a FIXME comment.
Jim Meyering [Thu, 23 Jun 2005 15:18:40 +0000 (15:18 +0000)]
(show_date): Add a FIXME comment.

19 years ago(show_date): Rename local `time_format' so as not to
Jim Meyering [Thu, 23 Jun 2005 15:16:38 +0000 (15:16 +0000)]
(show_date): Rename local `time_format' so as not to
shadow the file-scoped global by that name.

19 years ago.
Jim Meyering [Thu, 23 Jun 2005 15:07:45 +0000 (15:07 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 15:00:35 +0000 (15:00 +0000)]
*** empty log message ***

19 years ago(du invocation): New options --last-time and --time-style.
Jim Meyering [Thu, 23 Jun 2005 15:00:29 +0000 (15:00 +0000)]
(du invocation): New options --last-time and --time-style.

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 14:47:27 +0000 (14:47 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 23 Jun 2005 14:41:27 +0000 (14:41 +0000)]
*** empty log message ***

19 years ago(usage): Tweak formatting to maintain more or less constant indentation.
Jim Meyering [Thu, 23 Jun 2005 14:40:00 +0000 (14:40 +0000)]
(usage): Tweak formatting to maintain more or less constant indentation.

19 years agoInclude hard-locale.h and strftime.h.
Jim Meyering [Thu, 23 Jun 2005 14:32:29 +0000 (14:32 +0000)]
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.