Jim Meyering [Fri, 19 Aug 2005 09:21:57 +0000 (09:21 +0000)]
Make the %s format (seconds since the epoch) work for a negative
number and when used with a zero-padded field width, e.g. %015s.
(my_strftime): Move the `do_number_sign_and_padding'
label so that it precedes the code to set `digits'. Otherwise,
%0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
print `00-22'. Now, it prints `-0022', as it should.
Paul Eggert [Tue, 16 Aug 2005 18:45:50 +0000 (18:45 +0000)]
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
and gl_GETOPT are both invoked via different paths (as happens
with GNU tar CVS because it uses both argp and getopt), the former
wins.
Paul Eggert [Tue, 16 Aug 2005 00:07:03 +0000 (00:07 +0000)]
* config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
Add comments for each pending glibc patch.
* lib/regex.h (__restrict_arr): Don't define to __restrict if
__cplusplus is defined.
Jim Meyering [Sun, 14 Aug 2005 14:45:49 +0000 (14:45 +0000)]
(setup_dir, enter_dir, leave_dir, free_dir):
Use the hash-table-based cycle-detection code not just when
FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
Reported by James Youngman in
<http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
Jim Meyering [Sun, 14 Aug 2005 14:45:16 +0000 (14:45 +0000)]
(fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/.
This lets us compile with -DFTS_DEBUG, once again.
[! _LIBC]: Include "lstat.h" rather than rolling our own.
(fd_safer): Remove decl.
Include fcntl--.h rather than unistd-safer.h
(fts_safe_changedir): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
Simon Josefsson [Fri, 12 Aug 2005 09:16:15 +0000 (09:16 +0000)]
* MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
readline, getdelim and check_version.
(Support for systems lacking ISO C 99: Sizes of integer types):
Add size_max.
Paul Eggert [Tue, 26 Jul 2005 21:55:31 +0000 (21:55 +0000)]
Add support to getopt for Emacs, which doesn't use LIBOBJS in the
normal way.
* getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
(gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
(gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
(gl_GETOPT): Use the new macros. Most of the implementation
is moved to the new macros. This is for programs like Emacs
that don't want all the functionality of gl_GETOPT.
Paul Eggert [Thu, 14 Jul 2005 22:15:14 +0000 (22:15 +0000)]
* modules/argp (Depends-on): Remove unlocked-io.
* m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
Instead, test for *_unlocked function declarations directly.
Paul Eggert [Mon, 11 Jul 2005 21:58:02 +0000 (21:58 +0000)]
* version-etc-fsf.c (version_etc_copyright): Parameterize the
copyright symbol and the year.
* version-etc.c (COPYRIGHT_YEAR): New constant.
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.
Paul Eggert [Fri, 8 Jul 2005 17:57:01 +0000 (17:57 +0000)]
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
now.
* lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t. Remove now-unnecessary cast.
Paul Eggert [Fri, 8 Jul 2005 06:51:24 +0000 (06:51 +0000)]
* m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
* m4/same.m4 (gl_SAME): Likewise.
Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
Paul Eggert [Thu, 7 Jul 2005 08:08:39 +0000 (08:08 +0000)]
* modules/regex (Files): Add lib/regex_internal.c,
lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
(Depends-on): Add extensions.
(Makefile.am): Remove lib_SOURCES; now done by m4 code.
* config/srclist.txt: Add regcomp.c, regex.c, regex.h, regex_internal.c,
regexec.c.
Add regex_internal.h too, but as a comment, since the libc version
is currently broken in gnulib mode.
* lib/regex.c, lib/regex.h: Sync from libc.
* lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h, lib/regexec.c:
New files, synced from libc, except that regex_internal.h
currently has a small porting fix.
* m4/regex.m4: Adjust to new libc regex implementation.
(gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
all the .c and .h parts of (the new) regex.
Quote the m4 stuff better.
Check for RE_ICASE bug of old gnulib.
Check for REG_STARTEND of recent libc.
Rename local variables from jm_* to gl_*.
Quote operand of "test -f".
Say "recent enough" version of libc, not "version 2".
(gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
prerequisite module. Remove AC_HEADER_STDC; no longer needed.
Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
Remove check for btowc, isascii.
Require AM_LANGINFO_CODESET.