1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-07 18:26:35 +02:00
Commit Graph

3907 Commits

Author SHA1 Message Date
Paul Eggert 2e1b2830be Initial revision. 2004-11-25 19:19:38 +00:00
Paul Eggert 73d62d67d0 Imported from gnulib. 2004-11-25 19:16:12 +00:00
Jim Meyering c2a8340977 remove trailing blanks 2004-11-23 21:39:21 +00:00
Paul Eggert 8e9bd23013 Sync from gnulib. 2004-11-23 21:03:45 +00:00
Paul Eggert e595badf4e utimens upgrade to support futimes. 2004-11-23 20:42:54 +00:00
Paul Eggert 22ea135643 (__attribute__, ATTRIBUTE_UNUSED): New macros.
(futimens): New function, which uses futimes if available.
(futimens, utimens): Support timespec==NULL, with same semantics
as utime and utimens.
2004-11-23 20:42:13 +00:00
Paul Eggert 8dacb336d6 (futimens): New decl. 2004-11-23 20:41:51 +00:00
Jim Meyering d3c44694c2 add a comment 2004-11-23 11:02:03 +00:00
Jim Meyering 5035b7181d *** empty log message *** 2004-11-23 09:15:08 +00:00
Jim Meyering 7080ab9623 Revert last change, since it seems EBADF is always defined. 2004-11-23 09:15:05 +00:00
Jim Meyering 622e156501 *** empty log message *** 2004-11-22 14:24:11 +00:00
Jim Meyering b2a9a7f986 (EBADF): Fail with `#error ...' if it's not defined,
asking the user to report the problem.
2004-11-22 14:24:04 +00:00
Paul Eggert 0884570c4e Sync from gnulib. 2004-11-17 23:09:12 +00:00
Paul Eggert d7209a2f7c * xgetcwd.c: Work around Solaris 9 bug. 2004-11-17 03:42:45 +00:00
Paul Eggert 2b88597a04 Include <limits.h>, for PATH_MAX.
(xgetcwd): Set errno correctly when failing.
Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
the failure is actually due to a PATH_MAX problem.
2004-11-17 03:41:16 +00:00
Paul Eggert 99e10817b0 Merge from gnulib. 2004-11-17 01:59:29 +00:00
Paul Eggert b209e757d8 Recent checkins for getopt, canon-host. 2004-11-17 01:07:07 +00:00
Paul Eggert 2fb1ffff55 (_getopt_internal, _getopt_internal_r,
_getopt_long_r, _getopt_long_only_r): argv is char **,
not char *__getopt_argv_const *.
2004-11-17 01:06:02 +00:00
Paul Eggert 6fab3fdec9 (getopt_long, _getopt_long_r, getopt_long_only,
_getopt_long_only_r): Argv is now char**, not char *__getopt_argv_const*.
2004-11-17 01:04:52 +00:00
Paul Eggert b7a4adc026 (getopt_long, _getopt_long_r, getopt_long_only,
_getopt_long_only_r): Argv is now char **, not char *__getopt_argv_const*.
2004-11-17 01:03:54 +00:00
Paul Eggert b8790e71df (_getopt_initialize, _getopt_internal_r, _getopt_internal):
New arg POSIXLY_CORRECT.  All callers changed.
(getopt): Argv is now char * const *, as per standard.
(_getopt_internal_r, _getopt_internal): Argv is now char **,
not char *__getopt_argv_const *.
2004-11-17 01:02:47 +00:00
Paul Eggert 4ec053b59d Include "strdup.h".
(canon_host): Use getaddrinfo if available, so that IPv6 works.
Use strdup instead of malloc/strcpy to duplicate strings.
2004-11-16 20:38:33 +00:00
Paul Eggert 871422ab9d * getdate.y (tORDINAL): New token. 2004-11-16 08:18:49 +00:00
Paul Eggert 1a126a5899 (tORDINAL): New token.
(day, relunit): Allow it for relative times.
(relative_time_table): Use tORDINAL for ordinals.
2004-11-16 08:16:10 +00:00
Paul Eggert 13ebfcf5c2 Support for human_space_before_unit. 2004-11-16 07:54:07 +00:00
Paul Eggert 7ce1f197f3 (human_readable): Support human_space_before_unit. 2004-11-16 07:53:08 +00:00
Paul Eggert c49c8d6fee (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
(human_space_before_unit): New constant.
2004-11-16 07:51:59 +00:00
Jim Meyering e9dfe6f0d5 *** empty log message *** 2004-11-14 13:55:17 +00:00
Jim Meyering fa83bf0b37 . 2004-11-14 00:20:33 +00:00
Jim Meyering f094ac4413 (close_stdout): Don't fail just because stdout was
closed initially, since some programs don't write to stdout in the
normal course of operation (other than --version and --help), and
we don't want this function to make e.g. `cp 1 2 >&-' fail.
But do fail if it was closed and someone has tried to write to it.
E.g., printf 'foo' >&-
2004-11-14 00:20:01 +00:00
Jim Meyering d417dd764f (libfetish_a_SOURCES): Add __fpending.h. 2004-11-14 00:19:28 +00:00
Jim Meyering 9406daed19 Restore these files. They're useful after all. 2004-11-14 00:19:01 +00:00
Paul Eggert 3c530e63c5 Sync from gnulib and regenerate. 2004-11-12 06:00:01 +00:00
Jim Meyering e5839b5b28 remove trailing blanks 2004-11-11 09:19:42 +00:00
Paul Eggert 9d8ce0f399 Sync from gnulib. 2004-11-11 06:07:57 +00:00
Paul Eggert d2b4386d29 Sync from gnulib. 2004-11-11 05:02:14 +00:00
Paul Eggert 443e4a9026 Sync from gnulib. 2004-11-09 20:54:43 +00:00
Jim Meyering 7d354a1286 . 2004-11-06 22:46:44 +00:00
Jim Meyering eee82e1382 remove now-unused files 2004-11-06 22:46:21 +00:00
Jim Meyering 569ae8c54b . 2004-11-06 22:45:58 +00:00
Jim Meyering 37edf32068 (libfetish_a_SOURCES): Remove __fpending.h, now that it's no longer used. 2004-11-06 22:45:47 +00:00
Jim Meyering 078c89bb76 *** empty log message *** 2004-11-06 22:37:28 +00:00
Jim Meyering d77d7fe158 Ensure that no close failure goes unreported.
(close_stdout): Always close stdout.  I.e., don't
return early when it seems there's nothing to flush.
Don't include __fpending.h.
2004-11-06 22:37:23 +00:00
Paul Eggert 5312181e5b Regenerate. 2004-11-04 00:02:19 +00:00
Jim Meyering 0753839f7a remove trailing spaces 2004-11-03 23:31:20 +00:00
Paul Eggert 3b39a3022a Log recent getdate-etc. related changes. 2004-11-03 23:25:32 +00:00
Paul Eggert 4b738e2f5d Sync from gnulib. 2004-11-03 23:15:44 +00:00
Paul Eggert 61619a55a5 (libfetish_a_SOURCES): Remove setenv.c. 2004-11-03 23:05:47 +00:00
Jim Meyering 36ed808afb . 2004-11-03 20:54:10 +00:00
Jim Meyering fcd1aefe35 . 2004-11-03 20:53:32 +00:00