1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 02:10:57 +02:00
Commit Graph

3987 Commits

Author SHA1 Message Date
Paul Eggert
96742fffc4 Regenerate. 2004-12-20 08:02:53 +00:00
Paul Eggert
c03b93f75a * c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD. 2004-12-20 07:57:26 +00:00
Paul Eggert
1606c6584c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD. 2004-12-20 07:57:12 +00:00
Paul Eggert
7bb6fb4250 Fix alloca problems with getdate. 2004-12-19 13:42:55 +00:00
Paul Eggert
13389908dd Include <alloca.h> only if HAVE_ALLOCA.
(YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
(YYMAXDEPTH): New macro.
2004-12-19 13:42:26 +00:00
Paul Eggert
e4561f4baf Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Remove now-obsolete comment about AIX.
2004-12-19 13:42:03 +00:00
Jim Meyering
ec61e1b8fe *** empty log message *** 2004-12-11 11:21:48 +00:00
Jim Meyering
19c959bd50 adjust wording of #error message 2004-12-11 11:19:27 +00:00
Jim Meyering
c3ccae892f Fail via #error if PATH_MAX is not defined, since
this file is now compiled only on systems that define PATH_MAX.
2004-12-11 11:18:53 +00:00
Paul Eggert
9d683a1b65 Add support for time zones like +HH:MM and UTC+HH:MM. 2004-12-08 22:26:37 +00:00
Paul Eggert
50c9e0509c (textint): New member "negative".
(time_zone_hhmm): New function.
Expect 14 shift-reduce conflicts, not 13.
(o_colon_minutes): New rule.
(time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
(yylex): Set the "negative" member of signed numbers.
2004-12-08 22:26:07 +00:00
Jim Meyering
97af685a66 . 2004-12-06 11:52:00 +00:00
Jim Meyering
ff2b33dcae *** empty log message *** 2004-12-06 11:50:04 +00:00
Jim Meyering
d4579825bc (libfetish_a_SOURCES): Begin removing .c and .h file names, as they
are added to AC_LIBSOURCES directives in the corresponding m4/*.m4 files.
2004-12-06 10:10:19 +00:00
Jim Meyering
b272341d19 . 2004-12-05 23:15:01 +00:00
Jim Meyering
39a1adb375 *** empty log message *** 2004-12-05 21:11:56 +00:00
Jim Meyering
22dd0ce5f2 (unit-test): Depend on t-fpending.
Make the target .PHONY.
2004-12-05 21:11:48 +00:00
Jim Meyering
9390aecd60 *** empty log message *** 2004-12-05 20:17:08 +00:00
Jim Meyering
35dc3847ac . 2004-12-05 20:03:06 +00:00
Jim Meyering
f31e5e6def *** empty log message *** 2004-12-05 20:02:28 +00:00
Jim Meyering
89647b7451 (LDADD): Define. 2004-12-05 20:02:23 +00:00
Jim Meyering
55ec26651c . 2004-12-05 19:50:46 +00:00
Jim Meyering
fbd9c5dc91 *** empty log message *** 2004-12-05 19:38:32 +00:00
Jim Meyering
8bd2bc6d00 *** empty log message *** 2004-12-05 19:37:56 +00:00
Jim Meyering
334c1b1801 (unit-test): New target.
(check): Depend on it.
(noinst_PROGRAMS): Define.
2004-12-05 19:37:49 +00:00
Jim Meyering
ff13a286c7 Test the __fpending function.
This ensures that if there is an error in the definition of the
PENDING_OUTPUT_N_BYTES expression, we'll find about it right away;
that value is used only in the rare event that close_stdout's
fclose fails with EBADF.
2004-12-05 19:28:15 +00:00
Jim Meyering
a2b300f156 revert to 1.8, now that we test the offending
condition externally (via new t-fpending.c program)
2004-12-05 19:27:47 +00:00
Jim Meyering
9df080cfc5 *** empty log message *** 2004-12-05 18:53:40 +00:00
Jim Meyering
2edd4a3769 *** empty log message *** 2004-12-05 18:52:37 +00:00
Jim Meyering
210212143b Include <stdlib.h>.
(__fpending): Abort if PENDING_OUTPUT_N_BYTES is negative.
This ensures that if there is an error in the definition of the
PENDING_OUTPUT_N_BYTES expression, we'll find about it right away;
this value is used only in the rare event that close_stdout's
fclose fails with EBADF.
2004-12-05 18:52:33 +00:00
Paul Eggert
fcf37d8842 Recent changes to save-cwd, openat. 2004-12-03 07:13:31 +00:00
Paul Eggert
f125837030 Import from gnulib. 2004-12-03 07:10:19 +00:00
Paul Eggert
dddbfd198a Add copyright and authorship notice.
(AT_FDCWD): Use the same value Solaris 9 uses.
2004-12-03 06:44:30 +00:00
Paul Eggert
d2117d918c Include "openat.h" before other include files.
Include "exitfail.h".
(openat): Remove #undef; no longer needed now that we include openat.h first.
(rpl_openat): Add comment about mode_t promotion.  Simplify
code a bit by moving initializations around.  Use exit_failure
rather than EXIT_FAILURE.
2004-12-03 06:43:59 +00:00
Paul Eggert
f2173447ba save-cwd.c: Include "save-cwd.h" before other include files.
(O_DIRECTORY): Remove; not needed here, since "." must be
a directory.  All uses removed.
(save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
universal on Suns, and we also need to test for IRIX.
Revamp code to use 'if' rather than '#if'.
Avoid unnecessary comparison of cwd->desc to 0.
2004-12-03 06:25:03 +00:00
Paul Eggert
a7c9d8dae8 Assume setlocale, locale.h, and localeconv exist and work. 2004-12-02 06:57:05 +00:00
Paul Eggert
08da1bb439 Assume <locale.h> exists.
(human_readable): Assume localeconv exists.
2004-12-02 06:52:10 +00:00
Paul Eggert
2dea4ec8b0 Assume <locale.h> exists.
Include "strdup.h".
(GLIBC_VERSION): New macro.
(hard_locale): Assume setlocale exists.
Rewrite to avoid #ifdef.
Use strdup rather than malloc + strcpy.
2004-12-02 06:51:46 +00:00
Paul Eggert
02496d03b5 * getcwd.c: Use system getcwd first, if appropriate. 2004-12-01 07:13:35 +00:00
Paul Eggert
3b8fa2ba33 (is_ENAMETOOLONG): New macro.
(__getcwd.c): Don't restore errno; glibc doesn't.
[HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
first, falling back to our code only if its results look suspicious.
Ensure that the resulting buffer is only as large as necessary.
2004-12-01 07:12:14 +00:00
Paul Eggert
52a0364803 Go back to including <sys/types.h> rather than <stddef.h>; this is
needed on OpenBSD since its <utmp.h> needs time_t without making sure
that time_t is defined.
2004-12-01 07:07:38 +00:00
Paul Eggert
525e6c12c3 Make readutmp more consistent among its client code. 2004-11-30 21:41:31 +00:00
Paul Eggert
fa60e4cb6f Don't include <sys/types.h>, <errno.h>,
<sys/param.h>, <time.h>; not needed to establish interface.
Include <stddef.h> instead.
(errno): Remove decl.
(HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
(UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
2004-11-30 21:39:46 +00:00
Paul Eggert
8f7cca3d72 Include readutmp.h first.
Include <errno.h>, since readutmp.h no longer does that.
2004-11-30 21:39:26 +00:00
Jim Meyering
943f676c01 . 2004-11-30 14:48:02 +00:00
Jim Meyering
e9725a701a renamed to chdir-long.[ch] 2004-11-30 14:47:47 +00:00
Jim Meyering
a4304d4187 *** empty log message *** 2004-11-30 14:47:16 +00:00
Jim Meyering
de39e47a40 (libfetish_a_SOURCES): Reflect name changes: chdir.[ch] -> chdir-long.[ch] 2004-11-30 14:47:08 +00:00
Jim Meyering
e7acb8d8dd Include chdir-long.h rather than chdir.h.
(restore_cwd): Use chdir_long, not chdir.
2004-11-30 14:46:25 +00:00
Jim Meyering
34a8030d36 *** empty log message *** 2004-11-30 14:46:09 +00:00