unistr/u*-stpncpy: Fix the return value.
[gnulib.git] / ChangeLog
1 2010-01-10  Bruno Haible  <bruno@clisp.org>
2
3         unistr/u*-stpncpy: Fix the return value.
4         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
5         description of the return value consistent with stpncpy in glibc.
6         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7         written non-NUL unit.
8
9 2010-01-10  Bruno Haible  <bruno@clisp.org>
10
11         unistr/u*-next: Add missing dependencies.
12         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
15
16 2010-01-10  Bruno Haible  <bruno@clisp.org>
17
18         unistr/u8-mbsnlen: Fix return value for incomplete character.
19         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20         u8_mblen.
21         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22         Remove unistr/u8-mblen.
23         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24         u16_mblen.
25         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26         Remove unistr/u16-mblen.
27
28 2010-01-10  Bruno Haible  <bruno@clisp.org>
29
30         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32         Reported by Brian Gough <bjg@gnu.org> and
33         Chris Clayton <chris2553@googlemail.com> via
34         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35
36 2010-01-09  Bruno Haible  <bruno@clisp.org>
37
38         unistr/u16-to-u32: Reject invalid input.
39         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
40         u16_mbtouc.
41         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
42         Remove unistr/u16-mbtouc.
43
44         unistr/u16-to-u8: Reject invalid input.
45         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
46         u16_mbtouc.
47         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
48         Remove unistr/u16-mbtouc.
49
50         unistr/u8-to-u32: Reject invalid input.
51         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
52         u8_mbtouc.
53         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
54         Remove unistr/u8-mbtouc.
55
56         unistr/u8-to-u16: Reject invalid input.
57         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
58         u8_mbtouc.
59         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
60         Remove unistr/u8-mbtouc.
61
62 2010-01-09  Bruno Haible  <bruno@clisp.org>
63
64         Tests for module 'getlogin'.
65         * modules/getlogin-tests: New file.
66         * tests/test-getlogin.c: New file.
67
68         New module 'getlogin'.
69         * lib/unistd.in.h (getlogin): New declaration.
70         * lib/getlogin.c: New file.
71         * m4/getlogin.m4: New file.
72         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73         HAVE_GETLOGIN.
74         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
75         HAVE_GETLOGIN.
76         * modules/getlogin: New file.
77         * doc/posix-functions/getlogin.texi: Mention the new module.
78         Reported by John W. Eaton <jwe@gnu.org>.
79
80 2010-01-09  Bruno Haible  <bruno@clisp.org>
81
82         getlogin_r: Support for native Windows.
83         * lib/getlogin_r.c: Include <windows.h>
84         (getlogin_r): Implement for native Windows.
85         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
86         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
87         via John W. Eaton <jwe@gnu.org>.
88
89 2010-01-09  Bruno Haible  <bruno@clisp.org>
90
91         getlogin_r: Small fixes.
92         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
93         succeeds.
94         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
95         before testing whether getlogin_r is declared. No need to set
96         HAVE_DECL_GETLOGIN_R to 1.
97         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
98
99 2010-01-09  Bruno Haible  <bruno@clisp.org>
100
101         * lib/unistd.in.h (getlogin_r): Add comment.
102
103 2010-01-09  Bruno Haible  <bruno@clisp.org>
104
105         Tests for module 'getlogin_r'.
106         * modules/getlogin_r-tests: New file.
107         * tests/test-getlogin_r.c: New file.
108
109 2010-01-09  Jim Meyering  <meyering@redhat.com>
110
111         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
112         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
113         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
114
115 2010-01-08  Simon Josefsson  <simon@josefsson.org>
116
117         * lib/dup2.c (rpl_dup2): Improve comment.
118
119 2010-01-08  Eric Blake  <ebb9@byu.net>
120
121         maint.mk: allow packages to add makefile @@ exceptions
122         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
123         (sc_makefile_check): Rename...
124         (sc_makefile_at_at_check): ...to this, and use hook.
125
126         dup2: work around mingw bug
127         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
128         Reported by Simon Josefsson.
129
130 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
131
132         glob: Fix C++ compilation.
133         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
134         C++.
135
136 2010-01-07  Bruno Haible  <bruno@clisp.org>
137
138         Fix indentation of wctype.in.h, broken since 2007-01-06.
139         * lib/wctype.in.h: Fix indentation of preprocessor directives.
140
141 2010-01-07  Bruno Haible  <bruno@clisp.org>
142
143         mbslen: Avoid collision with system function.
144         * lib/string.in.h [MirBSD]: Include <wchar.h>.
145         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
146         * m4/mbslen.m4: New file.
147         * modules/mbslen (Files): Add it.
148         (configure.ac): Invoke gl_MBSLEN.
149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
150         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
151         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
152         via Ian Beckwith <ianb@erislabs.net>.
153
154 2010-01-07  Bruno Haible  <bruno@clisp.org>
155
156         dirent: Document the last fix.
157         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
158
159 2010-01-07  Bruno Haible  <bruno@clisp.org>
160
161         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
162         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
163         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
164         va_list are defined.
165         * doc/posix-headers/stdio.texi: Document the bug of missing types.
166         Reported by Eric Blake.
167
168 2010-01-07  Bruno Haible  <bruno@clisp.org>
169
170         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
171         * modules/xlist (Depends-on): Add 'list',
172         * modules/xoset (Depends-on): Add 'oset'.
173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
174
175 2010-01-07  Bruno Haible  <bruno@clisp.org>
176
177         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
178         * doc/posix-functions/strncasecmp.texi: Likewise.
179
180 2010-01-07  Bruno Haible  <bruno@clisp.org>
181
182         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
183
184 2010-01-07  John W. Eaton  <jwe@octave.org>
185
186         wctype: allow C++ use
187         * lib/wctype.in.h: Add extern "C" block for C++.
188
189 2010-01-06  Eric Blake  <ebb9@byu.net>
190
191         maint.mk: detect incorrect GFDL usage
192         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
193
194 2010-01-06  Jim Meyering  <meyering@redhat.com>
195         and Eric Blake  <ebb9@byu.net>
196
197         maint.mk: ignore multi-line copyright in NEWS
198         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
199
200 2010-01-06  Eric Blake  <ebb9@byu.net>
201
202         select: add missing dependency
203         * modules/select-tests (Depends-on): Move sockets dependency...
204         * modules/select (Depends-on): ...here.
205         Reported by Ian Beckwith.
206
207         doc: regenerate INSTALL
208         * doc/INSTALL: Reflect recent autoconf update.
209         * doc/INSTALL.ISO: Likewise.
210         * doc/INSTALL.UTF-8: Likewise.
211
212         pread: fix compilation on glibc
213         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
214         Reported by Ralf Wildenhues.
215
216         dirent: fix test failure
217         * lib/dirent.in.h (includes): Guarantee ino_t.
218         Reported by Ralf Wildenhues.
219
220 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
221
222         linkat, renameat: avoid bad free
223         * lib/at-func2.c (at_func2): Fix typo.
224         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
225
226 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
227
228         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
229         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
230         to avoid failure of symlink test later.
231
232 2010-01-06  Eric Blake  <ebb9@byu.net>
233
234         stdio, unistd: guarantee ssize_t
235         * lib/unistd.in.h (includes): Ensure that types required by POSIX
236         2008 are exposed when needed.
237         * lib/stdio.in.h (includes): Likewise.
238         Reported by Ralf Wildenhues.
239
240 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
241
242         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
243         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
244         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
245
246 2010-01-06  Jim Meyering  <meyering@redhat.com>
247
248         readtokens: this module *does* require xalloc.h
249         It uses only functions that were omitted by the old syntax-check rule.
250         * lib/readtokens.c: Include "xalloc.h" once again.
251         * modules/readtokens (Depends-on): Add xalloc.
252         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
253
254 2010-01-05  Eric Blake  <ebb9@byu.net>
255
256         maint: support 'make announcement' from a VPATH build
257         * top/maint.mk (announcement): Look for correct NEWS file.
258
259 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
260
261         utimens (fdutimens): ignore a negative FD, per contract
262         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
263         when we have a valid file descriptor.  Otherwise, using a brand
264         new glibc (with just-patched futimens that now fails with EBADF)
265         would cause this function to fail with ENOSYS.
266         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
267         See also http://bugzilla.redhat.com/552320.
268
269 2010-01-05  Eric Blake  <ebb9@byu.net>
270
271         strcase: document what it provides
272         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
273         gnulib module.
274         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
275         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
276
277 2010-01-05  Jim Meyering  <meyering@redhat.com>
278
279         maint: remove useless inclusions of "xalloc.h"
280         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
281         * lib/readtokens.c: Likewise.
282         * lib/same.c: Likewise.
283         * modules/getloadavg (Depends-on): Remove xalloc.
284         * modules/readtokens: Likewise.
285         * modules/same: Likewise.
286
287         maint.mk: include 4 more function names in alloca.h-checking regexp
288         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
289         regexp.  Before, we would give a false-positive (saying alloca.h
290         is included unnecessarily) when the only uses involved omitted symbols.
291
292         xalloc.h: use consistent formatting
293         * lib/xalloc.h: Move declarations to start in the first column.
294
295 2010-01-05  Eric Blake  <ebb9@byu.net>
296
297         mkdir: avoid xalloc
298         * lib/mkdir.c (includes): Drop unused header.
299         Reported by John W. Eaton.
300
301 2010-01-04  Jim Meyering  <meyering@redhat.com>
302
303         nl_langinfo: avoid configure-time syntax error
304         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
305         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
306         the empty string.  Don't let that provoke a shell syntax error.
307
308         regcomp, regexec, fnmatch: avoid array bounds read error
309         * lib/regcomp.c (build_equiv_class): From glibc:
310         Use only the low 24 bits of a findidx return value as an index
311         into the weights array.  Patch by Ulrich Drepper:
312         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
313         * lib/regexec.c (check_node_accept_bytes): Likewise.
314         * lib/fnmatch_loop.c (FCT): Likewise.
315
316         regcomp: skip collseq lookup when there are no rules
317         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
318         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
319
320         regcomp: recognize ill-formed { } expressions
321         * lib/regcomp.c (parse_dup_op): From glibc:
322         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
323
324         regcomp: fix typo in comment
325         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
326         s/satisfy/satisfies/.
327
328         regcomp: sync from glibc: remove dead store
329         * lib/regcomp.c (duplicate_node_closure): Remove useless
330         search_duplicated_node call and dead store.
331
332         regcomp: sync from glibc; always use nl_langinfo
333         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
334         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
335         * modules/regex (Depends-on): Add nl_langinfo.
336
337 2010-01-04  Eric Blake  <ebb9@byu.net>
338
339         fdopendir: fix configure test
340         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
341
342 2010-01-01  Bruno Haible  <bruno@clisp.org>
343
344         wchar: Remove unused configure check.
345         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
346
347 2010-01-01  Eric Blake  <ebb9@byu.net>
348
349         headers: make check of system header explicit
350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
351         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
352         ourselves.
353         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
356         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
357         internals.
358         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
359         missing.
360         Suggested by Bruno Haible.
361
362 2010-01-01  Jim Meyering  <meyering@redhat.com>
363
364         ChangeLog: tweak to eliminate unnecessary copyright line
365         * ChangeLog: Remove a copyright line that was mistakenly updated
366         by today's update-copyright run.  Reported by Eric Blake.
367
368         test-update-copyright: don't let envvar setting cause test failure
369         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
370
371 2010-01-01  Bruno Haible  <bruno@clisp.org>
372
373         localename: Avoid gcc warning.
374         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
375         function if it is not used.
376
377 2010-01-01  Jim Meyering  <meyering@redhat.com>
378
379         update nearly all FSF copyright year lists to include 2010
380         Use the same procedure as for 2009, outlined in
381         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
382
383         version-etc: set COPYRIGHT_YEAR to 2010
384         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
385
386 2009-12-31  Eric Blake  <ebb9@byu.net>
387
388         doc: correct availability of cygwin 1.5.x getopt
389         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
390         variables.
391         * doc/posix-functions/opterr.texi (opterr): Likewise.
392         * doc/posix-functions/optind.texi (optind): Likewise.
393         * doc/posix-functions/optopt.texi (optopt): Likewise.
394         * doc/posix-functions/tzname.texi (tzname): Likewise.
395
396         openat: update maintainer
397         * modules/openat (Maintainer): Add myself.
398
399         utimens: avoid shadowing warning
400         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
401         buffers into one, to avoid shadowing, as well as avoiding a
402         redundant stat.
403         Reported by Jim Meyering.
404
405         test-dup2: avoid compiler warning
406         * tests/test-dup2.c (is_inheritable): Only define if used.
407
408 2010-01-01  Bruno Haible  <bruno@clisp.org>
409
410         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
411         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
412         defined, use wctomb instead of wcrtomb.
413
414 2010-01-01  Bruno Haible  <bruno@clisp.org>
415
416         iconv: Reject native Solaris iconv.
417         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
418         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
419
420 2009-12-31  Bruno Haible  <bruno@clisp.org>
421
422         * tests/test-signal.c (main): Remove test of 'SIG'.
423
424 2009-12-31  Bruno Haible  <bruno@clisp.org>
425
426         spawn: Fix incomplete fix.
427         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
428         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
429         warnings for GNULIB_POSIXCHECK again.
430         Reported by Eric Blake.
431
432 2009-12-31  Bruno Haible  <bruno@clisp.org>
433
434         Avoid namespace pollution on glibc systems.
435         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
436         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
437         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
438         glibc systems.
439
440 2009-12-31  Bruno Haible  <bruno@clisp.org>
441
442         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
443         (gl_REPLACE_WCHAR_H): Turn into a no-op.
444         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
445         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
446         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
447         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
448         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
449
450 2009-12-31  Bruno Haible  <bruno@clisp.org>
451
452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
453         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
454         afterwards.
455
456 2009-12-31  Bruno Haible  <bruno@clisp.org>
457
458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
459         SYS_UTSNAME_H.
460
461 2009-12-31  Bruno Haible  <bruno@clisp.org>
462
463         spawn: Fix misapplied patch.
464         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
465         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
466         warnings for GNULIB_POSIXCHECK.
467
468 2009-12-31  Bruno Haible  <bruno@clisp.org>
469
470         times: Update after sys_times changed.
471         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
472         * modules/times (Files): Add it.
473         (configure.ac): Invoke gl_FUNC_TIMES.
474
475 2009-12-31  Bruno Haible  <bruno@clisp.org>
476
477         Use AC_C_INLINE where necessary.
478         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
479         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
481         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
482         * m4/mbfile.m4 (gl_MBFILE): Likewise.
483         * m4/mbiter.m4 (gl_MBITER): Likewise.
484         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
485         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
486         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
487         * modules/u64 (configure.ac): Likewise.
488
489 2009-12-31  Bruno Haible  <bruno@clisp.org>
490
491         Use AC_C_INLINE instead of module 'inline' where possible.
492         * modules/inline (Description): Clarify purpose.
493         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
494         * modules/count-one-bits (Depends-on): Remove inline.
495         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
496         * modules/openat (Depends-on): Remove inline.
497         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
498         instead of depending on module 'inline'.
499         * modules/filevercmp (Depends-on, configure.ac): Likewise.
500         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
501         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
502         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
503         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
504         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
505         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
506         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
507         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
508         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
509         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
510         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
511         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
512         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
513         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
514         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
515         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
516         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
517         Likewise.
518         * modules/unictype/property-ascii-hex-digit (Depends-on,
519         configure.ac): Likewise.
520         * modules/unictype/property-bidi-arabic-digit (Depends-on,
521         configure.ac): Likewise.
522         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
523         configure.ac): Likewise.
524         * modules/unictype/property-bidi-block-separator (Depends-on,
525         configure.ac): Likewise.
526         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
527         configure.ac): Likewise.
528         * modules/unictype/property-bidi-common-separator (Depends-on,
529         configure.ac): Likewise.
530         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
531         Likewise.
532         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
533         configure.ac): Likewise.
534         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
535         configure.ac): Likewise.
536         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
537         configure.ac): Likewise.
538         * modules/unictype/property-bidi-european-digit (Depends-on,
539         configure.ac): Likewise.
540         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
541         configure.ac): Likewise.
542         * modules/unictype/property-bidi-left-to-right (Depends-on,
543         configure.ac): Likewise.
544         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
545         configure.ac): Likewise.
546         * modules/unictype/property-bidi-other-neutral (Depends-on,
547         configure.ac): Likewise.
548         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
549         Likewise.
550         * modules/unictype/property-bidi-segment-separator (Depends-on,
551         configure.ac): Likewise.
552         * modules/unictype/property-bidi-whitespace (Depends-on,
553         configure.ac): Likewise.
554         * modules/unictype/property-combining (Depends-on, configure.ac):
555         Likewise.
556         * modules/unictype/property-composite (Depends-on, configure.ac):
557         Likewise.
558         * modules/unictype/property-currency-symbol (Depends-on,
559         configure.ac): Likewise.
560         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
561         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
562         Likewise.
563         * modules/unictype/property-default-ignorable-code-point (Depends-on,
564         configure.ac): Likewise.
565         * modules/unictype/property-deprecated (Depends-on, configure.ac):
566         Likewise.
567         * modules/unictype/property-diacritic (Depends-on, configure.ac):
568         Likewise.
569         * modules/unictype/property-extender (Depends-on, configure.ac):
570         Likewise.
571         * modules/unictype/property-format-control (Depends-on, configure.ac):
572         Likewise.
573         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
574         Likewise.
575         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
576         Likewise.
577         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
578         Likewise.
579         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
580         Likewise.
581         * modules/unictype/property-hyphen (Depends-on, configure.ac):
582         Likewise.
583         * modules/unictype/property-id-continue (Depends-on, configure.ac):
584         Likewise.
585         * modules/unictype/property-id-start (Depends-on, configure.ac):
586         Likewise.
587         * modules/unictype/property-ideographic (Depends-on, configure.ac):
588         Likewise.
589         * modules/unictype/property-ids-binary-operator (Depends-on,
590         configure.ac): Likewise.
591         * modules/unictype/property-ids-trinary-operator (Depends-on,
592         configure.ac): Likewise.
593         * modules/unictype/property-ignorable-control (Depends-on,
594         configure.ac): Likewise.
595         * modules/unictype/property-iso-control (Depends-on, configure.ac):
596         Likewise.
597         * modules/unictype/property-join-control (Depends-on, configure.ac):
598         Likewise.
599         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
600         Likewise.
601         * modules/unictype/property-line-separator (Depends-on, configure.ac):
602         Likewise.
603         * modules/unictype/property-logical-order-exception (Depends-on,
604         configure.ac): Likewise.
605         * modules/unictype/property-lowercase (Depends-on, configure.ac):
606         Likewise.
607         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
608         * modules/unictype/property-non-break (Depends-on, configure.ac):
609         Likewise.
610         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
611         Likewise.
612         * modules/unictype/property-numeric (Depends-on, configure.ac):
613         Likewise.
614         * modules/unictype/property-other-alphabetic (Depends-on,
615         configure.ac): Likewise.
616         * modules/unictype/property-other-default-ignorable-code-point
617         (Depends-on, configure.ac): Likewise.
618         * modules/unictype/property-other-grapheme-extend (Depends-on,
619         configure.ac): Likewise.
620         * modules/unictype/property-other-id-continue (Depends-on,
621         configure.ac): Likewise.
622         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
623         Likewise.
624         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
625         Likewise.
626         * modules/unictype/property-other-math (Depends-on, configure.ac):
627         Likewise.
628         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
629         Likewise.
630         * modules/unictype/property-paired-punctuation (Depends-on,
631         configure.ac): Likewise.
632         * modules/unictype/property-paragraph-separator (Depends-on,
633         configure.ac): Likewise.
634         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
635         Likewise.
636         * modules/unictype/property-pattern-white-space (Depends-on,
637         configure.ac): Likewise.
638         * modules/unictype/property-private-use (Depends-on, configure.ac):
639         Likewise.
640         * modules/unictype/property-punctuation (Depends-on, configure.ac):
641         Likewise.
642         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
643         Likewise.
644         * modules/unictype/property-radical (Depends-on, configure.ac):
645         Likewise.
646         * modules/unictype/property-sentence-terminal (Depends-on,
647         configure.ac): Likewise.
648         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
649         Likewise.
650         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
651         * modules/unictype/property-terminal-punctuation (Depends-on,
652         configure.ac): Likewise.
653         * modules/unictype/property-titlecase (Depends-on, configure.ac):
654         Likewise.
655         * modules/unictype/property-unassigned-code-value (Depends-on,
656         configure.ac): Likewise.
657         * modules/unictype/property-unified-ideograph (Depends-on,
658         configure.ac): Likewise.
659         * modules/unictype/property-uppercase (Depends-on, configure.ac):
660         Likewise.
661         * modules/unictype/property-variation-selector (Depends-on,
662         configure.ac): Likewise.
663         * modules/unictype/property-white-space (Depends-on, configure.ac):
664         Likewise.
665         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
666         Likewise.
667         * modules/unictype/property-xid-start (Depends-on, configure.ac):
668         Likewise.
669         * modules/unictype/property-zero-width (Depends-on, configure.ac):
670         Likewise.
671         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
672         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
673         Likewise.
674
675 2009-12-31  Bruno Haible  <bruno@clisp.org>
676
677         Remove unnecessary AC_C_INLINE invocation.
678         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
679         since 2009-08-21.
680
681 2009-12-31  Jim Meyering  <meyering@redhat.com>
682
683         maint.mk: don't require explicit gpg_key_ID in cfg.mk
684         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
685         With this change, we can all remove the gpg_key_ID = ... definition
686         from our respective cfg.mk files.
687
688         maint.mk: create announcement template in ~/, not in /tmp
689         * top/maint.mk (emit_upload_commands): Adjust.
690         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
691         Remove temporary file, .ci-msg.
692
693 2009-12-31  Eric Blake  <ebb9@byu.net>
694
695         link-warning: always build headers with link warnings
696         * modules/arpa_inet (Makefile.am): Always build replacement
697         header.
698         * modules/ctype (Makefile.am): Likewise.
699         * modules/dirent (Makefile.am): Likewise.
700         * modules/inttypes (Makefile.am): Likewise.
701         * modules/langinfo (Makefile.am): Likewise.
702         * modules/locale (Makefile.am): Likewise.
703         * modules/spawn (Makefile.am): Likewise.
704         * modules/sys_file (Makefile.am): Likewise.
705         * modules/sys_ioctl (Makefile.am): Likewise.
706         * modules/sys_select (Makefile.am): Likewise.
707         * modules/sys_socket (Makefile.am): Likewise.
708         * modules/sys_times (Makefile.am): Likewise.
709         * modules/sys_utsname (Makefile.am): Likewise.
710         * modules/sys_wait (Makefile.am): Likewise.
711         * modules/wchar (Makefile.am): Likewise.
712         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
713         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
714         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
715         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
716         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
717         Likewise.
718         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
720         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
721         Likewise.
722         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
723         Likewise.
724         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
726         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
730         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
731         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
732         (gl_WCHAR_H_DEFAULTS): Likewise.
733
734 2009-12-31  Eric Blake  <ebb9@byu.net>
735
736         signal, spawn: use link warnings
737         * lib/signal.in.h (sigset_t): Make unconditional.
738         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
739         (sigpending, sigprocmask, sigaction): Add link warnings.
740         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
741         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
742         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
743         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
744         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
745         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
746         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
747         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
748         (posix_spawn_file_actions_destroy)
749         (posix_spawn_file_actions_addopen)
750         (posix_spawn_file_actions_addclose)
751         (posix_spawwn_file_actions_adddup2): Likewise.
752         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
753         * tests/test-signal.c (main): Enhance test.
754
755         spawn: improve wrapper support
756         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
757         (gl_SPAWN_H_DEFAULTS): New defaults.
758         * modules/spawn (Makefile.am): Substitute them.
759         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
760         Only declare if missing or broken.
761
762         sys_times, sys_utsname: use include_next
763         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
764         header.
765         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
766         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
767         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
768         * modules/sys_times (Depends-on): Add include_next.
769         (Makefile.am): Substitute additional values.
770         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
771         * lib/sys_times.in.h (includes): Include native header, if
772         available.
773         * lib/sys_utsname.in.h (includes): Likewise.
774         * tests/test-sys_times.c (main): Enhance test.
775
776         fdutimensat: revert prior patch
777         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
778         utimens.h.
779         Reported by Bruno Haible.
780
781 2009-12-30  Eric Blake  <ebb9@byu.net>
782
783         sys_wait: drop link-warning dependency
784         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
785         link-warning efforts.
786         * lib/sys_wait.in.h: Likewise.
787
788         fdutimensat: remove bogus dependency
789         * modules/fdutimensat (Depends-on): Drop inline.
790
791         unistd: fix typo
792         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
793
794 2009-12-30  Bruno Haible  <bruno@clisp.org>
795
796         Fix compilation error with Solaris cc.
797         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
798         * lib/unicase/u16-is-invariant.c: Likewise.
799         * lib/unicase/u32-is-invariant.c: Likewise.
800         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
801
802 2009-12-30  Bruno Haible  <bruno@clisp.org>
803
804         Fix test crash.
805         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
806         locales.
807         Reported by Simon Josefsson <simon@josefsson.org>.
808
809 2009-12-30  Bruno Haible  <bruno@clisp.org>
810
811         Fix compilation error on most platforms.
812         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
813         Reported by Simon Josefsson <simon@josefsson.org>
814         and Nelson H. F. Beebe <beebe@math.utah.edu>.
815
816 2009-12-30  Eric Blake  <ebb9@byu.net>
817
818         futimens, utimensat: work around ntfs-3g bug
819         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
820         a ctime bug is present, and expand workaround to cover ntfs-3g.
821         * lib/utimens.c (fdutimens, lutimens): Likewise.
822         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
823         (validate_timespec): Adjust return value.
824         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
825         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
826         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
827
828 2009-12-29  Eric Blake  <ebb9@byu.net>
829
830         link-warning: make usage consistent
831         * modules/ctype (Depends-on): Add link-warning.
832         (Makefile.am): Update rules accordingly.
833         * modules/langinfo (Depends-on, Makefile.am): Likewise.
834         * modules/locale (Depends-on, Makefile.am): Likewise.
835         * modules/sys_file (Makefile.am): Likewise.
836         * modules/getopt-posix (Makefile.am): Delete unused link warning
837         efforts.
838         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
839         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
840         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
841         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
842
843         stdio: remove unused variables
844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
846         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
847
848         tests: test more substitute headers
849         * modules/ctype-tests: New file.
850         * modules/dirent-tests: Likewise.
851         * modules/spawn-tests: Likewise.
852         * modules/sys_file-tests: Likewise.
853         * modules/sys_ioctl-tests: Likewise.
854         * modules/sys_wait-tests: Likewise.
855         * tests/test-ctype.c: Likewise.
856         * tests/test-dirent.c: Likewise.
857         * tests/test-spawn.c: Likewise.
858         * tests/test-sys_file.c: Likewise.
859         * tests/test-sys_ioctl.c: Likewise.
860         * tests/test-sys_wait.c: Likewise.
861         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
862         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
863         whether or not flock is in use.
864
865         tests: remove License section from module
866         * modules/arpa_inet-tests: Remove unneeded section.
867         * modules/byteswap-tests: Likewise.
868         * modules/ceilf-tests: Likewise.
869         * modules/ceill-tests: Likewise.
870         * modules/crypto/des-tests: Likewise.
871         * modules/crypto/gc-arcfour-tests: Likewise.
872         * modules/crypto/gc-arctwo-tests: Likewise.
873         * modules/crypto/gc-des-tests: Likewise.
874         * modules/crypto/gc-hmac-md5-tests: Likewise.
875         * modules/crypto/gc-hmac-sha1-tests: Likewise.
876         * modules/crypto/gc-md2-tests: Likewise.
877         * modules/crypto/gc-md4-tests: Likewise.
878         * modules/crypto/gc-md5-tests: Likewise.
879         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
880         * modules/crypto/gc-rijndael-tests: Likewise.
881         * modules/crypto/gc-sha1-tests: Likewise.
882         * modules/crypto/gc-tests: Likewise.
883         * modules/crypto/md2-tests: Likewise.
884         * modules/crypto/md4-tests: Likewise.
885         * modules/fcntl-h-tests: Likewise.
886         * modules/floorf-tests: Likewise.
887         * modules/floorl-tests: Likewise.
888         * modules/frexp-nolibm-tests: Likewise.
889         * modules/frexp-tests: Likewise.
890         * modules/frexpl-nolibm-tests: Likewise.
891         * modules/frexpl-tests: Likewise.
892         * modules/getaddrinfo-tests: Likewise.
893         * modules/inttypes-tests: Likewise.
894         * modules/isfinite-tests: Likewise.
895         * modules/isinf-tests: Likewise.
896         * modules/ldexpl-tests: Likewise.
897         * modules/locale-tests: Likewise.
898         * modules/math-tests: Likewise.
899         * modules/netdb-tests: Likewise.
900         * modules/netinet_in-tests: Likewise.
901         * modules/printf-frexp-tests: Likewise.
902         * modules/printf-frexpl-tests: Likewise.
903         * modules/priv-set-tests: Likewise.
904         * modules/random_r-tests: Likewise.
905         * modules/round-tests: Likewise.
906         * modules/roundf-tests: Likewise.
907         * modules/roundl-tests: Likewise.
908         * modules/search-tests: Likewise.
909         * modules/select-tests: Likewise.
910         * modules/signal-tests: Likewise.
911         * modules/stdbool-tests: Likewise.
912         * modules/stddef-tests: Likewise.
913         * modules/stdint-tests: Likewise.
914         * modules/stdio-tests: Likewise.
915         * modules/stdlib-tests: Likewise.
916         * modules/string-tests: Likewise.
917         * modules/strings-tests: Likewise.
918         * modules/sys_select-tests: Likewise.
919         * modules/sys_socket-tests: Likewise.
920         * modules/sys_stat-tests: Likewise.
921         * modules/sys_time-tests: Likewise.
922         * modules/sys_utsname-tests: Likewise.
923         * modules/sysexits-tests: Likewise.
924         * modules/time-tests: Likewise.
925         * modules/trunc-tests: Likewise.
926         * modules/truncf-tests: Likewise.
927         * modules/truncl-tests: Likewise.
928         * modules/tsearch-tests: Likewise.
929         * modules/unistd-tests: Likewise.
930         * modules/wchar-tests: Likewise.
931         * modules/wctype-tests: Likewise.
932
933         tests: fix license on several tests
934         * tests/test-des.c: Update to GPLv3+.
935         * tests/test-flock.c: Likewise.
936         * tests/test-fsync.c: Likewise.
937         * tests/test-futimens.h: Likewise.
938         * tests/test-gc-arcfour.c: Likewise.
939         * tests/test-gc-arctwo.c: Likewise.
940         * tests/test-gc-des.c: Likewise.
941         * tests/test-gc-hmac-md5.c: Likewise.
942         * tests/test-gc-hmac-sha1.c: Likewise.
943         * tests/test-gc-md2.c: Likewise.
944         * tests/test-gc-md4.c: Likewise.
945         * tests/test-gc-md5.c: Likewise.
946         * tests/test-gc-pbkdf2-sha1.c: Likewise.
947         * tests/test-gc-rijndael.c: Likewise.
948         * tests/test-gc-sha1.c: Likewise.
949         * tests/test-gc.c: Likewise.
950         * tests/test-getcwd.c: Likewise.
951         * tests/test-link.c: Likewise.
952         * tests/test-link.h: Likewise.
953         * tests/test-lutimens.h: Likewise.
954         * tests/test-md2.c: Likewise.
955         * tests/test-md4.c: Likewise.
956         * tests/test-mkdir.h: Likewise.
957         * tests/test-rename.c: Likewise.
958         * tests/test-rename.h: Likewise.
959         * tests/test-safe-alloc.c: Likewise.
960         * tests/test-utimens-common.h: Likewise.
961         * tests/test-utimens.h: Likewise.
962
963         maint: sync license texts
964         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
965         * doc/gpl-3.0.texi: Revert copyright year update.
966         * doc/lgpl-3.0.texi: Likewise.
967
968 2009-12-29  Jim Meyering  <meyering@redhat.com>
969
970         update nearly all FSF copyright year lists to include 2009
971         The files named by the following are exempted:
972             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
973               test -f "$dst" && { echo "$dst"; continue; }
974               test -d "$dst" || continue
975               echo "$dst"/$(basename "$src")
976             done > exempt
977             git ls-files tests/unictype >> exempt
978         In the remaining files, convert to all-interval notation if
979         - there is already at least one year interval like 2000-2003
980         - the file is maintained by me
981         - the file is in lib/uni*/, where that style already prevails
982         Otherwise, use update-copyright's default.
983
984 2009-12-29  Simon Josefsson  <simon@josefsson.org>
985         and Eric Blake  <ebb9@byu.net>
986
987         tests: don't require debug system() to pass
988         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
989         * tests/test-rmdir.h (test_rmdir_func): Likewise.
990         * tests/test-unlink.h (test_unlink_func): Likewise.
991         * tests/test-fstatat.c (main): ...into callers.
992         * tests/test-lstat.c (main): Likewise.
993         * tests/test-rmdir.c (main): Likewise.
994         * tests/test-unlink.c (main): Likewise.
995         * tests/test-unlinkat.c (main): Likewise.
996         * tests/test-areadlink-with-size.c (main): Don't require a
997         debug-only system call to pass, aiding cross-testing to mingw.
998         * tests/test-areadlink.c (main): Likewise.
999         * tests/test-areadlinkat-with-size.c (main): Likewise.
1000         * tests/test-areadlinkat.c (main): Likewise.
1001         * tests/test-canonicalize-lgpl.c (main): Likewise.
1002         * tests/test-canonicalize.c (main): Likewise.
1003         * tests/test-chown.c (main): Likewise.
1004         * tests/test-fchownat.c (main): Likewise.
1005         * tests/test-lchown.c (main): Likewise.
1006         * tests/test-fdutimensat.c (main): Likewise.
1007         * tests/test-futimens.c (main): Likewise.
1008         * tests/test-link.c (main): Likewise.
1009         * tests/test-linkat.c (main): Likewise.
1010         * tests/test-mkdir.c (main): Likewise.
1011         * tests/test-mkdirat.c (main): Likewise.
1012         * tests/test-mkfifo.c (main): Likewise.
1013         * tests/test-mkfifoat.c (main): Likewise.
1014         * tests/test-mknod.c (main): Likewise.
1015         * tests/test-readlink.c (main): Likewise.
1016         * tests/test-remove.c (main): Likewise.
1017         * tests/test-rename.c (main): Likewise.
1018         * tests/test-renameat.c (main): Likewise.
1019         * tests/test-symlink.c (main): Likewise.
1020         * tests/test-symlinkat.c (main): Likewise.
1021         * tests/test-utimens.c (main): Likewise.
1022         * tests/test-utimensat.c (main): Likewise.
1023
1024 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1025
1026         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1027         on $(UNUSED_PARAMETER_H) to avoid build failure.
1028
1029 2009-12-28  Jim Meyering  <meyering@redhat.com>
1030
1031         update-copyright: you may specify a max. line length other than 72
1032         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1033
1034         maint: use consistent FSF copyright line syntax
1035         * lib/posixtm.c: Add missing comma in FSF copyright line.
1036         * lib/posixtm.h: Likewise.
1037         * lib/getugroups.c: Add missing ", Inc.".
1038
1039         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1040         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1041         FSF copyright line.  Remove trailing blanks.
1042
1043 2009-12-28  Eric Blake  <ebb9@byu.net>
1044
1045         test-dup2: reduce dependencies
1046         * modules/cloexec (Configure.ac): Set witness.
1047         * modules/dup2-tests (Depends-on): Drop cloexec.
1048         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1049         not present.
1050         Suggested by Bruno Haible.
1051
1052 2009-12-26  Bruno Haible  <bruno@clisp.org>
1053
1054         Remove an unneeded dependency.
1055         * modules/fseterr (Depends-on): Remove dup2.
1056
1057 2009-12-26  Eric Blake  <ebb9@byu.net>
1058
1059         tests: use macros.h in more places
1060         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1061         (ASSERT_STREAM): Provide default of stderr.
1062         * tests/test-dirent-safer.c: Include macros.h, using alternate
1063         stream for assertions.
1064         * tests/test-dup-safer.c: Likewise.
1065         * tests/test-freopen-safer.c: Likewise.
1066         * tests/test-getopt.c: Likewise.
1067         * tests/test-openat-safer.c: Likewise.
1068         * tests/test-pipe.c: Likewise.
1069         * tests/test-popen-safer.c: Likewise.
1070         * modules/dirent-safer-tests (Files): Include macros.h.
1071         * modules/unistd-safer-tests (Files): Likewise.
1072         * modules/freopen-safer-tests (Files): Likewise.
1073         * modules/getopt-posix-tests (Files): Likewise.
1074         * modules/openat-safer-tests (Files): Likewise.
1075         * modules/pipe-tests (Files): Likewise.
1076
1077 2009-12-26  Bruno Haible  <bruno@clisp.org>
1078
1079         javacomp: Portability fix.
1080         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1081         that it also works on Solaris.
1082
1083 2009-12-26  Bruno Haible  <bruno@clisp.org>
1084
1085         localename: Fix storage allocation of gl_locale_name_thread's result.
1086         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1087         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1088         all platforms that have 'uselocale'.
1089         (gl_locale_name_thread_unsafe): New function, extracted from
1090         gl_locale_name_thread.
1091         (gl_locale_name_thread): Call struniq on all platforms that have
1092         'uselocale'.
1093         * tests/test-localename.c (test_locale_name_thread): Check that the
1094         resulting strings are permanently allocated.
1095         * modules/localename-tests (Depends-on): Add strdup.
1096
1097 2009-12-26  Bruno Haible  <bruno@clisp.org>
1098
1099         * tests/test-localename.c (categories): Fill in the strings.
1100
1101 2009-12-26  Jim Meyering  <meyering@redhat.com>
1102
1103         isdir: complete the removal of m4/isdir.m4
1104         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1105
1106         isdir: clean up, since at least grep still uses it
1107         * lib/isdir.c: Include "isdir.h".
1108         (S_ISDIR): Remove now-unneeded definition.
1109         * modules/isdir (Files): Add lib/isdir.h.
1110         * lib/isdir.h: New file, with declaration.
1111         * m4/isdir.m4: Remove file -- unneeded.
1112
1113 2009-12-25  Bruno Haible  <bruno@clisp.org>
1114
1115         selinux-h: Make generated .h files standalone.
1116         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1117         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1118         * lib/se-selinux.in.h: Likewise.
1119         * modules/selinux-h (Depends-on): Add unused-parameter.
1120         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1121         selinux/selinux.h and selinux/context.h.
1122         Suggested by Eric Blake.
1123
1124 2009-12-25  Bruno Haible  <bruno@clisp.org>
1125
1126         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1127         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1128         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1129         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1130         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1131
1132 2009-12-24  Bruno Haible  <bruno@clisp.org>
1133
1134         openat: Fix warning.
1135         * lib/openat-proc.c: Include <unistd.h>.
1136
1137 2009-12-24  Bruno Haible  <bruno@clisp.org>
1138
1139         New module 'unused-parameter'.
1140         * build-aux/unused-parameter.h: New file, extracted from earlier
1141         gnulib-common.m4.
1142         * modules/unused-parameter: New file.
1143         * lib/unistr.h: Include unused-parameter.h.
1144         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1145         _GL_UNUSED.
1146         * modules/unistr/base (Depends-on): Add unused-parameter.
1147
1148 2009-12-24  Bruno Haible  <bruno@clisp.org>
1149
1150         Add missing dependencies to 'extensions' module.
1151         * m4/extensions.m4: Add comment.
1152         * modules/accept4 (Depends-on): Add extensions.
1153         * modules/dup3 (Depends-on): Likewise.
1154         * modules/fcntl (Depends-on): Likewise.
1155         * modules/futimens (Depends-on): Likewise.
1156         * modules/mknod (Depends-on): Likewise.
1157         * modules/pipe2 (Depends-on): Likewise.
1158         * modules/stat-time (Depends-on): Likewise.
1159         * modules/strcasestr-simple (Depends-on): Likewise.
1160         * modules/strsignal (Depends-on): Likewise.
1161         * modules/utimensat (Depends-on): Likewise.
1162         * modules/localcharset (Depends-on): Likewise. Needed because of
1163         gl_FCNTL_O_FLAGS.
1164         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1165         AC_TYPE_MBSTATE_T.
1166         * modules/wcsnrtombs (Depends-on): Likewise.
1167         * modules/wcsrtombs (Depends-on): Likewise.
1168
1169 2009-12-24  Bruno Haible  <bruno@clisp.org>
1170
1171         binary-io: Avoid gcc warning due to SET_BINARY.
1172         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1173         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1174
1175 2009-12-24  Bruno Haible  <bruno@clisp.org>
1176
1177         Avoid future namespace pollution on glibc systems.
1178         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1179         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1180         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1181         glibc systems.
1182
1183 2009-12-24  Bruno Haible  <bruno@clisp.org>
1184
1185         Refactor common macros used in tests.
1186         * tests/macros.h: New file.
1187         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1188         and/or <stdlib.h>, if appropriate.
1189         (ASSERT, SIZEOF): Remove macros.
1190         * tests/test-areadlink-with-size.c: Likewise.
1191         * tests/test-areadlinkat.c: Likewise.
1192         * tests/test-areadlinkat-with-size.c: Likewise.
1193         * tests/test-argmatch.c: Likewise.
1194         * tests/test-argv-iter.c: Likewise.
1195         * tests/test-array-mergesort.c: Likewise.
1196         * tests/test-array_list.c: Likewise.
1197         * tests/test-array_oset.c: Likewise.
1198         * tests/test-avltree_list.c: Likewise.
1199         * tests/test-avltree_oset.c: Likewise.
1200         * tests/test-avltreehash_list.c: Likewise.
1201         * tests/test-base64.c: Likewise.
1202         * tests/test-binary-io.c: Likewise.
1203         * tests/test-bitrotate.c: Likewise.
1204         * tests/test-btowc.c: Likewise.
1205         * tests/test-byteswap.c: Likewise.
1206         * tests/test-c-ctype.c: Likewise.
1207         * tests/test-c-stack.c: Likewise.
1208         * tests/test-c-strcasecmp.c: Likewise.
1209         * tests/test-c-strcasestr.c: Likewise.
1210         * tests/test-c-strncasecmp.c: Likewise.
1211         * tests/test-c-strstr.c: Likewise.
1212         * tests/test-canonicalize-lgpl.c: Likewise.
1213         * tests/test-canonicalize.c: Likewise.
1214         * tests/test-carray_list.c: Likewise.
1215         * tests/test-ceilf1.c: Likewise.
1216         * tests/test-ceilf2.c: Likewise.
1217         * tests/test-ceill.c: Likewise.
1218         * tests/test-chown.c: Likewise.
1219         * tests/test-cloexec.c: Likewise.
1220         * tests/test-copy-acl.c: Likewise.
1221         * tests/test-copy-file.c: Likewise.
1222         * tests/test-count-one-bits.c: Likewise.
1223         * tests/test-dprintf-posix.c: Likewise.
1224         * tests/test-dup2.c: Likewise.
1225         * tests/test-dup3.c: Likewise.
1226         * tests/test-duplocale.c: Likewise.
1227         * tests/test-fbufmode.c: Likewise.
1228         * tests/test-fchdir.c: Likewise.
1229         * tests/test-fchownat.c: Likewise.
1230         * tests/test-fcntl-safer.c: Likewise.
1231         * tests/test-fcntl.c: Likewise.
1232         * tests/test-fdopendir.c: Likewise.
1233         * tests/test-fdutimensat.c: Likewise.
1234         * tests/test-fflush2.c: Likewise.
1235         * tests/test-file-has-acl.c: Likewise.
1236         * tests/test-filevercmp.c: Likewise.
1237         * tests/test-flock.c: Likewise.
1238         * tests/test-floorf1.c: Likewise.
1239         * tests/test-floorf2.c: Likewise.
1240         * tests/test-floorl.c: Likewise.
1241         * tests/test-fnmatch.c: Likewise.
1242         * tests/test-fopen.h: Likewise.
1243         * tests/test-fpending.c: Likewise.
1244         * tests/test-fprintf-posix.c: Likewise.
1245         * tests/test-fpurge.c: Likewise.
1246         * tests/test-freadable.c: Likewise.
1247         * tests/test-freadahead.c: Likewise.
1248         * tests/test-freading.c: Likewise.
1249         * tests/test-freadptr.c: Likewise.
1250         * tests/test-freadptr2.c: Likewise.
1251         * tests/test-freadseek.c: Likewise.
1252         * tests/test-freopen.c: Likewise.
1253         * tests/test-frexp.c: Likewise.
1254         * tests/test-frexpl.c: Likewise.
1255         * tests/test-fseek.c: Likewise.
1256         * tests/test-fseeko.c: Likewise.
1257         * tests/test-fstatat.c: Likewise.
1258         * tests/test-fstrcmp.c: Likewise.
1259         * tests/test-fsync.c: Likewise.
1260         * tests/test-ftell.c: Likewise.
1261         * tests/test-ftello.c: Likewise.
1262         * tests/test-func.c: Likewise.
1263         * tests/test-futimens.c: Likewise.
1264         * tests/test-fwritable.c: Likewise.
1265         * tests/test-fwriting.c: Likewise.
1266         * tests/test-getcwd.c: Likewise.
1267         * tests/test-getdate.c: Likewise.
1268         * tests/test-getdelim.c: Likewise.
1269         * tests/test-getdtablesize.c: Likewise.
1270         * tests/test-getgroups.c: Likewise.
1271         * tests/test-getline.c: Likewise.
1272         * tests/test-getndelim2.c: Likewise.
1273         * tests/test-glob.c: Likewise.
1274         * tests/test-hash.c: Likewise.
1275         * tests/test-i-ring.c: Likewise.
1276         * tests/test-iconv-utf.c: Likewise.
1277         * tests/test-iconv.c: Likewise.
1278         * tests/test-idpriv-drop.c: Likewise.
1279         * tests/test-idpriv-droptemp.c: Likewise.
1280         * tests/test-inet_ntop.c: Likewise.
1281         * tests/test-inet_pton.c: Likewise.
1282         * tests/test-isblank.c: Likewise.
1283         * tests/test-isfinite.c: Likewise.
1284         * tests/test-isinf.c: Likewise.
1285         * tests/test-isnan.c: Likewise.
1286         * tests/test-isnand.h: Likewise.
1287         * tests/test-isnanf.h: Likewise.
1288         * tests/test-isnanl.h: Likewise.
1289         * tests/test-lchown.c: Likewise.
1290         * tests/test-ldexpl.c: Likewise.
1291         * tests/test-link.c: Likewise.
1292         * tests/test-linkat.c: Likewise.
1293         * tests/test-linked_list.c: Likewise.
1294         * tests/test-linkedhash_list.c: Likewise.
1295         * tests/test-localename.c: Likewise.
1296         * tests/test-lseek.c: Likewise.
1297         * tests/test-lstat.c: Likewise.
1298         * tests/test-mbmemcasecmp.c: Likewise.
1299         * tests/test-mbmemcasecoll.c: Likewise.
1300         * tests/test-mbrtowc.c: Likewise.
1301         * tests/test-mbscasecmp.c: Likewise.
1302         * tests/test-mbscasestr1.c: Likewise.
1303         * tests/test-mbscasestr2.c: Likewise.
1304         * tests/test-mbscasestr3.c: Likewise.
1305         * tests/test-mbscasestr4.c: Likewise.
1306         * tests/test-mbschr.c: Likewise.
1307         * tests/test-mbscspn.c: Likewise.
1308         * tests/test-mbsinit.c: Likewise.
1309         * tests/test-mbsncasecmp.c: Likewise.
1310         * tests/test-mbsnrtowcs.c: Likewise.
1311         * tests/test-mbspbrk.c: Likewise.
1312         * tests/test-mbspcasecmp.c: Likewise.
1313         * tests/test-mbsrchr.c: Likewise.
1314         * tests/test-mbsrtowcs.c: Likewise.
1315         * tests/test-mbsspn.c: Likewise.
1316         * tests/test-mbsstr1.c: Likewise.
1317         * tests/test-mbsstr2.c: Likewise.
1318         * tests/test-mbsstr3.c: Likewise.
1319         * tests/test-memchr.c: Likewise.
1320         * tests/test-memchr2.c: Likewise.
1321         * tests/test-memcmp.c: Likewise.
1322         * tests/test-memmem.c: Likewise.
1323         * tests/test-memrchr.c: Likewise.
1324         * tests/test-mkdir.c: Likewise.
1325         * tests/test-mkdirat.c: Likewise.
1326         * tests/test-mkfifo.c: Likewise.
1327         * tests/test-mkfifoat.c: Likewise.
1328         * tests/test-mknod.c: Likewise.
1329         * tests/test-nanosleep.c: Likewise.
1330         * tests/test-nl_langinfo.c: Likewise.
1331         * tests/test-obstack-printf.c: Likewise.
1332         * tests/test-open.c: Likewise.
1333         * tests/test-openat.c: Likewise.
1334         * tests/test-pipe-filter-gi1.c: Likewise.
1335         * tests/test-pipe-filter-gi2-main.c: Likewise.
1336         * tests/test-pipe-filter-ii1.c: Likewise.
1337         * tests/test-pipe-filter-ii2-main.c: Likewise.
1338         * tests/test-pipe2.c: Likewise.
1339         * tests/test-popen.h: Likewise.
1340         * tests/test-posixtm.c: Likewise.
1341         * tests/test-pread.c: Likewise.
1342         * tests/test-printf-frexp.c: Likewise.
1343         * tests/test-printf-frexpl.c: Likewise.
1344         * tests/test-printf-posix.c: Likewise.
1345         * tests/test-priv-set.c: Likewise.
1346         * tests/test-quotearg.c: Likewise.
1347         * tests/test-random_r.c: Likewise.
1348         * tests/test-rawmemchr.c: Likewise.
1349         * tests/test-rbtree_list.c: Likewise.
1350         * tests/test-rbtree_oset.c: Likewise.
1351         * tests/test-rbtreehash_list.c: Likewise.
1352         * tests/test-readlink.c: Likewise.
1353         * tests/test-remove.c: Likewise.
1354         * tests/test-rename.c: Likewise.
1355         * tests/test-renameat.c: Likewise.
1356         * tests/test-rmdir.c: Likewise.
1357         * tests/test-round1.c: Likewise.
1358         * tests/test-roundf1.c: Likewise.
1359         * tests/test-roundl.c: Likewise.
1360         * tests/test-safe-alloc.c: Likewise.
1361         * tests/test-sameacls.c: Likewise.
1362         * tests/test-set-mode-acl.c: Likewise.
1363         * tests/test-setenv.c: Likewise.
1364         * tests/test-sigaction.c: Likewise.
1365         * tests/test-signbit.c: Likewise.
1366         * tests/test-sleep.c: Likewise.
1367         * tests/test-snprintf-posix.c: Likewise.
1368         * tests/test-snprintf.c: Likewise.
1369         * tests/test-sprintf-posix.c: Likewise.
1370         * tests/test-stat-time.c: Likewise.
1371         * tests/test-stat.c: Likewise.
1372         * tests/test-strcasestr.c: Likewise.
1373         * tests/test-strchrnul.c: Likewise.
1374         * tests/test-strerror.c: Likewise.
1375         * tests/test-striconv.c: Likewise.
1376         * tests/test-striconveh.c: Likewise.
1377         * tests/test-striconveha.c: Likewise.
1378         * tests/test-strsignal.c: Likewise.
1379         * tests/test-strstr.c: Likewise.
1380         * tests/test-strtod.c: Likewise.
1381         * tests/test-strverscmp.c: Likewise.
1382         * tests/test-symlink.c: Likewise.
1383         * tests/test-symlinkat.c: Likewise.
1384         * tests/test-trunc1.c: Likewise.
1385         * tests/test-trunc2.c: Likewise.
1386         * tests/test-truncf1.c: Likewise.
1387         * tests/test-truncf2.c: Likewise.
1388         * tests/test-truncl.c: Likewise.
1389         * tests/test-uname.c: Likewise.
1390         * tests/test-unlink.c: Likewise.
1391         * tests/test-unlinkat.c: Likewise.
1392         * tests/test-unsetenv.c: Likewise.
1393         * tests/test-usleep.c: Likewise.
1394         * tests/test-utimens.c: Likewise.
1395         * tests/test-utimensat.c: Likewise.
1396         * tests/test-vasnprintf-posix.c: Likewise.
1397         * tests/test-vasnprintf-posix2.c: Likewise.
1398         * tests/test-vasnprintf.c: Likewise.
1399         * tests/test-vasprintf-posix.c: Likewise.
1400         * tests/test-vasprintf.c: Likewise.
1401         * tests/test-vdprintf-posix.c: Likewise.
1402         * tests/test-vfprintf-posix.c: Likewise.
1403         * tests/test-vprintf-posix.c: Likewise.
1404         * tests/test-vsnprintf-posix.c: Likewise.
1405         * tests/test-vsnprintf.c: Likewise.
1406         * tests/test-vsprintf-posix.c: Likewise.
1407         * tests/test-wcrtomb.c: Likewise.
1408         * tests/test-wcsnrtombs.c: Likewise.
1409         * tests/test-wcsrtombs.c: Likewise.
1410         * tests/test-wctype.c: Likewise.
1411         * tests/test-wcwidth.c: Likewise.
1412         * tests/test-xfprintf-posix.c: Likewise.
1413         * tests/test-xmemdup0.c: Likewise.
1414         * tests/test-xprintf-posix.c: Likewise.
1415         * tests/test-xvasprintf.c: Likewise.
1416         * tests/unicase/test-locale-language.c: Likewise.
1417         * tests/unicase/test-mapping-part1.h: Likewise.
1418         * tests/unicase/test-predicate-part1.h: Likewise.
1419         * tests/unicase/test-u8-casecmp.c: Likewise.
1420         * tests/unicase/test-u8-casecoll.c: Likewise.
1421         * tests/unicase/test-u8-casefold.c: Likewise.
1422         * tests/unicase/test-u8-is-cased.c: Likewise.
1423         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1424         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1425         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1426         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1427         * tests/unicase/test-u8-tolower.c: Likewise.
1428         * tests/unicase/test-u8-totitle.c: Likewise.
1429         * tests/unicase/test-u8-toupper.c: Likewise.
1430         * tests/unicase/test-u16-casecmp.c: Likewise.
1431         * tests/unicase/test-u16-casecoll.c: Likewise.
1432         * tests/unicase/test-u16-casefold.c: Likewise.
1433         * tests/unicase/test-u16-is-cased.c: Likewise.
1434         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1435         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1436         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1437         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1438         * tests/unicase/test-u16-tolower.c: Likewise.
1439         * tests/unicase/test-u16-totitle.c: Likewise.
1440         * tests/unicase/test-u16-toupper.c: Likewise.
1441         * tests/unicase/test-u32-casecmp.c: Likewise.
1442         * tests/unicase/test-u32-casecoll.c: Likewise.
1443         * tests/unicase/test-u32-casefold.c: Likewise.
1444         * tests/unicase/test-u32-is-cased.c: Likewise.
1445         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1446         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1447         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1448         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1449         * tests/unicase/test-u32-tolower.c: Likewise.
1450         * tests/unicase/test-u32-totitle.c: Likewise.
1451         * tests/unicase/test-u32-toupper.c: Likewise.
1452         * tests/unicase/test-ulc-casecmp.c: Likewise.
1453         * tests/unicase/test-ulc-casecoll.c: Likewise.
1454         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1455         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1456         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1457         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1458         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1459         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1460         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1461         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1462         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1463         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1464         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1465         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1466         * tests/unictype/test-bidi_byname.c: Likewise.
1467         * tests/unictype/test-bidi_name.c: Likewise.
1468         * tests/unictype/test-bidi_of.c: Likewise.
1469         * tests/unictype/test-bidi_test.c: Likewise.
1470         * tests/unictype/test-block_list.c: Likewise.
1471         * tests/unictype/test-block_of.c: Likewise.
1472         * tests/unictype/test-block_test.c: Likewise.
1473         * tests/unictype/test-categ_and.c: Likewise.
1474         * tests/unictype/test-categ_and_not.c: Likewise.
1475         * tests/unictype/test-categ_byname.c: Likewise.
1476         * tests/unictype/test-categ_name.c: Likewise.
1477         * tests/unictype/test-categ_none.c: Likewise.
1478         * tests/unictype/test-categ_of.c: Likewise.
1479         * tests/unictype/test-categ_or.c: Likewise.
1480         * tests/unictype/test-categ_test_withtable.c: Likewise.
1481         * tests/unictype/test-combining.c: Likewise.
1482         * tests/unictype/test-decdigit.c: Likewise.
1483         * tests/unictype/test-digit.c: Likewise.
1484         * tests/unictype/test-mirror.c: Likewise.
1485         * tests/unictype/test-numeric.c: Likewise.
1486         * tests/unictype/test-pr_byname.c: Likewise.
1487         * tests/unictype/test-pr_test.c: Likewise.
1488         * tests/unictype/test-predicate-part1.h: Likewise.
1489         * tests/unictype/test-scripts.c: Likewise.
1490         * tests/unictype/test-sy_c_ident.c: Likewise.
1491         * tests/unictype/test-sy_java_ident.c: Likewise.
1492         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1493         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1494         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1495         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1496         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1497         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1498         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1499         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1500         * tests/uninorm/test-canonical-decomposition.c: Likewise.
1501         * tests/uninorm/test-compat-decomposition.c: Likewise.
1502         * tests/uninorm/test-composition.c: Likewise.
1503         * tests/uninorm/test-decomposing-form.c: Likewise.
1504         * tests/uninorm/test-decomposition.c: Likewise.
1505         * tests/uninorm/test-u8-nfc.c: Likewise.
1506         * tests/uninorm/test-u8-nfd.c: Likewise.
1507         * tests/uninorm/test-u8-nfkc.c: Likewise.
1508         * tests/uninorm/test-u8-nfkd.c: Likewise.
1509         * tests/uninorm/test-u8-normcmp.c: Likewise.
1510         * tests/uninorm/test-u8-normcoll.c: Likewise.
1511         * tests/uninorm/test-u16-nfc.c: Likewise.
1512         * tests/uninorm/test-u16-nfd.c: Likewise.
1513         * tests/uninorm/test-u16-nfkc.c: Likewise.
1514         * tests/uninorm/test-u16-nfkd.c: Likewise.
1515         * tests/uninorm/test-u16-normcmp.c: Likewise.
1516         * tests/uninorm/test-u16-normcoll.c: Likewise.
1517         * tests/uninorm/test-u32-nfc.c: Likewise.
1518         * tests/uninorm/test-u32-nfd.c: Likewise.
1519         * tests/uninorm/test-u32-nfkc.c: Likewise.
1520         * tests/uninorm/test-u32-nfkd.c: Likewise.
1521         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1522         * tests/uninorm/test-u32-normcmp.c: Likewise.
1523         * tests/uninorm/test-u32-normcoll.c: Likewise.
1524         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1525         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1526         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1527         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1528         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1529         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1530         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1531         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1532         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1533         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1534         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1535         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1536         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1537         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1538         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1539         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1540         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1541         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1542         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1543         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1544         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1545         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1546         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1547         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1548         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1549         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1550         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1551         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1552         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1553         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1554         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1555         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1556         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1557         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1558         * tests/uniwidth/test-u8-width.c: Likewise.
1559         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1560         * tests/uniwidth/test-u16-width.c: Likewise.
1561         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1562         * tests/uniwidth/test-u32-width.c: Likewise.
1563         * tests/uniwidth/test-uc_width.c: Likewise.
1564         * tests/uniwidth/test-uc_width2.c: Likewise.
1565         * modules/acl-tests (Files): Add tests/macros.h.
1566         * modules/areadlink-tests (Files): Likewise.
1567         * modules/areadlink-with-size-tests (Files): Likewise.
1568         * modules/areadlinkat-tests (Files): Likewise.
1569         * modules/areadlinkat-with-size-tests (Files): Likewise.
1570         * modules/argmatch-tests (Files): Likewise.
1571         * modules/argv-iter-tests (Files): Likewise.
1572         * modules/array-list-tests (Files): Likewise.
1573         * modules/array-mergesort-tests (Files): Likewise.
1574         * modules/array-oset-tests (Files): Likewise.
1575         * modules/avltree-list-tests (Files): Likewise.
1576         * modules/avltree-oset-tests (Files): Likewise.
1577         * modules/avltreehash-list-tests (Files): Likewise.
1578         * modules/base64-tests (Files): Likewise.
1579         * modules/binary-io-tests (Files): Likewise.
1580         * modules/bitrotate-tests (Files): Likewise.
1581         * modules/btowc-tests (Files): Likewise.
1582         * modules/byteswap-tests (Files): Likewise.
1583         * modules/c-ctype-tests (Files): Likewise.
1584         * modules/c-stack-tests (Files): Likewise.
1585         * modules/c-strcase-tests (Files): Likewise.
1586         * modules/c-strcasestr-tests (Files): Likewise.
1587         * modules/c-strstr-tests (Files): Likewise.
1588         * modules/canonicalize-lgpl-tests (Files): Likewise.
1589         * modules/canonicalize-tests (Files): Likewise.
1590         * modules/carray-list-tests (Files): Likewise.
1591         * modules/ceilf-tests (Files): Likewise.
1592         * modules/ceill-tests (Files): Likewise.
1593         * modules/chown-tests (Files): Likewise.
1594         * modules/cloexec-tests (Files): Likewise.
1595         * modules/copy-file-tests (Files): Likewise.
1596         * modules/count-one-bits-tests (Files): Likewise.
1597         * modules/dprintf-posix-tests (Files): Likewise.
1598         * modules/dup2-tests (Files): Likewise.
1599         * modules/dup3-tests (Files): Likewise.
1600         * modules/duplocale-tests (Files): Likewise.
1601         * modules/fbufmode-tests (Files): Likewise.
1602         * modules/fchdir-tests (Files): Likewise.
1603         * modules/fcntl-safer-tests (Files): Likewise.
1604         * modules/fcntl-tests (Files): Likewise.
1605         * modules/fdopendir-tests (Files): Likewise.
1606         * modules/fdutimensat-tests (Files): Likewise.
1607         * modules/fflush-tests (Files): Likewise.
1608         * modules/filevercmp-tests (Files): Likewise.
1609         * modules/flock-tests (Files): Likewise.
1610         * modules/floorf-tests (Files): Likewise.
1611         * modules/floorl-tests (Files): Likewise.
1612         * modules/fnmatch-tests (Files): Likewise.
1613         * modules/fopen-safer-tests (Files): Likewise.
1614         * modules/fopen-tests (Files): Likewise.
1615         * modules/fpending-tests (Files): Likewise.
1616         * modules/fprintf-posix-tests (Files): Likewise.
1617         * modules/fpurge-tests (Files): Likewise.
1618         * modules/freadable-tests (Files): Likewise.
1619         * modules/freadahead-tests (Files): Likewise.
1620         * modules/freading-tests (Files): Likewise.
1621         * modules/freadptr-tests (Files): Likewise.
1622         * modules/freadseek-tests (Files): Likewise.
1623         * modules/freopen-tests (Files): Likewise.
1624         * modules/frexp-nolibm-tests (Files): Likewise.
1625         * modules/frexp-tests (Files): Likewise.
1626         * modules/frexpl-nolibm-tests (Files): Likewise.
1627         * modules/frexpl-tests (Files): Likewise.
1628         * modules/fseek-tests (Files): Likewise.
1629         * modules/fseeko-tests (Files): Likewise.
1630         * modules/fstrcmp-tests (Files): Likewise.
1631         * modules/fsync-tests (Files): Likewise.
1632         * modules/ftell-tests (Files): Likewise.
1633         * modules/ftello-tests (Files): Likewise.
1634         * modules/func-tests (Files): Likewise.
1635         * modules/futimens-tests (Files): Likewise.
1636         * modules/fwritable-tests (Files): Likewise.
1637         * modules/fwriting-tests (Files): Likewise.
1638         * modules/getcwd-tests (Files): Likewise.
1639         * modules/getdate-tests (Files): Likewise.
1640         * modules/getdelim-tests (Files): Likewise.
1641         * modules/getdtablesize-tests (Files): Likewise.
1642         * modules/getgroups-tests (Files): Likewise.
1643         * modules/getline-tests (Files): Likewise.
1644         * modules/getndelim2-tests (Files): Likewise.
1645         * modules/glob-tests (Files): Likewise.
1646         * modules/hash-tests (Files): Likewise.
1647         * modules/i-ring-tests (Files): Likewise.
1648         * modules/iconv-tests (Files): Likewise.
1649         * modules/iconv_open-utf-tests (Files): Likewise.
1650         * modules/idpriv-drop-tests (Files): Likewise.
1651         * modules/idpriv-droptemp-tests (Files): Likewise.
1652         * modules/inet_ntop-tests (Files): Likewise.
1653         * modules/inet_pton-tests (Files): Likewise.
1654         * modules/isblank-tests (Files): Likewise.
1655         * modules/isfinite-tests (Files): Likewise.
1656         * modules/isinf-tests (Files): Likewise.
1657         * modules/isnan-tests (Files): Likewise.
1658         * modules/isnand-nolibm-tests (Files): Likewise.
1659         * modules/isnand-tests (Files): Likewise.
1660         * modules/isnanf-nolibm-tests (Files): Likewise.
1661         * modules/isnanf-tests (Files): Likewise.
1662         * modules/isnanl-nolibm-tests (Files): Likewise.
1663         * modules/isnanl-tests (Files): Likewise.
1664         * modules/lchown-tests (Files): Likewise.
1665         * modules/ldexpl-tests (Files): Likewise.
1666         * modules/link-tests (Files): Likewise.
1667         * modules/linkat-tests (Files): Likewise.
1668         * modules/linked-list-tests (Files): Likewise.
1669         * modules/linkedhash-list-tests (Files): Likewise.
1670         * modules/localename-tests (Files): Likewise.
1671         * modules/lseek-tests (Files): Likewise.
1672         * modules/lstat-tests (Files): Likewise.
1673         * modules/mbmemcasecmp-tests (Files): Likewise.
1674         * modules/mbmemcasecoll-tests (Files): Likewise.
1675         * modules/mbrtowc-tests (Files): Likewise.
1676         * modules/mbscasecmp-tests (Files): Likewise.
1677         * modules/mbscasestr-tests (Files): Likewise.
1678         * modules/mbschr-tests (Files): Likewise.
1679         * modules/mbscspn-tests (Files): Likewise.
1680         * modules/mbsinit-tests (Files): Likewise.
1681         * modules/mbsncasecmp-tests (Files): Likewise.
1682         * modules/mbsnrtowcs-tests (Files): Likewise.
1683         * modules/mbspbrk-tests (Files): Likewise.
1684         * modules/mbspcasecmp-tests (Files): Likewise.
1685         * modules/mbsrchr-tests (Files): Likewise.
1686         * modules/mbsrtowcs-tests (Files): Likewise.
1687         * modules/mbsspn-tests (Files): Likewise.
1688         * modules/mbsstr-tests (Files): Likewise.
1689         * modules/memchr-tests (Files): Likewise.
1690         * modules/memchr2-tests (Files): Likewise.
1691         * modules/memcmp-tests (Files): Likewise.
1692         * modules/memmem-tests (Files): Likewise.
1693         * modules/memrchr-tests (Files): Likewise.
1694         * modules/mkdir-tests (Files): Likewise.
1695         * modules/mkfifo-tests (Files): Likewise.
1696         * modules/mkfifoat-tests (Files): Likewise.
1697         * modules/mknod-tests (Files): Likewise.
1698         * modules/nanosleep-tests (Files): Likewise.
1699         * modules/nl_langinfo-tests (Files): Likewise.
1700         * modules/obstack-printf-tests (Files): Likewise.
1701         * modules/open-tests (Files): Likewise.
1702         * modules/openat-tests (Files): Likewise.
1703         * modules/pipe-filter-gi-tests (Files): Likewise.
1704         * modules/pipe-filter-ii-tests (Files): Likewise.
1705         * modules/pipe2-tests (Files): Likewise.
1706         * modules/popen-safer-tests (Files): Likewise.
1707         * modules/popen-tests (Files): Likewise.
1708         * modules/posixtm-tests (Files): Likewise.
1709         * modules/pread-tests (Files): Likewise.
1710         * modules/printf-frexp-tests (Files): Likewise.
1711         * modules/printf-frexpl-tests (Files): Likewise.
1712         * modules/printf-posix-tests (Files): Likewise.
1713         * modules/priv-set-tests (Files): Likewise.
1714         * modules/quotearg-tests (Files): Likewise.
1715         * modules/random_r-tests (Files): Likewise.
1716         * modules/rawmemchr-tests (Files): Likewise.
1717         * modules/rbtree-list-tests (Files): Likewise.
1718         * modules/rbtree-oset-tests (Files): Likewise.
1719         * modules/rbtreehash-list-tests (Files): Likewise.
1720         * modules/readlink-tests (Files): Likewise.
1721         * modules/remove-tests (Files): Likewise.
1722         * modules/rename-tests (Files): Likewise.
1723         * modules/renameat-tests (Files): Likewise.
1724         * modules/rmdir-tests (Files): Likewise.
1725         * modules/round-tests (Files): Likewise.
1726         * modules/roundf-tests (Files): Likewise.
1727         * modules/roundl-tests (Files): Likewise.
1728         * modules/safe-alloc-tests (Files): Likewise.
1729         * modules/setenv-tests (Files): Likewise.
1730         * modules/sigaction-tests (Files): Likewise.
1731         * modules/signbit-tests (Files): Likewise.
1732         * modules/sleep-tests (Files): Likewise.
1733         * modules/snprintf-posix-tests (Files): Likewise.
1734         * modules/snprintf-tests (Files): Likewise.
1735         * modules/sprintf-posix-tests (Files): Likewise.
1736         * modules/stat-tests (Files): Likewise.
1737         * modules/stat-time-tests (Files): Likewise.
1738         * modules/strcasestr-tests (Files): Likewise.
1739         * modules/strchrnul-tests (Files): Likewise.
1740         * modules/strerror-tests (Files): Likewise.
1741         * modules/striconv-tests (Files): Likewise.
1742         * modules/striconveh-tests (Files): Likewise.
1743         * modules/striconveha-tests (Files): Likewise.
1744         * modules/strsignal-tests (Files): Likewise.
1745         * modules/strstr-tests (Files): Likewise.
1746         * modules/strtod-tests (Files): Likewise.
1747         * modules/strverscmp-tests (Files): Likewise.
1748         * modules/symlink-tests (Files): Likewise.
1749         * modules/symlinkat-tests (Files): Likewise.
1750         * modules/trunc-tests (Files): Likewise.
1751         * modules/truncf-tests (Files): Likewise.
1752         * modules/truncl-tests (Files): Likewise.
1753         * modules/uname-tests (Files): Likewise.
1754         * modules/unicase/cased-tests (Files): Likewise.
1755         * modules/unicase/ignorable-tests (Files): Likewise.
1756         * modules/unicase/locale-language-tests (Files): Likewise.
1757         * modules/unicase/tolower-tests (Files): Likewise.
1758         * modules/unicase/totitle-tests (Files): Likewise.
1759         * modules/unicase/toupper-tests (Files): Likewise.
1760         * modules/unicase/u8-casecmp-tests (Files): Likewise.
1761         * modules/unicase/u8-casecoll-tests (Files): Likewise.
1762         * modules/unicase/u8-casefold-tests (Files): Likewise.
1763         * modules/unicase/u8-is-cased-tests (Files): Likewise.
1764         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
1765         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
1766         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
1767         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
1768         * modules/unicase/u8-tolower-tests (Files): Likewise.
1769         * modules/unicase/u8-totitle-tests (Files): Likewise.
1770         * modules/unicase/u8-toupper-tests (Files): Likewise.
1771         * modules/unicase/u16-casecmp-tests (Files): Likewise.
1772         * modules/unicase/u16-casecoll-tests (Files): Likewise.
1773         * modules/unicase/u16-casefold-tests (Files): Likewise.
1774         * modules/unicase/u16-is-cased-tests (Files): Likewise.
1775         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
1776         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
1777         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
1778         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
1779         * modules/unicase/u16-tolower-tests (Files): Likewise.
1780         * modules/unicase/u16-totitle-tests (Files): Likewise.
1781         * modules/unicase/u16-toupper-tests (Files): Likewise.
1782         * modules/unicase/u32-casecmp-tests (Files): Likewise.
1783         * modules/unicase/u32-casecoll-tests (Files): Likewise.
1784         * modules/unicase/u32-casefold-tests (Files): Likewise.
1785         * modules/unicase/u32-is-cased-tests (Files): Likewise.
1786         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
1787         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
1788         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
1789         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
1790         * modules/unicase/u32-tolower-tests (Files): Likewise.
1791         * modules/unicase/u32-totitle-tests (Files): Likewise.
1792         * modules/unicase/u32-toupper-tests (Files): Likewise.
1793         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
1794         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
1795         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
1796         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
1797         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
1798         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
1799         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
1800         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
1801         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
1802         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
1803         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
1804         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
1805         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
1806         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
1807         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
1808         * modules/unictype/bidicategory-name-tests (Files): Likewise.
1809         * modules/unictype/bidicategory-of-tests (Files): Likewise.
1810         * modules/unictype/bidicategory-test-tests (Files): Likewise.
1811         * modules/unictype/block-list-tests (Files): Likewise.
1812         * modules/unictype/block-of-tests (Files): Likewise.
1813         * modules/unictype/block-test-tests (Files): Likewise.
1814         * modules/unictype/category-C-tests (Files): Likewise.
1815         * modules/unictype/category-Cc-tests (Files): Likewise.
1816         * modules/unictype/category-Cf-tests (Files): Likewise.
1817         * modules/unictype/category-Cn-tests (Files): Likewise.
1818         * modules/unictype/category-Co-tests (Files): Likewise.
1819         * modules/unictype/category-Cs-tests (Files): Likewise.
1820         * modules/unictype/category-L-tests (Files): Likewise.
1821         * modules/unictype/category-Ll-tests (Files): Likewise.
1822         * modules/unictype/category-Lm-tests (Files): Likewise.
1823         * modules/unictype/category-Lo-tests (Files): Likewise.
1824         * modules/unictype/category-Lt-tests (Files): Likewise.
1825         * modules/unictype/category-Lu-tests (Files): Likewise.
1826         * modules/unictype/category-M-tests (Files): Likewise.
1827         * modules/unictype/category-Mc-tests (Files): Likewise.
1828         * modules/unictype/category-Me-tests (Files): Likewise.
1829         * modules/unictype/category-Mn-tests (Files): Likewise.
1830         * modules/unictype/category-N-tests (Files): Likewise.
1831         * modules/unictype/category-Nd-tests (Files): Likewise.
1832         * modules/unictype/category-Nl-tests (Files): Likewise.
1833         * modules/unictype/category-No-tests (Files): Likewise.
1834         * modules/unictype/category-P-tests (Files): Likewise.
1835         * modules/unictype/category-Pc-tests (Files): Likewise.
1836         * modules/unictype/category-Pd-tests (Files): Likewise.
1837         * modules/unictype/category-Pe-tests (Files): Likewise.
1838         * modules/unictype/category-Pf-tests (Files): Likewise.
1839         * modules/unictype/category-Pi-tests (Files): Likewise.
1840         * modules/unictype/category-Po-tests (Files): Likewise.
1841         * modules/unictype/category-Ps-tests (Files): Likewise.
1842         * modules/unictype/category-S-tests (Files): Likewise.
1843         * modules/unictype/category-Sc-tests (Files): Likewise.
1844         * modules/unictype/category-Sk-tests (Files): Likewise.
1845         * modules/unictype/category-Sm-tests (Files): Likewise.
1846         * modules/unictype/category-So-tests (Files): Likewise.
1847         * modules/unictype/category-Z-tests (Files): Likewise.
1848         * modules/unictype/category-Zl-tests (Files): Likewise.
1849         * modules/unictype/category-Zp-tests (Files): Likewise.
1850         * modules/unictype/category-Zs-tests (Files): Likewise.
1851         * modules/unictype/category-and-not-tests (Files): Likewise.
1852         * modules/unictype/category-and-tests (Files): Likewise.
1853         * modules/unictype/category-byname-tests (Files): Likewise.
1854         * modules/unictype/category-name-tests (Files): Likewise.
1855         * modules/unictype/category-none-tests (Files): Likewise.
1856         * modules/unictype/category-of-tests (Files): Likewise.
1857         * modules/unictype/category-or-tests (Files): Likewise.
1858         * modules/unictype/category-test-withtable-tests (Files): Likewise.
1859         * modules/unictype/combining-class-tests (Files): Likewise.
1860         * modules/unictype/ctype-alnum-tests (Files): Likewise.
1861         * modules/unictype/ctype-alpha-tests (Files): Likewise.
1862         * modules/unictype/ctype-blank-tests (Files): Likewise.
1863         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
1864         * modules/unictype/ctype-digit-tests (Files): Likewise.
1865         * modules/unictype/ctype-graph-tests (Files): Likewise.
1866         * modules/unictype/ctype-lower-tests (Files): Likewise.
1867         * modules/unictype/ctype-print-tests (Files): Likewise.
1868         * modules/unictype/ctype-punct-tests (Files): Likewise.
1869         * modules/unictype/ctype-space-tests (Files): Likewise.
1870         * modules/unictype/ctype-upper-tests (Files): Likewise.
1871         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
1872         * modules/unictype/decimal-digit-tests (Files): Likewise.
1873         * modules/unictype/digit-tests (Files): Likewise.
1874         * modules/unictype/mirror-tests (Files): Likewise.
1875         * modules/unictype/numeric-tests (Files): Likewise.
1876         * modules/unictype/property-alphabetic-tests (Files): Likewise.
1877         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
1878         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
1879         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
1880         Likewise.
1881         * modules/unictype/property-bidi-block-separator-tests (Files):
1882         Likewise.
1883         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
1884         Likewise.
1885         * modules/unictype/property-bidi-common-separator-tests (Files):
1886         Likewise.
1887         * modules/unictype/property-bidi-control-tests (Files): Likewise.
1888         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
1889         Likewise.
1890         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
1891         Likewise.
1892         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
1893         Likewise.
1894         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
1895         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
1896         Likewise.
1897         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
1898         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
1899         Likewise.
1900         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
1901         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
1902         * modules/unictype/property-bidi-segment-separator-tests (Files):
1903         Likewise.
1904         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
1905         * modules/unictype/property-byname-tests (Files): Likewise.
1906         * modules/unictype/property-combining-tests (Files): Likewise.
1907         * modules/unictype/property-composite-tests (Files): Likewise.
1908         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
1909         * modules/unictype/property-dash-tests (Files): Likewise.
1910         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
1911         * modules/unictype/property-default-ignorable-code-point-tests (Files):
1912         Likewise.
1913         * modules/unictype/property-deprecated-tests (Files): Likewise.
1914         * modules/unictype/property-diacritic-tests (Files): Likewise.
1915         * modules/unictype/property-extender-tests (Files): Likewise.
1916         * modules/unictype/property-format-control-tests (Files): Likewise.
1917         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
1918         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
1919         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
1920         * modules/unictype/property-hex-digit-tests (Files): Likewise.
1921         * modules/unictype/property-hyphen-tests (Files): Likewise.
1922         * modules/unictype/property-id-continue-tests (Files): Likewise.
1923         * modules/unictype/property-id-start-tests (Files): Likewise.
1924         * modules/unictype/property-ideographic-tests (Files): Likewise.
1925         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
1926         * modules/unictype/property-ids-trinary-operator-tests (Files):
1927         Likewise.
1928         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
1929         * modules/unictype/property-iso-control-tests (Files): Likewise.
1930         * modules/unictype/property-join-control-tests (Files): Likewise.
1931         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
1932         * modules/unictype/property-line-separator-tests (Files): Likewise.
1933         * modules/unictype/property-logical-order-exception-tests (Files):
1934         Likewise.
1935         * modules/unictype/property-lowercase-tests (Files): Likewise.
1936         * modules/unictype/property-math-tests (Files): Likewise.
1937         * modules/unictype/property-non-break-tests (Files): Likewise.
1938         * modules/unictype/property-not-a-character-tests (Files): Likewise.
1939         * modules/unictype/property-numeric-tests (Files): Likewise.
1940         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
1941         * modules/unictype/property-other-default-ignorable-code-point-tests
1942         (Files): Likewise.
1943         * modules/unictype/property-other-grapheme-extend-tests (Files):
1944         Likewise.
1945         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
1946         * modules/unictype/property-other-id-start-tests (Files): Likewise.
1947         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
1948         * modules/unictype/property-other-math-tests (Files): Likewise.
1949         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
1950         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
1951         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
1952         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
1953         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
1954         * modules/unictype/property-private-use-tests (Files): Likewise.
1955         * modules/unictype/property-punctuation-tests (Files): Likewise.
1956         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
1957         * modules/unictype/property-radical-tests (Files): Likewise.
1958         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
1959         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
1960         * modules/unictype/property-space-tests (Files): Likewise.
1961         * modules/unictype/property-terminal-punctuation-tests (Files):
1962         Likewise.
1963         * modules/unictype/property-test-tests (Files): Likewise.
1964         * modules/unictype/property-titlecase-tests (Files): Likewise.
1965         * modules/unictype/property-unassigned-code-value-tests (Files):
1966         Likewise.
1967         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
1968         * modules/unictype/property-uppercase-tests (Files): Likewise.
1969         * modules/unictype/property-variation-selector-tests (Files): Likewise.
1970         * modules/unictype/property-white-space-tests (Files): Likewise.
1971         * modules/unictype/property-xid-continue-tests (Files): Likewise.
1972         * modules/unictype/property-xid-start-tests (Files): Likewise.
1973         * modules/unictype/property-zero-width-tests (Files): Likewise.
1974         * modules/unictype/scripts-tests (Files): Likewise.
1975         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
1976         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
1977         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
1978         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
1979         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
1980         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
1981         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
1982         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
1983         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
1984         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
1985         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
1986         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
1987         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
1988         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
1989         * modules/uninorm/composition-tests (Files): Likewise.
1990         * modules/uninorm/decomposing-form-tests (Files): Likewise.
1991         * modules/uninorm/decomposition-tests (Files): Likewise.
1992         * modules/uninorm/filter-tests (Files): Likewise.
1993         * modules/uninorm/nfc-tests (Files): Likewise.
1994         * modules/uninorm/nfd-tests (Files): Likewise.
1995         * modules/uninorm/nfkc-tests (Files): Likewise.
1996         * modules/uninorm/nfkd-tests (Files): Likewise.
1997         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
1998         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
1999         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2000         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2001         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2002         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2003         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2004         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2005         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2006         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2007         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2008         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2009         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2010         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2011         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2012         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2013         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2014         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2015         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2016         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2017         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2018         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2019         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2020         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2021         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2022         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2023         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2024         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2025         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2026         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2027         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2028         * modules/uniwidth/u8-width-tests (Files): Likewise.
2029         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2030         * modules/uniwidth/u16-width-tests (Files): Likewise.
2031         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2032         * modules/uniwidth/u32-width-tests (Files): Likewise.
2033         * modules/uniwidth/width-tests (Files): Likewise.
2034         * modules/unlink-tests (Files): Likewise.
2035         * modules/unsetenv-tests (Files): Likewise.
2036         * modules/usleep-tests (Files): Likewise.
2037         * modules/utimens-tests (Files): Likewise.
2038         * modules/utimensat-tests (Files): Likewise.
2039         * modules/vasnprintf-posix-tests (Files): Likewise.
2040         * modules/vasnprintf-tests (Files): Likewise.
2041         * modules/vasprintf-posix-tests (Files): Likewise.
2042         * modules/vasprintf-tests (Files): Likewise.
2043         * modules/vdprintf-posix-tests (Files): Likewise.
2044         * modules/vfprintf-posix-tests (Files): Likewise.
2045         * modules/vprintf-posix-tests (Files): Likewise.
2046         * modules/vsnprintf-posix-tests (Files): Likewise.
2047         * modules/vsnprintf-tests (Files): Likewise.
2048         * modules/vsprintf-posix-tests (Files): Likewise.
2049         * modules/wcrtomb-tests (Files): Likewise.
2050         * modules/wcsnrtombs-tests (Files): Likewise.
2051         * modules/wcsrtombs-tests (Files): Likewise.
2052         * modules/wctype-tests (Files): Likewise.
2053         * modules/wcwidth-tests (Files): Likewise.
2054         * modules/xmemdup0-tests (Files): Likewise.
2055         * modules/xprintf-posix-tests (Files): Likewise.
2056         * modules/xvasprintf-tests (Files): Likewise.
2057
2058 2009-12-24  Eric Blake  <ebb9@byu.net>
2059
2060         test-nanosleep: fix typo
2061         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2062         patch.
2063         Reported by Bruno Haible.
2064
2065 2009-12-24  Bruno Haible  <bruno@clisp.org>
2066
2067         Reduce namespace pollution on glibc systems.
2068         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2069         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2070         systems.
2071         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2072         <getopt.h> on glibc systems.
2073         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2074         systems.
2075         * lib/fcntl.c: Include <unistd.h> here instead.
2076
2077 2009-12-24  Bruno Haible  <bruno@clisp.org>
2078
2079         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2080
2081 2009-12-24  Eric Blake  <ebb9@byu.net>
2082
2083         tests: add signature checks
2084         * tests/signature.h (SIGNATURE_CHECK): New file.
2085         * modules/atexit-tests (Files): Use it.
2086         * modules/btowc-tests (Files): Likewise.
2087         * modules/canonicalize-lgpl-tests (Files): Likewise.
2088         * modules/ceilf-tests (Files): Likewise.
2089         * modules/ceill-tests (Files): Likewise.
2090         * modules/chown-tests (Files): Likewise.
2091         * modules/dprintf-posix-tests (Files): Likewise.
2092         * modules/dup2-tests (Files): Likewise.
2093         * modules/dup3-tests (Files): Likewise.
2094         * modules/duplocale-tests (Files): Likewise.
2095         * modules/fchdir-tests (Files): Likewise.
2096         * modules/fcntl-tests (Files): Likewise.
2097         * modules/fdopendir-tests (Files): Likewise.
2098         * modules/fflush-tests (Files): Likewise.
2099         * modules/flock-tests (Files): Likewise.
2100         * modules/floorf-tests (Files): Likewise.
2101         * modules/floorl-tests (Files): Likewise.
2102         * modules/fnmatch-tests (Files): Likewise.
2103         * modules/fopen-tests (Files): Likewise.
2104         * modules/fprintf-posix-tests (Files): Likewise.
2105         * modules/freopen-tests (Files): Likewise.
2106         * modules/frexp-nolibm-tests (Files): Likewise.
2107         * modules/frexp-tests (Files): Likewise.
2108         * modules/frexpl-nolibm-tests (Files): Likewise.
2109         * modules/frexpl-tests (Files): Likewise.
2110         * modules/fseek-tests (Files): Likewise.
2111         * modules/fseeko-tests (Files): Likewise.
2112         * modules/fsync-tests (Files): Likewise.
2113         * modules/ftell-tests (Files): Likewise.
2114         * modules/ftello-tests (Files): Likewise.
2115         * modules/futimens-tests (Files): Likewise.
2116         * modules/getaddrinfo-tests (Files): Likewise.
2117         * modules/getcwd-tests (Files): Likewise.
2118         * modules/getdelim-tests (Files): Likewise.
2119         * modules/getdtablesize-tests (Files): Likewise.
2120         * modules/getgroups-tests (Files): Likewise.
2121         * modules/gethostname-tests (Files): Likewise.
2122         * modules/getline-tests (Files): Likewise.
2123         * modules/getopt-posix-tests (Files): Likewise.
2124         * modules/gettimeofday-tests (Files): Likewise.
2125         * modules/glob-tests (Files): Likewise.
2126         * modules/iconv-tests (Files): Likewise.
2127         * modules/inet_ntop-tests (Files): Likewise.
2128         * modules/inet_pton-tests (Files): Likewise.
2129         * modules/isblank-tests (Files): Likewise.
2130         * modules/lchown-tests (Files): Likewise.
2131         * modules/ldexpl-tests (Files): Likewise.
2132         * modules/link-tests (Files): Likewise.
2133         * modules/linkat-tests (Files): Likewise.
2134         * modules/lseek-tests (Files): Likewise.
2135         * modules/lstat-tests (Files): Likewise.
2136         * modules/mbrtowc-tests (Files): Likewise.
2137         * modules/mbsinit-tests (Files): Likewise.
2138         * modules/mbsnrtowcs-tests (Files): Likewise.
2139         * modules/mbsrtowcs-tests (Files): Likewise.
2140         * modules/memchr-tests (Files): Likewise.
2141         * modules/memcmp-tests (Files): Likewise.
2142         * modules/memmem-tests (Files): Likewise.
2143         * modules/memrchr-tests (Files): Likewise.
2144         * modules/mkdir-tests (Files): Likewise.
2145         * modules/mkfifo-tests (Files): Likewise.
2146         * modules/mkfifoat-tests (Files): Likewise.
2147         * modules/mknod-tests (Files): Likewise.
2148         * modules/nanosleep-tests (Files): Likewise.
2149         * modules/nl_langinfo-tests (Files): Likewise.
2150         * modules/obstack-printf-tests (Files): Likewise.
2151         * modules/open-tests (Files): Likewise.
2152         * modules/openat-tests (Files): Likewise.
2153         * modules/perror-tests (Files): Likewise.
2154         * modules/pipe2-tests (Files): Likewise.
2155         * modules/poll-tests (Files): Likewise.
2156         * modules/popen-tests (Files): Likewise.
2157         * modules/posix_spawn-tests (Files): Likewise.
2158         * modules/posix_spawnp-tests (Files): Likewise.
2159         * modules/pread-tests (Files): Likewise.
2160         * modules/printf-posix-tests (Files): Likewise.
2161         * modules/pty-tests (Files): Likewise.
2162         * modules/random_r-tests (Files): Likewise.
2163         * modules/rawmemchr-tests (Files): Likewise.
2164         * modules/readlink-tests (Files): Likewise.
2165         * modules/remove-tests (Files): Likewise.
2166         * modules/rename-tests (Files): Likewise.
2167         * modules/renameat-tests (Files): Likewise.
2168         * modules/rmdir-tests (Files): Likewise.
2169         * modules/round-tests (Files): Likewise.
2170         * modules/roundf-tests (Files): Likewise.
2171         * modules/roundl-tests (Files): Likewise.
2172         * modules/select-tests (Files): Likewise.
2173         * modules/setenv-tests (Files): Likewise.
2174         * modules/sigaction-tests (Files): Likewise.
2175         * modules/sleep-tests (Files): Likewise.
2176         * modules/snprintf-posix-tests (Files): Likewise.
2177         * modules/snprintf-tests (Files): Likewise.
2178         * modules/sprintf-posix-tests (Files): Likewise.
2179         * modules/stat-tests (Files): Likewise.
2180         * modules/strcasestr-tests (Files): Likewise.
2181         * modules/strchrnul-tests (Files): Likewise.
2182         * modules/strerror-tests (Files): Likewise.
2183         * modules/strsignal-tests (Files): Likewise.
2184         * modules/strstr-tests (Files): Likewise.
2185         * modules/strtod-tests (Files): Likewise.
2186         * modules/strverscmp-tests (Files): Likewise.
2187         * modules/symlink-tests (Files): Likewise.
2188         * modules/symlinkat-tests (Files): Likewise.
2189         * modules/times-tests (Files): Likewise.
2190         * modules/trunc-tests (Files): Likewise.
2191         * modules/truncf-tests (Files): Likewise.
2192         * modules/truncl-tests (Files): Likewise.
2193         * modules/tsearch-tests (Files): Likewise.
2194         * modules/uname-tests (Files): Likewise.
2195         * modules/unlink-tests (Files): Likewise.
2196         * modules/unsetenv-tests (Files): Likewise.
2197         * modules/usleep-tests (Files): Likewise.
2198         * modules/utimensat-tests (Files): Likewise.
2199         * modules/vasprintf-tests (Files): Likewise.
2200         * modules/vdprintf-posix-tests (Files): Likewise.
2201         * modules/vfprintf-posix-tests (Files): Likewise.
2202         * modules/vprintf-posix-tests (Files): Likewise.
2203         * modules/vsnprintf-posix-tests (Files): Likewise.
2204         * modules/vsnprintf-tests (Files): Likewise.
2205         * modules/vsprintf-posix-tests (Files): Likewise.
2206         * modules/wcrtomb-tests (Files): Likewise.
2207         * modules/wcsnrtombs-tests (Files): Likewise.
2208         * modules/wcsrtombs-tests (Files): Likewise.
2209         * modules/wcwidth-tests (Files): Likewise.
2210         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2211         * tests/test-isinf.c (isinf): Likewise.
2212         * tests/test-isnan.c (isnan): Likewise.
2213         * tests/test-signbit.c (signbit): Likewise.
2214         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2215         declaration, either as macro or with correct signature.
2216         (select): Ensure function under test is declared with correct
2217         signature in correct header.
2218         * tests/test-atexit.c (atexit): Likewise.
2219         * tests/test-btowc.c (btowc): Likewise.
2220         * tests/test-canonicalize-lgpl.c (realpath)
2221         (canonicalize_file_name): Likewise.
2222         * tests/test-ceilf1.c (ceilf): Likewise.
2223         * tests/test-ceill.c (ceill): Likewise.
2224         * tests/test-chown.c (chown): Likewise.
2225         * tests/test-dprintf-posix.c (dprintf): Likewise.
2226         * tests/test-dup2.c (dup2): Likewise.
2227         * tests/test-dup3.c (dup3): Likewise.
2228         * tests/test-duplocale.c (duplocale): Likewise.
2229         * tests/test-fchdir.c (fchdir): Likewise.
2230         * tests/test-fchownat.c (fchownat): Likewise.
2231         * tests/test-fcntl.c (fcntl): Likewise.
2232         * tests/test-fdopendir.c (fdopendir): Likewise.
2233         * tests/test-fflush.c (fflush): Likewise.
2234         * tests/test-flock.c (flock): Likewise.
2235         * tests/test-floorf1.c (floorf): Likewise.
2236         * tests/test-floorl.c (floorl): Likewise.
2237         * tests/test-fnmatch.c (fnmatch): Likewise.
2238         * tests/test-fopen.c (fopen): Likewise.
2239         * tests/test-fprintf-posix.c (fprintf): Likewise.
2240         * tests/test-freopen.c (freopen): Likewise.
2241         * tests/test-frexp.c (frexp): Likewise.
2242         * tests/test-frexpl.c (frexpl): Likewise.
2243         * tests/test-fseek.c (fseek): Likewise.
2244         * tests/test-fseeko.c (fseeko): Likewise.
2245         * tests/test-fstatat.c (fstatat): Likewise.
2246         * tests/test-fsync.c (fsync): Likewise.
2247         * tests/test-ftell.c (ftell): Likewise.
2248         * tests/test-ftello.c (ftello): Likewise.
2249         * tests/test-futimens.c (futimens): Likewise.
2250         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2251         (gai_strerror): Likewise.
2252         * tests/test-getcwd.c (getcwd): Likewise.
2253         * tests/test-getdelim.c (getdelim): Likewise.
2254         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2255         * tests/test-getgroups.c (getgroups): Likewise.
2256         * tests/test-gethostname.c (gethostname): Likewise.
2257         * tests/test-getline.c (getline): Likewise.
2258         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2259         Likewise.
2260         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2261         * tests/test-glob.c (glob, globfree): Likewise.
2262         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2263         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2264         * tests/test-inet_pton.c (inet_pton): Likewise.
2265         * tests/test-isblank.c (isblank): Likewise.
2266         * tests/test-lchown.c (lchown): Likewise.
2267         * tests/test-ldexpl.c (ldexpl): Likewise.
2268         * tests/test-link.c (link): Likewise.
2269         * tests/test-linkat.c (linkat): Likewise.
2270         * tests/test-lseek.c (lseek): Likewise.
2271         * tests/test-lstat.c (lstat): Likewise.
2272         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2273         * tests/test-mbsinit.c (mbsinit): Likewise.
2274         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2275         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2276         * tests/test-memchr.c (memchr): Likewise.
2277         * tests/test-memcmp.c (memcmp): Likewise.
2278         * tests/test-memmem.c (memmem): Likewise.
2279         * tests/test-memrchr.c (memrchr): Likewise.
2280         * tests/test-mkdir.c (mkdir): Likewise.
2281         * tests/test-mkdirat.c (mkdirat): Likewise.
2282         * tests/test-mkfifo.c (mkfifo): Likewise.
2283         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2284         * tests/test-mknod.c (mknod): Likewise.
2285         * tests/test-nanosleep.c (nanosleep): Likewise.
2286         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2287         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2288         Likewise.
2289         * tests/test-open.c (open): Likewise.
2290         * tests/test-openat.c (openat): Likewise.
2291         * tests/test-perror.c (perror): Likewise.
2292         * tests/test-pipe2.c (pipe2): Likewise.
2293         * tests/test-poll.c (poll): Likewise.
2294         * tests/test-popen.c (popen, pclose): Likewise.
2295         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2296         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2297         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2298         (posix_spawn_file_actions_destroy)
2299         (posix_spawn_file_actions_addclose)
2300         (posix_spawn_file_actions_addopen)
2301         (posix_spawn_file_actions_adddup2): Likewise.
2302         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2303         * tests/test-pread.c (pread): Likewise.
2304         * tests/test-printf-posix.c (printf): Likewise.
2305         * tests/test-pty.c (openpty, forkpty): Likewise.
2306         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2307         (random_r): Likewise.
2308         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2309         * tests/test-readlink.c (readlink): Likewise.
2310         * tests/test-remove.c (remove): Likewise.
2311         * tests/test-rename.c (rename): Likewise.
2312         * tests/test-renameat.c (renameat): Likewise.
2313         * tests/test-rmdir.c (rmdir): Likewise.
2314         * tests/test-round1.c (round): Likewise.
2315         * tests/test-roundf1.c (roundf): Likewise.
2316         * tests/test-roundl.c (roundl): Likewise.
2317         * tests/test-setenv.c (setenv): Likewise.
2318         * tests/test-sigaction.c (sigaction): Likewise.
2319         * tests/test-sleep.c (sleep): Likewise.
2320         * tests/test-snprintf.c (snprintf): Likewise.
2321         * tests/test-sprintf-posix.c (sprintf): Likewise.
2322         * tests/test-stat.c (stat): Likewise.
2323         * tests/test-stpncpy.c (stpncpy): Likewise.
2324         * tests/test-strcasestr.c (strcasestr): Likewise.
2325         * tests/test-strchrnul.c (strchrnul): Likewise.
2326         * tests/test-strerror.c (strerror): Likewise.
2327         * tests/test-strsignal.c (strsignal): Likewise.
2328         * tests/test-strstr.c (strstr): Likewise.
2329         * tests/test-strtod.c (strtod): Likewise.
2330         * tests/test-strverscmp.c (strverscmp): Likewise.
2331         * tests/test-symlink.c (symlink): Likewise.
2332         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2333         * tests/test-times.c (times): Likewise.
2334         * tests/test-trunc1.c (trunc): Likewise.
2335         * tests/test-truncf1.c (truncf): Likewise.
2336         * tests/test-truncl.c (truncl): Likewise.
2337         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2338         Likewise.
2339         * tests/test-uname.c (uname): Likewise.
2340         * tests/test-unlink.c (unlink): Likewise.
2341         * tests/test-unlinkat.c (unlinkat): Likewise.
2342         * tests/test-unsetenv.c (unsetenv): Likewise.
2343         * tests/test-usleep.c (usleep): Likewise.
2344         * tests/test-utimensat.c (utimensat): Likewise.
2345         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2346         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2347         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2348         * tests/test-vprintf-posix.c (vprintf): Likewise.
2349         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2350         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2351         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2352         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2353         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2354         * tests/test-wcwidth.c (wcwidth): Likewise.
2355
2356         build: pull in conditional headers during GNULIB_POSIXCHECK
2357         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2358         definitions from any conditionally-included headers.
2359         * lib/stdlib.in.h (includes): Likewise.
2360         * lib/unistd.in.h (includes): Likewise.
2361
2362 2009-12-24  Bruno Haible  <bruno@clisp.org>
2363
2364         * tests/test-argv-iter.c: Include header file being tested immediately
2365         after config.h.
2366         * tests/test-base64.c: Likewise.
2367         * tests/test-flock.c: Likewise.
2368         * tests/test-fsync.c: Likewise.
2369         * tests/test-getdate.c: Likewise.
2370         * tests/test-getndelim2.c: Likewise.
2371         * tests/test-isfinite.c: Likewise.
2372         * tests/test-isinf.c: Likewise.
2373         * tests/test-strerror.c: Likewise.
2374         * tests/test-strsignal.c: Likewise.
2375
2376 2009-12-23  Eric Blake  <ebb9@byu.net>
2377
2378         unistd: work around cygwin bug
2379         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2380         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2381         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2382
2383 2009-12-23  Bruno Haible  <bruno@clisp.org>
2384
2385         localename: More tests.
2386         * tests/test-localename.c (SIZEOF): New macro.
2387         (categories): New variable.
2388         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2389         test_locale_name_default): Add test w.r.t. thread locale.
2390         (test_locale_name_thread): New function.
2391         (main): Invoke it.
2392
2393         localename: Make aware of thread locale.
2394         * lib/localename.h (gl_locale_name_thread): New declaration.
2395         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2396         behaviour with respect to thread locale.
2397         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2398         <langinfo.h>, glthread/lock.h.
2399         (SIZE_BITS): New macro.
2400         (string_hash): New function.
2401         (struct hash_node): New type.
2402         (HASH_TABLE_SIZE): New macro.
2403         (struniq_hash_table, struniq_lock): New variables.
2404         (struniq): New function.
2405         (gl_locale_name_thread): New function.
2406         (gl_locale_name): Invoke it.
2407         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2408         * modules/localename (Depends-on): Add lock.
2409         Reported by Mike Gran <spk121@yahoo.com>.
2410
2411 2009-12-23  Eric Blake  <ebb9@byu.net>
2412
2413         va-args: new module
2414         * modules/va-args: New file.
2415         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2416         * MODULES.html.sh (Core language properties): Mention it.
2417
2418         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2419         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2420         named alias for __attribute__((__unused__)).
2421         * lib/chown.c: Update client.
2422         * lib/fchmodat.c: Likewise.
2423         * lib/fts.c: Likewise.
2424         * lib/getdate.y: Likewise.
2425         * lib/getgroups.c: Likewise.
2426         * lib/getopt.c: Likewise.
2427         * lib/getugroups.c: Likewise.
2428         * lib/mkdir.c: Likewise.
2429         * lib/mkfifo.c: Likewise.
2430         * lib/mkfifoat.c: Likewise.
2431         * lib/mknod.c: Likewise.
2432         * lib/mknodat.c: Likewise.
2433         * lib/readlink.c: Likewise.
2434         * lib/se-context.in.h: Likewise.
2435         * lib/se-selinux.in.h: Likewise.
2436         * lib/sockets.c: Likewise.
2437         * lib/symlink.c: Likewise.
2438         * lib/symlinkat.c: Likewise.
2439         * lib/unicodeio.c: Likewise.
2440         * lib/unistr.h: Likewise.
2441         * tests/test-areadlink.c: Likewise.
2442         * tests/test-areadlinkat.c: Likewise.
2443         * tests/test-filenamecat.c: Likewise.
2444         * tests/test-fseeko.c: Likewise.
2445         * tests/test-ftello.c: Likewise.
2446         * tests/test-getdate.c: Likewise.
2447         * tests/test-getgroups.c: Likewise.
2448         * tests/test-gethostname.c: Likewise.
2449         * tests/test-quotearg.c: Likewise.
2450         * tests/test-version-etc.c: Likewise.
2451         * tests/test-xalloc-die.c: Likewise.
2452         * tests/test-xfprintf-posix.c: Likewise.
2453         * tests/test-xprintf-posix.c: Likewise.
2454         * tests/test-xvasprintf.c: Likewise.
2455
2456         tests: avoid compiler warnings
2457         * tests/test-fcntl.c (main): Delete unused parameters.
2458         * tests/test-freopen-safer.c (main): Likewise.
2459         * tests/test-xalloc-die.c (main): Mark unused parameters.
2460         * tests/test-fseeko.c (main): Likewise.
2461         * tests/test-ftello.c (main): Likewise.
2462         * tests/test-nanosleep.c (main): Avoid declaration warning.
2463         * tests/test-sleep.c (main): Likewise.
2464         * tests/test-unsetenv.c (main): Silence warning about string
2465         literal.
2466         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2467
2468 2009-12-23  Bruno Haible  <bruno@clisp.org>
2469
2470         * tests/test-localename.c (test_locale_name): New function, extracted
2471         from main. Also test mixed situations.
2472         (test_locale_name_posix, test_locale_name_environ,
2473         test_locale_name_default): New functions.
2474         (main): Invoke them all.
2475         * modules/localename-tests (configure.ac): Test for newlocale.
2476
2477 2009-12-23  Bruno Haible  <bruno@clisp.org>
2478
2479         unistd: Ensure getcwd gets declared before being overridden.
2480         * lib/unistd.in.h: Conditionally include <io.h>.
2481
2482 2009-12-22  Bruno Haible  <bruno@clisp.org>
2483
2484         wchar: Diagnose broken combination of glibc and gcc versions and flags.
2485         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2486         (gl_WCHAR_H): Invoke it.
2487         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2488         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2489         Reported by Karl Berry <karl@freefriends.org>.
2490
2491 2009-12-22  Eric Blake  <ebb9@byu.net>
2492
2493         math, unistd: avoid redundant includes
2494         * lib/math.in.h (isnan): No need to re-include <math.h>.
2495         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2496
2497         getsubopt: work around cygwin bug
2498         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2499         avoid conflicting with system getsubopt.
2500         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2501         bug.
2502
2503         getopt: synchronize from glibc
2504         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2505         parameter order.  Adjust all callers.
2506         (_getopt_internal_r, main): Adjust quoting in error messages.
2507         Drop considerations for outdated POSIX 1003.2 error message.
2508         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2509         callers.
2510         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2511
2512         test-getopt: test stderr behavior
2513         * modules/getopt-posix-tests (Depends-on): Add dup2.
2514         * tests/test-getopt.c (ASSERT): Avoid stderr.
2515         (main): Move stderr to a temporary file.
2516         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2517         Instead, add parameter to inform caller if output occurred.
2518         (test_getopt): Adjust all existing tests to expect silence, and
2519         add new tests of leading ":".
2520         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2521         glibc shortcomings with leading "-:" or "+:" in optstring.
2522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2523         Likewise.
2524         * doc/posix-functions/getopt.texi (getopt): Likewise.
2525
2526         test-getopt: enhance test
2527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2528         supports optind=0.
2529         * tests/test-getopt.c (OPTIND_MIN): Move...
2530         * tests/test-getopt.h (OPTIND_MIN): ...here.
2531         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2532         Require that optind=0 works, since modern BSD supports it in
2533         addition to optreset, and since coreutils expects it.
2534         (test_getopt_long_only): New test.
2535         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2536         glibc shortcomings with 'W;', and enforcement of optind=0.
2537         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2538         Likewise.
2539
2540 2009-12-21  Bruno Haible  <bruno@clisp.org>
2541
2542         localename: Improvements for MacOS X and Cygwin.
2543         * lib/localename.h (gl_locale_name_environ): New declaration.
2544         * lib/localename.c (gl_locale_name_environ): New function, extracted from
2545         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2546         (gl_locale_name_posix): Invoke it.
2547         (gl_locale_name_default): Add comments. Use Windows native API also on
2548         Cygwin.
2549
2550 2009-12-21  Bruno Haible  <bruno@clisp.org>
2551
2552         Update list of Win32 locale ids.
2553         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2554         (LANG_SAMI): Renamed from LANG_SAAMI.
2555         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2556         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2557         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2558         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2559         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2560         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2561         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2562         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2563         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2564         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2565         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2566         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2567         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2568         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2569         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2570         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2571         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2572         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2573         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2574         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2575         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2576         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2577         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2578         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2579         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2580         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2581         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2582         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2583         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2584         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2585         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2586         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2587         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2588         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2589         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2590         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2591         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2592         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2593         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2594         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2595         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2596         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2597         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2598         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2599         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2600         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2601         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2602         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2603         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2604         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2605         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2606         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2607         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2608         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2609         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2610         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2611         Add more languages and countries for Sami, Sorbian. Add more countries
2612         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2613         for Pashto. Change country for Syriac, Tswana.
2614
2615 2009-12-21  Eric Blake  <ebb9@byu.net>
2616
2617         test-utimens: avoid spurious failure
2618         * tests/test-chown.h (nap): Factor...
2619         * tests/nap.h: ...into new file.
2620         * tests/test-lchown.h (nap): Avoid duplication.
2621         * tests/test-utimens-common.h (nap): Use shared implementation,
2622         necessary on file systems with 1-second resolution.
2623         * modules/chown-tests (Files): Include new file.
2624         * modules/fdutimensat-tests (Files): Likewise.
2625         * modules/futimens-tests (Files): Likewise.
2626         * modules/lchown-tests (Files): Likewise.
2627         * modules/openat-tests (Files): Likewise.
2628         * modules/utimens-tests (Files): Likewise.
2629         * modules/utimensat-tests (Files): Likewise.
2630
2631 2009-12-19  Eric Blake  <ebb9@byu.net>
2632
2633         futimens, utimensat: work around Linux bug
2634         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2635         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2636         * lib/utimensat.c (rpl_utimensat): Work around it.
2637         * lib/futimens.c (rpl_futimens): Adjust comment.
2638
2639         utimens: work around Linux ctime bug
2640         * lib/utimens.c (detect_ctime_bug): New helper function.
2641         (update_timespec): Differentiate between workaround needed for
2642         this bug vs. what is needed for systems that lack utimensat.
2643         (fdutimens, lutimens): Work around bug.
2644
2645         utimens: check for ctime update
2646         * tests/test-utimens-common.h (check_ctime): Define.
2647         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2648         * tests/test-futimens.h (test_futimens): Likewise.
2649         * tests/test-lutimens.h (test_lutimens): Likewise.
2650         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2651         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2652
2653 2009-12-19  Bruno Haible  <bruno@clisp.org>
2654
2655         dprintf-posix: Check against memory leak fixed on 2009-12-15.
2656         * tests/test-dprintf-posix2.sh: New file.
2657         * tests/test-dprintf-posix2.c: New file.
2658         * modules/dprintf-posix-tests (Files): Add them.
2659         (configure.ac): Check for getrlimit and setrlimit.
2660         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2661
2662 2009-12-19  Bruno Haible  <bruno@clisp.org>
2663
2664         fprintf-posix: Check against memory leak fixed on 2009-12-15.
2665         * tests/test-fprintf-posix3.sh: New file.
2666         * tests/test-fprintf-posix3.c: New file.
2667         * modules/fprintf-posix-tests (Files): Add them.
2668         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2669
2670 2009-12-19  Eric Blake  <ebb9@byu.net>
2671
2672         dirfd: fix prototype
2673         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2674         * lib/dirfd.c (dirfd): Likewise.
2675
2676         canonicalize: reduce memory usage
2677         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2678         allocation to size.
2679         Reported by Solar Designer <solar@openwall.com>.
2680
2681 2009-12-19  Bruno Haible  <bruno@clisp.org>
2682
2683         New module attribute 'Applicability'.
2684         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2685         * gnulib-tool: New option --extract-applicability.
2686         (func_usage): Document it.
2687         (sed_extract_prog): Recognize it.
2688         (func_get_applicability): New function.
2689         (func_import): Generalize handling of 'link-warning' module.
2690         * modules/link-warning (Applicability): New section.
2691         * modules/arg-nonnull (Applicability): New section.
2692         Repoted by Simon Josefsson <simon@josefsson.org>.
2693
2694 2009-12-19  Bruno Haible  <bruno@clisp.org>
2695
2696         fflush: tweak
2697         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2698         * lib/fseeko.c (rpl_fseeko): Likewise.
2699
2700 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
2701
2702         * lib/gl_list.h: Fix typo in comment.
2703
2704 2009-12-16  Eric Blake  <ebb9@byu.net>
2705
2706         fcntl: use to simplify other modules
2707         * modules/cloexec (Depends-on): Add fcntl.
2708         * modules/fchdir (Depends-on): Likewise.
2709         * modules/fd-safer-flag (Depends-on): Likewise.
2710         * modules/unistd-safer (Depends-on): Likewise.
2711         * modules/dup3 (configure.ac): Set module indicator.
2712         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2713         missing.
2714         * lib/fchdir.c (_gl_register_dup): Fix comment.
2715         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2716         * lib/dup-safer.c (dup_safer): Likewise.
2717         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2718         * lib/dup3.c (dup3): Likewise.
2719         * tests/test-fchdir.c (main): Enhance test.
2720         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
2721
2722         fcntl: port portions of fcntl to mingw
2723         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
2724         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
2725         replacement for mingw.
2726         * modules/fcntl (Description): Update.
2727         (Depends-on): Add dup2.
2728         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
2729         * modules/fcntl-h (Makefile.am): Substitute it.
2730         * lib/fcntl.in.h (fcntl): Update declaration.
2731         (F_DUPFD, F_GETFD): New macros, when needed.
2732         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2733         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
2734         * tests/test-fcntl.c (check_flags, main): Enhance test for items
2735         we now guarantee.
2736
2737         fcntl: work around cygwin bug in F_DUPFD
2738         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
2739         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
2740         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
2741         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
2742         * doc/posix-functions/fcntl.texi (fcntl): Document it.
2743
2744         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
2745         * modules/fcntl (Files): List new files.
2746         (configure.ac): Run a test.
2747         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
2748         * lib/fcntl.c (rpl_fcntl): Likewise.
2749         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
2750         (gl_FCNTL_H): Always replace fcntl.h.
2751         * modules/fcntl-h (Makefile.am): Substitute witnesses.
2752         * lib/fcntl.in.h (fcntl): Declare replacement.
2753         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
2754         needed, plus a witness.
2755         * doc/posix-functions/fcntl.texi (fcntl): Document this.
2756         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2757         * tests/test-fcntl.c: New file.
2758         * modules/fcntl-tests: Likewise.
2759
2760         binary-io: avoid potential compilation warning
2761         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
2762         directives.
2763
2764         fflush: avoid compilation error on NetBSD
2765         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
2766         between off_t and fpos_t, since the latter is sometimes a struct.
2767         * lib/fseeko.c (rpl_fseeko): Likewise.
2768         Reported by Alexander Nasonov <alnsn@yandex.ru>.
2769
2770 2009-12-15  Eric Blake  <ebb9@byu.net>
2771
2772         fcntl-h, stdio, sys_ioctl: fix declarations
2773         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
2774         function must not take arguments.
2775         * lib/sys_ioctl.in.h (ioctl): Likewise.
2776         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
2777         (open): Add a link warning.
2778
2779 2009-12-15  Jim Meyering  <meyering@redhat.com>
2780
2781         areadlink, areadlink-with-size: relax license to LGPLv2+
2782         * modules/areadlink (License): Relax to LGPLv2+.
2783         * modules/areadlink-with-size (License): Likewise.
2784
2785 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
2786             Bruno Haible  <bruno@clisp.org>
2787
2788         *printf: Fix memory leak.
2789         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
2790         * lib/vfprintf.c (vfprintf): Likewise.
2791         * lib/dprintf.c (dprintf): Likewise.
2792         * lib/vdprintf.c (vdprintf): Likewise.
2793
2794 2009-12-14  Eric Blake  <ebb9@byu.net>
2795
2796         accept4: adjust module dependencies
2797         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
2798
2799         utimens: one more try at avoiding compiler warning
2800         * lib/utimens.c (lutimens): Lower scope of result.
2801
2802 2009-12-13  Bruno Haible  <bruno@clisp.org>
2803
2804         Move the malloc checking from module 'list' to new module 'xlist'.
2805         * modules/xlist: New file.
2806         * lib/gl_xlist.h: New file.
2807         * lib/gl_xlist.c: New file.
2808         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
2809         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
2810         gl_list_add_last, gl_list_add_before, gl_list_add_after,
2811         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
2812         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
2813         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
2814         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
2815         gl_sortedlist_nx_add): New declarations.
2816         (struct gl_list_implementation): Rename and change methods accordingly.
2817         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
2818         (gl_list_nx_create): Renamed from gl_list_create.
2819         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
2820         (gl_list_nx_set_at): Renamed from gl_list_set_at.
2821         (gl_list_nx_add_first): Renamed from gl_list_add_first.
2822         (gl_list_nx_add_last): Renamed from gl_list_add_last.
2823         (gl_list_nx_add_before): Renamed from gl_list_add_before.
2824         (gl_list_nx_add_after): Renamed from gl_list_add_after.
2825         (gl_list_nx_add_at): Renamed from gl_list_add_at.
2826         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
2827         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
2828         gl_list_create_empty.
2829         (gl_list_nx_create): Renamed from gl_list_create.
2830         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
2831         (gl_list_nx_set_at): Renamed from gl_list_set_at.
2832         (gl_list_nx_add_first): Renamed from gl_list_add_first.
2833         (gl_list_nx_add_last): Renamed from gl_list_add_last.
2834         (gl_list_nx_add_before): Renamed from gl_list_add_before.
2835         (gl_list_nx_add_after): Renamed from gl_list_add_after.
2836         (gl_list_nx_add_at): Renamed from gl_list_add_at.
2837         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
2838         * lib/gl_array_list.c: Don't include xalloc.h.
2839         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
2840         NULL upon out-of-memory.
2841         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
2842         out-of-memory.
2843         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
2844         Change return type to 'int'.
2845         (gl_array_nx_set_at): Renamed from gl_array_set_at.
2846         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
2847         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
2848         upon out-of-memory.
2849         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
2850         upon out-of-memory.
2851         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
2852         upon out-of-memory.
2853         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
2854         upon out-of-memory.
2855         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
2856         out-of-memory.
2857         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
2858         Update.
2859         (gl_array_list_implementation): Update.
2860         * lib/gl_carray_list.c: Don't include xalloc.h.
2861         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
2862         Return NULL upon out-of-memory.
2863         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
2864         out-of-memory.
2865         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
2866         Change return type to 'int'.
2867         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
2868         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
2869         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
2870         upon out-of-memory.
2871         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
2872         upon out-of-memory.
2873         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
2874         out-of-memory.
2875         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
2876         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
2877         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
2878         Update.
2879         (gl_carray_list_implementation): Update.
2880         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
2881         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
2882         gl_linked_create_empty. Return NULL upon out-of-memory.
2883         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
2884         out-of-memory.
2885         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
2886         Change return type to 'int'. Return -1 upon out-of-memory.
2887         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
2888         out-of-memory.
2889         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
2890         upon out-of-memory.
2891         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
2892         upon out-of-memory.
2893         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
2894         NULL upon out-of-memory.
2895         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
2896         upon out-of-memory.
2897         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
2898         out-of-memory.
2899         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
2900         Update.
2901         * lib/gl_linked_list.c: Don't include xalloc.h.
2902         (gl_linked_list_implementation): Update.
2903         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
2904         (add_to_bucket): Change return type to 'int'.
2905         (gl_linkedhash_list_implementation): Update.
2906         * lib/gl_anytree_list1.h (free_subtree): New function.
2907         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
2908         gl_tree_create_empty. Return NULL upon out-of-memory.
2909         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
2910         Change return type to 'int'. Return -1 upon out-of-memory.
2911         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
2912         out-of-memory.
2913         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
2914         (gl_tree_remove_node): New function, moved here from
2915         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
2916         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
2917         Update.
2918         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
2919         malloc, not xmalloc. Return NULL upon out-of-memory.
2920         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
2921         out-of-memory.
2922         (gl_tree_remove_node_from_tree): New function, extracted from
2923         gl_tree_remove_node.
2924         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
2925         upon out-of-memory.
2926         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
2927         out-of-memory.
2928         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
2929         upon out-of-memory.
2930         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
2931         upon out-of-memory.
2932         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
2933         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
2934         not xmalloc. Return NULL upon out-of-memory.
2935         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
2936         out-of-memory.
2937         (gl_tree_remove_node_from_tree): New function, extracted from
2938         gl_tree_remove_node.
2939         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
2940         upon out-of-memory.
2941         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
2942         out-of-memory.
2943         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
2944         upon out-of-memory.
2945         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
2946         upon out-of-memory.
2947         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
2948         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
2949         gl_anytree_list1.h before gl_anyavltree_list2.h.
2950         (gl_avltree_list_implementation): Update.
2951         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
2952         gl_anytree_list1.h before gl_anyavltree_list2.h.
2953         (gl_rbtree_list_implementation): Update.
2954         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
2955         Change return type to 'int'. Return -1 upon out-of-memory. Use
2956         __builtin_expect.
2957         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
2958         (gl_avltreehash_list_implementation): Update.
2959         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
2960         (gl_rbtreehash_list_implementation): Update.
2961         * modules/array-list (Depends-on): Remove xalloc.
2962         * modules/carray-list (Depends-on): Likewise.
2963         * modules/linked-list (Depends-on): Likewise.
2964         * modules/linkedhash-list (Depends-on): Likewise.
2965         * modules/avltree-list (Depends-on): Likewise.
2966         * modules/rbtree-list (Depends-on): Likewise.
2967         * modules/avltreehash-list (Depends-on): Likewise.
2968         * modules/rbtreehash-list (Depends-on): Likewise.
2969
2970         * modules/xsublist: New file.
2971         * lib/gl_xsublist.h: New file.
2972         * lib/gl_xsublist.c: New file.
2973         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
2974         (gl_sublist_nx_create): New declaration.
2975         * lib/gl_sublist.c: Don't include xalloc.h.
2976         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
2977         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
2978         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
2979         Change return type to 'int'. Return -1 upon out-of-memory.
2980         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
2981         upon out-of-memory.
2982         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
2983         NULL upon out-of-memory.
2984         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
2985         upon out-of-memory.
2986         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
2987         NULL upon out-of-memory.
2988         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
2989         NULL upon out-of-memory.
2990         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
2991         upon out-of-memory.
2992         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
2993         (gl_sublist_list_implementation): Update.
2994         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
2995         upon out-of-memory.
2996         * modules/sublist (Depends-on): Remove xalloc.
2997
2998         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
2999         * tests/test-carray_list.c: Likewise.
3000         * tests/test-linked_list.c: Likewise.
3001         * tests/test-linkedhash_list.c: Likewise.
3002         * tests/test-avltree_list.c: Likewise.
3003         * tests/test-rbtree_list.c: Likewise.
3004         * tests/test-avltreehash_list.c: Likewise.
3005         * tests/test-rbtreehash_list.c: Likewise.
3006         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3007         * modules/carray-list-tests (Makefile.am): Likewise.
3008         * modules/linked-list-tests (Makefile.am): Likewise.
3009         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3010         * modules/avltree-list-tests (Makefile.am): Likewise.
3011         * modules/rbtree-list-tests (Makefile.am): Likewise.
3012         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3013         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3014
3015         * NEWS: Mention the changes.
3016
3017         * lib/clean-temp.c: Include gl_xlist.h.
3018         * modules/clean-temp (Depends-on): Add xlist.
3019
3020         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3021         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3022
3023         * tests/test-array_oset.c: Include gl_xlist.h.
3024         * modules/array-oset-tests (Depends-on): Add xlist.
3025
3026         Reported by José E. Marchesi <jemarch@gnu.org>.
3027
3028 2009-12-13  Bruno Haible  <bruno@clisp.org>
3029
3030         Move the malloc checking from module 'oset' to new module 'xoset'.
3031         * modules/xoset: New file.
3032         * lib/gl_xoset.h: New file.
3033         * lib/gl_xoset.c: New file.
3034         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3035         declarations.
3036         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3037         (struct gl_oset_implementation): Rename and change methods accordingly.
3038         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3039         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3040         'int'. Mark as __warn_unused_result__.
3041         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3042         gl_oset_create_empty.
3043         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3044         'int'.
3045         * lib/gl_array_oset.c: Don't include xalloc.h.
3046         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3047         malloc, not xmalloc.
3048         (grow): Change return type to 'int'. Don't call xalloc_die.
3049         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3050         to 'int'.
3051         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3052         'int'.
3053         (gl_array_oset_implementation): Update.
3054         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3055         gl_tree_create_empty.
3056         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3057         'int'.
3058         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3059         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3060         xmalloc.
3061         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3062         not xmalloc.
3063         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3064         xmalloc.
3065         (gl_avltree_oset_implementation): Update.
3066         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3067         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3068         xmalloc.
3069         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3070         not xmalloc.
3071         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3072         xmalloc.
3073         (gl_rbtree_oset_implementation): Update.
3074         * modules/array-oset (Depends-on): Remove xalloc.
3075         * modules/avltree-oset (Depends-on): Likewise.
3076         * modules/rbtree-oset (Depends-on): Likewise.
3077         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3078         * tests/test-avltree_oset.c: Likewise.
3079         * tests/test-rbtree_oset.c: Likewise.
3080         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3081         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3082         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3083         * NEWS: Mention the change.
3084
3085 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3086
3087         maint.mk: allow a project to override release-prep commands
3088         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3089         commands into a new rule.
3090         (release-prep): New rule.
3091         (release-prep-hook): New overridable variable.
3092
3093 2009-12-13  Bruno Haible  <bruno@clisp.org>
3094
3095         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3096
3097 2009-12-13  Jim Meyering  <meyering@redhat.com>
3098
3099         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3100         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3101
3102 2009-12-12  Bruno Haible  <bruno@clisp.org>
3103
3104         duplocale: Tweak.
3105         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3106
3107 2009-12-12  Karl Berry  <karl@gnu.org>
3108
3109         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3110
3111 2009-12-12  Bruno Haible  <bruno@clisp.org>
3112
3113         * m4/po.m4: Undo incorrect untabification.
3114
3115 2009-12-12  Bruno Haible  <bruno@clisp.org>
3116
3117         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3118         * modules/c-strtod (Depends-on): Add locale.
3119         * modules/c-strtold (Depends-on): Likewise.
3120
3121 2009-12-12  Bruno Haible  <bruno@clisp.org>
3122
3123         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3124
3125 2009-12-11  Eric Blake  <ebb9@byu.net>
3126
3127         setenv: relax requirement in light of POSIX ruling
3128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3129         not NULL.
3130         * tests/test-setenv.c (main): Relax test.
3131         * tests/test-unsetenv.c (main): Likewise.
3132         * doc/posix-functions/setenv.texi (setenv): Document this.
3133         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3134
3135 2009-12-11  Bruno Haible  <bruno@clisp.org>
3136
3137         New module 'fd-safer-flag'.
3138         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3139         * lib/dup-safer.c (dup_safer_flag): Remove function.
3140         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3141         * lib/fd-safer.c (fd_safer_flag): Remove function.
3142         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3143         * modules/cloexec (configure.ac): Drop indicator macro.
3144         * modules/fd-safer-flag: New file.
3145         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3146         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3147         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3148
3149 2009-12-11  Bruno Haible  <bruno@clisp.org>
3150
3151         Tests for module 'nl_langinfo'.
3152         * modules/nl_langinfo-tests: New file.
3153         * tests/test-nl_langinfo.sh: New file.
3154         * tests/test-nl_langinfo.c: New file.
3155
3156         New module 'nl_langinfo'.
3157         * lib/nl_langinfo.c: New file.
3158         * m4/nl_langinfo.m4: New file.
3159         * modules/nl_langinfo: New file.
3160         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3161
3162 2009-12-11  Bruno Haible  <bruno@clisp.org>
3163
3164         Tests for module 'langinfo'.
3165         * modules/langinfo-tests: New file.
3166         * tests/test-langinfo.c: New file.
3167
3168         New module 'langinfo'.
3169         * lib/langinfo.in.h: New file.
3170         * m4/langinfo_h.m4: New file.
3171         * modules/langinfo: New file.
3172         * doc/posix-headers/langinfo.texi: Mention the new module.
3173
3174 2009-12-11  Bruno Haible  <bruno@clisp.org>
3175
3176         * lib/config.charset: Untabify.
3177
3178 2009-12-11  Bruno Haible  <bruno@clisp.org>
3179
3180         * modules/unistd-safer (configure.ac): Drop indicator macro.
3181
3182 2009-12-11  Bruno Haible  <bruno@clisp.org>
3183
3184         Move pipe2-safer code to its own file.
3185         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3186         * lib/pipe-safer.c (pipe2_safer): Remove function.
3187         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3188         (Makefile.am): Add it to lib_SOURCES.
3189
3190 2009-12-10  Bruno Haible  <bruno@clisp.org>
3191
3192         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3193
3194 2009-12-10  Bruno Haible  <bruno@clisp.org>
3195
3196         Declare which arguments expect non-NULL values, for GCC and clang.
3197         * build-aux/arg-nonnull.h: New file.
3198         * modules/arg-nonnull: New file.
3199         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3200         (inet_ntop, inet_pton): Use it.
3201         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3202         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3203         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3204         (open, openat): Use it.
3205         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3206         (fnmatch): Use it.
3207         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3208         (getopt, getopt_long, getopt_long_only): Use it.
3209         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3210         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3211         Use it.
3212         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3213         (iconv_open): Use it.
3214         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3215         (strtoimax, strtoumax): Use it.
3216         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3217         (duplocale): Use it.
3218         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3219         (frexp, frexpl): Use it.
3220         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3221         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3222         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3223         (tsearch, tfind, tdelete, twalk): Use it.
3224         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3225         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3226         sigpending): Use it.
3227         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3228         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3229         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3230         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3231         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3232         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3233         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3234         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3235         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3236         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3237         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3238         Use it.
3239         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3240         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3241         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3242         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3243         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3244         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3245         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3246         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3247         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3248         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3249         strtoull, unsetenv): Use it.
3250         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3251         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3252         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3253         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3254         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3255         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3256         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3257         (strcasecmp, strncasecmp): Use it.
3258         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3259         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3260         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3261         rpl_setsockopt): Use it.
3262         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3263         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3264         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3265         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3266         (gettimeofday): Use it.
3267         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3268         (times): Use it.
3269         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3270         (uname): Use it.
3271         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3272         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3273         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3274         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3275         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3276         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3277         unlinkat, write): Use it.
3278         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3279         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3280         * lib/argv-iter.h: Include arg-nonnull.h.
3281         (_ATTRIBUTE_NONNULL_): Remove macro.
3282         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3283         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3284         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3285         optimization.
3286         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3287         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3288         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3289         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3290         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3291         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3292         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3293         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3294         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3295         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3296         * modules/dirent (Depends-on): Add arg-nonnull.
3297         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3298         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3299         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3300         * modules/fnmatch (Depends-on): Add arg-nonnull.
3301         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3302         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3303         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3304         * modules/glob (Depends-on): Add arg-nonnull.
3305         (Makefile.am): Insert arg-nonnull.h into glob.h.
3306         * modules/iconv_open (Depends-on): Add arg-nonnull.
3307         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3308         * modules/inttypes (Depends-on): Add arg-nonnull.
3309         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3310         * modules/locale (Depends-on): Add arg-nonnull.
3311         (Makefile.am): Insert arg-nonnull.h into locale.h.
3312         * modules/math (Depends-on): Add arg-nonnull.
3313         (Makefile.am): Insert arg-nonnull.h into math.h.
3314         * modules/netdb (Depends-on): Add arg-nonnull.
3315         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3316         * modules/search (Depends-on): Add arg-nonnull.
3317         (Makefile.am): Insert arg-nonnull.h into search.h.
3318         * modules/signal (Depends-on): Add arg-nonnull.
3319         (Makefile.am): Insert arg-nonnull.h into signal.h.
3320         * modules/spawn (Depends-on): Add arg-nonnull.
3321         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3322         * modules/stdio (Depends-on): Add arg-nonnull.
3323         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3324         * modules/stdlib (Depends-on): Add arg-nonnull.
3325         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3326         * modules/string (Depends-on): Add arg-nonnull.
3327         (Makefile.am): Insert arg-nonnull.h into string.h.
3328         * modules/strings (Depends-on): Add arg-nonnull.
3329         (Makefile.am): Insert arg-nonnull.h into strings.h.
3330         * modules/sys_socket (Depends-on): Add arg-nonnull.
3331         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3332         * modules/sys_stat (Depends-on): Add arg-nonnull.
3333         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3334         * modules/sys_time (Depends-on): Add arg-nonnull.
3335         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3336         * modules/sys_times (Depends-on): Add arg-nonnull.
3337         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3338         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3339         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3340         * modules/time (Depends-on): Add arg-nonnull.
3341         (Makefile.am): Insert arg-nonnull.h into time.h.
3342         * modules/unistd (Depends-on): Add arg-nonnull.
3343         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3344         * modules/wchar (Depends-on): Add arg-nonnull.
3345         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3346         * modules/argv-iter (Depends-on): Add arg-nonnull.
3347         * tests/test-canonicalize.c (null_ptr): New function.
3348         (main): Use it.
3349         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3350         (main): Use it.
3351         * tests/test-memmem.c (null_ptr): New function.
3352         (main): Use it.
3353         Reported by Jim Meyering.
3354
3355 2009-12-10  Bruno Haible  <bruno@clisp.org>
3356
3357         Use spaces for indentation, not tabs.
3358         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3359         * m4/*.m4: Untabify.
3360         * build-aux/*.h: Untabify.
3361         * tests/**/*.[hc]: Untabify.
3362         * README: New section "Indent with spaces, not TABs", based on
3363         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3364         * NEWS: Mention the change.
3365
3366 2009-12-10  Bruno Haible  <bruno@clisp.org>
3367
3368         pty test: Fix link error.
3369         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3370         test_pty_LDADD.
3371
3372 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3373
3374         * modules/pty: New file.
3375         * modules/pty-tests: New file.
3376         * m4/pty.m4: New file.
3377         * tests/test-pty.c: New file.
3378         * doc/glibc-headers/pty.texi: Modified.
3379         * doc/glibc-functions/forkpty.texi: Modified.
3380         * doc/glibc-functions/openpty.texi: Modified.
3381
3382 2009-12-10  Bruno Haible  <bruno@clisp.org>
3383
3384         Avoid syntax error in C++ mode.
3385         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3386
3387 2009-12-10  Bruno Haible  <bruno@clisp.org>
3388
3389         Use sed with option -e.
3390         * gnulib-tool (func_version, func_emit_copyright_notice,
3391         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3392         option -e to sed.
3393         * modules/link-warning (Makefile.am): Likewise.
3394
3395 2009-12-10  Jim Meyering  <meyering@redhat.com>
3396
3397         mgetgroups: do not write bytes beyond end of malloc'd buffer
3398         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3399         username, we call getgroups with a one-element-shorter buffer,
3400         but still told it the length was original, max_n_groups.
3401
3402 2009-12-09  Eric Blake  <ebb9@byu.net>
3403
3404         cloexec: relax license
3405         * modules/cloexec (Maintainer): Add myself.
3406         (License): Use LGPL, not GPL.
3407
3408         link-warning: optimize generation
3409         * modules/link-warning (Makefile.am): Reduce process usage.
3410
3411 2009-12-09  Bruno Haible  <bruno@clisp.org>
3412
3413         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3414         workaround was added on 2009-11-17.
3415
3416 2009-12-09  Jim Meyering  <meyering@redhat.com>
3417             Bruno Haible  <bruno@clisp.org>
3418
3419         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3420         * modules/link-warning (Makefile.am): Make the comment-removing sed
3421         command more robust in the face of bootstrap-prepended comment lines.
3422
3423 2009-12-09  Bruno Haible  <bruno@clisp.org>
3424
3425         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3426         most one group.
3427
3428 2009-12-09  Simon Josefsson <simon@josefsson.org>
3429             Bruno Haible  <bruno@clisp.org>
3430
3431         * build-aux/link-warning.h: Add copyright notice.
3432         * modules/link-warning (Makefile.am): Generate link-warning.h from
3433         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3434         * NEWS: Mention change in link-warning module.
3435         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3436         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3437         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3438         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3439         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3440         * modules/math (Makefile.am): Add dependency to math.h.
3441         * modules/search (Makefile.am): Add dependency to search.h.
3442         * modules/signal (Makefile.am): Add dependency to signal.h.
3443         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3444         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3445         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3446         * modules/string (Makefile.am): Add dependency to string.h.
3447         * modules/strings (Makefile.am): Add dependency to strings.h.
3448         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3449         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3450         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3451         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3452         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3453         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3454         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3455         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3456         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3457
3458 2009-12-09  Bruno Haible  <bruno@clisp.org>
3459
3460         fchdir: Optimize away rpl_fstat when possible.
3461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3462         REPLACE_OPEN_DIRECTORY.
3463         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3464
3465 2009-12-09  Bruno Haible  <bruno@clisp.org>
3466
3467         * lib/fchdir.c: Update comment.
3468
3469 2009-12-09  Bruno Haible  <bruno@clisp.org>
3470
3471         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3472
3473 2009-12-08  Eric Blake  <ebb9@byu.net>
3474
3475         fchdir: avoid memory leak on re-registration.
3476         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3477
3478 2009-12-08  Jim Meyering  <meyering@redhat.com>
3479
3480         init.sh: avoid Solaris 10 /bin/sh portability problem
3481         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3482         sourced script:
3483           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3484           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3485           bar
3486         tests/init.sh relied on that, accepting a --set-path=DIR argument,
3487         and two tests used that idiom.
3488         * tests/init.sh: Update suggested usage comments.
3489         (path_prepend_): New function, to be used in place
3490         of the --src-path=DIR option.
3491         (setup_): Move PATH-prepending code into path_prepend_.
3492         * tests/test-pread.sh: Adapt to new usage.
3493         * tests/test-xalloc-die.sh: Likewise.
3494
3495 2009-12-08  Simon Josefsson  <simon@josefsson.org>
3496
3497         * doc/gnulib.texi (Glibc pty.h): Add.
3498         * doc/glibc-functions/forkpty.texi: Add.
3499         * doc/glibc-functions/openpty.texi: Add.
3500         Suggested by Bruno Haible.
3501
3502 2009-12-08  Eric Blake  <ebb9@byu.net>
3503
3504         fchdir: fix logic bugs
3505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3506         * tests/test-fchdir.c (main): Enhance test.
3507         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3508         is in use.
3509
3510         dup2: fix logic bugs
3511         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
3512         REPLACE_DUP2 to decide when rpl_dup2 is needed.
3513         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3514         exists.
3515         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3516
3517 2009-12-07  Eric Blake  <ebb9@byu.net>
3518
3519         unlink: fix m4 detection
3520         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3521
3522         unistd-safer: add unit test
3523         * modules/unistd-safer-tests: New file.
3524         * tests/test-dup-safer.c: Likewise.
3525         * tests/test-cloexec.c (setmode): Avoid compiler warning.
3526         * tests/test-dup2.c (setmode): Likewise.
3527         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3528
3529         cloexec: preserve text vs. binary across dup_cloexec
3530         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3531         mode.
3532         * modules/dup2-tests (Depends-on): Add binary-io.
3533         * modules/cloexec-tests (Depends-on): Likewise.
3534         * tests/test-dup2.c (setmode, is_mode): New helpers.
3535         (main): Add tests that translation mode is preserved.
3536         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3537         Reported by Bruno Haible.
3538
3539         mgetgroups: reduce duplicate listings
3540         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3541         resulting array.
3542         * tests/test-chown.h (test_chown): Simplify client.
3543         * tests/test-lchown.h (test_lchown): Likewise.
3544
3545 2009-12-06  Bruno Haible  <bruno@clisp.org>
3546
3547         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3548         value.
3549
3550 2009-12-06  Bruno Haible  <bruno@clisp.org>
3551
3552         * lib/progname.c: Include stdio.h, stdlib.h.
3553         (set_program_name): Reject a NULL argument.
3554
3555 2009-12-05  Eric Blake  <ebb9@byu.net>
3556
3557         pipe2-safer: new module
3558         * modules/pipe2-safer: New file.
3559         * lib/unistd-safer.h (pipe2_safer): New prototype.
3560         * lib/unistd--.h (pipe2): New wrapper.
3561         * lib/pipe-safer.c (pipe2_safer): New function.
3562         * modules/pipe (Depends-on): Add pipe2-safer.
3563         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3564
3565         stdlib-safer: preserve cloexec flag for mkostemp[s]
3566         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3567         fd_safer_flag.
3568
3569         unistd-safer: allow preservation of cloexec status via flag
3570         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3571         prototypes.
3572         * lib/dup-safer.c (dup_safer_flag): New function.
3573         * lib/fd-safer.c (fd_safer_flag): Likewise.
3574         * modules/cloexec (configure.ac): Set witness.
3575
3576         test-dup2: enhance test
3577         * modules/dup2-tests (Depends-on): Add cloexec.
3578         * tests/test-dup2.c (main): Enhance test.
3579
3580         cloexec: add dup_cloexec
3581         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
3582         header and comments.
3583         * lib/cloexec.c (set_cloexec_flag): Add comments.
3584         (dup_cloexec): New function, with mingw implementation borrowed
3585         from...
3586         * lib/w32spawn.h (dup_noinherit): ...here.
3587         * modules/execute (Depends-on): Add cloexec.
3588         * modules/pipe (Depends-on): Likewise.
3589         * modules/cloexec (Depends-on): Add dup2.
3590         * modules/cloexec-tests (Files): New file.
3591         * tests/test-cloexec.c: Likewise.
3592
3593         test-xalloc-die: fix test for mingw
3594         * modules/xalloc-die-tests (Files): Add tests/init.sh.
3595         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
3596         directory and .exe suffix off argv[0] output.
3597
3598         test-fseeko: fix test for mingw
3599         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3600         than undefining fseek, so test will pass on mingw.
3601
3602 2009-12-05  Bruno Haible  <bruno@clisp.org>
3603
3604         * lib/progname.h (set_program_name): Clarify specification.
3605         * lib/progname.c (set_program_name): Likewise.
3606         Reported by Jim Meyering.
3607
3608 2009-12-05  Jim Meyering  <meyering@redhat.com>
3609
3610         maint.mk: backslash-escape parens in default regexp
3611         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3612         backslash-escape the literal parentheses.
3613
3614         maint.mk: news-date-check: use grep -E
3615         * top/maint.mk (today): Define a Make variable, not a...
3616         (news-date-check): ...shell variable.
3617         (news-date-regexp): Use the Make variable.
3618         Use grep's -E option.  Change the failing diagnostic to mention
3619         the variable, $(news-date-regexp).
3620
3621 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
3622
3623         maintainer-makefile: allow customization of NEWS entry format
3624         * top/maint.mk (news-date-regexp): New overridable variable.
3625         (news-date-check): Use it.
3626
3627 2009-12-04  Eric Blake  <ebb9@byu.net>
3628
3629         mgetgroups: add xgetgroups, and avoid ENOSYS failures
3630         * lib/mgetgroups.h (xgetgroups): New prototype.
3631         * lib/mgetgroups.c (xgetgroups): New wrapper.
3632         (mgetgroups): Handle ENOSYS.
3633         * modules/mgetgroups (Depends-on): Add realloc.
3634         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3635
3636         mgetgroups: avoid argument promotion issues with -1
3637         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3638         for invalid gid_t.
3639         * tests/test-chown.h (getegid, test_chown): Likewise.
3640         * tests/test-lchown.h (getegid, test_lchown): Likewise.
3641
3642 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
3643
3644         exclude: Fix header file problems.
3645         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3646
3647 2009-12-01  Jim Meyering  <meyering@redhat.com>
3648
3649         fts: fts_open: do not let an empty string cause immediate failure
3650         This is required in support of GNU rm, for which the command
3651         "rm A '' B" must process and remove both A and B, in spite of
3652         the empty string argument.
3653         * lib/fts.c (fts_open): Do not let the presence of an empty string
3654         cause fts_open to fail immediately.  Most fts-using tools must be
3655         able to process all arguments, in order, and can be expected to
3656         diagnose such arguments themselves.
3657
3658 2009-11-30  Eric Blake  <ebb9@byu.net>
3659
3660         utimens: fix compilation error
3661         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3662         Declare variable at right scope.
3663
3664 2009-11-29  Jim Meyering  <meyering@redhat.com>
3665
3666         bootstrap: handle perl-5.11's changed --version output
3667         * build-aux/bootstrap (get_version): Handle perl separately,
3668         since perl-5.11's --version output is different.
3669
3670 2009-11-28  Jim Meyering  <meyering@redhat.com>
3671
3672         userspec: depend on the inttostr module, too
3673         * modules/userspec (Depends-on): Add inttostr.
3674
3675         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3676         * lib/userspec.c (parse_with_separator): Do not accept a user ID
3677         number of MAXUID when it evaluates to (uid_t) -1.
3678         Likewise for group ID.  Reported by Matt McCutchen in
3679         <http://savannah.gnu.org/bugs/?28113>
3680
3681         userspec: reformat to use spaces, not TABs
3682         * lib/userspec.c: Expand TABs to spaces.
3683         Add Emacs' "indent-tabs-mode: nil" hint.
3684
3685 2009-11-27  Eric Blake  <ebb9@byu.net>
3686
3687         getopt-gnu: flush out another BSD bug
3688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3689         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3690         flush out BSD bug.
3691         * tests/test-getopt.h (test_getopt): End lists with NULL.
3692         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3693         (test_getopt_long_posix): Enhance test.
3694         * modules/getopt-posix-tests (Depends-on): Add stdbool.
3695         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3696         getopt-gnu.
3697         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3698         Likewise.
3699
3700 2009-11-27  Simon Josefsson  <simon@josefsson.org>
3701
3702         * modules/idpriv-droptemp-tests (Notice): Fix text.
3703
3704 2009-11-27  Jim Meyering  <meyering@redhat.com>
3705
3706         test-xalloc-die: avoid spurious failure due to libtool argv difference
3707         In a libtool-enabled project, this test would fail due to a difference
3708         in the emitted program name, e.g.,
3709         -test-xalloc-die: memory exhausted
3710         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3711         Use program to avoid that.
3712         * modules/xalloc-die-tests (Depends-on): Add progname.
3713         * tests/test-xalloc-die.c: Include progname.h".
3714         (program_name): Remove decl.
3715         (main): Call set_program_name.
3716         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3717
3718 2009-11-26  Richard Jones  <rjones@redhat.com>
3719
3720         w32sock: leave win32 error in place.
3721         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
3722
3723 2009-11-26  Eric Blake  <ebb9@byu.net>
3724
3725         init.sh: suggest to use skip_ and fail_ functions in comments
3726         * tests/init.sh: Add a sentence.
3727
3728 2009-11-25  Bruno Haible  <bruno@clisp.org>
3729
3730         init.sh: add documentation in comments
3731         * tests/init.sh: Add some developer and user documentation.
3732
3733 2009-11-26  Jim Meyering  <meyering@redhat.com>
3734
3735         init.sh: accommodate even those who specify bogus srcdir manually
3736         * tests/init.sh: Normally, srcdir is guaranteed by automake and
3737         configure-time tests to be sanitized, so that there is no need to
3738         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
3739         (with no double quotes) suffices.  However, since tests may be
3740         invoked manually, and since you may explicitly set srcdir to the
3741         name of a directory containing spaces, do quote its uses here.
3742         * tests/test-pread.sh: Likewise.
3743         Suggested by Bruno Haible.
3744
3745         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
3746         * tests/test-pread.sh: Write no data into the pipe, because
3747         test-pread actually reads none.  This avoids a diagnostic,
3748         "bash: echo: write error: Broken pipe", that arises in the unusual
3749         event something is ignoring SIGPIPE, and might be interpreted
3750         as some sort of failure.  Reported by Bruno Haible.
3751
3752 2009-11-25  Jim Meyering  <meyering@redhat.com>
3753
3754         test-pread: cover failure with ESPIPE and EINVAL
3755         * tests/test-pread.c (main): Test for failure, too.
3756         * tests/test-pread.sh: Invoke with stdin on a pipe.
3757         Suggested by Eric Blake.
3758
3759         pread: improvement and fix
3760         * modules/pread (Depends-on): Depend on lseek, for portability to
3761         e.g., mingw.  Suggested by Eric Blake.
3762         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
3763
3764         unistd.in.h: correct declaration of pread
3765         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
3766         Reported by Richard W.M. Jones.
3767
3768         test-pread.sh: distribute the test script
3769         * modules/pread-tests (Files): Include test-pread.sh.
3770
3771         test-pread.sh: clean up
3772         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
3773         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
3774         That is unnecessary, since it's always ".".
3775         Suggestion from Eric Blake.
3776
3777         test-pread.sh: make executable
3778         * tests/test-pread.sh: Set executable bit.
3779         Reported by Eric Blake.
3780
3781         correct typo in test-pread.sh
3782         * tests/test-pread.sh: Add #! line.
3783
3784         test pread
3785         * tests/test-pread.c: New file.
3786         * tests/test-pread.sh: Likewise.
3787         * modules/pread-tests: Likewise.
3788
3789         pread: new module
3790         * modules/pread: New file.
3791         * lib/unistd.in.h (pread): Define/declare.
3792         * lib/pread.c (pread): New file.
3793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
3794         * modules/unistd (Makefile.am): Substitute witnesses.
3795         * doc/posix-functions/pread.texi (pread): Update.
3796         * MODULES.html.sh: Add pread.
3797
3798 2009-11-25  Jim Meyering  <meyering@redhat.com>
3799
3800         tests/init.sh: new file to be used via most *.sh tests
3801         * tests/init.sh: New file.
3802
3803 2009-11-25  Eric Blake  <ebb9@byu.net>
3804
3805         utimens: work around older Linux failure with symlinks
3806         * lib/utimens.c (lutimensat_works_really): New variable.
3807         (fdutimens, lutimens): Use it to manage kernels that support
3808         nanosecond times on files, but not on symlinks.
3809         Reported by OndÅ™ej Vašík.
3810
3811         utimes: fix configure grammar
3812         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
3813
3814 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
3815
3816         regex: Fix fastmap for multibyte character ranges.
3817         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
3818         characters when a multibyte character range is included.
3819
3820 2009-11-22  Andy Wingo  <wingo@pobox.com>
3821
3822         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
3823         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
3824
3825 2009-11-24  Bruno Haible  <bruno@clisp.org>
3826
3827         doc: Most *_l functions exist in MacOS X 10.5.
3828         * doc/posix-functions/duplocale.texi: Update platforms list.
3829         * doc/posix-functions/freelocale.texi: Likewise.
3830         * doc/posix-functions/newlocale.texi: Likewise.
3831         * doc/posix-functions/uselocale.texi: Likewise.
3832         * doc/posix-functions/isalnum_l.texi: Likewise.
3833         * doc/posix-functions/isalpha_l.texi: Likewise.
3834         * doc/posix-functions/isblank_l.texi: Likewise.
3835         * doc/posix-functions/iscntrl_l.texi: Likewise.
3836         * doc/posix-functions/isdigit_l.texi: Likewise.
3837         * doc/posix-functions/isgraph_l.texi: Likewise.
3838         * doc/posix-functions/islower_l.texi: Likewise.
3839         * doc/posix-functions/isprint_l.texi: Likewise.
3840         * doc/posix-functions/ispunct_l.texi: Likewise.
3841         * doc/posix-functions/isspace_l.texi: Likewise.
3842         * doc/posix-functions/isupper_l.texi: Likewise.
3843         * doc/posix-functions/iswalnum_l.texi: Likewise.
3844         * doc/posix-functions/iswalpha_l.texi: Likewise.
3845         * doc/posix-functions/iswblank_l.texi: Likewise.
3846         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3847         * doc/posix-functions/iswctype_l.texi: Likewise.
3848         * doc/posix-functions/iswdigit_l.texi: Likewise.
3849         * doc/posix-functions/iswgraph_l.texi: Likewise.
3850         * doc/posix-functions/iswlower_l.texi: Likewise.
3851         * doc/posix-functions/iswprint_l.texi: Likewise.
3852         * doc/posix-functions/iswpunct_l.texi: Likewise.
3853         * doc/posix-functions/iswspace_l.texi: Likewise.
3854         * doc/posix-functions/iswupper_l.texi: Likewise.
3855         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3856         * doc/posix-functions/isxdigit_l.texi: Likewise.
3857         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
3858         * doc/posix-functions/strcasecmp_l.texi: Likewise.
3859         * doc/posix-functions/strcoll_l.texi: Likewise.
3860         * doc/posix-functions/strfmon_l.texi: Likewise.
3861         * doc/posix-functions/strftime_l.texi: Likewise.
3862         * doc/posix-functions/strncasecmp_l.texi: Likewise.
3863         * doc/posix-functions/strxfrm_l.texi: Likewise.
3864         * doc/posix-functions/tolower_l.texi: Likewise.
3865         * doc/posix-functions/toupper_l.texi: Likewise.
3866         * doc/posix-functions/towctrans_l.texi: Likewise.
3867         * doc/posix-functions/towlower_l.texi: Likewise.
3868         * doc/posix-functions/towupper_l.texi: Likewise.
3869         * doc/posix-functions/wcscoll_l.texi: Likewise.
3870         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3871         * doc/posix-functions/wctrans_l.texi: Likewise.
3872         * doc/posix-functions/wctype_l.texi: Likewise.
3873         * doc/glibc-functions/strptime_l.texi: Likewise.
3874         * doc/glibc-functions/strtod_l.texi: Likewise.
3875         * doc/glibc-functions/strtof_l.texi: Likewise.
3876         * doc/glibc-functions/strtol_l.texi: Likewise.
3877         * doc/glibc-functions/strtold_l.texi: Likewise.
3878         * doc/glibc-functions/strtoll_l.texi: Likewise.
3879         * doc/glibc-functions/strtoul_l.texi: Likewise.
3880         * doc/glibc-functions/strtoull_l.texi: Likewise.
3881         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3882         * doc/glibc-functions/wcstod_l.texi: Likewise.
3883         * doc/glibc-functions/wcstof_l.texi: Likewise.
3884         * doc/glibc-functions/wcstol_l.texi: Likewise.
3885         * doc/glibc-functions/wcstold_l.texi: Likewise.
3886         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3887         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3888         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3889
3890 2009-11-24  Bruno Haible  <bruno@clisp.org>
3891
3892         duplocale: Fix logic bug.
3893         * lib/duplocale.c: Don't include <langinfo.h>.
3894         (_NL_LOCALE_NAME): Remove macro.
3895         (rpl_duplocale): Use setlocale instead of nl_langinfo.
3896         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
3897
3898 2009-11-23  Jim Meyering  <meyering@redhat.com>
3899
3900         test-update-copyright: don't hard-code /usr/bin/perl
3901         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
3902         perl to print the current year.  Gilles Espinasse reported that
3903         the replaced use of perl was hard-coded as /usr/bin/perl.
3904
3905 2009-11-23  Bruno Haible  <bruno@clisp.org>
3906
3907         duplocale: Add support for glibc 2.3.x.
3908         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
3909
3910 2009-11-22  Bruno Haible  <bruno@clisp.org>
3911
3912         vasnprintf: Tiny optimization.
3913         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
3914         MacOS X.
3915
3916 2009-11-22  Bruno Haible  <bruno@clisp.org>
3917
3918         Tests for module 'duplocale'.
3919         * modules/duplocale-tests: New file.
3920         * tests/test-duplocale.c: New file.
3921
3922         New module 'duplocale'.
3923         * m4/duplocale.m4: New file.
3924         * lib/locale.in.h (duplocale): New declaration.
3925         * lib/duplocale.c: New file.
3926         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
3927         gl_LOCALE_H_DEFAULTS): New macros.
3928         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
3929         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
3930         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
3931         REPLACE_DUPLOCALE.
3932         * modules/duplocale: New file.
3933         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
3934
3935 2009-11-22  Bruno Haible  <bruno@clisp.org>
3936
3937         * modules/locale-tests (configure.ac): Test for newlocale function.
3938         * tests/test-locale.c: When the system has extended locale functions,
3939         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
3940
3941         locale: Make locale_t available when possible.
3942         * lib/locale.in.h: Include <xlocale.h> when it exists.
3943         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
3944         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
3945         * modules/locale (Depends-on): Add extensions.
3946         (Makefile.am): Also substitute HAVE_XLOCALE_H.
3947         * doc/posix-headers/locale.texi: Document the problem with locale_t.
3948
3949 2009-11-22  Bruno Haible  <bruno@clisp.org>
3950
3951         Add comments.
3952         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
3953         invocation.
3954         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
3955         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3956         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3957
3958 2009-11-22  Bruno Haible  <bruno@clisp.org>
3959
3960         error: account for the possibility of freopen (stdout).
3961         * lib/error.c: Include <unistd.h>.
3962         (flush_stdout): New function, extracted from error and error_at_line.
3963         Determine stdout's fd dynamically.
3964         (error, error_at_line): Invoke flush_stdout.
3965         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
3966         * modules/error (Depends-on): Add unistd.
3967
3968 2009-11-22  Bruno Haible  <bruno@clisp.org>
3969
3970         diffseq: Add comment.
3971         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
3972
3973 2009-11-22  Jim Meyering  <meyering@redhat.com>
3974
3975         c-stack: avoid defining an unused static function
3976         * lib/c-stack.c (find_stack_direction): Do not define this function
3977         when it will not be used.
3978
3979         diffseq: avoid spurious gcc warnings
3980         * lib/diffseq.h (IF_LINT2): Define.
3981         (compareseq): Use it to initialize two members of "part".
3982         This avoids two used-uninitialized warnings.
3983
3984 2009-11-21  Jim Meyering  <meyering@redhat.com>
3985
3986         c-stack: avoid "ignoring return value of `write'" warning
3987         * lib/c-stack.c: Include "ignore-value.h".
3988         (die): Explicitly ignore each write return value.
3989         * modules/c-stack (Depends-on): Add ignore-value.
3990
3991 2009-11-21  Bruno Haible  <bruno@clisp.org>
3992
3993         diffseq: reduce scope of variable 'best'.
3994         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
3995         variable, earlier used for two different purposes.
3996
3997 2009-11-21  Jim Meyering  <meyering@redhat.com>
3998
3999         diffseq: remove useless assignment to "best"
4000         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4001         assignment.  At that point "best" is already guaranteed to be zero.
4002
4003 2009-11-20  Eric Blake  <ebb9@byu.net>
4004
4005         build: mention ftp redirector in release announcements
4006         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4007         values that used to come from cfg.mk; mention FTP redirect URL.
4008         * build-aux/announce-gen: Mention the mirror list.
4009         Suggested by Karl Berry.
4010
4011         nanosleep: improve port to mingw
4012         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4014         LIB_NANOSLEEP, but only when needed.
4015         * modules/select (Link): Document LIBSOCKET.
4016         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4017         enough.
4018
4019         nanosleep: work around cygwin bug
4020         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4021         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4022         bug.
4023         (getnow): Delete, not needed.
4024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4025         LIB_CLOCK_GETTIME.
4026         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4027         clock-time, gettime.
4028         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4029         bug.
4030         * modules/nanosleep-tests: New test.
4031         * tests/test-nanosleep.c: New file.
4032
4033         sleep: work around cygwin bug
4034         * lib/sleep.c (rpl_sleep): Work around the bug.
4035         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4036         (gl_PREREQ_SLEEP): Delete unused macro.
4037         * modules/sleep (Depends-on): Add verify.
4038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4039         * modules/unistd (Makefile.am): Substitute witness.
4040         * lib/unistd.in.h (sleep): Update prototype.
4041         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4042         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4043         * modules/sleep-tests (Depends-on): Check for alarm.
4044
4045 2009-11-20  Jim Meyering  <meyering@redhat.com>
4046
4047         maint.mk: improve sc_prohibit_magic_number_exit
4048         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4049         so it does not match uses like System.exit(1).
4050         Add comments showing how to correct all offenders.
4051
4052 2009-11-19  Eric Blake  <ebb9@byu.net>
4053
4054         xalloc-die-tests: add missing library
4055         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4056
4057         test-xvasprintf: silence compiler warnings
4058         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4059         empty string from gcc.
4060
4061 2009-11-19  Jim Meyering  <meyering@redhat.com>
4062
4063         xfreopen: new module, from coreutils
4064         * modules/xfreopen: New module.
4065         * lib/xfreopen.c: New file.
4066         * lib/xfreopen.h: New file.
4067         * MODULES.html.sh (File stream based Input/Output"): Add it.
4068
4069 2009-11-19  Eric Blake  <ebb9@byu.net>
4070
4071         manywarnings: depend on warnings
4072         * modules/manywarnings (Depends-on): Add warnings.
4073
4074         build: avoid compiler warnings
4075         * lib/select.c (rpl_select): Delete unused variable.
4076         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4077
4078 2009-11-18  Eric Blake  <ebb9@byu.net>
4079
4080         tests: avoid false negative with --with-packager
4081         * tests/test-version-etc.sh: Discard packager information.
4082         * tests/test-argp-version-etc-1.sh: Likewise.
4083         Reported by Mike Frysinger.
4084
4085         utimens: fix regression on Solaris
4086         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4087         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4088         can only change fd timestamps via futimesat.  Instead, use an
4089         additional witness macro to avoid BSD bug.
4090         Reported by Jim Meyering.
4091
4092 2009-11-17  Eric Blake  <ebb9@byu.net>
4093
4094         usleep: use it to simplify tests
4095         * modules/stat-time-tests (Depends-on): Add usleep.
4096         (configure.ac): Drop usleep check.
4097         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4098         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4099         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4100         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4101         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4102         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4103         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4104         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4105         Likewise.
4106         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4107         * tests/test-lchown.h (nap): Likewise.
4108         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4109         * tests/test-stat-time.c (nap): Likewise.
4110         * tests/test-utimens-common.h (nap): Update comments.
4111
4112         usleep: new module
4113         * modules/usleep: New file.
4114         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4115         * lib/usleep.c (usleep): Likewise.
4116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4117         * modules/unistd (Makefile.am): Substitute witnesses.
4118         * lib/unistd.in.h (usleep): Add declaration.
4119         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4120         * MODULES.html.sh (Date and time): Likewise.
4121         * modules/usleep-tests (Depends-on): New test.
4122         * tests/test-usleep.c: New file.
4123
4124         chown: work around OpenBSD bug
4125         * lib/chown.c (rpl_chown): Work around the bug.
4126         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4127         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4128         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4129         * modules/chown (Depends-on): Add stdbool.
4130         * modules/lchown (Depends-on): Likewise.
4131         * doc/posix-functions/chown.texi (chown): Document the bug.
4132         * doc/posix-functions/lchown.texi (lchown): Likewise.
4133         * tests/test-lchown.h (test_chown): Relax test.
4134
4135         mkstemp: avoid conflict with C++ keyword template
4136         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4137         * lib/mkostemp.c (mkostemp): Likewise.
4138         * lib/mkostemps.c (mkostemps): Likewise.
4139         * lib/mkstemp.c (mkstemp): Likewise.
4140         * lib/mkstemps.c (mkstemps): Likewise.
4141
4142         xalloc-die-tests: optimize
4143         * tests/test-xalloc-die.sh: Reduce number of processes.
4144
4145 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4146
4147         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4148         patch from ludo@gnu.org (Ludovic Courtès).
4149
4150 2009-11-17  Jim Meyering  <meyering@redhat.com>
4151
4152         version-etc: use proper license string
4153         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4154         * modules/version-etc-fsf: Likewise.
4155
4156 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4157
4158         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4159         printed to stdout.  Deal with EOL differences.
4160
4161 2009-11-17  Eric Blake  <ebb9@byu.net>
4162
4163         unsetenv: work around Solaris bug
4164         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4165         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4166         Reported by Jim Meyering.
4167
4168         vasnprintf: avoid compiler warnings
4169         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4170         variables.
4171         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4172
4173 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4174
4175         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4176         settings since xalloc-die is no longer the self test,
4177         xalloc-die.sh is.
4178
4179 2009-11-17  Jim Meyering  <meyering@redhat.com>
4180
4181         test-xalloc-die.sh: make the code agree with the commit log
4182         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4183         at the end, just in case you happen to have a test-xalloc-die
4184         program in some other PATH directory.
4185
4186         test-xalloc-die.sh: fix a portability bug
4187         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4188         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4189         Otherwise, argv[0] (as often seen in diagnostics) would be too
4190         system-dependent, sometimes with, and sometimes without the leading "./".
4191
4192         version-etc-fsf: relax license to LGPLv3+
4193         * modules/version-etc-fsf (License): Relax license.
4194
4195 2009-11-16  Eric Blake  <ebb9@byu.net>
4196
4197         xalloc-die-tests: avoid printing null pointer
4198         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4199         shell script.
4200         * tests/test-xalloc-die.c (program_name): Declare.
4201         * tests/test-xalloc-die.sh (tmpfiles): New file.
4202
4203         setenv, unsetenv: work around various bugs
4204         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4205         (setenv) [HAVE_SETENV]: Work around bugs.
4206         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4207         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4208         for bugs.
4209         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4210         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4212         * modules/stdlib (Makefile.am): Update substitutions.
4213         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4214         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4215         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4216         * modules/setenv-tests: New test.
4217         * modules/unsetenv-tests: Likewise.
4218         * tests/test-setenv.c: New file.
4219         * tests/test-unsetenv.c: Likewise.
4220
4221 2009-11-16  Jim Meyering  <meyering@redhat.com>
4222
4223         version-etc: relax license to LGPLv3+
4224         * modules/version-etc (License): Relax license.
4225
4226         better AC_REQUIRE expanded-before-required-warning avoidance
4227         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4228         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4229         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4230         which is no longer needed.
4231
4232 2009-11-16  Eric Blake  <ebb9@byu.net>
4233
4234         test-freading: clean up temporary file
4235         * tests/test-freading.c (main): Remove file on success, and use
4236         ASSERT more liberally.
4237         Reported by Jim Meyering.
4238
4239 2009-11-16  Jim Meyering  <meyering@redhat.com>
4240
4241         avoid new AC_REQUIRE expanded-before-required warnings
4242         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4243         merely using it.
4244         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4245         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4246
4247 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4248
4249         * tests/test-xalloc-die.c: New file.
4250         * modules/xalloc-die-tests: New file.
4251         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4252         XFAIL_TESTS so it can be appended by modules.
4253
4254 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4255
4256         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4257         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4258
4259 2009-11-14  Eric Blake  <ebb9@byu.net>
4260
4261         fnmatch: avoid compiler warning
4262         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4263         to silence compiler warning about mismatch signedness in ?:.
4264         Reported by Robert Millan.
4265
4266         intprops: add double-inclusion guard
4267         * lib/intprops.h: Allow idempotent includes.
4268         Suggested by Bruce Korb.
4269
4270         openat: detect Solaris fchownat bug
4271         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4272         penalizing glibc chownat when only lchownat is broken.
4273         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4274         trailing slash bugs.
4275         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4276         * modules/openat-tests (Files): Include more files.
4277         (Depends-on): Add mgetgroups, sleep, stat-time.
4278         (configure.ac): Add additional checks.
4279         (Makefile.am): Build new test.
4280         * tests/test-fchownat.c: New file.
4281
4282         lchown: detect Solaris and FreeBSD bug
4283         * lib/lchown.c (rpl_lchown): Work around bug.
4284         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4286         * modules/unistd (Makefile.am): Populate it.
4287         * lib/unistd.in.h (lchown): Update declaration.
4288         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4289         * modules/lchown-tests: New file.
4290         * tests/test-lchown.h (test_lchown): Likewise.
4291         * tests/test-lchown.c (main): Likewise.
4292
4293         chown: detect Solaris and FreeBSD bug
4294         * lib/chown.c (rpl_chown): Work around bug.
4295         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4296         (gl_PREREQ_CHOWN): Delete.
4297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4298         * modules/unistd (Makefile.am): Populate it.
4299         * lib/unistd.in.h (chown): Update declaration.
4300         * lib/lchown.c (chown): Update client.
4301         * modules/lchown (Depends-on): Add lstat.
4302         * doc/posix-functions/chown.texi (chown): Document the bug.
4303         * doc/posix-functions/getgroups.texi (getgroups): Document
4304         getgroups pitfall.
4305         * modules/chown-tests: New file.
4306         * tests/test-chown.h (test_chown): Likewise.
4307         * tests/test-chown.c (main): Likewise.
4308
4309 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4310
4311         gnulib-tool: correctly detect absence of m4 directories
4312         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4313
4314 2009-11-14  Jim Meyering  <meyering@redhat.com>
4315
4316         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4317         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4318
4319 2009-11-14  John W. Eaton  <jwe@gnu.org>
4320
4321         strftime.h: wrap funtion declaration in extern "C" block
4322         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4323
4324 2009-11-13  Eric Blake  <ebb9@byu.net>
4325
4326         getgroups: avoid compiler warning
4327         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4328
4329         getgroups: work around FreeBSD bug
4330         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4331         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4332         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4333         * tests/test-getgroups.c (main): Fix buffer overrun.
4334
4335         getgroups: avoid compilation failure
4336         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4337         * modules/getgroups (Depends-on): Add stdint.
4338
4339 2009-11-13  Jim Meyering  <meyering@redhat.com>
4340
4341         test-getgroups: avoid compilation failure
4342         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4343
4344 2009-11-13  Eric Blake  <ebb9@byu.net>
4345
4346         mgetgroups: new module, taken from coreutils
4347         * modules/mgetgroups: New file.
4348         * lib/mgetgroups.h: Likewise.
4349         * lib/mgetgroups.c (mgetgroups): Likewise.
4350         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4351         * MODULES.html.sh (Users and groups): Mention it.
4352
4353         getgroups: don't expose GETGROUPS_T to user
4354         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4355         an element at a time if GETGROUPS_T is wrong size.
4356         * lib/getugroups.h (getugroups): Change signature.
4357         * lib/unistd.in.h (getgroups): Likewise.
4358         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4359         signature needs fixing.
4360         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4361         AC_TYPE_GETGROUPS.
4362         * modules/group-member (Depends-on): Add getgroups.
4363         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4364         (group_member): Rely on getgroups replacement.
4365         * lib/getugroups.c (getugroups): Use gid_t.
4366         * tests/test-getgroups.c (main): Likewise.
4367         * NEWS: Mention the signature change.
4368         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4369         problem with signature.
4370         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4371         GETGROUPS_T is still useful for setgroups.
4372
4373         getgroups, getugroups: provide stubs for mingw
4374         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4375         * lib/getugroups.c (getugroups): Likewise.
4376         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4377         function.  Modernize replacement scheme.
4378         (gl_PREREQ_GETGROUPS): Delete.
4379         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4380         * modules/getgroups (configure.ac): Declare witness.
4381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4382         * modules/unistd (Depends-on): Substitute witness.
4383         * lib/unistd.in.h (getgroups): Declare replacement.
4384
4385         getgroups: avoid calling exit
4386         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4387         drop xalloc.
4388         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4389         dependencies.
4390         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4391         exiting, in the rare case of malloc failure.
4392
4393         getgroups: fix logic error
4394         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4395         has more than 20 groups.
4396         * modules/getgroups-tests: New test.
4397         * tests/test-getgroups.c: New file.
4398
4399 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4400
4401         * tests/test-base64.c: Improve.
4402
4403 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4404
4405         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4406         Blake <ebb9@byu.net>.
4407
4408 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4409
4410         * tests/test-xvasprintf.c: Add %s%s related checks.
4411
4412 2009-11-12  Eric Blake  <ebb9@byu.net>
4413
4414         version-etc: match standards.texi style
4415         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4416         and use <> only for URLs.
4417
4418 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4419
4420         fts: do not fail on a submount during traversal
4421         * lib/fts.c (fts_build): Read the stat info again after opening
4422         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4423         Original report at http://bugzilla.redhat.com/501848.
4424
4425 2009-11-12  Jim Meyering  <meyering@redhat.com>
4426
4427         bootstrap: sync from coreutils
4428         * build-aux/bootstrap (bootstrap_epilogue): New function.
4429         Use git_modules_config in one more place.  This make bootstrap's
4430         --gnulib-srcdir option more useful for testing.
4431
4432         bootstrap: generalize autoheader check
4433         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4434         AC_CONFIG_HEADERS.
4435
4436 2009-11-11  Eric Blake  <ebb9@byu.net>
4437
4438         mkfifoat: use new modules for Solaris and BSD bugs
4439         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4440         * lib/mkfifoat.c (mknodat): Split...
4441         * lib/mknodat.c (mknodat): ...into new file.
4442         * modules/mkfifoat (Files): Ship new file.
4443         (Depends-on): Add mkfifo, mknod.
4444         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4445         (Depends-on): Add symlink.
4446         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4447         redundant with test_mkfifo.h.
4448         (do_mkfifoat, do_mknodat): New helpers.
4449
4450         mknod: new module
4451         * modules/mknod: New file.
4452         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4453         * lib/mknod.c (mknod): Likewise.
4454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4455         defaults.
4456         * modules/sys_stat (Makefile.am): Substitute them.
4457         * lib/sys_stat.in.h (mknod): Declare replacement.
4458         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4459         Document it.
4460         * doc/posix-functions/mknod.texi (mknod): Likewise.
4461         * modules/mknod-tests: New test.
4462         * tests/test-mknod.c: Likewise.
4463
4464         mkfifo: new module
4465         * modules/mkfifo: New file.
4466         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4467         * lib/mkfifo.c (mkfifo): Likewise.
4468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4469         defaults.
4470         * modules/sys_stat (Makefile.am): Substitute them.
4471         * lib/sys_stat.in.h (mkfifo): Declare replacement.
4472         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4473         Document it.
4474         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4475         * modules/mkfifo-tests: New test.
4476         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4477         from test-mkfifoat.c.
4478         * tests/test-mkfifo.c: New file.
4479
4480         readlink: detect FreeBSD bug
4481         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4482         slash on symlink.
4483         * doc/posix-functions/readlink.texi (readlink): Document the bug.
4484         * tests/test-readlink.h (test_readlink): Enhance test.
4485
4486         symlink: detect FreeBSD bug
4487         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4488         slash on symlink.
4489         * doc/posix-functions/symlink.texi (symlink): Document the bug.
4490         * tests/test-symlink.h (test_symlink): Enhance test.
4491
4492 2009-11-10  Eric Blake  <ebb9@byu.net>
4493
4494         link: detect FreeBSD bug
4495         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4496         symlink.
4497         * doc/posix-functions/link.texi (link): Document the bug.
4498         * tests/test-link.h (test_link): Enhance test.
4499         * tests/test-linkat.c (main): Update caller.
4500
4501         unlink, remove: detect FreeBSD bug
4502         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4503         slash on symlink.
4504         * doc/posix-functions/unlink.texi (unlink): Document the bug.
4505         * doc/posix-functions/remove.texi (remove): Likewise.
4506         * tests/test-unlink.h (test_unlink): Enhance test.
4507         * tests/test-remove.c (main): Likewise.
4508
4509 2009-11-09  Eric Blake  <ebb9@byu.net>
4510
4511         rename: detect FreeBSD bug
4512         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4513         slash on symlink.
4514         * modules/renameat-tests (Depends-on): Add filenamecat.
4515         * tests/test-rename.h (test_rename): Allow one more errno.
4516         * tests/test-renameat.c (main): Likewise.
4517         * doc/posix-functions/rename.texi (rename): Document the bug.
4518
4519         open: detect FreeBSD bug
4520         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4521         symlink.
4522         * doc/posix-functions/open.texi (open): Document the bug.
4523         * doc/posix-functions/utimes.texi (utimes): Likewise.
4524         * tests/test-open.h (test_open): Add parameters, and test symlink
4525         handling.
4526         * tests/test-open.c (main): Adjust caller.
4527         * tests/test-fcntl-safer.c (main): Likewise.
4528         * modules/open-tests (Depends-on): Add stdbool, symlink.
4529         * modules/fcntl-safer-tests (Depends-on): Likewise.
4530         * tests/test-openat.c (main): Add test-open tests.
4531
4532         stat: detect FreeBSD bug
4533         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4534         symlink.
4535         * doc/posix-functions/stat.texi (stat): Document the bug.
4536         * tests/test-stat.h (test_stat_func): Add argument.
4537         * tests/test-stat.c (main): Adjust caller.
4538         * tests/test-fstatat.c (main): Likewise.
4539         * modules/stat-tests (Depends-on): Add stdbool, symlink.
4540         Reported by Jim Meyering.
4541
4542 2009-11-09  James Youngman  <jay@gnu.org>
4543
4544         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4545         * lib/strftime.c: Correct placement of #include "ignore-value.h".
4546
4547 2009-11-08  Jim Meyering  <meyering@redhat.com>
4548
4549         utimens: remove invalid futimesat call
4550         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4551         It used the file descriptor of the target file as the DIR_FD
4552         parameter and NULL as the file name.  That caused failure with
4553         errno == EFAULT on FreeBSD-8.0-rc2
4554
4555 2009-11-07  Eric Blake  <ebb9@byu.net>
4556
4557         fflush, freadseek: use fseeko, not fseek
4558         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4559         (clear_ungetc_buffer): Avoid potential problems on large files.
4560         * lib/freadseek.c (freadseek): Likewise.
4561         * modules/freadseek (Depends-on): Add fseeko.
4562         * modules/fseek (configure.ac): Set a witness.
4563         * tests/test-fflush.c (main): Use fseeko.
4564         * tests/test-fpurge.c (fseek): Disable link warning.
4565         * tests/test-freadable.c (fseek): Likewise.
4566         * tests/test-freading.c (fseek): Likewise.
4567         * tests/test-fseeko.c (fseek): Likewise.
4568         * tests/test-ftell.c (fseek): Likewise.
4569         * tests/test-ftello.c (fseek): Likewise.
4570         * tests/test-fwritable.c (fseek): Likewise.
4571         * tests/test-fwriting.c (fseek): Likewise.
4572
4573 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4574
4575         * modules/memchr (Depends-on): Drop getpagesize dependency.
4576
4577 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4578
4579         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
4580         Reported by Ludovic Courtès.
4581         * build-aux/pmccabe2html: Improve example usage.
4582         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
4583
4584 2009-11-06  Jim Meyering  <meyering@redhat.com>
4585
4586         do-release-commit-and-tag: New module.
4587         Automate the release-commit and tag process.
4588         * build-aux/do-release-commit-and-tag: New script, from coreutils.
4589         * modules/do-release-commit-and-tag: New file.
4590         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4591
4592 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4593
4594         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4595         because test-select.c uses inet_pton.
4596
4597 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4598
4599         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4600         GETADDRINFO_LIB.  Bump serial number.
4601         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4602         Suggested by Eric Blake <ebb9@byu.net>.
4603
4604 2009-11-05  Eric Blake  <ebb9@byu.net>
4605
4606         strtod: detect darwin bug
4607         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4608         Reported by Leo Davis.
4609
4610         freopen-safer: new module
4611         * modules/freopen-safer: New module.
4612         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4613         * lib/freopen-safer.c (freopen_safer): New file.
4614         * lib/stdio-safer.h (freopen_safer): New declaration.
4615         * lib/stdio--.h (freopen): New override.
4616         * MODULES.html.sh (File stream based Input/Output): Mention it.
4617         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4618         freopen-safer module.
4619         * doc/posix-functions/stderr.texi (stderr): Likewise.
4620         * doc/posix-functions/stdin.texi (stdin): Likewise.
4621         * doc/posix-functions/stdout.texi (stdout): Likewise.
4622         * modules/freopen-safer-tests: New test.
4623         * tests/test-reopen-safer.c: New file.
4624
4625 2009-11-05  Jim Meyering  <meyering@redhat.com>
4626
4627         maint.mk: Prohibit inclusion of "close-stream.h" without use.
4628         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4629
4630 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4631
4632         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4633
4634 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4635
4636         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4637
4638 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4639
4640         Fix link error.
4641         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4642         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4643
4644 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4645
4646         * tests/test-func.c: Also test value of __func__.
4647
4648 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4649
4650         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4651         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
4652
4653 2009-11-05  Bruno Haible  <bruno@clisp.org>
4654
4655         Fix link error.
4656         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4657         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4658         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4659
4660 2009-11-05  Bruno Haible  <bruno@clisp.org>
4661
4662         Tests for module 'inet_pton'.
4663         * modules/inet_pton-tests: New file.
4664         * tests/test-inet_pton.c: New file.
4665
4666 2009-11-05  Bruno Haible  <bruno@clisp.org>
4667
4668         Tests for module 'inet_ntop'.
4669         * modules/inet_ntop-tests: New file.
4670         * tests/test-inet_ntop.c: New file.
4671
4672 2009-11-04  Eric Blake  <ebb9@byu.net>
4673
4674         stdlib-safer: wrap all mkstemp variants
4675         * modules/mkostemp (configure.ac): Set witness.
4676         * modules/mkostemps (configure.ac): Likewise.
4677         * modules/mkstemps (configure.ac): Likewise.
4678         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4679         (mkstemps_safer): Wrap more functions.
4680         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4681         wrapping.
4682         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4683         (mkstemps_safer): Implement the wrappers.
4684
4685         mkstemps, mkostemps: new modules
4686         * modules/mkostemps: New module.
4687         * modules/mkstemps: Likewise.
4688         * lib/mkostemps.c (mkostemps): New file.
4689         * lib/mkstemps.c (mkstemps): Likewise.
4690         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4691         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4693         * modules/stdlib (Makefile.am): Substitute them.
4694         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4695         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4696         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4697         * doc/gnulib.texi (Glibc stdlib.h): Include them.
4698         * MODULES.html.sh (File system functions): Mention them.
4699
4700         tempname: resync from glibc
4701         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
4702         same values for __GT_FILE as glibc.  Abort even when assertions
4703         are disabled.
4704         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4705         match its value otherwise.  Allow idempotent inclusion.
4706         * lib/mkdtemp.c (mkdtemp): Adjust caller.
4707         * lib/mkostemp.c (mkostemp): Likewise.
4708         * lib/mkstemp.c (mkstemp): Likewise.
4709         * lib/tmpfile.c (tmpfile): Likewise.
4710         * NEWS: Document this.
4711
4712         utimens: fix use of futimens on older Linux
4713         * lib/utimens.c (fdutimens): Use updated, rather than original,
4714         timespec to avoid bug in older Linux kernel.
4715         Reported by Simon Josefsson.
4716
4717 2009-11-04  Bruno Haible  <bruno@clisp.org>
4718
4719         Make num_processors more flexible and consistent.
4720         * lib/nproc.h (enum nproc_query): New type.
4721         (num_processors): Add a 'query' argument.
4722         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
4723         (num_processors): Add a 'query' argument. Test the value of the
4724         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
4725         mingw, count the number of CPUs available for the current process.
4726         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
4727         Check for sched_getaffinity and sched_getaffinity_np.
4728         * modules/nproc (Depends-on): Add c-ctype, extensions.
4729         * NEWS: Mention the change.
4730
4731 2009-11-03  Bruno Haible  <bruno@clisp.org>
4732
4733         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
4734
4735 2009-11-03  Jim Meyering  <meyering@redhat.com>
4736
4737         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
4738         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
4739         if it is defined.
4740
4741 2009-11-02  Eric Blake  <ebb9@byu.net>
4742
4743         mktime, timegm: share common declaration
4744         * lib/mktime-internal.h: New file.
4745         * lib/mktime.c: Use it rather than open-coding a declaration.
4746         * lib/timegm.c: Likewise.
4747         * modules/mktime (Files): Ship it.
4748         * modules/timegm (Files): Likewise.
4749         Suggested by Bruno Haible.
4750
4751         test-update-copyright: update test to match script changes
4752         * tests/test-update-copyright.sh: Avoid hard-coding perl
4753         location.  Don't update *.bak created by earlier runs.
4754
4755 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
4756             Simon Josefsson  <simon@josefsson.org>
4757             Bruno Haible  <bruno@clisp.org>
4758
4759         Fix link error on Solaris 8.
4760         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
4761         also in libnsl. Define also INET_PTON_LIB.
4762         * modules/inet_pton (Link): New section.
4763
4764 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4765             Bruno Haible  <bruno@clisp.org>
4766
4767         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
4768         * modules/inet_ntop (Link): New section.
4769         Reported by Boyan Kasarov <bkasarov@gmail.com>.
4770
4771 2009-11-02  Eric Blake  <ebb9@byu.net>
4772
4773         maint: avoid compiler warnings in m4 macros
4774         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
4775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
4776
4777 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4778
4779         * m4/pmccabe2html.m4: Remove file.
4780         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
4781         function.  Change maintainer.
4782         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
4783         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
4784         Courtès).
4785
4786 2009-10-31  Eric Blake  <ebb9@byu.net>
4787
4788         fseeko: fix m4 regression
4789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
4790         regression from 2009-10-27.
4791         Reported by Ralf Wildenhues.
4792
4793 2009-10-31  Jim Meyering  <meyering@redhat.com>
4794
4795         inttostr: aesthetics and improved (compile-time) safety
4796         Define inttype_is_signed rather than inttype_is_unsigned,
4797         since the sole use is via "#if inttype_is_signed".
4798         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
4799         inttype_is_unsigned.
4800         * lib/offtostr.c (inttype_is_signed): Likewise.
4801         * lib/uinttostr.c (inttype_is_signed): Likewise.
4802         * lib/umaxtostr.c (inttype_is_signed): Likewise.
4803         * lib/inttostr.c (inttostr): Use verify to cross-check the
4804         inttype_is_signed value and the signedness of the actual type.
4805         * modules/inttostr (Depends-on): Add verify.
4806
4807 2009-10-30  Eric Blake  <ebb9@byu.net>
4808
4809         build: avoid compiler warnings
4810         * lib/fchmodat.c (lchmod): Mark unused variables.
4811         * lib/getopt.c (_getopt_initialize): Likewise.
4812         * lib/mktime.c (__mktime_internal): Provide prototype.
4813         * lib/inttostr.c (inttostr): Avoid compiler warning even with
4814         older gcc that do not understand #pragma GCC diagnostic.
4815         * lib/uinttostr.c (inttype_is_unsigned): Define.
4816         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
4817
4818 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4819
4820         stat: fix compilation on AIX
4821         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
4822         only see struct stat64.
4823
4824 2009-10-30  Eric Blake  <ebb9@byu.net>
4825
4826         exclude: make more robust
4827         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
4828         rather than masking a coding bug.
4829         Suggested by Bruno Haible.
4830
4831 2009-10-30  Jim Meyering  <meyering@redhat.com>
4832
4833         perl scripts: remove #!/usr/bin/perl in favor of more portable...
4834         Rather than putting #!/usr/bin/perl on the first line,
4835         start with a variant of what's recommended by "man perlrun" that
4836         invokes the first "perl" program from your shell's search path.
4837         * build-aux/gitlog-to-changelog: Replace #!... as above.
4838         Add a "Local Variables" perl mode setting.
4839         Prompted by a patch from Ludovic Courtès.
4840         Improved by Eric Blake.
4841         * build-aux/useless-if-before-free: Likewise.
4842         * build-aux/announce-gen: Likewise.
4843         * build-aux/update-copyright: Likewise.
4844
4845 2009-10-29  Eric Blake  <ebb9@byu.net>
4846
4847         filenamecat-lgpl: adjust clients
4848         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
4849         filenamecat.
4850         * modules/renameat (Depends-on): Likewise.
4851
4852         filenamecat: split into filenamecat-lgpl
4853         * modules/filenamecat-lgpl: New module.
4854         * modules/filenamecat (Files): Move library-safe files into
4855         filenamecat-lgpl.
4856         (Depends-on): Add filenamecat-lgpl.
4857         (configure.ac): Declare witness.
4858         * lib/filenamecat.h (file_name_concat): Only declare when using
4859         GPL module.
4860         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
4861         Move...
4862         * lib/filenamecat-lgpl.c: ...into new file.
4863         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
4864         (gl_FILE_NAME_CONCAT): Use it.
4865         * MODULES.html.sh (File system functions): Mention new module.
4866
4867         argp: avoid memory leak
4868         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
4869         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
4870         base_name, since the latter malloc()s and can call exit().
4871         Leak introduced 2006-07-03.
4872
4873         dirname-lgpl: adjust clients that don't need full dirname
4874         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
4875         * modules/filenamecat (Depends-on): Likewise.
4876         * modules/linkat (Depends-on): Likewise.
4877         * modules/mkancesdirs (Depends-on): Likewise.
4878         * modules/mkdir (Depends-on): Likewise.
4879         * modules/openat (Depends-on): Likewise.
4880         * modules/savewd (Depends-on): Likewise.
4881         * modules/rename (Depends-on): Likewise.
4882         (License): Relax license.
4883         * modules/mkdir-tests (Depends-on): Drop progname.
4884         (Makefile.am): Delete unneeded LDADD.
4885         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
4886
4887         dirname: split into dirname-lgpl
4888         * modules/dirname-lgpl: New module.
4889         * modules/dirname (Files): Move library-safe files into
4890         dirname-lgpl.
4891         (Depends-on): Add dirname-lgpl.
4892         (configure.ac): Declare witness.
4893         * modules/double-slash-root (License): Relax license.
4894         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
4895         module.
4896         * lib/dirname.c (dir_len, mdir_name): Move...
4897         * lib/dirname-lgpl.c: ...into new file.
4898         * lib/basename.c (last_component, base_len): Move...
4899         * lib/basename-lgpl.c: ...into new file.
4900         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
4901         (gl_DIRNAME): Use it.
4902         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
4903         Mention new module.
4904         * modules/dirname-tests (Depends-on): Add progname.
4905         * tests/test-dirname.c (program_name): Delete.
4906
4907         mkdir: make safe for libraries
4908         * modules/mkdir (Depends-on): Drop xalloc.
4909         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
4910         exit.
4911
4912         tests: avoid some compiler warnings
4913         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
4914         literals.
4915         * tests/test-memchr.c (main): Avoid type mismatch.
4916         * tests/test-arpa_inet.c (main): Avoid unused parameters.
4917         * tests/test-base64.c (main): Likewise.
4918         * tests/test-getdelim.c (main): Likewise.
4919         * tests/test-gethostname.c (main): Likewise.
4920         * tests/test-getline.c (main): Likewise.
4921         * tests/test-netinet_in.c (main): Likewise.
4922         * tests/test-select.c (open_server_socket, main): Likewise.
4923         * tests/test-select-stdin.c (main): Likewise.
4924         * tests/test-sockets.c (main): Likewise.
4925         * tests/test-strsignal.c (main): Likewise.
4926         * tests/test-sys_select.c (main): Likewise.
4927         * tests/test-sys_socket.c (main): Likewise.
4928         * tests/test-u64.c (main): Likewise.
4929         * tests/test-xfprintf-posix.c (main): Likewise.
4930         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
4931
4932         sockets: avoid compiler warning
4933         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
4934
4935         maint: detect usage(1) and other suspicious exits
4936         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
4937
4938 2009-10-29  Jim Meyering  <meyering@redhat.com>
4939
4940         timespec: long-to-int truncation could make timespec_cmp malfunction
4941         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
4942         a multiple of 2^32 nanoseconds as no difference.
4943
4944 2009-10-28  Jim Meyering  <meyering@redhat.com>
4945
4946         fprintftime: wrap macro code argument in "do {...} while(0)"
4947         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
4948         cpy macro must be a statement that can be followed by a semicolon.
4949         Now that the else clause contains a comment and is hence longer
4950         than one line, I require curly braces.  That in turn requires
4951         that we wrap this code block in the standard do...while(0).
4952
4953         fprintftime: remove stray semicolon from previous change
4954         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
4955
4956         fprintftime: avoid a warning about ignored fwrite return value
4957         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
4958         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
4959         that is unsafe.
4960         * modules/fprintftime (Depends-on): Add ignore-value.
4961
4962         exclude: avoid an unwarranted warning
4963         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
4964
4965 2009-10-27  Eric Blake  <ebb9@byu.net>
4966
4967         fseek: avoid compilation failure when fflush is replaced
4968         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
4969         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
4970         module is in use.
4971         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
4972         module is not in use; since REPLACE_FSEEK worked otherwise.
4973         (GNULIB_FTELLO): Likewise for ftell.
4974         Reported by Ian Beckwith and others.
4975
4976 2009-10-27  Bruno Haible  <bruno@clisp.org>
4977
4978         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
4979         Reported by Jim Meyering.
4980
4981 2009-10-27  Jim Meyering  <jim@meyering.net>
4982             Bruno Haible  <bruno@clisp.org>
4983
4984         Avoid warning despite dropping the return value of fwrite.
4985         * lib/unicodeio.c: Include ignore-value.h.
4986         (fwrite_success_callback): Explicitly ignore fwrite's return value.
4987         * modules/unicodeio (Depends-on): Add ignore-value.
4988
4989 2009-10-26  Eric Blake  <ebb9@byu.net>
4990
4991         areadlinkat: fix fallback path
4992         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
4993         pointer and zero.
4994
4995 2009-10-22  Pádraig Brady  <P@draigBrady.com>
4996
4997         Use a better IO block size for modern systems
4998         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
4999         * lib/md2.c: Likewise.
5000         * lib/md4.c: Likewise.
5001         * lib/md5.c: Likewise.
5002         * lib/sha1.c: Likewise.
5003         * lib/sha256.c: Likewise.
5004         * lib/sha512.c: Likewise.
5005
5006 2009-10-22  Eric Blake  <ebb9@byu.net>
5007
5008         tests: avoid several compiler warnings
5009         * tests/test-getcwd.c (main): Avoid buffer underflow.
5010         * tests/test-getdate.c (main): String literals are not safe with
5011         putenv, so use setenv.  Declare unused argument.
5012         * modules/getdate-tests (Depends-on): Add setenv.
5013         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5014         problems with string literals in char *.
5015         * tests/test-hash.c (main): Avoid shadowing declaration.
5016         (insert_new): Treat string literals as char const *.
5017         * tests/test-getopt.h (test_getopt): Likewise.
5018         (getopt_loop): Alter types to minimize casting elsewhere.
5019         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5020         (test_getopt_long_posix): Likewise.
5021         (do_getopt_long): Add wrapper to minimize casting.
5022         * tests/test-atexit.c (clear_temp_file): Use void.
5023         * tests/test-areadlink-with-size.c (main): Declare unused
5024         arguments.
5025         * tests/test-areadlink.c (main): Likewise.
5026         * tests/test-areadlinkat-with-size.c (main): Likewise.
5027         * tests/test-areadlinkat.c (main): Likewise.
5028         * tests/test-canonicalize-lgpl.c (main): Likewise.
5029         * tests/test-canonicalize.c (main): Likewise.
5030         * tests/test-dirent-safer.c (main): Likewise.
5031         * tests/test-dirname.c (main): Likewise.
5032         * tests/test-dup2.c (main): Likewise.
5033         * tests/test-fchdir.c (main): Likewise.
5034         * tests/test-fcntl-h.c (main): Likewise.
5035         * tests/test-fcntl-safer.c (main): Likewise.
5036         * tests/test-fdopendir.c (main): Likewise.
5037         * tests/test-fdutimensat.c (main): Likewise.
5038         * tests/test-fflush.c (main): Likewise.
5039         * tests/test-filenamecat.c (main): Likewise.
5040         * tests/test-filevercmp.c (main): Likewise.
5041         * tests/test-fopen-safer.c (main): Likewise.
5042         * tests/test-fopen.c (main): Likewise.
5043         * tests/test-fpending.c (main): Likewise.
5044         * tests/test-fpurge.c (main): Likewise.
5045         * tests/test-freading.c (main): Likewise.
5046         * tests/test-fstatat.c (main): Likewise.
5047         * tests/test-fsync.c (main): Likewise.
5048         * tests/test-futimens.c (main): Likewise.
5049         * tests/test-getndelim2.c (main): Likewise.
5050         * tests/test-gettimeofday.c (main): Likewise.
5051         * tests/test-getopt.c (main): Likewise.
5052         * tests/test-i-ring.c (main): Likewise.
5053         * tests/test-inttypes.c (main): Likewise.
5054         * tests/test-link.c (main): Likewise.
5055         * tests/test-lstat.c (main): Likewise.
5056         * tests/test-math.c (main): Likewise.
5057         * tests/test-md5.c (main): Likewise.
5058         * tests/test-memchr2.c (main): Likewise.
5059         * tests/test-memrchr.c (main): Likewise.
5060         * tests/test-mkdir.c (main): Likewise.
5061         * tests/test-mkdirat.c (main): Likewise.
5062         * tests/test-mkfifoat.c (main): Likewise.
5063         * tests/test-open.c (main): Likewise.
5064         * tests/test-openat-safer.c (main): Likewise.
5065         * tests/test-openat.c (main): Likewise.
5066         * tests/test-quotearg.c (main): Likewise.
5067         * tests/test-rawmemchr.c (main): Likewise.
5068         * tests/test-readlink.c (main): Likewise.
5069         * tests/test-remove.c (main): Likewise.
5070         * tests/test-rename.c (main): Likewise.
5071         * tests/test-renameat.c (main): Likewise.
5072         * tests/test-rmdir.c (main): Likewise.
5073         * tests/test-sha1.c (main): Likewise.
5074         * tests/test-signal.c (main): Likewise.
5075         * tests/test-sigaction.c (main): Likewise.
5076         * tests/test-stat.c (main): Likewise.
5077         * tests/test-stat-time.c (main): Likewise.
5078         * tests/test-stddef.c (main): Likewise.
5079         * tests/test-stdint.c (main): Likewise.
5080         * tests/test-stdio.c (main): Likewise.
5081         * tests/test-stdlib.c (main): Likewise.
5082         * tests/test-strchrnul.c (main): Likewise.
5083         * tests/test-strerror.c (main): Likewise.
5084         * tests/test-string.c (main): Likewise.
5085         * tests/test-strtod.c (main): Likewise.
5086         * tests/test-strverscmp.c (main): Likewise.
5087         * tests/test-symlink.c (main): Likewise.
5088         * tests/test-symlinkat.c (main): Likewise.
5089         * tests/test-sys_stat.c (main): Likewise.
5090         * tests/test-sys_time.c (main): Likewise.
5091         * tests/test-time.c (main): Likewise.
5092         * tests/test-unistd.c (main): Likewise.
5093         * tests/test-unlink.c (main): Likewise.
5094         * tests/test-unlinkat.c (main): Likewise.
5095         * tests/test-utimens.c (main): Likewise.
5096         * tests/test-utimensat.c (main): Likewise.
5097         * tests/test-version-etc.c (main): Likewise.
5098         * tests/test-wchar.c (main): Likewise.
5099         * tests/test-wctype.c (main): Likewise.
5100         * tests/test-xprintf-posix.c (main): Likewise.
5101         * tests/test-posixtm.c (main): Likewise.
5102         (STREQ): Delete unused macro.
5103         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5104         shadowed variables.
5105         * tests/test-memchr.c (main): Likewise.
5106
5107 2009-10-21  Eric Blake  <ebb9@byu.net>
5108
5109         areadlinkat: avoid failure on older glibc
5110         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5111         rather than mis-comparing 0 against FUNC_RESULT of char*.
5112
5113 2009-10-21  Bruno Haible  <bruno@clisp.org>
5114
5115         * modules/stpncpy (License): Relicense under LGPLv2+.
5116         Reported by David Lutterkort <lutter@redhat.com>.
5117
5118 2009-10-20  Eric Blake  <ebb9@byu.net>
5119
5120         utimensat: work around Solaris 9 bug
5121         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5122         has trailing slash bugs.
5123         * tests/test-lutimens.h (test_lutimens): Enhance test.
5124         * tests/test-utimens.h (test_utimens): Likewise.
5125         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5126         * doc/posix-functions/utimes.texi (utimes): Likewise.
5127         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5128         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5129         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5130         * doc/posix-functions/futimens.texi (futimens): Likewise.
5131
5132         fdutimensat: new module
5133         * modules/fdutimensat: New file.
5134         * lib/fdutimensat.c (fdutimensat): Likewise.
5135         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5136         * MODULES.html.sh (File system functions): Mention module.
5137         * modules/fdutimensat-tests: New test.
5138         * tests/test-fdutimensat.c: Likewise.
5139
5140         doc: regenerate INSTALL
5141         * doc/INSTALL: Reflect recent autoconf update.
5142         * doc/INSTALL.ISO: Likewise.
5143         * doc/INSTALL.UTF-8: Likewise.
5144
5145 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5146
5147         acl: warn if ACL support is not detected
5148         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5149
5150 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5151
5152         * lib/nproc.h: Add extern "C" block for C++.
5153
5154 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5155             Bruno Haible  <bruno@clisp.org>
5156
5157         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5158         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5159         * doc/posix-functions/isalpha.texi: Likewise.
5160         * doc/posix-functions/isblank.texi: Likewise.
5161         * doc/posix-functions/iscntrl.texi: Likewise.
5162         * doc/posix-functions/isdigit.texi: Likewise.
5163         * doc/posix-functions/isgraph.texi: Likewise.
5164         * doc/posix-functions/islower.texi: Likewise.
5165         * doc/posix-functions/isprint.texi: Likewise.
5166         * doc/posix-functions/ispunct.texi: Likewise.
5167         * doc/posix-functions/isspace.texi: Likewise.
5168         * doc/posix-functions/isupper.texi: Likewise.
5169         * doc/posix-functions/isxdigit.texi: Likewise.
5170
5171 2009-10-18  Bruno Haible  <bruno@clisp.org>
5172
5173         Tests for module 'isblank'.
5174         * modules/isblank-tests: New file.
5175         * tests/test-isblank.c: New file.
5176
5177         New module 'isblank'.
5178         * lib/isblank.c: New file.
5179         * m4/isblank.m4: New file.
5180         * modules/isblank: New file.
5181         * doc/posix-functions/isblank.texi: Mention the new module.
5182
5183 2009-10-18  Bruno Haible  <bruno@clisp.org>
5184
5185         New module 'ctype'.
5186         * lib/ctype.in.h: New file.
5187         * m4/ctype.m4: New file.
5188         * modules/ctype: New file.
5189         * doc/posix-headers/ctype.texi: Mention the new module.
5190
5191 2009-10-18  Jim Meyering  <meyering@redhat.com>
5192
5193         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5194         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5195         right after its initialization, rather than farther down.
5196         Keeping these in close proximity makes it easier to ensure
5197         that each such variable is initialized.  E.g.,
5198
5199             LIB_CLOCK_GETTIME=
5200             AC_SUBST([LIB_CLOCK_GETTIME])
5201
5202         This change also increments these serial numbers.
5203         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5204         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5206
5207 2009-10-18  Bruno Haible  <bruno@clisp.org>
5208
5209         Don't let environment variables perturb build.
5210         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5211         (gl_PREREQ_GETHRXTIME): ... not here.
5212
5213 2009-10-18  Bruno Haible  <bruno@clisp.org>
5214
5215         Avoid symlink attack in localcharset module.
5216         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5217         (O_NOFOLLOW): Define fallback.
5218         (get_charset_aliases): Don't open the file if it is a symbolic link.
5219         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5220         gl_FCNTL_H.
5221         (gl_FCNTL_H): Require it.
5222         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5223         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5224         Reported by Fergal Glynn <fglynn@veracode.com>.
5225
5226 2009-10-18  Bruno Haible  <bruno@clisp.org>
5227
5228         Implement nproc for mingw.
5229         * lib/nproc.c: Include <windows.h>
5230         (num_processors): On native Windows platforms, try GetSystemInfo.
5231
5232 2009-10-18  Bruno Haible  <bruno@clisp.org>
5233
5234         Implement nproc for IRIX.
5235         * lib/nproc.c: Include <sys/sysmp.h>.
5236         (num_processors): On IRIX systems, try sysmp.
5237         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5238
5239 2009-10-18  Bruno Haible  <bruno@clisp.org>
5240
5241         Implement nproc for HP-UX.
5242         * lib/nproc.c: Include <sys/pstat.h>
5243         (num_processors): On HP-UX systems, try pstat_getdynamic.
5244         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5245         pstat_getdynamic.
5246
5247 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5248             Bruno Haible  <bruno@clisp.org>
5249
5250         Implement nproc for NetBSD, OpenBSD.
5251         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5252         (ARRAY_SIZE): New macro.
5253         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5254         * m4/nproc.m4: New file.
5255         * modules/nproc (Files): Add m4/nproc.m4.
5256         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5257         (Makefile.am): Instead, augment lib_SOURCES.
5258
5259 2009-10-18  Bruno Haible  <bruno@clisp.org>
5260
5261         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5262         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5263         sys/param.h.
5264
5265 2009-10-16  Eric Blake  <ebb9@byu.net>
5266
5267         utimensat: new module
5268         * modules/utimensat: New file.
5269         * lib/utimensat.c (utimensat): Likewise.
5270         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5271         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5272         so we can work around Linux bugs.
5273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5274         * modules/sys_stat (Makefile.am): Substitute them.
5275         * lib/sys_stat.in.h (utimensat): Declare it.
5276         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5277         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5278         * modules/utimensat-tests: New test.
5279         * tests/test-utimensat.c: Likewise.
5280
5281         utimens: let lutimens work on non-symlinks
5282         * lib/utimens.c (lutimens): Fall back to utimens rather than
5283         failing with ENOSYS, when file is not a symlink.
5284         (utimens): Reduce redirection.
5285         * tests/test-lutimens.h (test_lutimens): Update test to cover
5286         non-symlinks.
5287         * tests/test-utimens.h (test_utimens): Update test to cover
5288         symlinks.
5289         * tests/test-utimens.c (main): Update caller.
5290
5291         utimens: cache whether utimensat syscall works
5292         * lib/utimens.c (utimensat_works_really): New cache variable.
5293         (fdutimens, lutimens): Use it to avoid failing syscall.
5294
5295         test-stat-time, test-utimens: improve portability
5296         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5297         ext4 on alpha, and for cygwin.
5298         * tests/test-utimens-common.h: New file.
5299         (nap): Factor delays into single function.
5300         * tests/test-lutimens.h (test_lutimens): Use new header.
5301         * tests/test-futimens.h (test_futimens): Likewise.
5302         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5303         timestamps to occur from same machine, as was done previously for
5304         test_utimens.
5305         * modules/utimens-tests (Files): Ship new file.
5306         * modules/futimens-tests (Files): Likewise.
5307         Reported in part by Jim Meyering.
5308
5309         sys_stat: sort replacement declarations
5310         * lib/sys_stat.in.h: Sort declarations.
5311         * lib/futimens.c (futimens): Fix typo.
5312
5313 2009-10-15  Jim Meyering  <meyering@redhat.com>
5314
5315         don't let environment settings perturb build
5316         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5317         could cause a configure-time and/or build-time malfunction.
5318         Typically, a configure-time function-in-library test is performed
5319         via code like this:
5320
5321           LIB_VAR=
5322           AC_SUBST([LIB_VAR])
5323           prefix_saved_LIBS=$LIBS
5324             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5325                        [test "$ac_cv_search_FUNC" = "none required" ||
5326                         LIB_VAR=$ac_cv_search_FUNC])
5327           LIBS=$prefix_saved_LIBS
5328
5329         However, in each of the files affected by this change, the LIB_VAR=
5330         initialization was omitted.  Thus, when set in the environment, its
5331         value would propagate into generated Makefiles when FUNC is not found
5332         in LIB_NAME.
5333         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5334         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5336
5337 2009-10-14  Eric Blake  <ebb9@byu.net>
5338
5339         fchdir: avoid infinite recursion in mingw
5340         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5341         recursing.
5342
5343         test-stat-time: port to mingw
5344         * tests/test-stat-time.c (force_unlink): Return a value.
5345         (test_ctime) [W32]: Fix compilation error.
5346         (nap): Don't call usleep with too large an argument.  Use
5347         force_unlink.
5348         * doc/pastposix-functions/usleep.texi (usleep): Document the
5349         portability issue.
5350
5351 2009-10-13  Jim Meyering  <meyering@redhat.com>
5352
5353         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5354         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5355         * modules/pipe-filter-ii: Likewise.
5356         * modules/sys_socket-tests: Likewise.
5357         * modules/tsearch-tests: Likewise.
5358         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5359         (check): Depend on it.
5360
5361 2009-10-12  Eric Blake  <ebb9@byu.net>
5362
5363         utimens-tests: port to NFS file systems
5364         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5365         comparisons to avoid spurious failures from timestamp drift
5366         between NFS machines.
5367
5368 2009-10-12  Eric Blake  <ebb9@byu.net>
5369
5370         stat-time-tests: minor cleanups
5371         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5372         * tests/test-stat-time.c (nap): Separate assignment from call.
5373         Suggested by Paolo Bonzini and Bruno Haible.
5374
5375         sys_stat: guarantee struct timespec
5376         * lib/sys_stat.in.h (includes): Always include <time.h>
5377         * modules/sys_stat (Depends-on): Add time.
5378         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5379         mode_t permission values.
5380         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5381         get at subsecond timestamps.
5382
5383 2009-10-10  Eric Blake  <ebb9@byu.net>
5384
5385         futimens: new module
5386         * modules/futimens: New file.
5387         * lib/futimens.c (futimens): Likewise.
5388         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5389         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5390         we can work around Linux bugs.
5391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5392         * modules/sys_stat (Makefile.am): Substitute them.
5393         * lib/sys_stat.in.h (futimens): Declare it.
5394         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5395         * doc/posix-functions/futimens.texi (futimens): Likewise.
5396         * modules/futimens-tests: New test.
5397         * tests/test-futimens.c: Likewise.
5398
5399         utimens: introduce fdutimens
5400         * lib/utimens.h (fdutimens): New prototype.
5401         * lib/utimens.c (gl_futimens): Move guts...
5402         (fdutimens): ...to new interface.
5403         * tests/test-utimens.c (do_fdutimens): Use it.
5404
5405         utimens: add UTIME_NOW and UTIME_OMIT support
5406         * lib/utimens.c (validate_timespec, update_timespec): New helper
5407         functions.
5408         (gl_futimens, lutimens): Use them.
5409         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5410         stdbool, sys_stat.
5411         (Link): Mention resulting library dependency.
5412         * modules/utimecmp (Link): Likewise.
5413         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5414         (Makefile.am): Pick up library dependency.
5415         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5416         definition.
5417         * tests/test-sys_stat.c: Test the definitions.
5418         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5419         * NEWS: Document library dependency.
5420
5421         utimecmp: support symlink timestamps
5422         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5423         hashing when possible.  Use pathconf when available.
5424         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5425         * modules/utimecmp (Depends-on): Add lstat.
5426
5427         utimens: add lutimens interface
5428         * lib/utimens.c (lutimens): New function.
5429         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5430         * lib/utimens.h (lutimens): Declare new interface.
5431         * tests/test-utimens.c (main): Enhance test.
5432         * tests/test-lutimens.h (test_lutimens): New file.
5433         * modules/utimens-tests (Files): Distribute it.
5434         (Depends-on): Add symlink.
5435         (configure.ac): Check for usleep.
5436
5437         utimens: validate futimens usage
5438         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5439         fewer syscalls on failure later on.  Avoid compiler warning on
5440         mingw.
5441         * modules/utimens (Depends-on): Add dup2.
5442
5443         utimens: add test
5444         * modules/utimens-tests: New test.
5445         * tests/test-utimens.h: New file.
5446         * tests/test-futimens.h: Likewise.
5447         * tests/test-utimens.c: Likewise.
5448
5449         doc: mention timestamp portability issues
5450         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5451         instead.
5452         * doc/posix-functions/utime.texi (utime): Likewise.
5453         * doc/posix-functions/utimes.texi (utimes): Likewise.
5454         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5455         instead.
5456         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5457         module.
5458         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5459         Mention weakness with symlink timestamps.
5460         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5461         to utimensat/futimens instead.
5462         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5463
5464         test-dup2: enhance test
5465         * tests/test-dup2.c (main): Also check AT_FDCWD.
5466
5467         test-stat-time: avoid more spurious failures
5468         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5469         xfs; and avoid race if the two timestamps cross quantization edge.
5470
5471         relocatable: prefer 'file system' over 'filesystem'
5472         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5473         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5474         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5475         * doc/relocatable.texi (Enabling Relocatability): Likewise.
5476         * lib/relocatable.c (compute_curr_prefix): Likewise.
5477
5478 2009-10-10  Jim Meyering  <meyering@redhat.com>
5479
5480         stat-time-tests: check for the usleep function
5481         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5482
5483 2009-10-10  Bruno Haible  <bruno@clisp.org>
5484
5485         * modules/xnanosleep: Put the Link section after the Include section.
5486
5487 2009-10-09  Eric Blake  <ebb9@byu.net>
5488
5489         dup2: work around FreeBSD 6.1 bug
5490         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5491         * doc/posix-functions/dup2.texi (dup2): Document it.
5492         Reported by Nelson H. F. Beebe and Jim Meyering.
5493
5494         test-stat-time: port to buggy NFS clients
5495         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5496         (test_ctime): Also skip test if mtime and ctime are skewed.
5497
5498         maint: prefer 'file system' over 'filesystem'
5499         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5500         * doc/posix-functions/lstat.texi (lstat): Likewise.
5501         * lib/file-has-acl.c (file_has_acl): Likewise.
5502         * lib/fwriteerror.c [TEST]: Likewise.
5503         * tests/test-areadlink.h (test_areadlink): Likewise.
5504         * tests/test-areadlinkat-with-size.c (main): Likewise.
5505         * tests/test-areadlinkat.c (main): Likewise.
5506         * tests/test-canonicalize-lgpl.c (main): Likewise.
5507         * tests/test-canonicalize.c (main): Likewise.
5508         * tests/test-fstatat.c (main): Likewise.
5509         * tests/test-linkat.c (main): Likewise.
5510         * tests/test-lstat.h (test_lstat_func): Likewise.
5511         * tests/test-mkdir.h (test_mkdir): Likewise.
5512         * tests/test-readlink.h (test_readlink): Likewise.
5513         * tests/test-remove.c (main): Likewise.
5514         * tests/test-rename.h (test_rename): Likewise.
5515         * tests/test-renameat.c (main): Likewise.
5516         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5517         * tests/test-symlink.h (test_symlink): Likewise.
5518         * tests/test-symlinkat.c (main): Likewise.
5519         * tests/test-unlink.h (test_unlink_func): Likewise.
5520         * tests/test-unlinkat.c (main): Likewise.
5521
5522         maint: make realtime library usage explicit
5523         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5524         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5525         * modules/settime (Link): Likewise.
5526         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5527
5528         test-stat-time: speed up execution
5529         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5530         warning on mingw.
5531         (nap): New helper function.
5532         (prepare_test): Use it to reduce sleep time.
5533         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5534         execution.
5535         * modules/stat-time-tests (configure.ac): Check for usleep.
5536
5537 2009-10-09  Jim Meyering  <meyering@redhat.com>
5538
5539         selinux-h: always use getfilecon wrappers
5540         * lib/getfilecon.c: New file.
5541         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5542         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5543         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5544         (fgetfilecon): Provide a stub.
5545         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5546         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5547         file unconditionally.
5548         When <selinux/selinux.h> is found, arrange to use wrappers.
5549         * modules/selinux-h (Files): Add getfilecon.c.
5550         (Makefile.am): Substitute include-next-related bits
5551         into the now-always-generated selinux/selinux.h file.
5552         * doc/glibc-functions/lgetfilecon.texi: New file.
5553         * doc/glibc-functions/fgetfilecon.texi: New file.
5554         * doc/glibc-functions/getfilecon.texi: New file.
5555         * doc/glibc-functions/getfilecon-desc.texi: New file.
5556         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5557         which to pull in the new files.
5558         * MODULES.html.sh (Misc): Add selinux-h.
5559
5560 2009-10-08  Jim Meyering  <meyering@redhat.com>
5561
5562         unistd: fix comment typo
5563         * lib/unistd.in.h (euidaccess): Fix a comment typo.
5564
5565 2009-10-08  Eric Blake  <ebb9@byu.net>
5566
5567         areadlink: use SIZE_MAX consistently
5568         * modules/areadlink (Depends-on): Add stdint.
5569         * modules/areadlink-with-size (Depends-on): Likewise.
5570         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5571         gives NULL; drop sys/types, since unistd gives size_t; and add
5572         stdint for SIZE_MAX.
5573         (SIZE_MAX): Rely on headers.
5574         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5575         and add stdint.
5576         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5577         (SIZE_MAX): Likewise.
5578         (INITIAL_BUF_SIZE): Turn into enum.
5579         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5580
5581 2009-10-08  Jim Meyering  <meyering@redhat.com>
5582
5583         areadlinkat: avoid compilation failure
5584         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5585         Fix typo in comment.
5586
5587 2009-10-07  Eric Blake  <ebb9@byu.net>
5588
5589         areadlinkat-with-size: new module
5590         * modules/areadlinkat-with-size: New module.
5591         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5592         * lib/areadlink.h (areadlinkat): Declare it.
5593         * MODULES.html.sh (File system functions): Mention it.
5594         * modules/areadlinkat-with-size-tests: New test.
5595         * tests/test-areadlinkat-with-size.c: New file.
5596
5597         xreadlinkat: new module
5598         * modules/xreadlinkat: New module.
5599         * lib/xreadlinkat.c (xreadlinkat): New file.
5600         * lib/xreadlink.h (xreadlinkat): Declare it.
5601         * MODULES.html.sh (File system functions): Mention it.
5602
5603         areadlinkat: new module
5604         * lib/at-func.c (FUNC_FAIL): New define.
5605         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5606         * modules/areadlinkat: New module.
5607         * lib/linkat.c (areadlinkat): Move...
5608         * lib/areadlinkat.c (areadlinkat): ...to new file.
5609         * lib/areadlink.h (areadlinkat): Declare it.
5610         * modules/linkat (Depends-on): Add areadlinkat.
5611         * MODULES.html.sh (File system functions): Mention it.
5612         * modules/areadlinkat-tests: New test.
5613         * tests/test-areadlinkat.c: New file.
5614
5615         areadlink, areadlink-with-size: add tests
5616         * modules/areadlink-tests: New test.
5617         * modules/areadlink-with-size-tests: Likewise.
5618         * tests/test-areadlink.h: New file.
5619         * tests/test-areadlink.c: Likewise.
5620         * tests/test-areadlink-with-size.c: Likewise.
5621
5622         maint: minor cleanups
5623         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5624         _UNUSED_PARAMETER_ instead.
5625         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5626         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5627         * modules/linkat-tests (Files): Distribute test-link.h.
5628
5629         openat, utimens: whitespace cleanup
5630         * lib/openat.c: Prefer space throughout, rather than mix of 8
5631         spaces vs. tabs.
5632         * lib/at-func.c: Likewise.
5633         * lib/utimens.c: Likewise.
5634
5635         openat: avoid using wrong fd
5636         * lib/openat.c (openat_permissive): Reject user's fd if saving the
5637         working directory chooses same fd.
5638         * lib/at-func.c (AT_FUNC_NAME): Likewise.
5639
5640         mkdir, mkdirat: fix cygwin 1.5.x bug
5641         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5642         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5643         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5644         bug.
5645         (gl_PREREQ_MKDIR): Delete unused macro.
5646         * modules/mkdir (Files): Track file rename.
5647         (configure.ac): Update macro name.
5648         * modules/openat (Depends-on): Add mkdir.
5649         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5650
5651         mkdir, mkdirat: add tests
5652         * modules/mkdir-tests: New test.
5653         * tests/test-mkdir.h: New file.
5654         * tests/test-mkdir.c: Likewise.
5655         * tests/test-mkdirat.c: Likewise.
5656         * modules/openat-tests (Files): Add new files.
5657         (Makefile.am): Run new test.
5658
5659 2009-10-06  Eric Blake  <ebb9@byu.net>
5660
5661         doc: tweak *at function documentation
5662         * doc/posix-functions/faccessat.texi (faccessat): Mention
5663         known issue with replacement.
5664         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5665         * doc/posix-functions/linkat.texi (linkat): Likewise.
5666         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5667         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5668         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5669         * doc/posix-functions/renameat.texi (renameat): Likewise.
5670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5671
5672         openat: fix GNU/Hurd bug in unlinkat
5673         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5674         broken.
5675         * doc/posix-functions/unlink.texi (unlink): Document this.
5676         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5677
5678         fdopendir: fix GNU/Hurd bug
5679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5680         allowing non-directory fds.
5681         * lib/fdopendir.c (rpl_fdopendir): Work around it.
5682         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5683         * modules/dirent (Makefile.am): Substitute it.
5684         * lib/dirent.in.h (fdopendir): Declare replacement.
5685         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5686         * tests/test-fdopendir.c (main): Test something other than
5687         /dev/null, since on Hurd that behaves like a directory.
5688
5689         test-symlink: port to GNU/Hurd
5690         * tests/test-symlink.h (test_symlink): Relax expected errno.
5691
5692         doc: tweak more cygwin information
5693         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5694         now compatible with glibc.
5695         * doc/posix-functions/getopt.texi (getopt): Likewise.
5696
5697         getopt-gnu: add another test
5698         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5699         guarantee behavior relied on by m4.
5700         * tests/test-getopt.c (main): Use it.
5701         * modules/getopt-posix-tests (Depends-on): Add setenv.
5702         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5703
5704         getopt: fix compilation on darwin
5705         * lib/getopt.in.h (includes): Leave breadcrumbs during system
5706         include.
5707         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5708         Reported by Ludovic Courtès.
5709
5710 2009-10-06  Bruno Haible  <bruno@clisp.org>
5711
5712         * modules/size_max (Description): Discourage its use.
5713         Reported by Simon Josefsson.
5714
5715 2009-10-06  Jim Meyering  <meyering@redhat.com>
5716
5717         linkat: avoid compilation failure
5718         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5719
5720 2009-10-05  Eric Blake  <ebb9@byu.net>
5721
5722         linkat: support Linux 2.6.17
5723         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
5724         linkat on Linux, but allow cache variable override.
5725         * lib/linkat.c (rpl_linkat): Define override.
5726         * modules/linkat (Depends-on): Add symlinkat.
5727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
5728         * modules/unistd (Makefile.am): Substitute it.
5729         * lib/unistd.in.h (linkat): Declare replacement.
5730         Reported by Pádraig Brady.
5731
5732         quotearg: port test to systems with C.UTF-8 locale
5733         * tests/test-quotearg.c (struct result_strings): Add another
5734         member, differentiating between C.ASCII and C.UTF-8 handling.
5735         (compare_strings): Add parameter.
5736         (main): Adjust all callers.
5737
5738         getopt: avoid clash with FreeBSD _getopt_internal
5739         * lib/getopt.in.h (_getopt_internal): Override the name.
5740         * lib/getopt_int.h (includes): Pick up any overrides.
5741         Reported by Reuben Thomas.
5742
5743         hash: allow C89 compilation
5744         * lib/hash.c (check_tuning): Move declaration before statement.
5745         Reported by Reuben Thomas.
5746
5747 2009-10-05  Karl Berry  <karl@gnu.org>
5748
5749         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
5750
5751 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
5752             Bruno Haible  <bruno@clisp.org>
5753
5754         * lib/uname.c (uname): Use a table-driven algorithm to compute
5755         Windows NT versions.
5756
5757 2009-10-04  Bruno Haible  <bruno@clisp.org>
5758
5759         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
5760         program_invocation_short_name.
5761         * modules/progname (configure.ac): Test for presence of
5762         program_invocation_short_name.
5763         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5764
5765 2009-10-04  Bruno Haible  <bruno@clisp.org>
5766
5767         * lib/progname.c (set_program_name): Fix comment.
5768         Reported by Jim Meyering.
5769
5770 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5771             Bruno Haible  <bruno@clisp.org>
5772
5773         * lib/uname.c: Include <string.h>.
5774         (uname): Do only one call to GetVersionEx in the common case.
5775
5776 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5777             Bruno Haible  <bruno@clisp.org>
5778
5779         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
5780         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
5781         (uname): Add support for Windows CE and various non-x86 CPU types.
5782
5783 2009-10-03  Bruno Haible  <bruno@clisp.org>
5784
5785         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
5786         invocation to tests/configure.ac.
5787         Reported by Ian Beckwith <ianb@erislabs.net>.
5788
5789 2009-10-02  Eric Blake  <ebb9@byu.net>
5790
5791         fchdir: avoid compiler warning
5792         * lib/fchdir.c (canonicalize_file_name)
5793         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
5794
5795         test-open: support mingw errno values
5796         * tests/test-open.h (test_open): Relax test.
5797         * tests/test-fopen.h (test_fopen): Likewise.
5798         * tests/test-openat-safer.c (main): Likewise.
5799
5800         open: fix opening directory on mingw
5801         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
5802
5803         test-open: on GNU/Hurd, /dev/null is a directory
5804         * tests/test-fopen.h (main): Rename...
5805         (test_fopen): ...to this.  Use a guaranteed non-directory when
5806         confirming open behavior on trailing slash.
5807         * tests/test-openat-safer.c (main): Likewise.
5808         * tests/test-open.h (main): Likewise....
5809         (test_open): ...to this.
5810         * tests/test-fopen.c (main): Adjust caller.
5811         * tests/test-fopen-safer.c (main): Likewise.
5812         * tests/test-open.c (main): Likewise.
5813         * tests/test-fcntl-safer.c (main): Likewise.
5814         Reported by Samuel Thibault.
5815
5816         rename, fchdir: don't ignore chdir failure
5817         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
5818         * lib/rename.c (rpl_rename) [W32]: Likewise.
5819         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
5820         an empty destination directory if source cannot be renamed,
5821         although there is still possibility for failure.
5822         * doc/posix-functions/rename.texi (rename): Document the race.
5823         Reported by Jim Meyering.
5824
5825         maint: cleanup whitespace in recent commits
5826         * lib/rename.c (rpl_rename): Remove tabs.
5827         * tests/test-link.h (test_link): Likewise.
5828         * lib/fchdir.c (get_name): Likewise.
5829         Reported by Jim Meyering.
5830
5831 2009-10-02  Ben Pfaff  <blp@gnu.org>
5832
5833         relocatable-prog-wrapper: Add missing dependency on
5834         double-slash-root.
5835         * modules/relocatable-prog-wrapper: Add dependency.
5836         Reported by Ian Beckwith <ianb@erislabs.net>.
5837
5838 2009-10-02  Eric Blake  <ebb9@byu.net>
5839
5840         renameat: fix Solaris bugs
5841         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
5842         needed fixing.
5843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
5844         * modules/stdio (Makefile.am): Substitute it.
5845         * lib/stdio.in.h (renameat): Declare replacement.
5846         * lib/renameat.c (rpl_renameat): Implement fix.
5847
5848         renameat: new module
5849         * modules/renameat: New file.
5850         * lib/renameat.c (renameat): Likewise.
5851         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
5852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
5853         * modules/stdio (Makefile.am): Substitute them.
5854         * lib/stdio.in.h (renameat): Declare it.
5855         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5856         * doc/posix-functions/renameat.texi (renameat): Likewise.
5857         * modules/renameat-tests: New test.
5858         * tests/test-renameat.c: Likewise.
5859
5860         rename: fix mingw bugs
5861         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
5862         directory overwrite bugs.
5863
5864         rename: fix another cygwin 1.5 bug
5865         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
5866         checks.
5867         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
5868         unnecessary cygwin workarounds.  Also work around bug with moving
5869         full directory onto an empty one.
5870         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
5871
5872         rename-dest-slash: merge into rename module
5873         * modules/rename-dest-slash (Status): Mark obsolete.
5874         (Depends-on): Add rename.
5875         (Files): Let rename do it all.
5876         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
5877         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
5878         * m4/rename-dest-slash.m4: ...so this file can be deleted.
5879         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
5880         * lib/rename.c (rpl_rename): Update comments.
5881
5882         rename: fix cygwin 1.5.x bugs
5883         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
5884         * lib/rename.c (rpl_rename): Work around them.
5885         * modules/rename (Depends-on): Add same-inode.
5886
5887         rename: fix Solaris 10 bug
5888         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
5889         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
5890         was the only bug.
5891
5892         rename: fix Solaris 9 bug
5893         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
5894         on non-directory.  Avoid calling exit.
5895         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
5896         strdup.
5897         * modules/rename-tests (Depends-on): Drop lstat.
5898         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
5899         (gl_PREREQ_RENAME): Delete unused macro.
5900
5901         rename-dest-slash: fix NetBSD bug
5902         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
5903         links.
5904         * modules/rename-dest-slash (Depends-on): Add same-inode.
5905
5906         rename-tests: new test, exposes several platform bugs
5907         * modules/rename-tests: New file.
5908         * tests/test-rename.h: Likewise.
5909         * tests/test-rename.c: Likewise.
5910         * doc/posix-functions/rename.texi (rename): Improve documentation,
5911         including bugs that will eventually be fixed in gnulib.
5912
5913 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
5914
5915         * lib/uname.c: Include <stdlib.h>
5916         (uname): Assume version info is available.
5917
5918 2009-10-02  Jim Meyering  <meyering@redhat.com>
5919
5920         gnu-web-doc-update: correct --help output
5921         * build-aux/gnu-web-doc-update: Make --help output relevant.
5922
5923         gnu-web-doc-update: add standard options
5924         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
5925
5926         gnu-web-doc-update: New module.
5927         Use this script to automatically update the on-line web documentation
5928         for your GNU project at http://www.gnu.org/software/$pkg/manual/
5929         * modules/gnu-web-doc-update: New file, from coreutils.
5930         * build-aux/gnu-web-doc-update: New script.
5931
5932 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
5933
5934         link: LoadLibrary is not needed.
5935         * lib/link.c: Use GetModuleHandle.
5936
5937 2009-10-01  Eric Blake  <ebb9@byu.net>
5938
5939         getopt: bump serial number
5940         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
5941         change.
5942
5943         tests: tighten link, rmdir, and remove tests
5944         * tests/test-link.h (includes): No need to use <config.h> here.
5945         Clean up if directory hard link was created, otherwise test for
5946         trailing '.'.
5947         * tests/test-linkat.c (main): Simplify.
5948         * tests/test-remove.c (main): Enhance test for trailing '.'.
5949         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5950
5951 2009-10-01  Jim Meyering  <meyering@redhat.com>
5952
5953         maint.mk: requiring "make major" was annoying, for a "minor" release.
5954         What is intended is "stable", to contrast with alpha and beta,
5955         so require "make stable", not "make major".
5956         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
5957         (get_tool_versions): Likewise.
5958         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
5959
5960 2009-09-30  Ben Pfaff  <blp@gnu.org>
5961
5962         Fix broken build of replacement for Windows tmpfile().
5963         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
5964         flags argument added along with the 'mkostemp' module.
5965
5966 2009-09-28  Bruno Haible  <bruno@clisp.org>
5967
5968         Avoid identifier clash with POSIX function 'remove' defined as a macro.
5969         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
5970         to 'remove_elt'.
5971         (gl_list_remove): Update.
5972         * lib/gl_list.c (gl_list_remove): Update.
5973         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
5974         to 'remove_elt'.
5975         (gl_oset_remove): Update.
5976         * lib/gl_list.c (gl_oset_remove): Update.
5977         Reported by Eric Blake.
5978
5979 2009-09-28  Eric Blake  <ebb9@byu.net>
5980
5981         doc: mention yet more cygwin 1.7 status
5982         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
5983         cygwin.
5984         * doc/glibc-functions/execvpe.texi (execvpe): New file.
5985         * doc/gnulib.texi (Glibc unistd.h): Mention it.
5986
5987         argp: fix test failure
5988         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
5989         that are not upper-case.  Pass correct range to tolower.
5990
5991 2009-09-27  Jim Meyering  <meyering@redhat.com>
5992
5993         test-yesno: work around sparc-dash here-document infelicity
5994         Without this change, the literal \177 byte in a here document
5995         would make dash 0.5.5.1-3 access uninitialized memory.
5996         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
5997         Instead, use a marker, "@", and filter through tr to create the desired
5998         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
5999
6000 2009-09-27  Bruno Haible  <bruno@clisp.org>
6001
6002         Disable untested support for new flavours of ACLs on AIX.
6003         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6004         progress.
6005         * lib/set-mode-acl.c (qset_acl): Likewise.
6006
6007 2008-12-07  Bruno Haible  <bruno@clisp.org>
6008
6009         Add support for new flavours of ACLs on AIX. (Untested.)
6010         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6011         (file_has_acl): Add support for newer AIX.
6012         * lib/set-mode-acl.c (qset_acl): Likewise.
6013         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6014         Rainer Tammer <tammer@tammer.net>.
6015
6016 2009-09-26  Eric Blake  <ebb9@byu.net>
6017
6018         argp: fix compilation of getopt
6019         * lib/getopt.in.h (includes): Use different guard than glibc.
6020         Reported by Sergey Poznyakoff.
6021
6022         doc: mention more cygwin 1.7 status
6023         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6024         bug.
6025         * doc/posix-functions/execl.texi (execl): Likewise.
6026         * doc/posix-functions/execle.texi (execle): Likewise.
6027         * doc/posix-functions/execlp.texi (execlp): Likewise.
6028         * doc/posix-functions/execv.texi (execv): Likewise.
6029         * doc/posix-functions/execve.texi (execve): Likewise.
6030         * doc/posix-functions/execvp.texi (execvp): Likewise.
6031         * doc/glibc-functions/canonicalize_file_name.texi
6032         (canonicalize_file_name): Cygwin 1.7 now provides this.
6033         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6034         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6035         on AT_SYMLINK_NOFOLLOW.
6036
6037 2009-09-24  Eric Blake  <ebb9@byu.net>
6038
6039         test-linkat: make test more robust
6040         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6041
6042         getopt: fix inclusion guards for cygwin
6043         * modules/getopt-posix (Depends-on): Add include-next.
6044         (Makefile.am): Substitute more items in replacement header.
6045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6046         <getopt.h>.
6047         * lib/getopt.in.h (includes): Use split inclusion guard, and
6048         prefer <getopt.h> over include <unistd.h> when one is present.
6049         (option): Also override name of 'struct option'.
6050
6051         same-inode: revert prior change; it is not yet ready
6052         * NEWS: Undo mention of this change.
6053         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6055         * lib/cycle-check.c (cycle_check): Likewise.
6056         * lib/same.c (same_name): Likewise.
6057         * lib/at-func2.c (at_func2): Likewise.
6058
6059 2009-09-23  Eric Blake  <ebb9@byu.net>
6060
6061         linkat: new module
6062         * modules/linkat: New file.
6063         * lib/at-func2.c (at_func2): Likewise.
6064         * lib/linkat.c (linkat): Likewise.
6065         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6066         * lib/openat-priv.h (at_func2): Add declaration.
6067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6068         * modules/unistd (Makefile.am): Substitute them.
6069         * lib/unistd.in.h (linkat): Declare it.
6070         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6071         * doc/posix-functions/linkat.texi (linkat): Likewise.
6072         * doc/posix-functions/link.texi (link): Tweak wording.
6073         * tests/test-link.c (main): Move guts...
6074         * tests/test-link.h (test_link): ...into new file.
6075         * modules/linkat-tests: New test.
6076         * tests/test-linkat.c: Likewise.
6077         * modules/link-tests (Files): Ship new file.
6078         (Depends-on): Add stdbool.
6079
6080         dirname: add library-safe mdir_name
6081         * lib/dirname.h (mdir_name): New prototype.
6082         * lib/dirname.c (dir_name): Move guts...
6083         (mdir_name): ...to new function that avoids xalloc_die.
6084
6085         fchdir: another mingw fix
6086         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6087         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6088         on mingw (where it has not yet been ported), and make it optional
6089         elsewhere.
6090         (_gl_register_fd): Use it.
6091
6092         same-inode: make SAME_INODE tri-state, to port to mingw
6093         * NEWS: Mention this change.
6094         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6095         st_ino always being 0.
6096         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6097         * lib/cycle-check.c (cycle_check): Likewise.
6098         * lib/same.c (same_name): Likewise.
6099
6100         lstat: avoid mingw compilation error
6101         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6102         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6103         lstat ourselves.
6104         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6105         was adequate.
6106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6107         the checks for lstat.
6108         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6109
6110         link: fix test failure on Solaris 9
6111         * lib/link.c (rpl_link): Don't assume link will catch bogus
6112         trailing slash on source.
6113
6114         test-symlinkat: enhance test
6115         * tests/test-readlink.c (main): Move guts...
6116         * tests/test-readlink.h (test_readlink): ...into new file.
6117         * tests/test-symlink.c (main): Move guts...
6118         * tests/test-symlink.h (test_symlink): ...into new file.
6119         * tests/test-symlinkat.c (main): Use new files for further
6120         coverage.
6121         (do_symlink, do_readlink): New helper functions.
6122         * modules/symlink-tests (Files): Ship new file.
6123         (Depends-on): Add stdbool.
6124         * modules/readlink-tests (Files): Ship new file.
6125         (Depends-on): Add stdbool.
6126         * modules/symlinkat-tests (Files): Use new files.
6127
6128 2009-09-23  Eric Blake  <ebb9@byu.net>
6129
6130         readlink: document portability issue with symlink length
6131         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6132         systems have bogus st_size on symlinks, and mention the
6133         areadlink-with-size module.
6134         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6135         * doc/posix-functions/readlink.texi (readlink): Mention the
6136         areadlink module, and ERANGE failure.
6137         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6138         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6139
6140         readlink: fix Solaris 9 bug with trailing slash
6141         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6142         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6143         * doc/posix-functions/readlink.texi (readlink): Document this.
6144         * modules/readlink-tests: New test.
6145         * tests/test-readlink.c: Likewise.
6146
6147         readlink: fix cygwin 1.5.x bug with return type
6148         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6149         * lib/unistd.in.h (readlink): Use ssize_t.
6150         * lib/readlink.c (readlink): Likewise.
6151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6152         * modules/unistd (Makefile.am): Substitute it.
6153         * lib/unistd.in.h (readlink): Declare replacement.
6154         * doc/posix-functions/readlink.texi (readlink): Document this.
6155
6156         symlink: use throughout gnulib
6157         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6158         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6159         symlink is not used.
6160         * modules/symlinkat (Depends-on): Add symlink.
6161         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6162         * modules/canonicalize-tests (Depends-on): Likewise.
6163         * modules/lstat-tests (Depends-on): Likewise.
6164         * modules/openat-tests (Depends-on): Likewise.
6165         * modules/remove-tests (Depends-on): Likewise.
6166         * modules/rmdir-tests (Depends-on): Likewise.
6167         * modules/unlink-tests (Depends-on): Likewise.
6168         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6169         * tests/test-canonicalize.c (symlink): Likewise.
6170         * tests/test-fstatat.c (symlink): Likewise.
6171         * tests/test-lstat.c (symlink): Likewise.
6172         * tests/test-remove.c (symlink): Likewise.
6173         * tests/test-rmdir.c (symlink): Likewise.
6174         * tests/test-unlink.c (symlink): Likewise.
6175         * tests/test-unlinkat.c (symlink): Likewise.
6176
6177         symlink: new module, for Solaris 9 bug
6178         * modules/symlink: New file.
6179         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6180         * lib/symlink.c: Likewise.
6181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6182         * modules/unistd (Makefile.am): Substitute them.
6183         * lib/unistd.in.h (symlink): Declare replacement.
6184         * MODULES.html.sh (File system functions): Mention it.
6185         * doc/posix-functions/symlink.texi (symlink): Likewise.
6186         * modules/symlink-tests: New test.
6187         * tests/test-symlink.c: Likewise.
6188
6189 2009-09-23  Bruno Haible  <bruno@clisp.org>
6190
6191         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6192         when needed.
6193         Test case: gnulib-tool --import --with-tests atexit inttypes.
6194         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6195
6196 2009-09-23  Bruno Haible  <bruno@clisp.org>
6197
6198         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6199         subcommand, not in a subshell.
6200
6201 2009-09-22  Eric Blake  <ebb9@byu.net>
6202
6203         unistd: sort replacement declarations
6204         * lib/unistd.in.h: Sort declarations.
6205
6206         open, openat: minor optimization
6207         * lib/open.c (open): If open succeeded, len is non-zero.
6208         * lib/openat.c (rpl_openat): Likewise.
6209
6210         link-follow: ensure correct result
6211         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6212         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6213         distinguish between possible failures.
6214
6215 2009-09-21  Eric Blake  <ebb9@byu.net>
6216
6217         fts: avoid compiler warning
6218         * lib/fts.c (dirent_inode_sort_may_be_useful)
6219         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6220
6221 2009-09-19  Bruno Haible  <bruno@clisp.org>
6222
6223         * lib/progreloc.c (canonicalize_file_name): New declaration.
6224
6225 2009-09-19  Eric Blake  <ebb9@byu.net>
6226
6227         link: fix quoting
6228         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6229
6230         openat: fix openat bugs on Solaris 9
6231         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6232         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6233         * modules/openat (Depends-on): Add open.
6234         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6235         * modules/fcntl-h (Makefile.am): Substitute it.
6236         * lib/fcntl.in.h (openat): Declare replacement.
6237         * doc/posix-functions/openat.texi (openat): Document this.
6238
6239         openat: move fstatat and unlinkat into correct files
6240         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6241         compiled.
6242         * lib/openat.c (fstatat, unlinkat): Move...
6243         * lib/fstatat.c (fstatat): ...into correct files.
6244         * lib/unlinkat.c (unlinkat): Likewise.
6245
6246         openat: fix unlinkat bugs on Solaris 9
6247         * lib/unlinkat.c (unlinkat): New file.
6248         * modules/openat (Depends-on): Add unlink.
6249         (Files): Distribute it.
6250         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6251         trailing slash behavior is broken.
6252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6253         * modules/unistd (Makefile.am): Substitute it.
6254         * lib/unistd.in.h (unlinkat): Declare replacement.
6255         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6256
6257         openat: fix fstatat bugs on Solaris 9
6258         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6259         stat.
6260         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6261
6262         test-unlinkat: enhance test, to expose Solaris 9 bug
6263         * tests/test-unlink.c (main): Factor guts...
6264         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6265         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6266         * tests/test-rmdir.c (main): Adjust caller.
6267         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6268         (unlinker): New helper function.
6269         (rmdirat): Enhance check.
6270         * modules/rmdir-tests (Depends-on): Add stdbool.
6271         * modules/unlink-tests (Depends-on): Likewise.
6272         (Files): Add test-unlink.h.
6273         * modules/openat-tests (Files): Likewise.
6274         (Depends-on): Add unlinkdir.
6275
6276         test-fstatat: new test, to expose Solaris 9 bugs
6277         * tests/test-stat.c (main): Factor guts...
6278         * tests/test-stat.h (test_stat_func): ...into new file.
6279         * tests/test-lstat.c (main): Factor guts...
6280         * tests/test-lstat.h (test_lstat_func): ...into new file.
6281         * tests/test-fstatat.c: New file.
6282         * modules/stat-tests (Files): Add test-stat.h.
6283         * modules/lstat-tests (Files): Add test-lstat.h.
6284         (Depends-on): Add stdbool.
6285         * modules/openat-tests (Depends-on): Add pathmax.
6286         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6287         (Makefile.am): Run new test.
6288
6289         remove: new module, for mingw and Solaris 9 bugs
6290         * modules/remove: New file.
6291         * lib/remove.c: Likewise.
6292         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6294         * modules/stdio (Makefile.am): Use them.
6295         * lib/stdio.in.h (remove): Declare replacement.
6296         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6297         * doc/posix-functions/remove.texi (remove): Likewise.
6298         * modules/remove-tests: New test.
6299         * tests/test-remove.c: Likewise.
6300
6301         unlink: new module, for Solaris 9 bug
6302         * modules/unlink: New file.
6303         * lib/unlink.c: Likewise.
6304         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6306         * modules/unistd (Makefile.am): Use them.
6307         * lib/unistd.in.h (stat): Declare replacement.
6308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6309         * doc/posix-functions/unlink.texi (unlink): Likewise.
6310         * modules/unlink-tests: New test.
6311         * tests/test-unlink.c: Likewise.
6312
6313         lstat: fix Solaris 9 bug
6314         * lib/lstat.c (lstat): Also check for trailing slash on
6315         non-symlink, non-directories.  Use stat module to simplify logic.
6316         * doc/posix-functions/lstat.texi (lstat): Document it.
6317         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6318         (configure.ac): Check for symlink.
6319         * tests/test-lstat.c (main): Add more tests.
6320
6321         stat: add as dependency to other modules
6322         * modules/chown (Depends-on): Add stat.
6323         * modules/euidaccess (Depends-on): Likewise.
6324         * modules/fchdir (Depends-on): Likewise.
6325         * modules/isdir (Depends-on): Likewise.
6326         * modules/link (Depends-on): Likewise.
6327         * modules/lstat (Depends-on): Likewise.
6328         * modules/mkdir-p (Depends-on): Likewise.
6329         * modules/modechange (Depends-on): Likewise.
6330         * modules/open (Depends-on): Likewise.
6331         * modules/readlink (Depends-on): Likewise.
6332         * modules/same (Depends-on): Likewise.
6333
6334         stat: fix Solaris 9 bug
6335         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6336         slash.
6337         * lib/stat.c (rpl_stat): Work around it.
6338         * doc/posix-functions/stat.texi (stat): Update documentation.
6339
6340         stat: new module, for mingw bug
6341         * modules/stat: New file.
6342         * lib/stat.c: Likewise.
6343         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6345         * modules/sys_stat (Makefile.am): Use them.
6346         * lib/sys_stat.in.h (stat): Declare replacement.
6347         * lib/openat.c (fstatat): Deal with lstat and stat being function
6348         macros.
6349         * modules/openat (Depends-on): Add inline.
6350         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6351         * doc/posix-functions/stat.texi (stat): Likewise.
6352         * modules/stat-tests: New test.
6353         * tests/test-stat.c: Likewise.
6354
6355 2009-09-19  Jim Meyering  <meyering@redhat.com>
6356
6357         syntax-check: detect unnecessary inclusion of canonicalize.h
6358         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6359
6360 2009-09-19  Eric Blake  <ebb9@byu.net>
6361
6362         canonicalize-lgpl: adjust clients to use correct header
6363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6364         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6365         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6366         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6367         * lib/progreloc.c (includes): Likewise.
6368
6369 2009-09-19  Jim Meyering  <meyering@redhat.com>
6370
6371         test-posixtm.c: correct a comment
6372         * tests/test-posixtm.c: Correct first-line comment.
6373         Spotted by Eric Blake.
6374
6375 2009-09-16  Jim Meyering  <meyering@redhat.com>
6376
6377         posixtm-tests: make T const-correct; add a test case
6378         * tests/test-posixtm.c (T): Declare const.
6379         Add a test for -(2^31+1).
6380         Remove useless can-succeed-only-in-2002 test.
6381
6382         posixtm-tests: adjust the sole failing test
6383         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6384         expected output matches what mktime now produces.  Cross-checked via
6385         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6386
6387         posixtm: move #ifdef'd tests into a new module
6388         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6389         * tests/test-posixtm.c: ... this new file.
6390         * modules/posixtm-tests: New module.
6391
6392 2009-09-19  Eric Blake  <ebb9@byu.net>
6393
6394         openat: simplify use of at-func.c
6395         * lib/at-func.c (includes): Include prerequisites here, to
6396         simplify requirements on client files.
6397         * lib/openat-priv.h: Add double-inclusion guard.
6398         * lib/faccessat.c (includes): Simplify.
6399         * lib/fchmodat.c (includes): Likewise.
6400         * lib/fchownat.c (includes): Likewise.
6401         * lib/mkdirat.c (includes): Likewise.
6402         * lib/mkfifoat.c (includes): Likewise.
6403         * lib/symlinkat.c (includes): Likewise.
6404
6405         openat: allow return of fd 0
6406         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6407         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6408         unistd-safer.
6409         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6410         <fcntl.h>; this module does not leak fds.
6411         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6412         must be allowed to return 0, leaving openat_safer to add the
6413         safety.
6414         (openat_permissive): Avoid writing to just-opened fd 2 if
6415         restoring the current directory fails.
6416         * lib/openat-die.c (openat_restore_fail): Add comment.
6417         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6418         (save_cwd): Guarantee safe fd, but without use of open_safer.
6419         * tests/test-openat.c: New test.
6420         * modules/openat-tests (Files, Makefile.am): Distribute and build
6421         new file.
6422
6423         relocatable-prog-wrapper: fix build
6424         * modules/relocatable-prog-wrapper (Files): Update name of
6425         canonicalize m4 file, broken on 2009-09-17.
6426         Reported by emad hajjar <aleppos@hotmail.com>.
6427
6428 2009-09-19  Bruno Haible  <bruno@clisp.org>
6429
6430         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6431         * lib/safe-alloc.c: Likewise.
6432         Reported by Ian Beckwith <ianb@erislabs.net>.
6433
6434 2009-09-18  Bruno Haible  <bruno@clisp.org>
6435
6436         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6437         Reported by <erobles@sensacd.com.mx>.
6438
6439 2009-09-17  Eric Blake  <ebb9@byu.net>
6440
6441         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6442         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6443         slashes when checking if last component is missing.
6444         * tests/test-canonicalize.c (main): Test this.
6445
6446         canonicalize, canonicalize-lgpl: honor // if distinct from /
6447         * modules/canonicalize (Files): Add double-slash-root.m4.
6448         * modules/canonicalize-lgpl (Files): Likewise.
6449         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6450         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6451         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6452         fallback definition.
6453         (canonicalize_filename_mode): Use it to protect //.
6454         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6455         (__realpath): Likewise.
6456         * tests/test-canonicalize.c (main): Test this.
6457         * tests/test-canonicalize-lgpl.c (main): Likewise.
6458         * modules/canonicalize-tests (Depends-on): Add same-inode.
6459         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6460
6461         canonicalize-lgpl: fix glibc bug with trailing slash
6462         * m4/canonicalize-lgpl.m4: Move contents...
6463         * m4/canonicalize.m4: ...here.
6464         (gl_CANONICALIZE_LGPL): Factor realpath check...
6465         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6466         glibc 2.3.5 bug, fixed 2005-04-27.
6467         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6468         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6469         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6470         * modules/canonicalize-lgpl (Files): Manage file rename.
6471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6472         * modules/stdlib (Makefile.am): Substitute witness.
6473         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6474         is needed.
6475         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6476         replacement is required.
6477         * lib/canonicalize.c (canonicalize_file_name): Likewise.
6478         * doc/glibc-functions/canonicalize_file_name.texi
6479         (canonicalize_file_name): Document this.
6480         * doc/posix-functions/realpath.texi (realpath): Likewise.
6481
6482         canonicalize-lgpl: reject non-directory with trailing slash
6483         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6484         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
6485         catches failures in glibc 2.3.5.
6486         * tests/test-canonicalize.c (main): Likewise.
6487
6488         canonicalize-lgpl: use native realpath if it works
6489         * lib/canonicalize-lgpl.c (realpath): Guard with
6490         FUNC_REALPATH_WORKS.
6491         * lib/stdlib.in.h (realpath): Make declaration optional based on
6492         HAVE_REALPATH.
6493         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6494         native realpath works.
6495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6496         * modules/stdlib (Makefile.am): Substitute witness.
6497
6498         canonicalize, canonicalize-lgpl: use <stdlib.h>
6499         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6500         (Include): Mention <stdlib.h>.
6501         (configure.ac): Mention functions we provide.
6502         * modules/canonicalize (configure.ac): Likewise.
6503         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6504         realpath if canonicalize_file_name is missing.
6505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6506         * modules/stdlib (Makefile.am): Substitute witnesses.
6507         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6508         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6509         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6510         * NEWS: Document this.
6511         * doc/glibc-functions/canonicalize_file_name.texi
6512         (canonicalize_file_name): Likewise.
6513         * doc/posix-functions/realpath.texi (realpath): Likewise.
6514         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6515
6516         test-canonicalize: consolidate into single C program
6517         * tests/test-canonicalize.sh: Delete; move setup into...
6518         * tests/test-canonicalize.c (main): ...the program, making it
6519         easier to run in debugger.  Add some tests.
6520         * modules/canonicalize-tests (Files): Remove unused file.
6521         (Depends-on): Add progname.
6522         (configure.ac, Makefile.am): Simplify.
6523
6524         test-canonicalize-lgpl: consolidate into single C program
6525         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6526         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6527         easier to run in debugger.  Add some tests.
6528         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6529         (configure.ac, Makefile.am): Simplify.
6530
6531         canonicalize: avoid resolvepath
6532         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6533         unnecessary checks.
6534         * lib/canonicalize.c (includes): Simplify.
6535         (canonicalize_file_name): Drop resolvepath implementation.
6536         * modules/canonicalize (Depends-on): Drop filenamecat.
6537
6538         canonicalize: don't lose errno
6539         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6540         over calls to free.
6541
6542         canonicalize: simplify errno handling
6543         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6544         assignment.
6545
6546         canonicalize, canonicalize-lgpl: update module dependencies
6547         * modules/canonicalize (Depends-on): Add extensions, lstat,
6548         pathmax, stdlib.
6549         (Files): Drop pathmax.h.
6550         (configure.ac): Adjust macro name.
6551         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6552         lstat, stdlib, sys_stat.
6553         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6554         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6555         extensions.
6556         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6557         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6558         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6559         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6560         declaration, if available.
6561         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6562         we can rely on the readlink module.
6563         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6564         (includes): Use <unistd.h> unconditionally.
6565
6566 2009-09-17  Eric Blake  <ebb9@byu.net>
6567
6568         maint: make Include sections of modules consistent
6569         * modules/alloca: Use only header name; no need to list #include.
6570         * modules/alloca-opt: Likewise.
6571         * modules/arpa_inet: Likewise.
6572         * modules/canon-host: Likewise.
6573         * modules/configmake: Likewise.
6574         * modules/dirent: Likewise.
6575         * modules/eealloc: Likewise.
6576         * modules/environ: Likewise.
6577         * modules/fchdir: Likewise.
6578         * modules/fcntl: Likewise.
6579         * modules/fcntl-h: Likewise.
6580         * modules/gethrxtime: Likewise.
6581         * modules/gettime: Likewise.
6582         * modules/ignore-value: Likewise.
6583         * modules/inet_ntop: Likewise.
6584         * modules/inet_pton: Likewise.
6585         * modules/inttypes: Likewise.
6586         * modules/isnand-nolibm: Likewise.
6587         * modules/isnanf-nolibm: Likewise.
6588         * modules/mbchar: Likewise.
6589         * modules/mbfile: Likewise.
6590         * modules/mbiter: Likewise.
6591         * modules/mbuiter: Likewise.
6592         * modules/netdb: Likewise.
6593         * modules/netinet_in: Likewise.
6594         * modules/nproc: Likewise.
6595         * modules/pagealign_alloc: Likewise.
6596         * modules/poll: Likewise.
6597         * modules/printf-frexp: Likewise.
6598         * modules/pthread: Likewise.
6599         * modules/putenv: Likewise.
6600         * modules/random_r: Likewise.
6601         * modules/relocatable-prog: Likewise.
6602         * modules/search: Likewise.
6603         * modules/select: Likewise.
6604         * modules/selinux-h: Likewise.
6605         * modules/settime: Likewise.
6606         * modules/signal: Likewise.
6607         * modules/size_max: Likewise.
6608         * modules/socklen: Likewise.
6609         * modules/ssize_t: Likewise.
6610         * modules/stdarg: Likewise.
6611         * modules/stdbool: Likewise.
6612         * modules/stddef: Likewise.
6613         * modules/stdint: Likewise.
6614         * modules/stdio: Likewise.
6615         * modules/stdlib: Likewise.
6616         * modules/string: Likewise.
6617         * modules/strings: Likewise.
6618         * modules/sys_file: Likewise.
6619         * modules/sys_ioctl: Likewise.
6620         * modules/sys_select: Likewise.
6621         * modules/sys_socket: Likewise.
6622         * modules/sys_stat: Likewise.
6623         * modules/sys_time: Likewise.
6624         * modules/sys_times: Likewise.
6625         * modules/sys_utsname: Likewise.
6626         * modules/sys_wait: Likewise.
6627         * modules/sysexits: Likewise.
6628         * modules/time: Likewise.
6629         * modules/times: Likewise.
6630         * modules/tmpfile: Likewise.
6631         * modules/trim: Likewise.
6632         * modules/unistd: Likewise.
6633         * modules/wchar: Likewise.
6634         * modules/wctype: Likewise.
6635
6636 2009-09-17  Bruno Haible  <bruno@clisp.org>
6637
6638         Make getdate.y compile on QNX and NetBSD 5 / i386.
6639         * m4/getdate.m4 (gl_GETDATE): Conditionally define
6640         TIME_T_FITS_IN_LONG_INT.
6641         * lib/getdate.y (long_time_t): New type.
6642         (relative_time): Change type of 'seconds' field to long_time_t.
6643         (get_date): Update types of local variables. Check against overflow
6644         during conversion from long_time_t to time_t.
6645         Reported by Matt Kraai <kraai@ftbfs.org>
6646         and Hasso Tepper <hasso@netbsd.org>.
6647
6648 2009-09-17  Bruno Haible  <bruno@clisp.org>
6649
6650         * modules/COPYING: Update copyright years.
6651         * modules/README: Likeiwse.
6652         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6653         Reported by Ian Beckwith <ianb@erislabs.net>.
6654
6655 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6656
6657         * users.txt: Update references for gnuit package.
6658
6659 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6660
6661         * m4/getdelim.m4: Fix typo in copyright line.
6662
6663 2009-09-17  Bruno Haible  <bruno@clisp.org>
6664
6665         * lib/atoll.c: Use the standard header with GPL copyright.
6666         * lib/argz.in.h: Likewise.
6667         * lib/glob.c: Likewise.
6668         * lib/glob-libc.h: Likewise.
6669         * lib/random_r.c: Likewise.
6670         * lib/siglist.h: Likewise.
6671         * lib/strsignal.c: Likewise.
6672         Reported by Ian Beckwith <ianb@erislabs.net>.
6673
6674 2009-09-17  Eric Blake  <ebb9@byu.net>
6675
6676         rmdir: ensure correct dependency order
6677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6678
6679 2009-09-17  Bruno Haible  <bruno@clisp.org>
6680
6681         Disable assertion that fails on NetBSD 5 / i386.
6682         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6683         Reported by Sam Steingold <sds@gnu.org>
6684         and Hasso Tepper <hasso@netbsd.org>.
6685
6686 2009-09-16  Eric Blake  <ebb9@byu.net>
6687
6688         unlinkdir: port to mingw
6689         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6690         on which no one can unlink a directory.
6691
6692         stdlib: sort witness names
6693         * modules/stdlib (Makefile.am): Sort replacements.
6694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6695         * lib/stdlib.in.h: Likewise.
6696
6697         parse-duration-tests: avoid link failure
6698         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6699         LIBINTL.
6700         Reported by Tom G. Christensen.
6701
6702         openat-tests: ensure unlinkat behaves like rmdir
6703         * tests/test-rmdir.c (main): Factor guts...
6704         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6705         * modules/rmdir-tests (Files): Ship new file.
6706         * modules/openat-tests: New test.
6707         * tests/test-unlinkat.c: Likewise.
6708
6709         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6710         * modules/rmdir-errno (Status, Notice): Now obsolete.
6711
6712         rmdir: work around cygwin 1.5.x and mingw bugs
6713         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6714         * lib/rmdir.c (rmdir): Work around it.
6715         * modules/rmdir (Status, Notice): No longer obsolete.
6716         (Files): Add dos.m4.
6717         (Depends-on): Add unistd.
6718         (configure.ac): Set witnesses.
6719         (License): Relax to LGPLv2+.
6720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
6721         * modules/unistd (Makefile.am): Substitute witnesses.
6722         * lib/unistd.in.h (rmdir): Declare replacement.
6723         * doc/posix-functions/rmdir.texi (rmdir): Document this.
6724         * modules/rmdir-tests: New tests.
6725         * tests/test-rmdir.c: Likewise.
6726
6727 2009-09-15  Eric Blake  <ebb9@byu.net>
6728
6729         fchdir: improve use of replacement functions
6730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
6731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
6732         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
6733         REPLACE_CLOSEDIR.
6734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
6735         * modules/sys_stat (Makefile.am): Substitute correct witness.
6736         * modules/dirent (Makefile.am): Likewise.
6737         * modules/unistd (Makefile.am): Likewise.
6738         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
6739         * lib/unistd.in.h (dup): Likewise.
6740         * lib/sys_stat.in.h (fstat): Likewise.
6741
6742         maint: ignore gnulib-tool temp files
6743         * .gitignore: Ignore files created during gnulib-tool --test.
6744
6745 2009-09-13  Jim Meyering  <meyering@redhat.com>
6746
6747         posixtm: don't reject a time that specify "60" as the number of seconds
6748         * lib/posixtm.c (posixtime): The code to reject invalid dates
6749         would also reject a time specified with the .60 suffix.
6750         But POSIX allows that, in order to accommodate leap seconds.
6751         So don't reject it.
6752         (main): Adjust tests accordingly.
6753         * modules/posixtm (Depends-on): Add stpcpy.
6754
6755 2009-09-11  Jim Meyering  <meyering@redhat.com>
6756
6757         announce-gen: include [$release_type] in emitted Subject:
6758         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
6759         e.g., [stable] in the emitted Subject: line.
6760
6761 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6762
6763         Remove obsolete macros from several modules.
6764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
6765         obsolete Autoconf macros with their modern counterparts.
6766         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
6767         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
6768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6769         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6770         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
6771         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6774         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6775         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
6776         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6777         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6778         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
6779         * m4/sockets.m4 (gl_SOCKETS): Likewise.
6780         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
6781         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
6782         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6783         * m4/time_r.m4 (gl_TIME_R): Likewise.
6784         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6785         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
6786         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6787
6788         Fix copyright header in build-aux scripts.
6789         * build-aux/git-version-gen: Fix copyright header to match GPLv3
6790         recommendation.
6791         * build-aux/ncftpput-ftp: Likewise.
6792         * build-aux/update-copyright: Likewise.
6793
6794 2009-09-09  Eric Blake  <ebb9@byu.net>
6795
6796         test-link: allow Linux choice of errno
6797         * tests/test-link.c (main): Relax test for alternate error.
6798
6799         strndup: fix improper m4 caching
6800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
6801         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
6802         (gl_PREREQ_STRNDUP): Delete.
6803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
6804         * modules/string (Makefile.am): Substitute it.
6805         * lib/string.in.h (strndup): Modernize prototype.
6806
6807         getcwd: port to mingw
6808         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
6809         different from the POSIX assumptions made throughout the getcwd
6810         module; fortunately, the mingw getcwd does not need replacement.
6811         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
6812         * modules/getcwd-tests: New test.
6813         * tests/test-getcwd.c: Likewise.
6814
6815         link: fix platform bugs
6816         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
6817         * lib/link.c (link): Work around them.  Fix related mingw bug.
6818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
6819         * modules/unistd (Makefile.am): Substitute it.
6820         * lib/unistd.in.h (link): Declare replacement.
6821         * doc/posix-functions/link.texi (link): Document this.
6822         * modules/link (Depends-on): Add strdup-posix, sys_stat.
6823
6824         test-link: consolidate into single C program, test more cases
6825         * tests/test-link.sh: Delete.
6826         * tests/test-link.c: Test more error conditions.  Exposes bugs on
6827         at least Cygwin and Solaris.
6828         * modules/link-tests (Files): Remove unused file.
6829         (Depends-on): Add errno, sys_stat.
6830         (Makefile.am): Simplify.
6831
6832 2009-09-08  Bruno Haible  <bruno@clisp.org>
6833
6834         Work around towlower, towupper bug on mingw.
6835         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
6836         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
6837         * doc/posix-functions/towlower.texi: Mention the mingw bug.
6838         * doc/posix-functions/towupper.texi: Likewise.
6839         Reported by Eric Blake.
6840
6841 2009-09-08  Jim Meyering  <meyering@redhat.com>
6842
6843         build: don't try to run autoheader if we don't use it
6844         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
6845         is not used in configure.ac.
6846
6847 2009-09-08  Eric Blake  <ebb9@byu.net>
6848
6849         euidaccess: fix compilation error
6850         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
6851
6852         rawmemchr: relax license
6853         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
6854         okay.
6855         Reported by Jim Meyering.
6856
6857         mkfifoat: new module
6858         * modules/mkfifoat: New file.
6859         * lib/mkfifoat.c: Likewise.
6860         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
6861         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6862         * modules/sys_stat (Makefile.am): Use them.
6863         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
6864         * MODULES.html.sh (File system functions): Mention module.
6865         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6866         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6867         * modules/mkfifoat-tests: New test.
6868         * tests/test-mkfifoat.c: Likewise.
6869
6870         strchrnul: relax license
6871         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
6872         okay.
6873         Reported by Jim Meyering.
6874
6875 2009-09-08  Eric Blake  <ebb9@byu.net>
6876
6877         fstatat: fix compilation on Solaris
6878         * lib/fstatat.c (includes): Add fcntl.h.
6879         Reported by Pádraig Brady.
6880
6881 2009-09-07  Eric Blake  <ebb9@byu.net>
6882
6883         rename: modernize replacement
6884         * modules/rename (Depends-on): Add stdio.
6885         (configure.ac): Declare witness.
6886         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
6887         stdio take care of replacement.
6888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6889         * modules/stdio (Makefile.am): Substitute them.
6890         * lib/stdio.in.h (rename): Declare replacement.
6891         * lib/rename.c (includes): Allow cross-compilation to non-windows
6892         machines.
6893         * doc/posix-functions/rename.texi (rename): Improve
6894         documentation.
6895
6896         stdio: sort witness names
6897         * modules/stdio (Makefile.am): Sort replacements.
6898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6899         * lib/stdio.in.h: Likewise.
6900
6901         getcwd: minor cleanups
6902         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
6903         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
6904
6905         openat: provide more convenience names
6906         * modules/faccessat (configure.ac): Add C witness.
6907         * lib/unistd.in.h (readlinkat): Fix typo.
6908         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
6909         convenience wrappers.
6910         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
6911         wrappers in syntax checks.
6912
6913 2009-09-06  Eric Blake  <ebb9@byu.net>
6914
6915         doc: fix comments in recent patches
6916         * lib/faccessat.c: Mention correct function.
6917         * lib/fchmodat.c: Likewise.
6918         * lib/fchownat.c: Likewise.
6919         * lib/symlinkat.c: Likewise.
6920         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
6921         constants.
6922
6923         faccessat, symlinkat: continue cleanup of previous patch
6924         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
6925         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
6926         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
6927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
6928         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
6929         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
6930         set.
6931
6932 2009-09-06  Bruno Haible  <bruno@clisp.org>
6933
6934         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
6935         (fstatat): Declare if GNULIB_FSTATAT is set.
6936         (mkdirat): Declare if GNULIB_MKDIRAT is set.
6937         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
6938         (unlinkat): Declare if GNULIB_UNLINKAT is set.
6939         * modules/fcntl-h (Files): Remove m4/openat.m4.
6940         * modules/sys_stat (Files): Remove m4/openat.m4.
6941         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
6942         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
6943         * modules/unistd (Files): Remove m4/openat.m4.
6944         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
6945         GNULIB_OPENAT.
6946         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
6947         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
6948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
6949         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
6950         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
6951         gl_OPENAT_DEFAULTS.
6952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
6953         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
6954         Don't require gl_OPENAT_DEFAULTS.
6955         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
6956         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
6957         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
6958         (gl_OPENAT_DEFAULTS): Remove macro.
6959
6960 2009-09-06  Bruno Haible  <bruno@clisp.org>
6961
6962         * modules/openat (configure.ac): Remove unneeded witness.
6963
6964 2009-09-06  Bruno Haible  <bruno@clisp.org>
6965
6966         Set errno to ENOSYS when a function is entirely unsupported.
6967         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
6968         EOPNOTSUPP.
6969         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
6970         * modules/chown (Depends-on): Remove errno.
6971
6972 2009-09-06  Bruno Haible  <bruno@clisp.org>
6973
6974         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
6975
6976 2009-09-06  Bruno Haible  <bruno@clisp.org>
6977
6978         * lib/sys_stat.in.h: Fix preprocessor command indentation.
6979
6980 2009-09-06  Ben Pfaff  <blp@gnu.org>
6981             Bruno Haible  <bruno@clisp.org>
6982
6983         Work around a glibc bug in strtok_r.
6984         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
6985         Undefine if UNDEFINE_STRTOK_R is set.
6986         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
6987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6988         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
6989         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
6990         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
6991         UNDEFINE_STRTOK_R.
6992         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
6993
6994 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6995
6996         exclude: minor fix
6997         * lib/exclude.c: Include wctype.h
6998
6999 2009-09-06  Akim Demaille  <demaille@gostai.com>
7000
7001         bootstrap: improve error message
7002         * build-aux/bootstrap (find_tool): Upon failure, report the list
7003         of candidates.
7004         Honor the initial value of the envvar.
7005
7006 2009-09-05  Eric Blake  <ebb9@byu.net>
7007
7008         symlinkat: new module
7009         * modules/symlinkat: New file.
7010         * lib/symlinkat.c: Likewise.
7011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7013         * modules/unistd (Makefile.am): Use them.
7014         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7015         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7016         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7017         * MODULES.html.sh (File system functions): Mention module.
7018         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7019         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7020         * modules/symlinkat-tests: New test.
7021         * tests/test-symlinkat.c: Likewise.
7022
7023         test-openat-safer: add more checks
7024         * tests/test-openat-safer.c (main): Check more code paths.
7025
7026 2009-09-05  Jim Meyering  <meyering@redhat.com>
7027
7028         syntax-check: detect unnecessary inclusion of openat.h
7029         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7030
7031 2009-09-05  Bruno Haible  <bruno@clisp.org>
7032
7033         Support towlower, towupper.
7034         * doc/posix-functions/towlower.texi: Mention module wctype.
7035         * doc/posix-functions/towupper.texi: Likewise.
7036         * lib/wctype.in.h (towlower, towupper): New functions.
7037         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7038         (ASSERT): New macro.
7039         (e): New variable.
7040         (main): Test also towlower, towupper. Test WEOF argument.
7041         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7042
7043 2009-09-05  Bruno Haible  <bruno@clisp.org>
7044
7045         Fix conversion behaviour when the input is invalid.
7046         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7047         mark occurring in first pass of indirect conversion.
7048         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7049         input.
7050         Found by clang's static analyzer.
7051
7052 2009-09-05  Bruno Haible  <bruno@clisp.org>
7053
7054         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7055         where direct conversion is possible.
7056
7057 2009-09-04  Eric Blake  <ebb9@byu.net>
7058
7059         openat: fail with ENOENT on empty name
7060         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7061         buffer.
7062
7063         link-follow: fix logic bug in prior patch
7064         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7065         reversed sense of yes and no in prior patch.  Avoid confusing
7066         compilation failure with desired semantics.
7067
7068         link-follow: accomodate mingw and cross-compilation
7069         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7070         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7071         cross-compilation results to -1, to make linkat easier to
7072         implement when cross-compiling.  Trivially support mingw.
7073         * modules/link-follow (configure.ac): Call new name.
7074         * NEWS: Mention this.
7075
7076 2009-09-03  Eric Blake  <ebb9@byu.net>
7077
7078         faccessat: compile replacement
7079         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7080         needed.
7081
7082         fts: fix compilation error
7083         * lib/fts.c (includes): Re-add "openat.h", for
7084         openat_needs_fchdir.
7085
7086         faccessat: new module
7087         * modules/faccessat: New file.
7088         * lib/faccessat.c: Likewise.
7089         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7091         * modules/unistd (Makefile.am): Use it.
7092         * lib/unistd.in.h (faccessat): Declare it.
7093         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7094         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7095         * MODULES.html.sh (File system functions): Mention it.
7096         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7097         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7098
7099         euidaccess: prefer POSIX over non-standard implementation
7100         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7101         * lib/euidaccess.c (euidaccess): Use it if available.
7102
7103         openat: make template easier to use
7104         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7105         AT_FUNC_F2 to be undefined.
7106         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7107         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7108         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7109         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7110         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7111         Likewise.
7112         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7113         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7114         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7115         Likewise.
7116
7117         openat: declare in POSIX headers
7118         * NEWS: Mention this.
7119         * modules/openat (configure.ac): Declare witnesses.
7120         (Depends-on): Add fcntl-h, sys_stat, unistd.
7121         (Include): Mention correct headers.
7122         * modules/fcntl-h (Depends-on): Add link-warning.
7123         (Files): Add openat.m4.
7124         (Makefile.am): Substitute witnesses.
7125         * modules/sys_stat (Files, Makefile.am): Likewise.
7126         * modules/unistd (Files, Makefile.am): Likewise.
7127         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7128         (gl_OPENAT_DEFAULTS): New macro.
7129         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7132         (SYS_STAT_H): Remove unused variable.
7133         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7134         * lib/fcntl--.h (includes): Remove unneeded header.
7135         * lib/openat-safer.c (includes): Likewise.
7136         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7137         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7138         appropriate headers.
7139         (__OPENAT_PREFIX): Delete.
7140         * lib/fcntl.in.h (openat): Provide declaration.
7141         (AT_FDCWD): Fix Solaris bug.
7142         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7143         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7144         * lib/fchmodat.c (includes):  Adjust to find declaration.
7145         * lib/fchownat.c (includes): Likewise.
7146         * lib/mkdirat.c (includes): Likewise.
7147         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7148         still visible.
7149
7150 2009-09-02  Eric Blake  <ebb9@byu.net>
7151
7152         errno: use consistently
7153         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7154         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7155         * lib/canonicalize.c (ELOOP): Likewise.
7156         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7157         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7158         * lib/lchown.c (EOPNOTSUPP): Likewise.
7159         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7160         * lib/savewd.c (ESTALE): Likewise.
7161         * lib/settime.c (ENOSYS): Likewise.
7162         * lib/utimens.c (ENOSYS): Likewise.
7163         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7164         * lib/chdir-safer.c (ELOOP): Likewise.
7165         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7166         * modules/c-stack (Depends-on): Add errno.
7167         * modules/canonicalize (Depends-on): Likewise.
7168         * modules/chdir-safer (Depends-on): Likewise.
7169         * modules/fdopendir (Depends-on): Likewise.
7170         * modules/inet_ntop (Depends-on): Likewise.
7171         * modules/inet_pton (Depends-on): Likewise.
7172         * modules/lchown (Depends-on): Likewise.
7173         * modules/openat (Depends-on): Likewise.
7174         * modules/savewd (Depends-on): Likewise.
7175         * modules/settime (Depends-on): Likewise.
7176         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7177
7178         fts: avoid leaking fds
7179         * modules/fts (Depends-on): Add cloexec.
7180         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7181         flag.
7182
7183         fts: make directory fds more robust
7184         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7185         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7186
7187         backupfile, chdir-long, fts, savedir: make safer
7188         * lib/backupfile.c (includes): Use "dirent--.h", since
7189         numbered_backup can write to stderr during readdir.
7190         * lib/savedir.c (includes): Likewise.
7191         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7192         emulation can write to stderr on failure.
7193         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7194         * lib/getcwd.c: Document why opendir_safer is unused.
7195         * lib/glob.c: Likewise.
7196         * lib/scandir.c: Likewise.
7197         * lib/openat-proc.c: Likewise, for open_safer.
7198         * modules/backupfile (Depends-on): Add dirent-safer.
7199         * modules/savedir (Depends-on): Likewise.
7200         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7201         * modules/chdir-long (Depends-on): Add openat-safer.
7202
7203         openat-safer: new module
7204         * modules/openat-safer: New file.
7205         * lib/openat-safer.c: Likewise.
7206         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7207         * lib/fcntl-safer.h (openat_safer): Declare.
7208         * lib/fcntl--.h (openat): Override.
7209         * MODULES.html.sh (File descriptor based I/O): Mention it.
7210         * lib/openat.h: Add double-inclusion guards.
7211         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7212         "fcntl--.h", so we can implement openat.
7213         * modules/openat-safer-tests: New test.
7214         * tests/test-openat-safer.c: New file.
7215
7216         dirent-safer: new module
7217         * modules/dirent-safer: New file.
7218         * lib/dirent--.h: Likewise.
7219         * lib/dirent-safer.h: Likewise.
7220         * lib/opendir-safer.c: Likewise.
7221         * m4/dirent-safer.m4: Likewise.
7222         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7223         * modules/dirent-safer-tests: New test.
7224         * tests/test-dirent-safer.c: New file.
7225         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7226
7227         fdopendir: optimize on mingw
7228         * lib/unistd.in.h (_gl_directory_name): New prototype.
7229         * lib/fchdir.c (_gl_directory_name): Implement it.
7230         (fchdir): Use it to simplify implementation.
7231         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7232         fchdir, when available, to avoid calling [f]chdir().
7233
7234         fdopendir: split into its own module
7235         * lib/openat.c (fdopendir): Move...
7236         * lib/fdopendir.c: ...into new file.
7237         * modules/fdopendir: New module.
7238         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7239         * modules/openat (Depends-on): Add fdopendir.
7240         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7241         fdopendir here.
7242         * modules/savedir (Depends-on): Only need fdopendir, not full
7243         openat.
7244         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7245         * lib/openat.h (fdopendir): Drop prototype.
7246         * lib/dirent.in.h (fdopendir): Provide prototype.
7247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7248         * modules/dirent (Makefile.am): Substitute them.
7249         * MODULES.html.sh (File system functions): Mention it.
7250         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7251         * modules/fdopendir-tests: New file.
7252         * tests/test-fdopendir.c: Likewise.
7253
7254         fchdir: use more consistent macro convention
7255         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7256         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7257         REPLACE_FCHDIR, rather than relying on config.h macros.
7258         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7259         inside a single make-time REPLACE_FCHDIR block, rather than using
7260         the config.h FCHDIR_REPLACEMENT.
7261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7262         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7263         Manage fstat replacement.
7264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7265         REPLACE_FCHDIR.
7266         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7267         (Makefile.am): Substitute REPLACE_FCHDIR.
7268         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7269         FCHDIR_REPLACEMENT.
7270         * lib/dup-safer.c (dup_safer): Likewise.
7271         * lib/dup2.c (rpl_dup2): Likewise.
7272         * lib/dup3.c (rpl_dup3): Likewise.
7273         * lib/open.c (rpl_open): Likewise.
7274
7275         fchdir: simplify error handling, and support dup3
7276         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7277         stdbool, malloc-posix, realloc-posix.
7278         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7279         (ensure_dirs_slot): Return false on allocation failure.
7280         (rpl_dup2): Delete.
7281         (_gl_register_dup): New function.
7282         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7283         (_gl_register_fd): Close fd on allocation failure.
7284         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7285         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7286         prototype.
7287         (rpl_dup2_fchdir): Delete prototype.
7288         * lib/open.c (open): Update caller.
7289         * lib/dup2.c (dup2): Track fchdir metadata.
7290         * lib/dup3.c (dup3): Likewise.
7291         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7293
7294 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7295
7296         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7297         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7298         don't pass arguments to AC_OUTPUT.
7299
7300 2009-09-02  Bruno Haible  <bruno@clisp.org>
7301
7302         * modules/mkdtemp (License): Relicense under LGPLv2+.
7303         Reported by Paolo Bonzini.
7304
7305 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7306
7307         Replace uses of obsolete autoconf macros in Jim's modules.
7308         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7309         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7310         can evoke a warning from autoconf when run with -Wobsolete
7311         enabled.  They were declared obsolete for good reasons (see
7312         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7313         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7314         should not continue using the deprecated macros.
7315         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7316         obsolete Autoconf macros with modern counterparts.
7317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7318         * m4/dos.m4 (gl_AC_DOS): Likewise.
7319         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7320         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7321         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7322         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7323         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7325         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7326         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7327         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7328         Likewise.
7329         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7330         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7331         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7332         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7333         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7334         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7335
7336 2009-09-01  Eric Blake  <ebb9@byu.net>
7337
7338         fchdir: fix off-by-one bug in previous patch
7339         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7340         (_gl_unregister_fd): Delete useless if.
7341
7342 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7343
7344         maint.mk: sort the list of syntax-check rules
7345         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7346         easier to get a sense of progress when the rules are run sequentially
7347         and take a long time.
7348
7349 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7350
7351         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7352         * modules/netinet_in: Likewise.
7353         * modules/sys_file: Likewise.
7354         * modules/sys_ioctl: Likewise.
7355         * modules/sys_select: Likewise.
7356         * modules/sys_socket: Likewise.
7357         * modules/sys_stat: Likewise.
7358         * modules/sys_time: Likewise.
7359         * modules/sys_times: Likewise.
7360         * modules/sys_utsname: Likewise.
7361         * modules/sys_wait: Likewise.
7362
7363 2009-09-01  Jim Meyering  <meyering@redhat.com>
7364
7365         fts: help ensure that return values are not ignored
7366         * lib/fts_.h (__GNUC_PREREQ): Define.
7367         (__attribute_warn_unused_result__): Define.
7368         (fts_children, fts_close, fts_open, fts_read): Declare with
7369         __attribute_warn_unused_result__.
7370
7371         fts: fts_close now fails also when closing a dir file descriptor fails
7372         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7373         and propagate to caller, along with errno.
7374
7375         announce-gen: correct formatting in --help output
7376         * build-aux/announce-gen (usage): Move the one-line description in
7377         --help output "up", to where it belongs, just after Usage:.
7378
7379 2009-08-31  Eric Blake  <ebb9@byu.net>
7380
7381         fchdir: port to mingw
7382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7383         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7384         opened, then use a substitute.
7385         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7386         replacement.
7387         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7388         (_gl_register_fd): No need to check stat if open already filters
7389         all directories.
7390         (fchdir): Fix error condition to match POSIX.
7391         * modules/fchdir (Depends-on): Add sys_stat.
7392         * doc/posix-functions/open.texi (open): Document the limitation.
7393         * modules/fchdir-tests: New file.
7394         * tests/test-fchdir.c: Likewise.
7395
7396         canonicalize: allow cross-testing from cygwin to mingw
7397         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7398         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7399         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7400         Likewise.
7401         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7402         target does not support symlinks.
7403         * tests/test-canonicalize-lgpl.sh: Likewise.
7404
7405         chown: avoid compilation warning on mingw
7406         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7407         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7408         mingw.
7409         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7410         * modules/chown (Depends-on): Add errno.
7411
7412 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7413
7414         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7415         command.
7416
7417 2009-08-31  Jim Meyering  <meyering@redhat.com>
7418
7419         canonicalize: remove useless initialization
7420         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7421         initialization of local, "end".
7422
7423 2009-08-30  Bruno Haible  <bruno@clisp.org>
7424
7425         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7426         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7427         ENOSYS.
7428
7429 2009-08-30  Bruno Haible  <bruno@clisp.org>
7430
7431         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7432         /usr/xpg4/bin/tr when it exists.
7433         * tests/test-pipe-filter-gi1.sh: Likewise.
7434
7435 2009-08-30  Bruno Haible  <bruno@clisp.org>
7436
7437         Work around deficient /usr/bin/id program on Solaris.
7438         * tests/test-file-has-acl.sh (ID): New variable.
7439         * tests/test-set-mode-acl.sh (ID): Likewise.
7440         * tests/test-copy-acl.sh (ID): Likewise.
7441         * tests/test-copy-file.sh (ID): Likewise.
7442
7443 2009-08-30  Bruno Haible  <bruno@clisp.org>
7444
7445         New module 'xstriconveh'.
7446         * lib/xstriconveh.h: New file.
7447         * lib/xstriconveh.c: New file.
7448         * modules/xstriconveh: New file.
7449
7450 2009-08-30  Bruno Haible  <bruno@clisp.org>
7451
7452         Make it easier to use mem_cd_iconveh.
7453         * lib/striconveh.h (iconveh_t): New type.
7454         (iconveh_open, iconveh_close): New declarations.
7455         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7456         with a single 'const iconveh_t *' argument.
7457         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7458         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7459         with a single 'const iconveh_t *' argument.
7460         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7461         * tests/test-striconveh.c (main): Update.
7462         * NEWS: Mention the change.
7463
7464 2009-08-30  Bruno Haible  <bruno@clisp.org>
7465
7466         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7467         problem.
7468
7469 2009-08-30  Bruno Haible  <bruno@clisp.org>
7470
7471         Work around iconv_open problem on Solaris.
7472         * lib/iconv_open-solaris.gperf: New file.
7473         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7474         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7475         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7476         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7477         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7478         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7479
7480 2009-08-29  Jim Meyering  <meyering@redhat.com>
7481
7482         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7483         * top/maint.mk (cvs-check): Remove target; it was just an alias
7484         to the better-named vc-diff-check.
7485         (maintainer-distcheck): Remove rule.  It was used only from
7486         the (alpha/beta/major) target, and all of its commands but one
7487         were coreutils-specific.
7488         (vc-dist): Remove rule.
7489         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7490         Run vc-diff-check, not vc-dist.
7491         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
7492
7493 2009-08-27  Bruno Haible  <bruno@clisp.org>
7494
7495         * tests/test-bitrotate.c (main): Remove test that uses a shift count
7496         of 0.
7497
7498 2009-08-27  Bruno Haible  <bruno@clisp.org>
7499
7500         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7501         compilers.
7502         * doc/func.texi: Document the SunPRO C bug.
7503
7504 2009-08-27  Bruno Haible  <bruno@clisp.org>
7505
7506         Fix link error on Solaris.
7507         * tests/test-parse-duration.c (xstrdup): Remove function.
7508
7509 2009-08-26  Pádraig Brady  <P@draigbrady.com>
7510
7511         ignore-value: handle pointer types, too
7512         * lib/ignore-value.h (__attribute__): Remove definition.
7513         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7514         of a more concise and more-often effective "(void) i" statement.
7515         (ignore_ptr): New function to suppress warnings from functions that
7516         return pointers, and to make it explicit that one function doesn't
7517         handle all cases.
7518
7519 2009-08-25  Bruno Haible  <bruno@clisp.org>
7520
7521         dup2: work around a Linux bug.
7522         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7523         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7524         * doc/posix-functions/dup2.texi: Mention the Linux bug.
7525         Reported by Simon Josefsson.
7526
7527 2009-08-25  Jim Meyering  <meyering@redhat.com>
7528
7529         libguestfs uses gnulib
7530         * users.txt: Add libguestfs.
7531
7532 2009-08-24  Eric Blake  <ebb9@byu.net>
7533
7534         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7535         * lib/pipe2.c (includes): Add binary-io.h.
7536         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7537
7538 2009-08-24  Bruno Haible  <bruno@clisp.org>
7539
7540         Tolerate declared but missing accept4 syscall.
7541         * lib/accept4.c (accept4): Invoke original accept4 function first, if
7542         available.
7543         * lib/sys_socket.in.h (accept4): If the function is already present,
7544         override it.
7545         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7546         * modules/accept4 (Makefile.am): Compile accept4.c always.
7547         Reported by Paolo Bonzini and Eric Blake.
7548
7549 2009-08-23  Bruno Haible  <bruno@clisp.org>
7550
7551         New module 'accept4'.
7552         * lib/sys_socket.in.h (accept4): New declaration.
7553         * lib/accept4.c: New file.
7554         * m4/accept4.m4: New file.
7555         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7556         GNULIB_ACCEPT4, HAVE_ACCEPT4.
7557         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7558         HAVE_ACCEPT4.
7559         * modules/accept4: New file.
7560         * doc/glibc-functions/accept4.texi: Mention the new module.
7561
7562 2009-08-24  Jim Meyering  <meyering@redhat.com>
7563
7564         progname: also set global program_invocation_name, when possible
7565         Before this change, a libtool-enabled program that calls glibc's
7566         error function would report the program name as
7567         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7568         * modules/progname (configure.ac): Check for a declaration of
7569         program_invocation_name.
7570         * lib/progname.c:  Include <errno.h>.
7571         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7572         Set program_invocation_name.
7573
7574 2009-08-23  Bruno Haible  <bruno@clisp.org>
7575
7576         * lib/dup3.c: Include <string.h>.
7577
7578 2009-08-23  Bruno Haible  <bruno@clisp.org>
7579
7580         * lib/dup3.c (dup3): Test only once whether the system actually exists.
7581         * lib/pipe2.c (pipe2): Likewise.
7582         Suggested by Eric Blake.
7583
7584 2009-08-23  Bruno Haible  <bruno@clisp.org>
7585
7586         Tolerate declared but missing dup3 syscall.
7587         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7588         * lib/unistd.in.h (dup3): If the function is already present,
7589         override it.
7590         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7591         * modules/dup3 (Makefile.am): Compile dup3.c always.
7592         Reported by Paolo Bonzini.
7593
7594 2009-08-23  Bruno Haible  <bruno@clisp.org>
7595
7596         Tolerate declared but missing pipe2 syscall.
7597         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7598         available.
7599         * lib/unistd.in.h (pipe2): If the function is already present,
7600         override it.
7601         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7602         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7603         Reported by Paolo Bonzini.
7604
7605 2009-08-23  Bruno Haible  <bruno@clisp.org>
7606
7607         * lib/pipe2.c (pipe2): Move #ifs inside function.
7608
7609 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7610
7611         quotearg: document limitations of quote_these_too
7612         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7613         those limitations are created.
7614         * lib/quotearg.h (set_char_quoting): Document that digits and
7615         letters that are special after backslash are not permitted.
7616         (quotearg_char): Cross-reference set_char_quoting documentation.
7617
7618 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
7619
7620         quotearg: implement custom_quoting_style
7621         * lib/quotearg.c: (struct quoting_options): Add left_quote and
7622         right_quote fields.
7623         (set_custom_quoting): New public function.
7624         (quotearg_buffer_restyled): Add left_quote and right_quote
7625         arguments, handle them very much like locale quoting, and update
7626         all uses.
7627         (quotearg_n_custom): New public function.
7628         (quotearg_n_custom_mem): New public function.
7629         (quotearg_custom): New public function.
7630         (quotearg_custom_mem): New public function.
7631         * lib/quotearg.h: Prototype and document new public functions.
7632         (enum quoting_style): For escape_quoting_style and
7633         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7634         ignored even though they're otherwise like c_quoting_style.
7635         Add custom_quoting_style member and document with comparison to
7636         clocale_quoting_style.
7637         * tests/test-quotearg.c (custom_quotes): New array.
7638         (custom_results): New array.
7639         (main): Extend to test custom quoting.
7640
7641 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7642
7643         quotearg: fix right quote escaping when it's in quote_these_too
7644         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7645         quote, be sure to prepend only one backslash.
7646         * tests/test-quotearg.c (use_quote_double_quotes): New function.
7647         (main): Test it.
7648
7649 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7650
7651         quotearg-tests: test escaping of embedded locale quotes
7652         * tests/test-quotearg.c (struct result_strings): Add member for
7653         new input.
7654         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7655         (inputs): Add new input.
7656         (results_g): Add expected results.
7657         (flag_results): Likewise.
7658         (locale_results): Likewise.
7659         (compare_strings): Check those.
7660
7661 2009-08-23  Bruno Haible  <bruno@clisp.org>
7662
7663         Tests for module 'dup3'.
7664         * modules/dup3-tests: New file.
7665         * tests/test-dup3.c: New file.
7666
7667         New module 'dup3'.
7668         * lib/unistd.in.h (dup3): New declaration.
7669         * lib/dup3.c: New file.
7670         * m4/dup3.m4: New file.
7671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7672         HAVE_DUP3.
7673         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7674         * modules/dup3: New file.
7675         * doc/glibc-functions/dup3.texi: Mention the new module.
7676
7677 2009-08-23  Bruno Haible  <bruno@clisp.org>
7678
7679         Tweak the dup2 test.
7680         * tests/test-dup2.c (main): Create the test file empty. Verify that an
7681         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7682         the test file is still empty. Fix argument order of lseek.
7683
7684 2009-08-23  Bruno Haible  <bruno@clisp.org>
7685
7686         Avoid test link errors when the modules getopt-gnu, gettext are used.
7687         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7689
7690 2009-08-23  Bruno Haible  <bruno@clisp.org>
7691
7692         Fix getdtablesize() on mingw.
7693         * lib/getdtablesize.c (getdtablesize): Implement differently.
7694         * lib/unistd.in.h (getdtablesize): Improve comment.
7695
7696 2009-08-23  Bruno Haible  <bruno@clisp.org>
7697
7698         New module 'mkostemp'.
7699         Based on Ulrich Drepper's 2007-08-10 change in glibc.
7700         * lib/stdlib.in.h (mksotemp): New declaration.
7701         * lib/mkostemp.c: New file, from glibc with modifications.
7702         * lib/tempname.h (GT_FILE): Remove outdated comment.
7703         (gen_tempname): Add flags argument.
7704         * lib/tempname.c (__GT_BIGFILE): Remove macro.
7705         (__GT_FILE): Map to 1.
7706         (small_open, large_open): Remove macros.
7707         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7708         * lib/mkstemp.c (mkstemp): Update.
7709         * lib/mkdtemp.c (mkdtemp): Likewise.
7710         * m4/mkostemp.m4: New file.
7711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7712         HAVE_MKOSTEMP.
7713         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7714         HAVE_MKOSTEMP.
7715         * modules/mkostemp: New file, based on modules/mkstemp.
7716         * doc/glibc-functions/mkostemp.texi: Mention the new module.
7717         * NEWS: Mention the change.
7718
7719 2009-08-23  Bruno Haible  <bruno@clisp.org>
7720
7721         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
7722         Reported by Eric Blake.
7723
7724 2009-08-23  Bruno Haible  <bruno@clisp.org>
7725
7726         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
7727         Reported by Eric Blake.
7728
7729 2009-08-23  Bruno Haible  <bruno@clisp.org>
7730
7731         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
7732         * modules/pipe2 (Depends-on): Likewise.
7733
7734 2009-08-23  Eric Blake  <ebb9@byu.net>
7735
7736         fcntl-h: add O_TTY_INIT support
7737         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
7738         * tests/test-fcntl-h.c (o): Test it.
7739         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7740
7741         fcntl-h: rename from fcntl, in preparation for fcntl(2)
7742         * modules/fcntl: Move <fcntl.h> header replacement...
7743         * modules/fcntl-h: ...to new name, so as not to collide with
7744         like-named function.
7745         * tests/test-fcntl.c: Rename...
7746         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
7747         * modules/fcntl-tests: Rename...
7748         * modules/fcntl-h-tests: ...to this.  Update test file name.
7749         * modules/chdir-long (Depends-on): Update clients.
7750         * modules/chdir-safer (Depends-on): Likewise.
7751         * modules/fcntl-safer (Depends-on): Likewise.
7752         * modules/fts (Depends-on): Likewise.
7753         * modules/mkancesdirs (Depends-on): Likewise.
7754         * modules/mkdir-p (Depends-on): Likewise.
7755         * modules/open (Depends-on): Likewise.
7756         * modules/savewd (Depends-on): Likewise.
7757         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
7758         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7759
7760 2009-08-22  Bruno Haible  <bruno@clisp.org>
7761
7762         * modules/binary-io (License): Relicense under LGPL.
7763         * modules/pipe2 (License): Likewise.
7764
7765 2009-08-22  Bruno Haible  <bruno@clisp.org>
7766
7767         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
7768         return value.
7769         * lib/pipe-filter-gi.c (filter_init): Likewise.
7770         Reported by Eric Blake.
7771
7772 2009-08-22  Bruno Haible  <bruno@clisp.org>
7773
7774         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
7775         * modules/pipe (Depends-on): Add pipe2.
7776
7777 2009-08-22  Bruno Haible  <bruno@clisp.org>
7778
7779         Tests for module 'pipe2'.
7780         * modules/pipe2-tests: New file.
7781         * tests/test-pipe2.c: New file.
7782
7783         New module 'pipe2'.
7784         * lib/unistd.in.h (pipe2): New declaration.
7785         * lib/pipe2.c: New file.
7786         * m4/pipe2.m4: New file.
7787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
7788         HAVE_PIPE2.
7789         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
7790         * modules/pipe2: New file.
7791         * doc/glibc-functions/pipe2.texi: Mention the new module.
7792
7793 2009-08-22  Bruno Haible  <bruno@clisp.org>
7794
7795         Reference some new glibc functions.
7796         * doc/glibc-functions/accept4.texi: New file.
7797         * doc/glibc-functions/dup3.texi: New file.
7798         * doc/glibc-functions/mkostemp.texi: New file.
7799         * doc/glibc-functions/pipe2.texi: New file.
7800         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
7801         (Glibc sys/socket.h): Refer to accept4.
7802         (Glibc unistd.h): Refer to dup3, pipe2.
7803         Reported by Eric Blake.
7804
7805 2009-08-22  Jim Meyering  <meyering@redhat.com>
7806             Bruno Haible  <bruno@clisp.org>
7807
7808         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
7809         This makes it so packages using automake-1.11's silent-rules option
7810         can print e.g., a single "GEN    configmake.h" line, rather than
7811         the 30+ statements that perform the job.  If you want to see the
7812         actual commands, you can still run "make V=1".
7813         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
7814         so that make output is abbreviated when those variables are defined
7815         appropriately.
7816         * modules/argz: Likewise.
7817         * modules/arpa_inet: Likewise.
7818         * modules/byteswap: Likewise.
7819         * modules/configmake: Likewise.
7820         * modules/dirent: Likewise.
7821         * modules/errno: Likewise.
7822         * modules/fcntl: Likewise.
7823         * modules/float: Likewise.
7824         * modules/fnmatch: Likewise.
7825         * modules/getopt-posix: Likewise.
7826         * modules/glob: Likewise.
7827         * modules/iconv_open: Likewise.
7828         * modules/inttypes: Likewise.
7829         * modules/localcharset: Likewise.
7830         * modules/locale: Likewise.
7831         * modules/math: Likewise.
7832         * modules/netdb: Likewise.
7833         * modules/netinet_in: Likewise.
7834         * modules/poll: Likewise.
7835         * modules/posix_spawnp-tests: Likewise.
7836         * modules/sched: Likewise.
7837         * modules/search: Likewise.
7838         * modules/selinux-h: Likewise.
7839         * modules/signal: Likewise.
7840         * modules/spawn: Likewise.
7841         * modules/stdarg: Likewise.
7842         * modules/stdbool: Likewise.
7843         * modules/stddef: Likewise.
7844         * modules/stdint: Likewise.
7845         * modules/stdio: Likewise.
7846         * modules/stdlib: Likewise.
7847         * modules/string: Likewise.
7848         * modules/strings: Likewise.
7849         * modules/sys_file: Likewise.
7850         * modules/sys_ioctl: Likewise.
7851         * modules/sys_select: Likewise.
7852         * modules/sys_socket: Likewise.
7853         * modules/sys_stat: Likewise.
7854         * modules/sys_time: Likewise.
7855         * modules/sys_times: Likewise.
7856         * modules/sys_utsname: Likewise.
7857         * modules/sys_wait: Likewise.
7858         * modules/sysexits: Likewise.
7859         * modules/time: Likewise.
7860         * modules/unistd: Likewise.
7861         * modules/wchar: Likewise.
7862         * modules/wctype: Likewise.
7863
7864 2009-08-22  Jim Meyering  <meyering@redhat.com>
7865
7866         announce-gen: detect write failure
7867         * build-aux/announce-gen: Add Coda at end.
7868         Remove equivalent-but-more-verbose block at top.
7869
7870 2009-08-19  Akim Demaille  <demaille@gostai.com>
7871
7872         bootstrap: --help to stdout.
7873         * bootstrap (usage): Don't send --help to stderr.
7874         Use a here doc instead of a long string.
7875
7876 2009-08-21  Eric Blake  <ebb9@byu.net>
7877
7878         test-popen-safer: split from test-popen
7879         * tests/test-popen.c (main): Move...
7880         * tests/test-popen.h: ...into new file.
7881         * tests/test-popen-safer2.c: New file.
7882         * modules/popen-tests (Files): Add test-popen.h.
7883         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
7884         Suggested by Bruno Haible.
7885
7886         test-fcntl-safer: split from test-open
7887         * tests/test-open.c (main): Move...
7888         * tests/test-open.h: ...into new file.
7889         * tests/test-fcntl-safer.c: New file.
7890         * modules/open-tests (Files): Add test-open.h.
7891         * modules/fcntl-safer-tests: New file.
7892         Suggested by Bruno Haible.
7893
7894         test-fopen-safer: split from test-fopen
7895         * tests/test-fopen.c (main): Move...
7896         * tests/test-fopen.h: ...into new file.
7897         * tests/test-fopen-safer.c: New file.
7898         * modules/fopen-tests (Files): Add test-fopen.h.
7899         * modules/fopen-safer-tests: New file.
7900         Suggested by Bruno Haible.
7901
7902 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
7903
7904         popen-safer: test O_CLOEXEC at run-time.
7905         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
7906
7907 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
7908
7909         fcntl: move more flags to the header
7910         * lib/cloexec.c: Do not define FD_CLOEXEC here.
7911         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
7912         * lib/fcntl.in.h: Do both things here.
7913
7914 2009-08-21  Jim Meyering  <meyering@redhat.com>
7915
7916         consistently remove $@-t before redirecting to it
7917         * modules/argz: Remove $@-t and $@ before redirecting to the former.
7918         * modules/alloca-opt: Likewise.
7919         * modules/byteswap: Likewise.
7920         * modules/fnmatch: Likewise.
7921         * modules/getopt-posix: Likewise.
7922         * modules/glob: Likewise.
7923         * modules/poll: Likewise.
7924         * modules/posix_spawnp-tests: Likewise.
7925         * modules/sys_socket: Likewise.
7926         * modules/sysexits: Likewise.
7927
7928 2009-08-21  Eric Blake  <ebb9@byu.net>
7929
7930         popen: simplify access to original popen
7931         * lib/popen.c (rpl_popen): No need to worry about popen being a
7932         macro.
7933         Reported by Bruno Haible.
7934
7935 2009-08-20  Eric Blake  <ebb9@byu.net>
7936
7937         build: avoid some compiler warnings
7938         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
7939         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
7940         type.
7941         (new_exclude_segment, excluded_file_pattern_p)
7942         (excluded_file_name_p): Reduce scope.
7943         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
7944         old-style declaration.
7945
7946 2009-08-20  Simon Josefsson  <simon@josefsson.org>
7947
7948         * tests/test-exclude1.sh: Handle Windows EOL.
7949         * tests/test-exclude2.sh: Likewise.
7950         * tests/test-exclude3.sh: Likewise.
7951         * tests/test-exclude4.sh: Likewise.
7952         * tests/test-exclude5.sh: Likewise.
7953         * tests/test-exclude6.sh: Likewise.
7954         * tests/test-exclude7.sh: Likewise.
7955
7956 2009-08-19  Akim Demaille  <demaille@gostai.com>
7957
7958         bootstrap: find sha1sum when named gsha1sum.
7959         * bootstrap (find_tool): New.
7960         ($SHA1SUM): New.
7961         Use it.
7962
7963 2009-08-20  Jim Meyering  <meyering@redhat.com>
7964
7965         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
7966         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
7967         expression that converts "." in a file name to "\." in the resulting
7968         regexp.  Start with a dummy statement, so that prior shell variable
7969         definitions are expanded portably.  Reported by Simon Josefsson.
7970
7971 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
7972
7973         Fix polling for writeability of a screen buffer.
7974         * lib/poll.c: Distinguish input and screen buffers for the
7975         Win32 implementation.
7976         * lib/select.c: Likewise.
7977
7978 2009-08-19  Eric Blake  <ebb9@byu.net>
7979
7980         popen-safer: prevent popen from clobbering std descriptors
7981         * modules/popen-safer: New file.
7982         * lib/popen-safer.c: Likewise.
7983         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
7984         * lib/stdio--.h (popen): Provide override.
7985         * lib/stdio-safer.h (popen_safer): Provide declaration.
7986         * tests/test-popen.c (includes): Partially test this.
7987         * modules/popen-safer-tests: New file, for more tests.
7988         * tests/test-popen-safer.c: Likewise.
7989         * MODULES.html.sh (file stream based Input/Output): Mention it.
7990
7991         tests: test some of the *-safer modules
7992         * modules/fopen-safer (Depends-on): Add fopen.
7993         * modules/fcntl-safer (Depends-on): Add fcntl.
7994         * modules/stdlib-safer (Depends-on): Add stdlib.
7995         (configure.ac): Set indicator.
7996         * modules/unistd-safer (configure.ac): Likewise.
7997         * modules/tmpfile-safer (configure.ac): Likewise.
7998         (Depends-on): Add tmpfile.
7999         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8000         active.
8001         * tests/test-fopen.c (includes): Test safer versions when they are
8002         in use.
8003         * tests/test-open.c (includes): Likewise.
8004
8005         popen: fix cygwin 1.5 bug when stdin closed
8006         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8007         * modules/popen: New file.
8008         * modules/popen-tests: Likewise.
8009         * tests/test-popen.c: Likewise.
8010         * m4/popen.m4: Likewise.
8011         * lib/popen.c: Likewise.
8012         * lib/stdio.in.h (popen): New declaration.
8013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8014         * modules/stdio (Makefile.am): Likewise.
8015         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8016
8017 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8018
8019         maint.mk: give full control over update-copyright exclusions
8020         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8021         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8022         (update-copyright): Don't force inclusion of top-level
8023         ChangeLog.  Don't force exclusion of all COPYING files, but make
8024         them the default exclusion instead.
8025
8026 2009-08-16  Bruno Haible  <bruno@clisp.org>
8027
8028         Fix test failures on Solaris 10.
8029         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8030         tests when Solaris iconv() is used.
8031         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8032         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8033         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8034         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8035         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8036
8037 2009-08-16  Bruno Haible  <bruno@clisp.org>
8038
8039         Fix test failures on Solaris 10.
8040         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8041         'tr' program and pass it as first argument.
8042         * tests/test-pipe-filter-gi1.sh: Likewise.
8043         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8044         program as first argument.
8045         * tests/test-pipe-filter-gi1.c (main): Likewise.
8046
8047 2009-08-16  Eric Blake  <ebb9@byu.net>
8048
8049         fpurge: fix previous commits
8050         * modules/fpurge (Makefile.am): Make replacement conditional,
8051         partially reverting 2007-04-29 change; missed in previous
8052         attempt.
8053         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8054         is missing.
8055
8056 2009-08-16  Bruno Haible  <bruno@clisp.org>
8057
8058         Clarify fpurge's effect on the file position.
8059         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8060         * tests/test-fpurge.c (main): Make a second pass for checking the file
8061         position.
8062
8063 2009-08-16  Bruno Haible  <bruno@clisp.org>
8064
8065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8066         declaration of fpurge is missing.
8067         * tests/test-fpurge.c (main): Check that the file has not more contents
8068         than expected. Close the file before removing it.
8069
8070 2009-08-15  Eric Blake  <ebb9@byu.net>
8071
8072         fpurge: don't wrap working cygwin implementation
8073         * lib/fpurge.c (fpurge): Fix comment typo.
8074         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8075         1.7 to avoid replacement.
8076         * tests/test-fpurge.c (main): Enhance test.
8077
8078 2009-08-15  Eric Blake  <ebb9@byu.net>
8079         and Jim Meyering  <meyering@redhat.com>
8080
8081         test-update-copyright: skip if perl is insufficient
8082         * tests/test-update-copyright.sh: Failure to run maintainer tool
8083         should not cause testsuite failure on cygwin 1.5.
8084
8085 2009-08-14  Eric Blake  <ebb9@byu.net>
8086
8087         doc: mention more functions added in cygwin 1.7.0
8088         * doc/posix-headers/limits.texi (limits.h): Update for recent
8089         cygwin additions.
8090         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8091         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8092         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8093         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8094         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8095
8096 2009-08-14  Eric Blake  <ebb9@byu.net>
8097
8098         maint.mk: simplify update-copyright rule
8099         * top/maint.mk (update-copyright-local): Delete, and document how
8100         to do it in cfg.mk instead.
8101         (update-copyright-exclude-regexp): Delete, and document how to do
8102         it in .x-update-copyright instead.
8103         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8104         exclude ChangeLog.
8105
8106 2009-08-14  Bruno Haible  <bruno@clisp.org>
8107
8108         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8109
8110 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8111
8112         maint.mk: support update-copyright-env
8113         * top/maint.mk (update-copyright-env): Define place-holder.
8114         (update-copyright): Expand $(update-copyright-env) before
8115         invoking update-copyright.
8116
8117 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8118
8119         update-copyright: implement forced reformatting
8120         * build-aux/update-copyright: Implement and document
8121         UPDATE_COPYRIGHT_FORCE.
8122         * tests/test-update-copyright.sh: Test it.
8123
8124 2009-08-14  Eric Blake  <ebb9@byu.net>
8125         and Bruno Haible  <bruno@clisp.org>
8126
8127         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8128         * tests/test-locale.c: Revert previous patch related to NULL.
8129         * tests/test-stdio.c: Likewise.
8130         * tests/test-stdlib.c: Likewise.
8131         * tests/test-string.c: Likewise.
8132         * tests/test-unistd.c: Likewise.
8133         * modules/time-tests (Depends-on): Add verify.
8134         * modules/wchar-tests (Depends-on): Likewise.
8135         * tests/test-time.c: Test for NULL compliance.
8136         * tests/test-wchar.c: Likewise.
8137         * modules/locale (Depends-on): Add stddef.
8138         * modules/stdio (Depends-on): Likewise.
8139         * modules/stdlib (Depends-on): Likewise.
8140         * modules/string (Depends-on): Likewise.
8141         * modules/time (Depends-on): Likewise.
8142         * modules/unistd (Depends-on): Likewise.
8143         * modules/wchar (Depends-on): Likewise.
8144         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8145         * lib/stdlib.in.h (includes): Likewise.
8146         * lib/string.in.h (includes): Likewise.
8147         * lib/time.in.h (includes): Likewise.
8148         * lib/unistd.in.h (includes): Likewise.
8149         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8150         replaced.
8151         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8152         * m4/stddef_h.m4: New file.
8153         * modules/stddef: Likewise.
8154         * lib/stddef.in.h: Likewise.
8155         * modules/stddef-tests: Likewise.
8156         * tests/test-stddef.c: Likewise.
8157         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8158         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8159         * doc/posix-headers/locale.texi (locale.h): Likewise.
8160         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8161         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8162         * doc/posix-headers/string.texi (string.h): Likewise.
8163         * doc/posix-headers/time.texi (time.h): Likewise.
8164         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8165         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8166
8167 2009-08-14  Eric Blake  <ebb9@byu.net>
8168
8169         doc: improve git diff of texinfo files
8170         * .gitattributes: Add rule for *.texi files, with hint on how to
8171         use it.
8172         Copied from m4, and based on a report by Bruno Haible.
8173
8174 2009-08-14  Bruno Haible  <bruno@clisp.org>
8175
8176         Disable multithread support by default on Cygwin 1.5.x for real.
8177         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8178
8179 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8180
8181         update-copyright: much ado about intervals
8182         * build-aux/update-copyright: Implement and document
8183         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8184         of copyright year intervals.
8185         Also, document UPDATE_COPYRIGHT_YEAR.
8186         * tests/test-update-copyright.sh: Test it.
8187
8188         update-copyright: convert 2-digit to 4-digit years
8189         * build-aux/update-copyright: Implement and document.
8190         * tests/test-update-copyright.sh: Update.
8191
8192 2009-08-14  Jim Meyering  <meyering@redhat.com>
8193
8194         test-exclude: avoid coreutils "make check" failure
8195         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8196         just as in test-argmatch.c.
8197
8198 2009-08-13  Eric Blake  <ebb9@byu.net>
8199
8200         test-dup2: fix bad assumption
8201         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8202         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8203
8204         test-version-etc: fix CRLF portability issue
8205         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8206         recognize \r.
8207         * tests/test-argp-version-etc-1.sh: Likewise.
8208
8209         getopt: update client modules
8210         * modules/argp (Depends-on): Use getopt-gnu.
8211         * modules/git-merge-changelog (Depends-on): Likewise.
8212         * modules/long-options (Depends-on): Likewise.
8213         * modules/xstrtol (Depends-on): Likewise.
8214
8215 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8216
8217         * tests/test-version-etc.sh: Don't fail on different
8218         project/version.  Don't fail on CRLF differences.  Rewrite to use
8219         multiple -e instead of multiple sed forks, suggested by Eric Blake
8220         <ebb9@byu.net>.
8221         * tests/test-argp-version-etc-1.sh: Likewise.
8222
8223 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8224
8225         * tests/test-version-etc.sh: Don't fail on different
8226         project/version.
8227
8228 2009-08-12  Bruno Haible  <bruno@clisp.org>
8229
8230         Tests for modules 'getopt-posix', 'getopt-gnu'.
8231         * modules/getopt-posix-tests: New file.
8232         * tests/test-getopt.c: New file.
8233         * tests/test-getopt.h: New file.
8234         * tests/test-getopt_long.h: New file.
8235
8236         New modules 'getopt-posix', 'getopt-gnu'.
8237         * modules/getopt-gnu: New file, renamed from modules/getopt.
8238         * modules/getopt-posix: New file.
8239         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8240         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8241         (gl_GETOPT): Remove macro.
8242         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8243         Disable the test against BSD systems that declare optreset. Test
8244         against mingw bug. Test against lack of support of optional arguments
8245         on many platforms.
8246         * doc/glibc-headers/getopt.texi: Update module name and list of
8247         relevant platforms.
8248         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8249         'getopt-gnu' and more portability problems.
8250         * NEWS: Mention the changes.
8251
8252 2009-08-12  Bruno Haible  <bruno@clisp.org>
8253
8254         Ensure that optarg etc. get declared by <unistd.h>.
8255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8256         AC_USE_SYSTEM_EXTENSIONS.
8257         * modules/getopt (Depends-on): Add 'extensions'.
8258
8259 2009-08-12  Bruno Haible  <bruno@clisp.org>
8260
8261         Avoid test link errors.
8262         * modules/pipe-filter-ii-tests (Makefile.am): Define
8263         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8264         * modules/pipe-filter-gi-tests (Makefile.am): Define
8265         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8267
8268 2009-08-12  Bruno Haible  <bruno@clisp.org>
8269
8270         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8271         gl_GETOPT_SUBSTITUTE before.
8272         (gl_GETOPT): Use it.
8273         * m4/argp.m4 (gl_ARGP): Update.
8274         Reported by Sergey Poznyakoff.
8275
8276         * m4/getopt.m4: Reorder macros.
8277         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8278         (gl_GETOPT_SUBSTITUTE): Remove macro.
8279
8280 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8281
8282         Minor improvement in gitlog-to-changelog
8283
8284         * build-aux/gitlog-to-changelog: New option `--format' makes
8285         output format string configurable.
8286
8287 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8288
8289         Optimize exclude: use hash tables for non-wildcard patterns.
8290
8291         * lib/exclude.c: Include hash.h and mbuiter.h
8292         (struct exclude_pattern, exclude_segment): New data types.
8293         (struct exclude): Rewrite.
8294         (fnmatch_pattern_has_wildcards): New function.
8295         (new_exclude_segment, free_exclude_segment): New functions.
8296         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8297         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8298         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8299         * modules/exclude: Depend on hash and mbuiter.
8300
8301         * modules/exclude-tests: New file.
8302         * tests/test-exclude.c: New file.
8303         * tests/test-exclude1.sh: New file.
8304         * tests/test-exclude2.sh: New file.
8305         * tests/test-exclude3.sh: New file.
8306         * tests/test-exclude4.sh: New file.
8307         * tests/test-exclude5.sh: New file.
8308         * tests/test-exclude6.sh: New file.
8309         * tests/test-exclude7.sh: New file.
8310
8311 2009-08-12  Bruno Haible  <bruno@clisp.org>
8312
8313         Ensure that getopt() gets declared by <unistd.h>.
8314         * lib/unistd.in.h: Conditionally include getopt.h.
8315         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8316         Set GNULIB_UNISTD_H_GETOPT.
8317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8318         GNULIB_UNISTD_H_GETOPT.
8319         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8320
8321 2009-08-12  Bruno Haible  <bruno@clisp.org>
8322
8323         Clarify logic.
8324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8325         gl_replace_getopt instead of GETOPT_H.
8326
8327 2009-08-12  Bruno Haible  <bruno@clisp.org>
8328
8329         * m4/getopt.m4: Add comments.
8330
8331 2009-08-12  Bruno Haible  <bruno@clisp.org>
8332
8333         Disable multithread support by default on Cygwin 1.5.x.
8334         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8335         set gl_use_threads=no if not specified otherwise.
8336
8337 2009-08-11  Bruno Haible  <bruno@clisp.org>
8338
8339         Avoid compilation error on NetBSD 5.0.
8340         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8341         * tests/test-stdio.c: Likewise.
8342         * tests/test-stdlib.c: Likewise.
8343         * tests/test-string.c: Likewise.
8344         * tests/test-unistd.c: Likewise.
8345         Reported by Greg Troxel <gdt@ir.bbn.com>
8346         at <https://savannah.gnu.org/support/?106973>.
8347
8348 2009-08-11  Bruno Haible  <bruno@clisp.org>
8349
8350         * modules/dup2-tests (Depends-on): Remove close.
8351
8352         Undo 2009-07-19 commit.
8353         * modules/acl-tests (Depends-on): Remove close.
8354         * modules/binary-io-tests (Depends-on): Likewise.
8355         * modules/closein-tests (Depends-on): Likewise.
8356         * modules/flock-tests (Depends-on): Likewise.
8357         * modules/fsync-tests (Depends-on): Likewise.
8358         * modules/lseek-tests (Depends-on): Likewise.
8359         * modules/pipe-tests (Depends-on): Likewise.
8360         * modules/posix_spawn-tests (Depends-on): Likewise.
8361         * modules/posix_spawnp-tests (Depends-on): Likewise.
8362         * modules/stat-time-tests (Depends-on): Likewise.
8363         * modules/yesno-tests (Depends-on): Likewise.
8364
8365 2009-08-10  Bruno Haible  <bruno@clisp.org>
8366
8367         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8368
8369 2009-08-10  Bruno Haible  <bruno@clisp.org>
8370
8371         Fix a gcc warning.
8372         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8373
8374 2009-08-10  Bruno Haible  <bruno@clisp.org>
8375
8376         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8377         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8378         not only the first time.
8379         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8380         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8381         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8382         is 1, not only the the first time.
8383
8384 2009-08-10  Bruno Haible  <bruno@clisp.org>
8385
8386         Make it possible to use module 'gethostname' without module 'close'.
8387         * lib/unistd.in.h (close): Evoke a link error only if
8388         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8390         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8391         * modules/unistd (Makefile.am): Substitute
8392         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8393         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8394         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8396         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8397         * modules/sys_ioctl (Makefile.am): Substitute
8398         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8399         * modules/socket (configure.ac): On native Windows, set
8400         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8401         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8402         Reported by Sam Steingold <sds@gnu.org>.
8403
8404 2009-08-10  Bruno Haible  <bruno@clisp.org>
8405
8406         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8407         * modules/ioctl (configure.ac): Likewise.
8408
8409 2009-08-10  Bruno Haible  <bruno@clisp.org>
8410
8411         Avoid collision between gnulib wrapper and libintl wrapper.
8412         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8413         already defined in intl/printf.c.
8414         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8415         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8416
8417 2009-08-09  Bruno Haible  <bruno@clisp.org>
8418
8419         Make <sys/select.h> really self-contained, also on Solaris 10.
8420         * lib/sys_select.in.h: Include <string.h>.
8421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8422         Solaris 10 problem.
8423         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8424         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8425         Reported by Jim Meyering.
8426
8427 2009-08-09  Bruno Haible  <bruno@clisp.org>
8428
8429         Avoid warnings from 'aclocal' that are due to a use of macro name
8430         AM_XGETTEXT_OPTION that is not defined in automake.
8431         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8432         automake.
8433         * modules/error (configure.ac): Likewise.
8434         * modules/propername (configure.ac): Likewise.
8435         * modules/vasprintf (configure.ac): Likewise.
8436         * modules/verror (configure.ac): Likewise.
8437         * modules/xprintf (configure.ac): Likewise.
8438         * modules/xvasprintf (configure.ac): Likewise.
8439
8440 2009-08-08  Bruno Haible  <bruno@clisp.org>
8441
8442         Avoid compilation error in C++ mode.
8443         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8444         Reported by Sam Steingold <sds@gnu.org>.
8445
8446 2009-08-08  Bruno Haible  <bruno@clisp.org>
8447
8448         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8449         for the various Unix platforms.
8450         * doc/posix-headers/limits.texi: Update platforms list regarding
8451         HOST_NAME_MAX.
8452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8453
8454 2009-08-07  Jim Meyering  <meyering@redhat.com>
8455
8456         selinux-at: fix typo in a comment
8457         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8458         Spotted by Paolo Bonzini.
8459
8460         selinux-at: remove redundant m4 code, add documentation
8461         * modules/selinux-at (configure.ac): Remove redundant code.
8462         LIB_SELINUX is already set via the dependent module, selinux-h.
8463         (Include): Add quotes around selinux-at.h.
8464         * lib/selinux-at.h: Add documentation.
8465         Reported by Bruno Haible in
8466         http://marc.info/?l=gnulib-bug&m=124958988300749
8467
8468 2009-08-07  Bruno Haible  <bruno@clisp.org>
8469
8470         Avoid link error on MacOS X 10.3 and 10.4.
8471         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8472         on non-ELF systems.
8473         * lib/argp-pv.c (argp_program_version): Likewise.
8474         Reported by Simon Josefsson.
8475
8476 2009-08-07  Simon Josefsson  <simon@josefsson.org>
8477
8478         * tests/test-version-etc.sh: Use $EXEEXT.
8479
8480 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
8481
8482         update-copyright: update documentation to point to maint.mk
8483         * build-aux/update-copyright: Here.
8484
8485 2009-08-06  Jim Meyering  <meyering@redhat.com>
8486
8487         maint.mk: support update-copyright-local
8488         * top/maint.mk (update-copyright-local): Define place-holder.
8489         (update-copyright): Depend on $(update-copyright-local).
8490
8491 2009-08-06  Jim Meyering  <meyering@redhat.com>
8492
8493         selinux-at: new module
8494         Initially written for coreutils, this module will soon be
8495         used by findutils, too.
8496         * MODULES.html.sh [Misc]: Add selinux-at.
8497         * lib/selinux-at.h: New file, from coreutils.
8498         * lib/selinux-at.c: Likewise.
8499         * modules/selinux-at: Likewise.
8500         (License): Change from LGPL to GPL, since it depends
8501         on the GPL'd openat module.
8502
8503         doc: update README
8504         * README: Remove references to cogito.
8505         Remove cvs-repo-updating instructions from 2007.
8506         Don't imply that CVS is better if you have limited disk space.
8507
8508 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8509
8510         update-copyright: support C-style comments
8511         * build-aux/update-copyright: Implement and document.
8512         * tests/test-update-copyright.sh: Test.
8513
8514 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8515
8516         update-copyright: support omitted "(C)"
8517         * build-aux/update-copyright: Implement and document.  Also,
8518         allow variable whitespace before "(C)".
8519         * tests/test-update-copyright.sh: Test.
8520
8521 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8522
8523         update-copyright: don't trip on non-FSF copyright statements
8524         * build-aux/update-copyright: Fix so that the first correctly
8525         formatted FSF copyright statement is recognized no matter what
8526         appears before it.  Update documentation.
8527         * tests/test-update-copyright.sh: Test that.
8528
8529 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8530
8531         update-copyright: clean up code a little
8532         * build-aux/update-copyright: Append "_re" to the name of any
8533         variable holding a regular expression.
8534         Replace "old" and "new" with "stmt" in variable names.
8535         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8536         handled correctly.
8537         Format code more consistently.
8538
8539 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8540
8541         update-copyright-tests: improve portability
8542         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8543         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
8544
8545 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8546
8547         update-copyright: support @copyright{} and &copy;
8548         * build-aux/update-copyright: Implement and document.
8549         * tests/test-update-copyright.sh: Test.
8550
8551 2009-08-04  Jim Meyering  <meyering@redhat.com>
8552
8553         update-copyright-tests: correctly test EOL=\r\n handling
8554         * tests/test-update-copyright.sh: Put \r at the end of some lines
8555         for the dos-eol tests.  Based on a patch by Joel E. Denny.
8556
8557         maint.mk: make update-copyright exclusion list more configurable
8558         * top/maint.mk (update-copyright): Default to excluding COPYING,
8559         but allow an override, in case someone does want to update that file.
8560
8561         maint.mk: don't update copyright date in COPYING
8562         * top/maint.mk (update-copyright): Exclude COPYING.
8563
8564         maint.mk: add a copyright-updating rule
8565         * top/maint.mk (update-copyright): New rule.
8566         Derived from coreutils/Makefile.am.
8567
8568         update-copyright: rename some variables
8569         * build-aux/update-copyright: Rename a few variables for clarity.
8570         Tweak syntax.  List Joel E. Denny as coauthor.
8571
8572 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8573
8574         update-copyright: fix bug for 2-digit last year and add tests
8575         * build-aux/update-copyright: Fix bug.
8576         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8577         specified.
8578         * modules/update-copyright-tests: New
8579         * tests/test-update-copyright.sh: New.
8580
8581 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8582
8583         update-copyright: handle leading tabs in line prefix
8584         * build-aux/update-copyright: Count leading tabs as 8 spaces
8585         when computing margin.  This helps with the formatting of
8586         ChangeLogs, for example.
8587         Fix documentation a little.
8588
8589 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8590
8591         update-copyright: support EOL=\r\n
8592         * build-aux/update-copyright: Implement that.
8593
8594 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8595
8596         update-copyright: automatically format copyright statements
8597         * build-aux/update-copyright: Implement that.
8598         Also, be a little more predictable and safer by always failing
8599         when the full copyright format is not perfectly recognized as an
8600         unbroken whole.  Discussed at
8601         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8602         Rewrite documentation.
8603
8604 2009-08-03  Bruno Haible  <bruno@clisp.org>
8605
8606         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8607
8608 2009-08-02  Bruno Haible  <bruno@clisp.org>
8609
8610         Tests for module 'uname'.
8611         * modules/uname-tests: New file.
8612         * tests/test-uname.c: New file.
8613
8614         New module 'uname'.
8615         * lib/uname.c: New file.
8616         * m4/uname.m4: New file.
8617         * modules/uname: New file.
8618         * doc/posix-functions/uname.texi: Mention the new module.
8619
8620 2009-08-02  Bruno Haible  <bruno@clisp.org>
8621
8622         Tests for module 'sys_utsname'.
8623         * modules/sys_utsname-tests: New file.
8624         * tests/test-sys_utsname.c: New file.
8625
8626         New module 'sys_utsname'.
8627         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8628         * m4/sys_utsname_h.m4: New file.
8629         * modules/sys_utsname: New file.
8630         * doc/posix-headers/sys_utsname.texi: Mention the new module.
8631
8632 2009-08-02  Bruno Haible  <bruno@clisp.org>
8633
8634         Implicitly initialize the sockets library.
8635         * lib/gethostname.c: Include sockets.h.
8636         (rpl_gethostname): Invoke gl_sockets_startup.
8637         * lib/socket.c: Include sockets.h.
8638         (rpl_socket): Invoke gl_sockets_startup.
8639         * modules/gethostname (Depends-on): Add sockets.
8640         * modules/socket (Depends-on): Likewise.
8641         * tests/test-poll.c: Don't include sockets.h.
8642         (main): Don't invoke gl_sockets_startup.
8643         * tests/test-select.c: Don't include sockets.h.
8644         (main): Don't invoke gl_sockets_startup.
8645
8646 2009-08-02  Bruno Haible  <bruno@clisp.org>
8647
8648         Allow multiple calls to gl_sockets_startup.
8649         * lib/sockets.c (initialized_sockets_version): New variable.
8650         (gl_sockets_startup): Do nothing if already called for this or a higher
8651         version.
8652         (gl_sockets_cleanup): Reset initialized_sockets_version.
8653
8654 2009-08-03  Simon Josefsson  <simon@josefsson.org>
8655
8656         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
8657         different project/version.
8658
8659 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8660             Bruno Haible  <bruno@clisp.org>
8661
8662         Tests for module 'pipe-filter-gi'.
8663         * modules/pipe-filter-gi-tests: New file.
8664         * tests/test-pipe-filter-gi1.sh: New file.
8665         * tests/test-pipe-filter-gi1.c: New file.
8666         * tests/test-pipe-filter-gi2.sh: New file.
8667         * tests/test-pipe-filter-gi2-main.c: New file.
8668         * tests/test-pipe-filter-gi2-child.c: New file.
8669
8670         New module 'pipe-filter-gi'.
8671         * lib/pipe-filter-gi.c: New file.
8672         * modules/pipe-filter-gi: New file.
8673
8674 2009-08-02  Bruno Haible  <bruno@clisp.org>
8675             Paolo Bonzini  <bonzini@gnu.org>
8676
8677         Tests for module 'pipe-filter-ii'.
8678         * modules/pipe-filter-ii-tests: New file.
8679         * tests/test-pipe-filter-ii1.sh: New file.
8680         * tests/test-pipe-filter-ii1.c: New file.
8681         * tests/test-pipe-filter-ii2.sh: New file.
8682         * tests/test-pipe-filter-ii2-main.c: New file.
8683         * tests/test-pipe-filter-ii2-child.c: New file.
8684
8685         New module 'pipe-filter-ii'.
8686         * lib/pipe-filter.h: New file.
8687         * lib/pipe-filter-ii.c: New file.
8688         * lib/pipe-filter-aux.h: New file.
8689         * modules/pipe-filter-ii: New file.
8690
8691 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8692
8693         * lib/gc-libgcrypt.c: Change copyright to FSF.
8694         * lib/gc-gnulib.c: Likewise.
8695
8696 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
8697
8698         * lib/gethostname.c: Include limits.h.
8699
8700 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8701             Bruno Haible  <bruno@clisp.org>
8702
8703         Ensure HOST_NAME_MAX as part of the gethostname module.
8704         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8705         define also HOST_NAME_MAX.
8706         * tests/test-gethostname.c: Include <limits.h>.
8707         (main): Check also HOST_NAME_MAX.
8708         * doc/posix-headers/limits.texi: Document the mingw problem.
8709
8710 2009-08-02  Bruno Haible  <bruno@clisp.org>
8711
8712         * lib/gethostname.c (gethostname): Fix handling of large len argument.
8713         Add comments.
8714
8715 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8716
8717         * lib/gethostname.c: Add Windows wrapper.
8718         * m4/gethostname.m4: Look for gethostname in -lws2_32.
8719         * modules/gethostname: Depend on sys_socket & errno, for also
8720         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
8721         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
8722
8723 2009-07-31  Jim Meyering  <meyering@redhat.com>
8724
8725         getloadavg: fix symbol name in comment
8726         * lib/getloadavg.c: Correct a typo I introduced when adding
8727         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
8728         Matt Kraai spotted the problem.
8729
8730 2009-07-29  Matt Kraai  <mkraai@beckman.com>
8731
8732         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
8733         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
8734         code also if ! defined N_NAME_POINTER.
8735         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
8736         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
8737         but the n_name member is a 12-byte array.
8738
8739 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
8740
8741         update-copyright: generalize comment handling
8742         * build-aux/update-copyright: Handle copyright statements
8743         within more comment styles.
8744         Document usage.
8745         Report any file with an external copyright holder or parse failure.
8746
8747 2009-07-29  Jim Meyering  <meyering@redhat.com>
8748
8749         mktime: correct setting of REPLACE_MKTIME
8750         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
8751
8752         update-copyright: new module
8753         * modules/update-copyright: New file.
8754         * build-aux/update-copyright: New file.
8755         * MODULES.html.sh (maint+release support): Add update-copyright.
8756
8757 2009-07-27  Bruno Haible  <bruno@clisp.org>
8758
8759         Fix compilation error when <ctime> is used and mktime is replaced.
8760         * lib/time.in.h (mktime): New declaration.
8761         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
8762         REPLACE_MKTIME instead of defining mktime in config.h.
8763         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
8764         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
8765         Reported by Ross McFarland <rwmcfa1@neces.com>.
8766
8767 2009-07-27  Bruno Haible  <bruno@clisp.org>
8768
8769         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
8770         Reported by Matt Kraai <mkraai@beckman.com>.
8771
8772 2009-07-25  Jim Meyering  <meyering@redhat.com>
8773
8774         maint.mk: avoid warnings about missing files
8775         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
8776         diagnostic when .prev-version does not exist.
8777         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
8778         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
8779         nonexistent cfg.mk.
8780         Suggestions from Simon Josefsson.
8781
8782 2009-07-25  Bruno Haible  <bruno@clisp.org>
8783
8784         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
8785         defined as macros. Needed on QNX 6.4.1.
8786         Reported by Matt Kraai <mkraai@beckman.com>.
8787
8788 2009-07-23  Jim Meyering  <meyering@redhat.com>
8789
8790         maint.mk: invoke "make dist" with a working value of XZ_OPT
8791         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
8792
8793 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
8794
8795         Make fseeko.c compile on QNX.
8796         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
8797
8798 2009-07-22  Peter Simons  <simons@cryp.to>
8799
8800         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
8801         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
8802         * lib/md4.h: Likewise.
8803         * lib/md5.h: Likewise.
8804         * lib/sha1.h: Likewise.
8805         * lib/sha256.h: Likewise.
8806         * lib/sha512.h: Likewise.
8807
8808         tests-sha1: don't assign literal string to 'char *' variable
8809         * tests/test-sha1.c (main): Declare locals with "const" to match
8810         attributes of the right hand side.
8811
8812 2009-07-21  Eric Blake  <ebb9@byu.net>
8813
8814         dup2: fix more mingw problems
8815         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
8816         fd to itself.
8817         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8818         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
8819         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
8820         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
8821         care of mingw bugs.
8822
8823 2009-07-21  Jim Meyering  <meyering@redhat.com>
8824
8825         vc-list-files: avoid failure when /bin/sh is dash
8826         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
8827         On some Debian based systems, /bin/sh is a symlink to dash, and running
8828         this command would omit the "/" following each 'tests' prefix:
8829           dash -x build-aux/vc-list-files -C . tests
8830         That is because bash and dash work differently:
8831           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
8832           bash ok
8833           dash odd
8834
8835 2009-07-21  Eric Blake  <ebb9@byu.net>
8836
8837         dup2-tests: test previous patch
8838         * modules/dup2-tests: New file.
8839         * tests/test-dup2.c: Likewise.
8840         * tests/test-open.c (main): Avoid unspecified behavior.
8841         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
8842         test.
8843
8844         dup2: work around mingw and cygwin 1.5 bug
8845         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
8846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8847         * modules/unistd (Makefile.am): Substitute it.
8848         * lib/unistd.in.h (dup2): Declare the replacement.
8849         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
8850         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
8851         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
8852         * modules/execute (Depends-on): Add dup2.
8853         * modules/fseterr (Depends-on): Likewise.
8854         * modules/pipe (Depends-on): Likewise.
8855         * modules/posix_spawn-internal (Depends-on): Likewise.
8856
8857 2009-07-21  Bruno Haible  <bruno@clisp.org>
8858
8859         * modules/.gitattributes: New file.
8860
8861 2009-07-20  Bruno Haible  <bruno@clisp.org>
8862
8863         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
8864         (main): Use it.
8865
8866 2009-07-20  Eric Blake  <ebb9@byu.net>
8867
8868         test-pipe: make a bit more robust.
8869         * tests/test-pipe.c (myerr): Allow error messages regardless of
8870         what we do to stderr.
8871         (test_pipe): Rearrange to avoid deadlock.
8872         (child_main): Try a larger read, to ensure we avoided deadlock.
8873         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
8874         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
8875         if misused.
8876
8877 2009-07-19  Jim Meyering  <meyering@redhat.com>
8878
8879         fts: avoid false-positive cycle-detection
8880         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
8881         for each new command line argument.
8882
8883 2009-07-19  Bruno Haible  <bruno@clisp.org>
8884
8885         Fix build error on mingw with the modules sys_select and unistd.
8886         * modules/acl-tests (Depends-on): Add close.
8887         * modules/binary-io-tests (Depends-on): Likewise.
8888         * modules/closein-tests (Depends-on): Likewise.
8889         * modules/flock-tests (Depends-on): Likewise.
8890         * modules/fsync-tests (Depends-on): Likewise.
8891         * modules/lseek-tests (Depends-on): Likewise.
8892         * modules/pipe-tests (Depends-on): Likewise.
8893         * modules/posix_spawn-tests (Depends-on): Likewise.
8894         * modules/posix_spawnp-tests (Depends-on): Likewise.
8895         * modules/stat-time-tests (Depends-on): Likewise.
8896         * modules/yesno-tests (Depends-on): Likewise.
8897
8898 2009-07-19  Bruno Haible  <bruno@clisp.org>
8899
8900         Unify conditionals.
8901         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
8902         macros, not at the compiler macros.
8903         * lib/pipe.c: Likewise.
8904         * lib/execute.c: Likewise.
8905         * lib/spawni.c: Likewise.
8906
8907 2009-07-19  Bruno Haible  <bruno@clisp.org>
8908
8909         Fix handling of closed stdin/stdout/stderr on mingw.
8910         * lib/w32spawn.h: Include unistd.h.
8911         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
8912         file descriptor with O_NOINHERIT flag.
8913         (fd_safer_noinherit): New function, based on fd-safer.c.
8914         (dup_safer_noinherit): New function, based on dup-safer.c.
8915         (undup_safer_noinherit): New function.
8916         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
8917         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
8918         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
8919         instead of fd_safer.
8920         * tests/test-pipe.c: Include <windows.h>.
8921         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
8922
8923         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
8924         from main.
8925         (test_pipe): Pass an extra argument for disambiguation.
8926         (main): Invoke parent_main or child_main.
8927
8928         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
8929         consistently.
8930
8931 2009-07-18  Eric Blake  <ebb9@byu.net>
8932
8933         test-pipe: fix mingw build
8934         * tests/test-pipe.c (main): Avoid fcntl on mingw.
8935
8936 2009-07-18  Bruno Haible  <bruno@clisp.org>
8937
8938         * modules/pipe-tests (Makefile.am): Fix typo.
8939
8940 2009-07-18  Eric Blake  <ebb9@byu.net>
8941
8942         error: fix mingw build
8943         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
8944         Reported by Bruno Haible.
8945
8946         error: avoid undefined use of stdout
8947         * lib/error.c (error, error_at_line): Check that fd 1 is open
8948         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
8949         is handling faults and the close_stdout module wants to report the
8950         detection of closed stdout as an error.
8951
8952 2009-07-17  Eric Blake  <ebb9@byu.net>
8953
8954         pipe: be robust in face of closed fds
8955         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
8956         should cause child to misbehave.
8957         * modules/pipe-tests: New module.
8958         * tests/test-pipe.c: New file.
8959         * tests/test-pipe.sh: New file.
8960         Reported by Akim Demaille.
8961
8962 2009-07-14  Bruno Haible  <bruno@clisp.org>
8963
8964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
8965         Reported by anonymous kc.
8966
8967 2009-07-07  Jim Meyering  <meyering@redhat.com>
8968
8969         maint.mk: don't look for translatable strings in *.m4 or *.mk
8970         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
8971         when searching for translatable strings.
8972
8973 2009-07-05  Jim Meyering  <meyering@redhat.com>
8974
8975         remove superfluous parentheses in STREQ definition
8976         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
8977         * lib/getugroups.c (STREQ): Likewise.
8978         * lib/fnmatch.c (STREQ): Likewise.
8979         Spotted by Bruno Haible.
8980
8981 2009-07-04  Jim Meyering  <meyering@redhat.com>
8982
8983         argv-iter: new module
8984         * MODULES.html.sh: Add argv-iter.
8985         * lib/argv-iter.c, lib/argv-iter.h: New files.
8986         * modules/argv-iter: New file.
8987         * modules/argv-iter-tests: New file.
8988         * tests/test-argv-iter.c: Test it.
8989
8990 2009-07-04  Bruno Haible  <bruno@clisp.org>
8991
8992         Fix assertion.
8993         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
8994         contains more exact copies of a given entry than file2, leave the extra
8995         copies unpaired rather than aborting.
8996         Reported by Eric Blake.
8997
8998 2009-07-02  Bruno Haible  <bruno@clisp.org>
8999
9000         Speedup git-merge-changelog for git cherry-pick.
9001         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9002         (entries_mapping_get): New function, extracted from compute_mapping.
9003         (entries_mapping_reverse_get): New function.
9004         (compute_mapping): Add a 'full' argument. Return the result in a
9005         'struct entries_mapping'.
9006         (main): Update. Access the mappings through entries_mapping_get.
9007         Reported by Eric Blake.
9008
9009 2009-07-02  Bruno Haible  <bruno@clisp.org>
9010
9011         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9012         best_i.
9013
9014 2009-07-02  Bruno Haible  <bruno@clisp.org>
9015
9016         Speed up approximate search for matching ChangeLog entries.
9017         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9018         argument. Call fstrcmp_bounded instead of fstrcmp.
9019         (compute_mapping, try_split_merged_entry, main): Update callers.
9020
9021 2009-07-02  Bruno Haible  <bruno@clisp.org>
9022
9023         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9024
9025 2009-06-30  Bruno Haible  <bruno@clisp.org>
9026
9027         Reduce the number of uc_is_cased calls.
9028         * lib/unicase.h (casing_suffix_context_t): Add
9029         'first_char_except_ignorable' field.
9030         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9031         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9032         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9033         Update initializer.
9034         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9035         case-ignorable characters.
9036         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9037         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9038         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9039         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9040         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9041
9042 2009-06-30  Bruno Haible  <bruno@clisp.org>
9043
9044         Tests for module 'unicase/ignorable'.
9045         * modules/unicase/ignorable-tests: New file.
9046         * tests/unicase/test-ignorable.c: New file, generated by
9047         gen-uni-tables.
9048
9049         Tests for module 'unicase/cased'.
9050         * modules/unicase/cased-tests: New file.
9051         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9052         * tests/unicase/test-predicate-part1.h: New file, derived from
9053         tests/unictype/test-predicate-part1.h.
9054         * tests/unicase/test-predicate-part2.h: New file, same as
9055         tests/unictype/test-predicate-part2.h.
9056
9057         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9058         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9059         (output_casing_properties): New function.
9060         (main): Call it.
9061         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9062         * lib/unicase/cased.c: Include unictype/bitmap.h.
9063         (uc_is_cased): Define through a bitmap lookup.
9064         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9065         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9066         (uc_is_case_ignorable): Define through a bitmap lookup.
9067         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9068         lib/unictype/bitmap.h.
9069         (Depends-on): Add inline. Clean up.
9070         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9071         lib/unictype/bitmap.h.
9072         (Depends-on): Add inline. Clean up.
9073         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9074         recognition.
9075         * tests/unicase/test-u16-tolower.c (main): Likewise.
9076         * tests/unicase/test-u32-tolower.c (main): Likewise.
9077
9078 2009-06-30  Bruno Haible  <bruno@clisp.org>
9079
9080         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9081         * lib/unicase/u16-casemap.c: Likewise.
9082         * lib/unicase/u32-casemap.c: Likewise.
9083
9084 2009-06-29  Bruno Haible  <bruno@clisp.org>
9085
9086         Define u32_casefold as a wrapper around u32_ct_casefold.
9087         * lib/unicase/u32-casefold.c: Update.
9088         * modules/unicase/u32-casefold (Depends-on): Add
9089         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9090         unicase/empty-suffix-context. Clean up.
9091
9092         Define u16_casefold as a wrapper around u16_ct_casefold.
9093         * lib/unicase/u16-casefold.c: Update.
9094         * modules/unicase/u16-casefold (Depends-on): Add
9095         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9096         unicase/empty-suffix-context. Clean up.
9097
9098         Define u8_casefold as a wrapper around u8_ct_casefold.
9099         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9100         * lib/unicase/u8-casefold.c: Update.
9101         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9102         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9103
9104         Define u32_totitle as a wrapper around u32_ct_totitle.
9105         * lib/unicase/u32-totitle.c: Update.
9106         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9107         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9108
9109         Define u16_totitle as a wrapper around u16_ct_totitle.
9110         * lib/unicase/u16-totitle.c: Update.
9111         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9112         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9113
9114         Define u8_totitle as a wrapper around u8_ct_totitle.
9115         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9116         functions.
9117         (FUNC): Delegate to U_CT_TOTITLE.
9118         * lib/unicase/u8-totitle.c: Update.
9119         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9120         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9121
9122         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9123         invocation.
9124         * modules/unicase/u32-tolower (Depends-on): Add
9125         unicase/empty-prefix-context, unicase/empty-suffix-context.
9126
9127         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9128         invocation.
9129         * modules/unicase/u16-tolower (Depends-on): Add
9130         unicase/empty-prefix-context, unicase/empty-suffix-context.
9131
9132         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9133         * modules/unicase/u8-tolower (Depends-on): Add
9134         unicase/empty-prefix-context, unicase/empty-suffix-context.
9135
9136         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9137         invocation.
9138         * modules/unicase/u32-toupper (Depends-on): Add
9139         unicase/empty-prefix-context, unicase/empty-suffix-context.
9140
9141         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9142         invocation.
9143         * modules/unicase/u16-toupper (Depends-on): Add
9144         unicase/empty-prefix-context, unicase/empty-suffix-context.
9145
9146         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9147         * modules/unicase/u8-toupper (Depends-on): Add
9148         unicase/empty-prefix-context, unicase/empty-suffix-context.
9149
9150         New module 'unicase/u32-ct-casefold'.
9151         * lib/unicase/u32-ct-casefold.c: New file.
9152         * modules/unicase/u32-ct-casefold: New file.
9153
9154         New module 'unicase/u16-ct-casefold'.
9155         * lib/unicase/u16-ct-casefold.c: New file.
9156         * modules/unicase/u16-ct-casefold: New file.
9157
9158         New module 'unicase/u8-ct-casefold'.
9159         * lib/unicase/u8-ct-casefold.c: New file.
9160         * lib/unicase/u-ct-casefold.h: New file, derived from
9161         lib/unicase/u-casefold.h.
9162         * modules/unicase/u8-ct-casefold: New file.
9163
9164         New module 'unicase/u32-ct-totitle'.
9165         * lib/unicase/u32-ct-totitle.c: New file.
9166         * modules/unicase/u32-ct-totitle: New file.
9167
9168         New module 'unicase/u16-ct-totitle'.
9169         * lib/unicase/u16-ct-totitle.c: New file.
9170         * modules/unicase/u16-ct-totitle: New file.
9171
9172         New module 'unicase/u8-ct-totitle'.
9173         * lib/unicase/u8-ct-totitle.c: New file.
9174         * lib/unicase/u-ct-totitle.h: New file, derived from
9175         lib/unicase/u-totitle.h.
9176         * modules/unicase/u8-ct-totitle: New file.
9177
9178         New module 'unicase/u32-ct-tolower'.
9179         * lib/unicase/u32-ct-tolower.c: New file.
9180         * modules/unicase/u32-ct-tolower: New file.
9181
9182         New module 'unicase/u16-ct-tolower'.
9183         * lib/unicase/u16-ct-tolower.c: New file.
9184         * modules/unicase/u16-ct-tolower: New file.
9185
9186         New module 'unicase/u8-ct-tolower'.
9187         * lib/unicase/u8-ct-tolower.c: New file.
9188         * modules/unicase/u8-ct-tolower: New file.
9189
9190         New module 'unicase/u32-ct-toupper'.
9191         * lib/unicase/u32-ct-toupper.c: New file.
9192         * modules/unicase/u32-ct-toupper: New file.
9193
9194         New module 'unicase/u16-ct-toupper'.
9195         * lib/unicase/u16-ct-toupper.c: New file.
9196         * modules/unicase/u16-ct-toupper: New file.
9197
9198         New module 'unicase/u8-ct-toupper'.
9199         * lib/unicase/u8-ct-toupper.c: New file.
9200         * modules/unicase/u8-ct-toupper: New file.
9201
9202         Add context arguments to u*_casemap functions.
9203         * lib/unicase/unicasemap.h: Include unicase.h.
9204         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9205         suffix_context arguments.
9206         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9207         functions.
9208         (FUNC): Add prefix_context and suffix_context arguments. Use
9209         uc_is_cased and uc_is_case_ignorable.
9210         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9211         * lib/unicase/u16-casemap.c: Likewise.
9212         * lib/unicase/u32-casemap.c: Likewise.
9213         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9214         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9215         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9216         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9217         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9218         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9219
9220         New module 'unicase/u32-suffix-context'.
9221         * lib/unicase/u32-suffix-context.c: New file.
9222         * modules/unicase/u32-suffix-context: New file.
9223
9224         New module 'unicase/u16-suffix-context'.
9225         * lib/unicase/u16-suffix-context.c: New file.
9226         * modules/unicase/u16-suffix-context: New file.
9227
9228         New module 'unicase/u8-suffix-context'.
9229         * lib/unicase/u8-suffix-context.c: New file.
9230         * lib/unicase/u-suffix-context.h: New file.
9231         * modules/unicase/u8-suffix-context: New file.
9232
9233         New module 'unicase/empty-suffix-context'.
9234         * lib/unicase/empty-suffix-context.c: New file.
9235         * modules/unicase/empty-suffix-context: New file.
9236
9237         New module 'unicase/u32-prefix-context'.
9238         * lib/unicase/u32-prefix-context.c: New file.
9239         * modules/unicase/u32-prefix-context: New file.
9240
9241         New module 'unicase/u16-prefix-context'.
9242         * lib/unicase/u16-prefix-context.c: New file.
9243         * modules/unicase/u16-prefix-context: New file.
9244
9245         New module 'unicase/u8-prefix-context'.
9246         * lib/unicase/u8-prefix-context.c: New file.
9247         * lib/unicase/u-prefix-context.h: New file.
9248         * lib/unicase/context.h: New file.
9249         * modules/unicase/u8-prefix-context: New file.
9250
9251         New module 'unicase/empty-prefix-context'.
9252         * lib/unicase/empty-prefix-context.c: New file.
9253         * modules/unicase/empty-prefix-context: New file.
9254
9255         New module 'unicase/ignorable'.
9256         * lib/unicase/ignorable.c: New file.
9257         * modules/unicase/ignorable: New file.
9258
9259         New module 'unicase/cased'.
9260         * lib/unicase/caseprop.h: New file.
9261         * lib/unicase/cased.c: New file.
9262         * modules/unicase/cased: New file.
9263
9264         New functions for case mapping of substrings.
9265         * lib/unicase.h (casing_prefix_context_t): New type.
9266         (unicase_empty_prefix_context): New variable.
9267         (u8_casing_prefix_context, u16_casing_prefix_context,
9268         u32_casing_prefix_context, u8_casing_prefixes_context,
9269         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9270         declarations.
9271         (casing_suffix_context_t): New type.
9272         (unicase_empty_suffix_context): New variable.
9273         (u8_casing_suffix_context, u16_casing_suffix_context,
9274         u32_casing_suffix_context, u8_casing_suffixes_context,
9275         u16_casing_suffixes_context, u32_casing_suffixes_context,
9276         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9277         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9278         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9279         declarations.
9280
9281 2009-06-28  Jim Meyering  <meyering@redhat.com>
9282
9283         boostrap: indent only with spaces
9284         * build-aux/bootstrap: Indent only with spaces, never TABs.
9285
9286         bootstrap: split long lines
9287         * build-aux/bootstrap: Keep line length < 80.
9288
9289         bootstrap: sync from coreutils
9290         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9291         just as autoreconf does.  Verify a list of prerequisite
9292         package-name,version-number pairs if defined in bootstrap.conf.
9293         Refer to README-prereq, if prerequisites are not satisfied.
9294
9295 2009-06-27  Eric Blake  <ebb9@byu.net>
9296
9297         tests: add test for bogus NULL definition
9298         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9299         * tests/test-stdlib.c: Likewise.
9300         * tests/test-string.c: Likewise.
9301         * tests/test-locale.c: Likewise.
9302         * tests/test-unistd.c: Likewise.
9303         * modules/stdio-tests (Depends-on): Add verify.
9304         * modules/stdlib-tests (Depends-on): Likewise.
9305         * modules/string-tests (Depends-on): Likewise.
9306         * modules/locale-tests (Depends-on): Likewise.
9307         * modules/unistd-tests (Depends-on): Likewise.
9308
9309 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9310
9311         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9312         self-explaining comment.
9313         * m4/selinux-selinux-h: Update serial.
9314         (gl_LIBSELINUX): New macro, adding a warning for missing development
9315         packages to code extracted from...
9316         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9317         Add warning for missing development packages here, too.
9318
9319 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9320
9321         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9322
9323 2009-06-25  Eric Blake  <ebb9@byu.net>
9324
9325         version-etc: fix regression
9326         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9327         gcc.
9328         (version_etc): Use it, to catch bugs with trailing NULL.
9329         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9330         (version_etc_va): Fix logic bug.
9331         * modules/version-etc-tests: Add test.
9332         * tests/test-version-etc.c: New file.
9333         * tests/test-version-etc.sh: Likewise.
9334
9335 2009-06-25  Sam Steingold  <sds@gnu.org>
9336
9337         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9338         mbtowc declaration.
9339
9340 2009-06-25  Eric Blake  <ebb9@byu.net>
9341
9342         fpurge: migrate into <stdio.h>
9343         * lib/fpurge.h: Delete...
9344         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9345         * lib/fpurge.c (fpurge): Change declaring header.
9346         * modules/fpurge (Files): Drop deleted file.
9347         (Depends-on): Add stdio.
9348         (configure.ac): Set witness.
9349         * modules/stdio (Makefile.am): Support fpurge macros.
9350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9351         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9352         * lib/fflush.c: Update client.
9353         * tests/test-fpurge.c: Likewise.
9354         * NEWS: Mention the change.
9355
9356 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9357
9358         * lib/argp-version-etc.c (program_authors): Add const
9359         qualifier.
9360         * lib/version-etc.c: Fix typos in the comments.
9361         * modules/argp-version-etc: Depends on version-etc.
9362
9363 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9364
9365         argp-version-etc: new module.
9366
9367         * lib/argp-version-etc.c: New file.
9368         * lib/argp-version-etc.h: New file.
9369         * modules/argp-version-etc: New file.
9370         * modules/argp-version-etc-tests: New file.
9371         * tests/test-argp-version-etc.c: New test.
9372         * tests/test-argp-version-etc-1.sh: New test.
9373
9374 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9375
9376         Provide additional interfaces and documentation for version-etc
9377         module.
9378
9379         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9380         interfaces.
9381         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9382         prototypes.
9383
9384 2009-06-24  Bruno Haible  <bruno@clisp.org>
9385
9386         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9387         HAVE_LIB${NAME} macro.
9388         Reported by Sam Steingold <sds@gnu.org>.
9389
9390 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9391
9392         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9393         needed.
9394
9395 2009-06-21  Bruno Haible  <bruno@clisp.org>
9396
9397         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9398         work.
9399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9400         together with LIB${NAME}, LTLIB${NAME}.
9401         Reported by Sam Steingold <sds@gnu.org>.
9402
9403 2009-06-20  Jim Meyering  <meyering@redhat.com>
9404
9405         tests: make sc_require_test_exit_idiom more generic
9406         * top/maint.mk (Exit_witness_file): New overridable variable.
9407         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9408         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9409
9410 2009-06-19  Jim Meyering  <meyering@redhat.com>
9411
9412         hash: reverse order of src/dst parameters in an internal interface
9413         * lib/hash.c (transfer_entries): Reverse order of parameters to
9414         put DST before SRC.  Adjust callers.
9415
9416         tests: test-hash: avoid wholesale duplication
9417         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9418         Instead, use a loop and add a single conditional.
9419
9420         tests: test-hash: allow seed selection via a command line argument
9421         * tests/test-hash.c (get_seed): New function.
9422         (main): Use it.
9423
9424 2009-06-19  Eric Blake  <ebb9@byu.net>
9425
9426         hash: avoid memory leak on allocation failure
9427         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9428         failure.  Factor repeated algorithm...
9429         (transfer_entries): ...into new helper routine.
9430         (hash_delete): React to hash_rehash return value.
9431
9432         hash: reduce memory pressure in hash_rehash no-op case
9433         * lib/hash.c (next_prime): Avoid overflow.
9434         (hash_initialize): Factor bucket size computation...
9435         (compute_bucket_size): ...into new helper function.
9436         (hash_rehash): Use new function and open coding to reduce memory
9437         pressure, and avoid a memory leak in USE_OBSTACK code.
9438         Reported by Jim Meyering.
9439
9440 2009-06-18  Eric Blake  <ebb9@byu.net>
9441
9442         hash: make rotation more obvious
9443         * modules/hash (Depends-on): Add bitrotate and stdint.
9444         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9445         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9446         (SIZE_MAX): Rely on headers for definition.
9447         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9448         (raw_hasher): Use rotr_sz.
9449         Suggested by Jim Meyering.
9450
9451         hash: fix memory leak in last patch
9452         * lib/hash.c (hash_rehash): Avoid memory leak.
9453
9454         hash: avoid no-op rehashing
9455         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9456
9457         hash: provide default callback functions
9458         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9459         (hash_initialize): Use them as defaults.
9460         * tests/test-hash.c (main): Test this.
9461
9462         hash: minor optimization
9463         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9464         when possible.
9465         (hash_initialize): Document this promise.
9466         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9467         * tests/test-hash.c (hash_compare_strings): Test this.
9468
9469 2009-06-18  Bruno Haible  <bruno@clisp.org>
9470
9471         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9472         going to be replaced anyway.
9473
9474 2009-06-18  Bruno Haible  <bruno@clisp.org>
9475
9476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9477         in one place.
9478         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9479         be replaced anyway.
9480
9481 2009-06-18  Eric Blake  <ebb9@byu.net>
9482
9483         hash: check for resize before insertion
9484         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9485         threshold before insertion, so that a pathological hash_rehash
9486         that fills every bucket can still trigger another rehash.
9487
9488 2009-06-18  Jim Meyering  <meyering@redhat.com>
9489
9490         hash-tests: add a loop around the small tests
9491         * tests/test-hash.c (main): Repeat small tests with selected
9492         small initial table sizes.
9493
9494 2009-06-17  Eric Blake  <ebb9@byu.net>
9495
9496         hash: minor cleanups
9497         * lib/hash.h (hash_entry): Make opaque, by moving...
9498         * lib/hash.c (hash_entry): ...here.
9499         (hash_insert): Clarify restrictions on what can be inserted.
9500         (hash_get_next): Clarify when it is safe to remove an element
9501         during traversal.
9502         (check_tuning): Skip verification when tuning is known safe.
9503         (hash_initialize): Clarify restrictions on tuning.
9504
9505 2009-06-17  Jim Meyering  <jim@meyering.net>
9506         and Eric Blake  <ebb9@byu.net>
9507
9508         hash-tests: new module
9509         * modules/hash-tests: New file.
9510         * tests/test-hash.c: New file.
9511
9512 2009-06-17  Eric Blake  <ebb9@byu.net>
9513
9514         strstr-simple: document new module
9515         * MODULES.html.sh: Document new module.
9516
9517         strstr, strcasestr: replace on platforms with broken memchr
9518         * modules/strstr: Split into...
9519         * modules/strstr-simple: ...new module that does not care about
9520         performance, but does care about glibc bug.
9521         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9522         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9523         if platform memchr is broken, per Debian bug 521737.
9524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9525         memchr.
9526         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9527         * doc/posix-functions/strstr.texi (strstr): Document the fix.
9528         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9529         * modules/mountlist (Depends-on): Add strstr-simple.
9530         * modules/gen-uni-tables (Depends-on): Likewise.
9531         * modules/argz (Depends-on): Add strstr.
9532
9533 2009-06-17  Bruno Haible  <bruno@clisp.org>
9534
9535         * modules/posix_spawn-internal (Depends-on): Add errno.
9536
9537 2009-06-17  Bruno Haible  <bruno@clisp.org>
9538
9539         Define missing ESTALE on Interix 3.5.
9540         * lib/errno.in.h (ESTALE): Assign a value if missing.
9541         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9543         missing.
9544         * doc/posix-headers/errno.texi: Mention the Interix bug.
9545         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9546
9547 2009-06-15  Eric Blake  <ebb9@byu.net>
9548
9549         memchr, memchr2: add valgrind exception
9550         * lib/memchr.valgrind: New file.
9551         * lib/memchr2.valgrind: New file.
9552         * modules/memchr (Files): Distribute valgrind file.
9553         * modules/memchr2 (Files): Likewise.
9554
9555         docs: memchr is no longer obsolete
9556         * MODULES.html.sh: Move memchr from obsolete to string.h section.
9557         * lib/string.in.h (memchr): Simplify logic.
9558
9559 2009-06-14  Jim Meyering  <meyering@redhat.com>
9560
9561         link-follow: fix the "checking..." message to not mention trailing slash
9562         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9563         never considered trailing slashes.
9564
9565 2009-06-14  Bruno Haible  <bruno@clisp.org>
9566
9567         * m4/memchr.m4: Mention also the bug on IA-64.
9568         * doc/posix-functions/memchr.texi: Likewise.
9569
9570 2009-06-12  Eric Blake  <ebb9@byu.net>
9571
9572         memchr: detect broken x86_64 and alpha implementations
9573         * modules/memchr-tests (Depends-on): Move mmap detection...
9574         * modules/memchr (Depends-on): ...here.
9575         (configure.ac): Set indicator.
9576         * lib/string.in.h (memchr): Declare replacement.
9577         * modules/string (Makefile.am): Trigger replacement.
9578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9579         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9580         bugs.
9581         * doc/posix-functions/memchr.texi (memchr): Document the bug.
9582         * modules/getpagesize (License): Relax license.
9583
9584 2009-06-11  Bruno Haible  <bruno@clisp.org>
9585
9586         * lib/idpriv.h: Add more references.
9587
9588 2009-06-08  Bruno Haible  <bruno@clisp.org>
9589
9590         Tests for module 'idpriv-droptemp'.
9591         * modules/idpriv-droptemp-tests: New file.
9592         * tests/test-idpriv-droptemp.sh: New file.
9593         * tests/test-idpriv-droptemp.su.sh: New file.
9594         * tests/test-idpriv-droptemp.c: New file.
9595
9596         New module 'idpriv-droptemp'.
9597         * lib/idpriv-droptemp.c: New file.
9598         * modules/idpriv-droptemp: New file.
9599
9600 2009-06-08  Bruno Haible  <bruno@clisp.org>
9601
9602         Tests for module 'idpriv-drop'.
9603         * modules/idpriv-drop-tests: New file.
9604         * tests/test-idpriv-drop.sh: New file.
9605         * tests/test-idpriv-drop.su.sh: New file.
9606         * tests/test-idpriv-drop.c: New file.
9607
9608         New module 'idpriv-drop'.
9609         * lib/idpriv.h: New file.
9610         * lib-idpriv-drop.c: New file.
9611         * m4/idpriv.m4: New file.
9612         * modules/idpriv-drop: New file.
9613
9614 2009-06-08  Bruno Haible  <bruno@clisp.org>
9615
9616         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9617         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9618         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9619         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9620         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9621         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9622         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9623
9624 2009-06-08  Eric Blake  <ebb9@byu.net>
9625
9626         test-strstr: use memory fence, when possible
9627         * tests/test-strstr.c (main): Use memory fence, in order to be
9628         more likely to trigger Debian bug 521737.
9629         * modules/strstr-tests (Files): Pull in additional files.
9630
9631         memchr: no longer obsolete, for wider field testing
9632         * modules/memchr (Status, Notice): Delete, this module is no
9633         longer obsolete.
9634         * modules/vasnprintf (Depends-on): Add memchr.
9635
9636 2009-06-07  Jim Meyering  <meyering@redhat.com>
9637
9638         hash: declare some functions with the warn_unused_result attribute
9639         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9640
9641 2009-06-07  Bruno Haible  <bruno@clisp.org>
9642
9643         * tests/test-alignof.c: Don't test int64_t if it does not exist.
9644         Reported by Eric Blake.
9645
9646 2009-06-06  Eric Blake  <ebb9@byu.net>
9647
9648         test-alignof: fix typo with long double
9649         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9650         compiler error.
9651
9652 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
9653
9654         Escape non-texinfo { and }s.
9655         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9656         markup error.
9657
9658 2009-06-04  Jim Meyering  <meyering@redhat.com>
9659
9660         gitlog-to-changelog: don't infloop on an empty commit log
9661         * build-aux/gitlog-to-changelog: Warn about an empty log message.
9662         Reported by Boris Petersen <transacid@centerim.org>.
9663
9664 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
9665
9666         version-etc: extend for packagers
9667         Add three new configure options, intended for packagers:
9668           --with-packager="packager name"
9669           --with-packager-version="packager-specific version"
9670           --with-packager-bug-reports="packager bug reporting"
9671         An example with coreutils:
9672           $ ./configure \
9673             --with-packager=Gentoo \
9674             --with-packager-bug-report=http://bugs.gentoo.org/ \
9675             --with-packager-version="patchset 1.6"
9676           $ ./src/ls --version | head -n2
9677           ls (GNU coreutils) 7.1-dirty
9678           Packaged by Gentoo (patchset 1.6)
9679         Note that the bug reporting info via --help doesn't show up because
9680         coreutils uses its own custom emit_bug_reporting_address() implementation
9681         in src/system.h.  If it didn't, it'd look like:
9682           $ ./src/ls --help | tail -n4
9683           Report bugs to <bug-coreutils@gnu.org>.
9684           Report Gentoo bugs to <http://bugs.gentoo.org/>.
9685           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9686           General help using GNU software: <http://www.gnu.org/gethelp/>.
9687         * lib/version-etc.c: Print new information, if provided.
9688         * m4/version-etc.m4: New file.
9689         * modules/version-etc (Files): Add m4/version-etc.m4.
9690         (configure.ac): Add gl_VERSION_ETC.
9691
9692 2009-05-31  Bruno Haible  <bruno@clisp.org>
9693
9694         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9695         and 'int64_t'.
9696         * modules/alignof-tests (Dependencies): Add stdint.
9697         Reported by Eric Blake.
9698
9699 2009-05-31  Bruno Haible  <bruno@clisp.org>
9700
9701         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9702         restriction due to compiler bugs.
9703         Reported by Eric Blake.
9704
9705 2009-05-31  Simon Josefsson  <simon@josefsson.org>
9706             Bruno Haible  <bruno@clisp.org>
9707
9708         Fix test-alignof failure.
9709         * lib/alignof.h (alignof_slot): New macro.
9710         (alignof_type): New macro, with the same semantics as the previous
9711         'alignof'.
9712         (alignof): Alias to alignof_slot.
9713         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9714         check that the results are usable as constant expressions.
9715
9716 2009-05-31  Bruno Haible  <bruno@clisp.org>
9717
9718         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9719         * tests/test-memchr.c (main): Check that memchr does not read past the
9720         first occurrence of the byte.
9721         * tests/test-strstr.c (main): Update comment.
9722         Suggested by Eric Blake.
9723
9724 2009-05-30  Bruno Haible  <bruno@clisp.org>
9725
9726         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
9727         detail how to use dumpbin.
9728         Reported by David Byron <dbyron@dbyron.com>.
9729
9730 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9731
9732         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
9733
9734 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9735
9736         * m4/manywarnings.m4: Add GCC 4.4 warnings.
9737
9738 2009-05-28  Bruno Haible  <bruno@clisp.org>
9739
9740         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
9741         build-aux/ files.
9742
9743 2009-05-28  Simon Josefsson  <simon@josefsson.org>
9744
9745         * gnulib-tool (func_import): Transform license on build-aux/ files too.
9746
9747 2009-05-27  Simon Josefsson  <simon@josefsson.org>
9748
9749         * gnulib-tool (sed_transform_main_lib_file)
9750         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
9751         regexps.
9752
9753 2009-05-26  Simon Josefsson  <simon@josefsson.org>
9754
9755         * tests/test-strstr.c: Add another self-test.
9756         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
9757         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
9758
9759 2009-05-23  Bruno Haible  <bruno@clisp.org>
9760
9761         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
9762         change.
9763
9764 2009-05-21  Bruno Haible  <bruno@clisp.org>
9765
9766         Simplify use of mode_t varargs.
9767         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
9768         uses 'mode_t' or 'int'.
9769         * lib/openat.c (openat): Likewise.
9770         * lib/open-safer.c (open_safer): Likewise.
9771         * m4/mode_t.m4: New file.
9772         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
9773         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
9774         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
9775         * modules/open (Files): Add m4/mode_t.m4.
9776         * modules/openat (Files): Likewise.
9777         * modules/fcntl-safer (Files): Likewise.
9778         Suggested by Eric Blake.
9779
9780 2009-05-21  Pádraig Brady  <P@draigbrady.com>
9781
9782         * doc/glibc-functions/fallocate.texi: New file.
9783         * doc/gnulib.texi: Include it.
9784
9785 2009-05-21  Eric Blake  <ebb9@byu.net>
9786             Bruno Haible  <bruno@clisp.org>
9787
9788         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
9789         invocations.
9790         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9791
9792 2009-05-21  Eric Blake  <ebb9@byu.net>
9793             Bruno Haible  <bruno@clisp.org>
9794
9795         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
9796         include_next. Fix of 2008-11-20 commit.
9797         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
9798         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
9799         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
9800         NEXT_MATH_H.
9801         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
9802         instead of NEXT_MATH_H.
9803
9804 2009-05-21  Bruno Haible  <bruno@clisp.org>
9805
9806         Avoid redefinition warnings for SIZE_MAX.
9807         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
9808         Reported by Simon Josefsson.
9809
9810 2009-05-21  Bruno Haible  <bruno@clisp.org>
9811
9812         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
9813         AC_CACHE_VAL.
9814
9815 2009-05-20  Bruno Haible  <bruno@clisp.org>
9816
9817         Make zeroptr.h work on mingw.
9818         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
9819         mprotect.
9820         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
9821         * modules/memchr2-tests (configure.ac): Likewise.
9822         * modules/memcmp-tests (configure.ac): Likewise.
9823         * modules/memmem-tests (configure.ac): Likewise.
9824         * modules/memrchr-tests (configure.ac): Likewise.
9825         Reported by Simon Josefsson.
9826
9827 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9828
9829         * tests/test-glob.c: Include string.h for strcmp prototype.
9830
9831 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9832
9833         * modules/getdelim (Depends-on): Add explicit stdint, although it
9834         was implicitly already pulled in via realloc-posix.
9835         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
9836
9837 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9838
9839         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
9840         G. Christensen" <tgc@jupiterrise.com>.
9841         * m4/sys_socket_h.m4: Check for sa_family_t.
9842         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
9843         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
9844         * tests/test-sys_socket.c: Check that sa_family_t works.
9845
9846 2009-05-18  Eric Blake  <ebb9@byu.net>
9847
9848         maint.mk: allow gnulib_dir in VPATH build
9849         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
9850
9851 2009-05-15  Jim Meyering  <meyering@redhat.com>
9852
9853         maint.mk: Give gnulib_dir a default definition.
9854         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
9855         Thus, most packages no longer need to specify this variable in cfg.mk
9856
9857 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
9858
9859         rename.m4: fix typos that would make non-mingw cross-configure fail
9860         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
9861
9862 2009-05-13  Eric Blake  <ebb9@byu.net>
9863
9864         mmap-anon: avoid out-of-order autoconf expansion
9865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
9866         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
9867         * modules/memchr-tests (Depends-on): Add extensions.
9868         * modules/memchr2-tests (Depends-on): Add extensions.
9869         * modules/memcmp-tests (Depends-on): Add extensions.
9870         * modules/memmem-tests (Depends-on): Add extensions.
9871         * modules/memrchr-tests (Depends-on): Add extensions.
9872
9873 2009-05-13  Bruno Haible  <bruno@clisp.org>
9874
9875         Make some tests ISO C 99 compliant.
9876         * tests/zerosize-ptr.h: New file.
9877         * tests/test-memchr.c: Include zerosize-ptr.h.
9878         (main): Use a zero-size object pointer instead of NULL.
9879         * tests/test-memchr2.c: Include zerosize-ptr.h.
9880         (main): Use a zero-size object pointer instead of NULL.
9881         * tests/test-memcmp.c: Include zerosize-ptr.h.
9882         (main): Use a zero-size object pointer instead of NULL.
9883         * tests/test-memmem.c: Include zerosize-ptr.h.
9884         (main): Use a zero-size object pointer instead of NULL.
9885         * tests/test-memrchr.c: Include zerosize-ptr.h.
9886         (main): Use a zero-size object pointer instead of NULL.
9887         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
9888         m4/mmap-anon.m4.
9889         (Depends-on): Add getpagesize.
9890         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9891         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
9892         m4/mmap-anon.m4.
9893         (Depends-on): Add getpagesize.
9894         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9895         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
9896         m4/mmap-anon.m4.
9897         (Depends-on): Add getpagesize.
9898         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9899         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
9900         m4/mmap-anon.m4.
9901         (Depends-on): Add getpagesize.
9902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9903         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
9904         m4/mmap-anon.m4.
9905         (Depends-on): Add getpagesize.
9906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9907
9908 2009-05-12  Bruno Haible  <bruno@clisp.org>
9909
9910         Tests for module 'alignof'.
9911         * modules/alignof-tests: New file.
9912         * tests/test-alignof.c: New file.
9913
9914 2009-05-12  Bruno Haible  <bruno@clisp.org>
9915
9916         Fix alignof macro.
9917         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
9918         vendor compilers that are always correct.
9919
9920 2009-05-12  Bruno Haible  <bruno@clisp.org>
9921
9922         Make the MAP_ANONYMOUS detection work on HP-UX 11.
9923         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
9924         not whether its fully works.
9925
9926 2009-05-12  Bruno Haible  <bruno@clisp.org>
9927
9928         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
9929
9930 2009-05-12  Jim Meyering  <meyering@redhat.com>
9931
9932         * top/maint.mk: Adjust backslash alignment.
9933
9934 2009-05-11  Simon Josefsson  <simon@josefsson.org>
9935
9936         * top/maint.mk: Make $(srcdir)/build-aux configurable.
9937
9938 2009-05-11  Eric Blake  <ebb9@byu.net>
9939
9940         argp: avoid undefined behavior
9941         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
9942         macros.
9943
9944 2009-05-08  Simon Josefsson  <simon@josefsson.org>
9945
9946         * tests/test-vc-list-files-git.sh: Do git config of user.email and
9947         user.name to prevent git commit from complaining.
9948
9949 2009-05-10  Bruno Haible  <bruno@clisp.org>
9950
9951         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
9952         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
9953         it rewrites every file name only once.
9954         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
9955
9956 2009-05-08  Bruno Haible  <bruno@clisp.org>
9957
9958         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
9959         instead of 'max'.
9960
9961 2009-05-08  Simon Josefsson  <simon@josefsson.org>
9962
9963         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
9964         sockaddr_storage test.
9965
9966 2009-05-07  Simon Josefsson  <simon@josefsson.org>
9967
9968         * modules/sys_socket (Makefile.am): Substitute
9969         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
9970         * m4/sys_socket_h.m4: Check for sockaddr_storage.
9971         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
9972         * tests/test-sys_socket.c: Check sockaddr_storage.
9973
9974 2009-05-08  Bruno Haible  <bruno@clisp.org>
9975
9976         New module 'alignof'.
9977         * lib/alignof.h: New file.
9978         * modules/alignof: New file.
9979
9980 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
9981             Bruno Haible  <bruno@clisp.org>
9982
9983         Fix test-file-has-acl on FreeBSD.
9984         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
9985         mask is implicitly added.
9986         * tests/test-file-has-acl.c: Include <signal.h>.
9987         (main): Terminate the test after 5 seconds.
9988         * modules/acl-tests (configure.ac): Check for alarm function.
9989
9990 2009-05-04  Bruno Haible  <bruno@clisp.org>
9991
9992         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
9993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
9994         * modules/errno (configure.ac): Drop AC_REQUIRE.
9995         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
9996         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
9997
9998 2009-05-04  Simon Josefsson  <simon@josefsson.org>
9999
10000         * modules/glob-tests: New module.
10001         * tests/test-glob.c: Add.
10002
10003 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10004
10005         * modules/fnmatch-tests: New module.
10006         * tests/test-fnmatch.c: Add.
10007
10008 2009-05-04  Eric Blake  <ebb9@byu.net>
10009
10010         maint: make the new no-submodule-changes rule VPATH-safe
10011         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10012
10013 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10014             Bruno Haible  <bruno@clisp.org>
10015
10016         acl: Fix infinite loop on FreeBSD.
10017         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10018         of return value from acl_get_entry.
10019         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10020         Likewise.
10021
10022 2009-05-03  Bruno Haible  <bruno@clisp.org>
10023
10024         * lib/acl-internal.h (acl_entries): Clarify return value.
10025         * lib/acl_entries.c (acl_entries): Likewise.
10026
10027 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10028
10029         Bug fix in acl module.
10030         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10031
10032 2009-05-03  Bruno Haible  <bruno@clisp.org>
10033
10034         Create gperf-generated file in the source dir, not in the build dir.
10035         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10036         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10037         * modules/unicase/locale-language (unicase/locale-languages.h):
10038         Likewise.
10039         * modules/unicase/special-casing (unicase/special-casing-table.h):
10040         Likewise.
10041         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10042         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10043         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10044         Reported by Ralf Wildenhues.
10045
10046 2009-05-03  Bruno Haible  <bruno@clisp.org>
10047
10048         * modules/fnmatch (Description, configure.ac): Taken from
10049         fnmatch-posix.
10050         * modules/fnmatch-posix: Turn into a symbolic reference to the
10051         'fnmatch' module, and deprecate.
10052         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10053
10054 2009-05-03  Bruno Haible  <bruno@clisp.org>
10055
10056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10057         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10058         Reported by Ralf Wildenhues.
10059
10060 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10061
10062         * m4/fnmatch.m4: Fix fnmatch re-define.
10063
10064 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10065
10066         priv-set: new module and tests; adapt write-any-file
10067         * lib/priv-set.c: New file.
10068         * lib/priv-set.h: New file.
10069         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10070         * lib/write-any-file.c: Simplify by using priv-set module.
10071         * m4/priv-set.m4: New file.
10072         * modules/priv-set: New file.
10073         * modules/unlinkdir: Add dependency on priv-set module.
10074         * modules/write-any-file: Likewise.
10075
10076         Tests for module 'priv-set'.
10077         * modules/priv-set-tests: New file.
10078         * tests/test-priv-set.c: New file.
10079
10080 2009-05-03  Jim Meyering  <meyering@redhat.com>
10081             Bruno Haible  <bruno@clisp.org>
10082
10083         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10084         use the converted UTF-8 variant of the name instead.
10085
10086 2009-05-03  Jim Meyering  <meyering@redhat.com>
10087
10088         tests: tighten some getdate tests
10089         * tests/test-getdate.c (main): Tighten tests: require equality,
10090         not just greater than.  Set TZ envvar to UTC0.
10091
10092 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10093
10094         getdate: correctly interpret "next monday" when run on a Monday
10095         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10096         that e.g., "next tues" (when run on a tuesday) results in a date
10097         that is one week in the future, and not today's date.
10098         I.e., add a week when the wday is the same as the current one.
10099         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10100         and earlier by Martin Bernreuther and Jan Minář.
10101         * tests/test-getdate.c (main): Check that "next DAY" is always in
10102         the future and that "last DAY" is always in the past.
10103
10104 2009-05-02  Jim Meyering  <meyering@redhat.com>
10105
10106         build: ensure that a release build fails when a submodule is unclean
10107         * top/maint.mk (no-submodule-changes): New rule.
10108         (alpha beta major): Depend on it.
10109
10110 2009-05-02  Bruno Haible  <bruno@clisp.org>
10111
10112         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10113         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10114         shell variable gl_fnmatch_required to detect which variant is
10115         requested.
10116         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10117         gl_FUNC_FNMATCH_POSIX.
10118         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10119         exclude fnmatch-posix.
10120
10121 2009-05-02  Bruno Haible  <bruno@clisp.org>
10122
10123         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10124         * modules/mbsrtowcs (License): Change to LGPLv2+.
10125         * modules/strnlen1 (License): Likewise.
10126         Reported by Simon Josefsson.
10127
10128 2009-05-02  Bruno Haible  <bruno@clisp.org>
10129
10130         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10131         "cross".
10132         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10133         gnulib-tool was called with option --source-base=lib.
10134
10135 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10136
10137         Use automake *-local hooks without commands, for extensibility.
10138         * modules/localcharset (Makefile.am): Rename install-exec-local
10139         rule to install-exec-localcharset, and make it a prerequisite of
10140         install-exec-local.  Likewise, rename the uninstall-local rule to
10141         uninstall-localcharset, and make it a prerequisite of the former.
10142
10143 2009-05-01  Bruno Haible  <bruno@clisp.org>
10144
10145         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10146         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10147         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10149         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10150         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10151         m4/locale-zh.m4, m4/codeset.m4.
10152
10153         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10154         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10155         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10156         m4/locale-zh.m4.
10157
10158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10159         REPLACE_WCRTOMB if mbstate_t must be replaced.
10160         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10161         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10162
10163 2009-05-01  Bruno Haible  <bruno@clisp.org>
10164
10165         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10166         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10167         dngettext, dcngettext, textdomain, bindtextdomain,
10168         bind_textdomain_codeset): Undefine before redefining.
10169
10170 2009-04-30  Bruno Haible  <bruno@clisp.org>
10171
10172         Fix bug introduced on 2009-04-25.
10173         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10174         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10175         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10176         is defined.
10177         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10178         is defined.
10179         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10180         is defined.
10181         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10182
10183 2009-04-28  Bruno Haible  <bruno@clisp.org>
10184
10185         Comment tweaks.
10186         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10187         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10188         * lib/unicase.h (u*_casexfrm): Likewise.
10189         Reported by Paolo Bonzini.
10190
10191 2009-04-28  Bruno Haible  <bruno@clisp.org>
10192
10193         Fix a compilation error.
10194         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10195         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10196         Reported by Jim Meyering.
10197
10198 2009-04-27  Bruno Haible  <bruno@clisp.org>
10199
10200         New module 'libunistring'.
10201         * modules/libunistring: New file.
10202         * m4/libunistring.m4: New file.
10203         * MODULES.html.sh (Unicode string functions): Add it.
10204
10205 2009-04-27  Eric Blake  <ebb9@byu.net>
10206
10207         maint.mk: allow package-specific header to provide <config.h>
10208         * top/maint.mk (sc_require_config_h): New variable.
10209         (sc_require_config_h, sc_require_config_h_first): Use it.
10210
10211 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10212
10213         * top/maint.mk (sc_avoid_if_before_free): Except
10214         useless-if-before-free script.
10215
10216 2009-04-27  Eric Blake  <ebb9@byu.net>
10217
10218         maintainer-makefile: depend on all required helper scripts
10219         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10220         useless-if-before-free.
10221         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10222         version, rather than assuming gnulib checkout is available.
10223         Reported by Simen Josefsson.
10224
10225 2009-04-26  Bruno Haible  <bruno@clisp.org>
10226
10227         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10228         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10229         "../" or "..".
10230
10231 2009-04-26  Bruno Haible  <bruno@clisp.org>
10232
10233         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10234         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10235         AC_LIB_HAVE_LINKFLAGS.
10236
10237 2009-04-26  Bruno Haible  <bruno@clisp.org>
10238
10239         Simplify calling convention of u*_conv_from_encoding.
10240         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10241         u32_conv_from_encoding): Expect a resultbuf argument and return the
10242         result directly as a pointer.
10243         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10244         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10245         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10246         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10247         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10248         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10249         Update.
10250         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10251         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10252         * lib/vasnprintf.c (VASNPRINTF): Update.
10253         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10254         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10255         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10256         * NEWS: Mention the change.
10257
10258 2009-04-26  Bruno Haible  <bruno@clisp.org>
10259
10260         Simplify calling convention of u*_conv_to_encoding.
10261         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10262         u32_conv_to_encoding): Expect a resultbuf argument and return the
10263         result directly as a pointer.
10264         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10265         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10266         freeing scaled_offsets if mem_iconveha failed.
10267         * lib/unicase/u-casexfrm.h (FUNC): Update.
10268         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10269         * lib/vasnprintf.c (VASNPRINTF): Update.
10270         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10271         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10272         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10273         * NEWS: Mention the change.
10274
10275 2009-04-26  Bruno Haible  <bruno@clisp.org>
10276
10277         Avoid test failures on AIX and OSF/1.
10278         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10279         malloc(0).
10280         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10281         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10282         Likewise.
10283         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10284         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10285         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10286         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10287         * doc/posix-functions/malloc.texi: Document the portability problem
10288         related to malloc(0).
10289
10290 2009-04-26  Bruno Haible  <bruno@clisp.org>
10291
10292         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10293         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10294         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10295
10296 2009-04-25  Bruno Haible  <bruno@clisp.org>
10297
10298         Avoid link error when creating a namespace clean library.
10299         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10300         as macro with arguments if already defined as an alias.
10301         * lib/signbitf.c (gl_signbitf): Don't undefine.
10302         * lib/signbitd.c (gl_signbitd): Don't undefine.
10303         * lib/signbitl.c (gl_signbitl): Don't undefine.
10304
10305 2009-04-25  Jim Meyering  <meyering@redhat.com>
10306
10307         vc-list-files: fix another quoting bug
10308         * build-aux/vc-list-files: Avoid sed backslash expansion
10309         of pathological directory names.
10310
10311 2009-04-25  Eric Blake  <ebb9@byu.net>
10312
10313         vc-list-files: fix shell quoting error
10314         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10315         timestamp.
10316
10317 2009-04-25  Jim Meyering  <meyering@redhat.com>
10318
10319         vc-list-files: restore lost functionality with subdir argument
10320         * build-aux/vc-list-files: When given a non-"." sub-directory
10321         argument, substitute the $dir/ prefix back onto each resulting name.
10322         Otherwise, coreutils' root_tests check would fail.
10323
10324 2009-04-24  Eric Blake  <ebb9@byu.net>
10325
10326         vc-list-files: ignore git symlinks
10327         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10328         than ls-files, to ignore git symlinks.
10329
10330         maint.mk: import improvements from m4
10331         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10332         (move_if_change): Delete unused macro.
10333         (news-date-check, vc-diff-check): Support VPATH builds.
10334         (announcement): Likewise.  Split --bootstrap-tools list...
10335         (boostrap-tools): ...into separate list, which can be overridden
10336         in cfg.mk.
10337         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10338         requiring dependency on useless-if-before-free module.
10339         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10340         Support VPATH builds.
10341
10342 2009-04-24  Jim Meyering  <meyering@redhat.com>
10343
10344         maint.mk: remove coreutils-specific rules and variables
10345         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10346         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10347         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10348
10349         maint.mk: remove obsolete rule
10350         * top/maint.mk (rel-check): Remove rule.
10351         (WGET, WGETFLAGS): Remove now-unused variables.
10352
10353 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10354
10355         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10356         consistency.
10357
10358         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10359         '$(PATH_SEPARATOR)' instead of ':'.
10360
10361 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10362
10363         * lib/getopt1.c (main): Use 'const' for static array.
10364
10365 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10366
10367         * top/maint.mk: Sync with coreutils.
10368         * NEWS: Explain incompatibilities.
10369
10370 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10371             Bruno Haible  <bruno@clisp.org>
10372
10373         Fix cross-compilation results.
10374         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10375         statement, as third argument of AC_TRY_RUN.
10376         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10377         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10378         Likewise.
10379         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10380         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10381         Likewise.
10382         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10384         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10385
10386 2009-04-20  Bruno Haible  <bruno@clisp.org>
10387
10388         Avoid test failure on mingw.
10389         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10390
10391 2009-04-20  Bruno Haible  <bruno@clisp.org>
10392
10393         Avoid compilation error on mingw.
10394         * modules/localename-tests (Depends-on): Add locale.
10395
10396 2009-04-19  Bruno Haible  <bruno@clisp.org>
10397
10398         Support for building a shared library on Windows platforms.
10399         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10400         (main): Test the presence of UNINORM_NFC here.
10401         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10402         (main): Test the presence of UNINORM_NFD here.
10403         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10404         (main): Test the presence of UNINORM_NFKC here.
10405         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10406         (main): Test the presence of UNINORM_NFKD here.
10407
10408 2009-04-19  Bruno Haible  <bruno@clisp.org>
10409
10410         Avoid a compiler warning.
10411         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10412         Change type of variable 'sequence'.
10413
10414 2009-04-19  Bruno Haible  <bruno@clisp.org>
10415
10416         * modules/configmake (Makefile.am): When the contents of configmake.h
10417         does not change, arrange to preserve its modification time.
10418
10419 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10420
10421         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10422         gettext domain.
10423
10424 2009-04-16  Jim Meyering  <meyering@redhat.com>
10425
10426         useless-if-before-free: improve conversion code
10427         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10428         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10429
10430 2009-04-14  Bruno Haible  <bruno@clisp.org>
10431
10432         * modules/fcntl (Depends-on): Add extensions.
10433         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10434
10435 2009-04-12  Ben Pfaff  <blp@gnu.org>
10436
10437         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10438         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10439
10440 2009-03-20  Ben Pfaff  <blp@gnu.org>
10441
10442         Make rename replace existing destinations on Windows.
10443         * m4/rename.m4: Add test for Mingw.
10444         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10445         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10446         * doc/posix-functions/rename.texi: Document.
10447
10448 2009-04-10  Bruno Haible  <bruno@clisp.org>
10449
10450         New include file "iconveh.h".
10451         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10452         * lib/striconveh.h: Include it.
10453         (enum iconv_ilseq_handler): Remove definition.
10454         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10455         striconveh.h.
10456         * lib/striconveha.c: Include striconveh.h.
10457         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10458         * modules/striconveh (Files): Add lib/iconveh.h.
10459         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10460         lib/striconveh.h.
10461
10462 2009-04-10  Bruno Haible  <bruno@clisp.org>
10463
10464         * lib/uniconv.h: Update comment.
10465
10466 2009-04-10  Bruno Haible  <bruno@clisp.org>
10467
10468         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10469         always.
10470         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10471         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10473         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10474         "unistring-notinline.h", so that the function gets defined always.
10475         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10476         * lib/unistr/u8-uctomb.c: Likewise.
10477         * lib/unistr/u16-mbtouc.c: Likewise.
10478         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10479         * lib/unistr/u16-uctomb.c: Likewise.
10480         * lib/unistr/u32-mbtouc.c: Likewise.
10481         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10482         * lib/unistr/u32-uctomb.c: Likewise.
10483
10484 2009-04-10  Bruno Haible  <bruno@clisp.org>
10485
10486         Mark 'utime' obsolete.
10487         * modules/utime (Status, Notice): New sections.
10488         Suggested by Jim Meyering.
10489
10490         Fix cross-compile guess for utime test.
10491         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10492         autoconf.
10493         * doc/posix-functions/utime.texi: Give more precisions.
10494         Reported by Jan <ipif@ymail.com>.
10495
10496 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
10497
10498         filevercmp: correct today's change
10499         * lib/filevercmp.c: Also handle coreutils' test inputs.
10500         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10501
10502         Fix regression in 'filevercmp' module. Thanks Sven Joachim
10503         for reporting it.
10504         * lib/filevercmp.c: Special handle for "", "." and "..".
10505         * tests/test-filevercmp.c: Enlarge the set suite.
10506
10507 2009-04-07  Jim Meyering  <meyering@redhat.com>
10508
10509         useless-if-before-free: show how to remove braced useless free, too
10510         * build-aux/useless-if-before-free: still only in a comment, though.
10511
10512 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
10513
10514         maint.mk: import changes to syntax-check macros from coreutils
10515         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10516         Use them in the relevant macros.
10517
10518 2009-04-06  Bruno Haible  <bruno@clisp.org>
10519
10520         Fix unportable use of bit-fields.
10521         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10522         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10523         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10524
10525 2009-04-06  Bruno Haible  <bruno@clisp.org>
10526
10527         Avoid test failures on AIX and OSF/1.
10528         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10529         that malloc(0) = NULL.
10530         * tests/unicase/test-u8-tolower.c (check): Likewise.
10531         * tests/unicase/test-u8-totitle.c (check): Likewise.
10532         * tests/unicase/test-u8-toupper.c (check): Likewise.
10533         * tests/unicase/test-u16-casefold.c (check): Likewise.
10534         * tests/unicase/test-u16-tolower.c (check): Likewise.
10535         * tests/unicase/test-u16-totitle.c (check): Likewise.
10536         * tests/unicase/test-u16-toupper.c (check): Likewise.
10537         * tests/unicase/test-u32-casefold.c (check): Likewise.
10538         * tests/unicase/test-u32-tolower.c (check): Likewise.
10539         * tests/unicase/test-u32-totitle.c (check): Likewise.
10540         * tests/unicase/test-u32-toupper.c (check): Likewise.
10541         * tests/uninorm/test-u8-nfc.c (check): Likewise.
10542         * tests/uninorm/test-u8-nfd.c (check): Likewise.
10543         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10544         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10545         * tests/uninorm/test-u16-nfc.c (check): Likewise.
10546         * tests/uninorm/test-u16-nfd.c (check): Likewise.
10547         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10548         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10549         * tests/uninorm/test-u32-nfc.c (check): Likewise.
10550         * tests/uninorm/test-u32-nfd.c (check): Likewise.
10551         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10552         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10553
10554 2009-04-05  Bruno Haible  <bruno@clisp.org>
10555
10556         Work around an autoconf limitation.
10557         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10558         comment line if it would be longer than 3 KB.
10559
10560 2009-04-05  Bruno Haible  <bruno@clisp.org>
10561
10562         Avoid test failure with libiconv-1.13.
10563         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10564         of the expected test results.
10565
10566 2009-04-05  Bruno Haible  <bruno@clisp.org>
10567
10568         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10569         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10570         that it should be installed.
10571
10572 2009-04-05  Bruno Haible  <bruno@clisp.org>
10573
10574         * gnulib-tool: New option --copy-file.
10575         (func_usage): Document it.
10576         (func_dest_tmpfilename): Moved out of func_import.
10577         (func_add_file, func_update_file): New functions, extracted from
10578         func_import.
10579         (func_import): Update.
10580
10581 2009-04-05  Karl Berry  <karl@gnu.org>
10582
10583         * README: prominently mention gnulib-tool.
10584         Rearrange sections so getting the code is near the top.
10585
10586 2009-04-05  Bruno Haible  <bruno@clisp.org>
10587
10588         * lib/unicase.h: Mention u*_cmp2.
10589         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10590         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10591         * lib/unicase/ulc-casecmp.c: Likewise.
10592         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10593         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10594         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10595         unistr/u8-cmp.
10596         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10597         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10598         unistr/u16-cmp.
10599         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10600         unistr/u32-cmp.
10601
10602         * lib/uninorm.h: Mention u*_cmp2.
10603         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10604         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10605         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10606         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10607         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10608         unistr/u8-cmp.
10609         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10610         unistr/u16-cmp.
10611         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10612         unistr/u32-cmp.
10613
10614         New module 'unistr/u32-cmp2'.
10615         * lib/unistr/u32-cmp2.c: New file.
10616         * modules/unistr/u32-cmp2: New file.
10617
10618         New module 'unistr/u16-cmp2'.
10619         * lib/unistr/u16-cmp2.c: New file.
10620         * modules/unistr/u16-cmp2: New file.
10621
10622         New module 'unistr/u8-cmp2'.
10623         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10624         * lib/unistr/u8-cmp2.c: New file.
10625         * lib/unistr/u-cmp2.h: New file.
10626         * modules/unistr/u8-cmp2: New file.
10627
10628 2009-04-05  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/unictype.h (uc_property_is_valid): New macro.
10631         * tests/unictype/test-pr_byname.c (main): Use it.
10632
10633         * lib/unistr.h: Doc fixes.
10634         * lib/uniconv.h: Doc fixes.
10635         * lib/unictype.h: Doc fixes.
10636
10637 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         Port coreutils 7.2 to Solaris 8.
10640
10641         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10642         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10643         for Solaris 8.  This is a bit of a hack, as it means it's the
10644         caller's responsibility to add -lnsl if needed, but most likely it
10645         won't be needed since only getaddrinfo uses this and getaddrinfo
10646         isn't needed on Solaris 8.
10647
10648         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10649         problem to Solaris 8 encountered with coreutils 7.2, which
10650         resulted in a message "fnmatch.c:292: warning: passing argument 4
10651         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
10652         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10653
10654 2009-04-03  Simon Josefsson  <simon@josefsson.org>
10655
10656         * m4/ld-version-script.m4: Add FIXME comment.
10657
10658 2009-04-02  Simon Josefsson  <simon@josefsson.org>
10659
10660         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10661         SOVERSION variable.
10662
10663 2009-04-02  Bruno Haible  <bruno@clisp.org>
10664
10665         * Makefile (info, html, dvi, pdf): Combine the rules.
10666         Suggested by Jim Meyering.
10667
10668 2009-04-01  Bruno Haible  <bruno@clisp.org>
10669
10670         * Makefile (info, html, dvi, pdf): New targets.
10671         Reported by Reuben Thomas <rrt@sc3d.org>.
10672
10673 2009-04-01  Bruno Haible  <bruno@clisp.org>
10674
10675         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10676         can be put into PATH.
10677         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10678
10679 2009-04-01  Bruno Haible  <bruno@clisp.org>
10680
10681         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10682
10683 2009-04-01  Bruno Haible  <bruno@clisp.org>
10684
10685         Rename module 'visibility'.
10686         * modules/lib-symbol-visibility: Renamed from modules/visibility.
10687         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10688         * doc/gnulib.texi: Update.
10689         * MODULES.html.sh (Misc): Update.
10690         * NEWS: Mention the change.
10691
10692 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10693
10694         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
10695         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10696         Eric Blake <ebb9@byu.net> for review.
10697         * MODULES.html.sh: Add lib-msvc-compat.
10698         * doc/gnulib.texi: Link to new section.
10699         * m4/ld-output-def.m4: New file.
10700         * doc/ld-output-def.texi: New file.
10701
10702 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10703
10704         Rename ld-version-script to lib-symbol-versions.  Suggested by
10705         Bruno Haible <bruno@clisp.org>.
10706         * modules/ld-version-script: Renamed to lib-symbol-versions.
10707         * doc/ld-version-script.texi: Fix module name.
10708         * MODULES.html.sh: Add lib-symbol-versions.
10709
10710 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10711
10712         * modules/u64-tests: New file.
10713         * tests/test-u64.c: New file.
10714
10715 2009-03-04  Simon Josefsson  <simon@josefsson.org>
10716
10717         * MODULES.html.sh: Mention u64.
10718         * modules/u64: New module.
10719         * modules/crypto/sha512: Depend on u64 module instead of providing
10720         u64.h.
10721
10722 2009-03-27  Eric Blake  <ebb9@byu.net>
10723
10724         test-strerror: make debugging EAI_SYSTEM easier
10725         * modules/getaddrinfo-tests (Depends-on): Add strerror.
10726         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
10727         failure was EAI_SYSTEM.
10728
10729 2009-03-25  Bruno Haible  <bruno@clisp.org>
10730
10731         Fix a problem with --enable-relocatable on Solaris 7.
10732         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
10733         since 2008-02-24.
10734
10735 2009-03-25  Eric Blake  <ebb9@byu.net>
10736
10737         test-sockets: avoid gcc warning
10738         * tests/test-sockets.c (main): Silence compiler warning.
10739
10740 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         New modules nproc, pthread, contributed by Glen Lenker.
10743
10744         * MODULES.html.sh: Add pthread, nproc.
10745         * lib/nproc.c: New file.
10746         * lib/nproc.h: New file.
10747         * lib/pthread.in.h: New file.
10748         * m4/pthread.m4: New file.
10749         * modules/nproc: New file.
10750         * modules/pthread: New file.
10751
10752 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10753
10754         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
10755         New variable.
10756
10757 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
10758
10759         filevercmp: handle simple~ and numbered.~3~ backup suffixes
10760         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
10761         * tests/test-filevercmp.c: Add tests for backup suffixes.
10762
10763 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10764
10765         * modules/stdlib (Depends-on): Add stdint, needed when defining
10766         struct random_data on, for example, HP-UX 10.20.  Reported by
10767         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10768
10769 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10770
10771         * lib/readline.c (readline): Call fflush on stdout after printing
10772         prompt.
10773
10774 2009-03-20  Bruno Haible  <bruno@clisp.org>
10775
10776         Remove dependency from 'close' module to -lws2_32 on native Windows.
10777         * lib/close-hook.h: New file.
10778         * lib/close-hook.c: New file.
10779         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
10780         w32sock.h.
10781         (_gl_close_fd_maybe_socket): Remove function.
10782         (rpl_close): Invoke execute_all_close_hooks instead of
10783         _gl_close_fd_maybe_socket.
10784         * lib/sockets.c: Include close-hook.h, w32sock.h.
10785         (close_fd_maybe_socket): New function, essentially from lib/close.c.
10786         (close_sockets_hook): New variable.
10787         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
10788         (gl_sockets_cleanup): Unregister it.
10789         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
10790         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
10791         * modules/close-hook: New file.
10792         * modules/close (Files): Remove lib/w32sock.h.
10793         (Depends-on): Add close-hook.
10794         (Link): Remove section.
10795         * modules/sockets (Files): Add lib/w32sock.h.
10796         (Depends-on): Add close-hook.
10797         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
10798         invocation.
10799         * NEWS: Mention that LIB_CLOSE is gone.
10800
10801 2009-03-23  Eric Blake  <ebb9@byu.net>
10802
10803         signal-tests: test previous patch
10804         * tests/test-signal.c: New file.
10805         * modules/signal-tests: Likewise.
10806
10807         signal.h: always support 'volatile sig_atomic_t'
10808         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
10809         (gl_SIGNAL_H_DEFAULTS): Add a default.
10810         * modules/signal (Makefile.am): Substitute if needed.
10811         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
10812         users can blindly add volatile.
10813         * doc/posix-headers/signal.texi (signal.h): Document it.
10814         Reported by Matthew Woehlke.
10815
10816 2009-03-23  Jim Meyering  <meyering@redhat.com>
10817
10818         pathmax: PATH_MAX: use pathconf only when available
10819         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
10820         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
10821         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
10822         This avoids a link failure in a PSP cross-compilation environment
10823         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
10824
10825         * lib/vasnprintf.c (divide): Fix typo in comment.
10826
10827 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10828
10829         * gnulib-tool (func_filter_filelist): Fix comment.
10830
10831 2009-03-20  Bruno Haible  <bruno@clisp.org>
10832
10833         Make sockets.h self-contained.
10834         * lib/sockets.c: Include sockets.h first.
10835         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
10836
10837 2009-03-19  Eric Blake  <ebb9@byu.net>
10838
10839         doc: mention more functions added in cygwin 1.7.0
10840         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
10841         addition.
10842         * doc/posix-functions/log2f.texi: Likewise.
10843
10844 2009-03-19  Jim Meyering  <meyering@redhat.com>
10845
10846         fsusage: avoid syntax error due to statement-before-declaration
10847         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
10848         after all declarations.  Reported by Matthew Woehlke in
10849         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
10850
10851 2009-03-18  Eric Blake  <ebb9@byu.net>
10852
10853         build-aux/compile: sync from automake
10854         * build-aux/compile: New file, from automake.
10855         * config/srclist.txt: Mention build-aux/compile.
10856
10857 2009-03-17  Bruno Haible  <bruno@clisp.org>
10858
10859         * lib/git-merge-changelog.c: Fix typo in comment.
10860         Reported by Reuben Thomas <rrt@sc3d.org>.
10861
10862 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
10863
10864         * m4/regex.m4: update and improve help for
10865         --without-included-regex.
10866
10867 2009-03-17  Simon Josefsson  <simon@josefsson.org>
10868
10869         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
10870         failure on missing include files.
10871
10872 2009-03-17  Eric Blake  <ebb9@byu.net>
10873
10874         doc: mention more functions added in cygwin 1.7.0
10875         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
10876         addition.
10877         * doc/posix-functions/fwscanf.texi: Likewise.
10878         * doc/posix-functions/swprintf.texi: Likewise.
10879         * doc/posix-functions/swscanf.texi: Likewise.
10880         * doc/posix-functions/vfwprintf.texi: Likewise.
10881         * doc/posix-functions/vfwscanf.texi: Likewise.
10882         * doc/posix-functions/vswprintf.texi: Likewise.
10883         * doc/posix-functions/vswscanf.texi: Likewise.
10884         * doc/posix-functions/vwprintf.texi: Likewise.
10885         * doc/posix-functions/vwscanf.texi: Likewise.
10886         * doc/posix-functions/wcscasecmp.texi: Likewise.
10887         * doc/posix-functions/wcsdup.texi: Likewise.
10888         * doc/posix-functions/wcsftime.texi: Likewise.
10889         * doc/posix-functions/wcsncasecmp.texi: Likewise.
10890         * doc/posix-functions/wprintf.texi: Likewise.
10891         * doc/posix-functions/wscanf.texi: Likewise.
10892         * doc/glibc-functions/gethostbyname2.texi: Likewise.
10893
10894 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10895
10896         maint.mk: really add $(AM_MAKEFLAGS)
10897         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
10898         was inadvertently omitted in the last commit.
10899         Spotted by Bruno Haible.
10900
10901         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
10902         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
10903         $(AM_MAKEFLAGS)' rather than plain `make'.
10904
10905         gnulib-tool: execute $MAKE not make
10906         * gnulib-tool: Default $MAKE to 'make'.
10907         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
10908         than make.  Initialize $MAKE in the do-autobuild script.
10909
10910         gnulib-tool: use $MAKE not make in generated files
10911         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
10912         make, in generated files.  Initialize $MAKE in the do-autobuild
10913         script.
10914
10915         * top/GNUmakefile (_have-git-version-gen): Fix typo.
10916
10917         GNUmakefile: disable parallelism only for multiple, recursive targets
10918         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
10919         additions in the Makefile.
10920         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
10921         by Automake.
10922         (.NOTPARALLEL): Only disable parallel builds if multiple targets
10923         are listed on the command line and at least one of them is
10924         listed in $(ALL_RECURSIVE_TARGETS).
10925
10926 2009-03-14  Bruno Haible  <bruno@clisp.org>
10927
10928         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
10929         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
10930         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
10931         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
10932         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
10933         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
10934         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
10935         unistr/u8-uctomb.
10936         * modules/unistr/u8-strchr (Depends-on): Likewise.
10937         * modules/unistr/u8-strrchr (Depends-on): Likewise.
10938         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
10939         unistr/u16-uctomb.
10940         * modules/unistr/u16-strchr (Depends-on): Likewise.
10941         * modules/unistr/u16-strrchr (Depends-on): Likewise.
10942
10943 2009-03-12  Bruno Haible  <bruno@clisp.org>
10944
10945         Work around select() bug on Interix 3.5.
10946         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
10947         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
10948         * m4/select.m4: New file.
10949         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
10950         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
10951         * modules/select (Files): Add m4/select.m4.
10952         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
10953         * modules/nanosleep (Depends-on): Add select.
10954         * modules/poll (Depends-on): Likewise.
10955         * doc/posix-functions/select.texi: Mention the Interix bug.
10956         Reported by Markus Duft <mduft@gentoo.org>.
10957
10958         * lib/select.c: Renamed from lib/winsock-select.c.
10959         * modules/select (Files): Add lib/select.c, remove
10960         lib/winsock-select.c.
10961         (configure.ac): Update.
10962
10963 2009-03-12  Jim Meyering  <meyering@redhat.com>
10964
10965         avoid gcc warnings about unused macro definitions
10966         * lib/readtokens.c (STREQ): Remove unused definition.
10967         * lib/xmalloc.c (SIZE_MAX): Likewise.
10968         * lib/openat-die.c (N_): Likewise.
10969         * lib/mountlist.c (SIZE_MAX): Remove definition.
10970         Instead, include <stdint.h>.
10971         * lib/readutmp.c: Likewise.
10972         * modules/readutmp (Depends-on): Add stdint.
10973         * modules/mountlist (Depends-on): Add stdint.
10974         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
10975
10976 2009-03-10  Bruno Haible  <bruno@clisp.org>
10977
10978         Tests for module 'mbmemcasecoll'.
10979         * modules/mbmemcasecoll-tests: New file.
10980         * tests/test-mbmemcasecoll1.sh: New file.
10981         * tests/test-mbmemcasecoll2.sh: New file.
10982         * tests/test-mbmemcasecoll3.sh: New file.
10983         * tests/test-mbmemcasecoll.c: New file.
10984
10985         New module 'mbmemcasecoll'.
10986         * lib/mbmemcasecoll.h: New file.
10987         * lib/mbmemcasecoll.c: New file.
10988         * modules/mbmemcasecoll: New file.
10989
10990         * tests/test-mbmemcasecmp.h: New file, extracted from
10991         tests/test-mbmemcasecmp.c.
10992         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
10993         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
10994         (main): Update.
10995         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
10996
10997 2009-03-09  Bruno Haible  <bruno@clisp.org>
10998
10999         Tests for module 'mbmemcasecmp'.
11000         * modules/mbmemcasecmp-tests: New file.
11001         * tests/test-mbmemcasecmp1.sh: New file.
11002         * tests/test-mbmemcasecmp2.sh: New file.
11003         * tests/test-mbmemcasecmp3.sh: New file.
11004         * tests/test-mbmemcasecmp.c: New file.
11005
11006         New module 'mbmemcasecmp'.
11007         * lib/mbmemcasecmp.h: New file.
11008         * lib/mbmemcasecmp.c: New file.
11009         * modules/mbmemcasecmp: New file.
11010
11011 2009-03-09  Bruno Haible  <bruno@clisp.org>
11012
11013         Tests for module 'unicase/ulc-casecoll'.
11014         * modules/unicase/ulc-casecoll-tests: New file.
11015         * tests/unicase/test-ulc-casecoll1.sh: New file.
11016         * tests/unicase/test-ulc-casecoll2.sh: New file.
11017         * tests/unicase/test-ulc-casecoll.c: New file.
11018
11019         New module 'unicase/ulc-casecoll'.
11020         * lib/unicase.h (ulc_casecoll): New declaration.
11021         * lib/unicase/ulc-casecoll.c: New file.
11022         * modules/unicase/ulc-casecoll: New file.
11023
11024         New module 'unicase/ulc-casexfrm'.
11025         * lib/unicase.h (ulc_casexfrm): New declaration.
11026         * lib/unicase/ulc-casexfrm.c: New file.
11027         * modules/unicase/ulc-casexfrm: New file.
11028
11029 2009-03-09  Bruno Haible  <bruno@clisp.org>
11030
11031         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11032         invocations.
11033
11034         * m4/mbscasecmp.m4: Remove file.
11035         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11036         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11037
11038         * m4/mbscasestr.m4: Remove file.
11039         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11040         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11041
11042         * m4/mbschr.m4: Remove file.
11043         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11044         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11045
11046         * m4/mbscspn.m4: Remove file.
11047         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11048         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11049
11050         * m4/mbslen.m4: Remove file.
11051         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11052         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11053
11054         * m4/mbsncasecmp.m4: Remove file.
11055         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11056         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11057
11058         * m4/mbsnlen.m4: Remove file.
11059         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11060         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11061
11062         * m4/mbspbrk.m4: Remove file.
11063         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11064         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11065
11066         * m4/mbspcasecmp.m4: Remove file.
11067         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11068         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11069
11070         * m4/mbsrchr.m4: Remove file.
11071         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11072         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11073
11074         * m4/mbssep.m4: Remove file.
11075         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11076         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11077
11078         * m4/mbsspn.m4: Remove file.
11079         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11080         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11081
11082         * m4/mbsstr.m4: Remove file.
11083         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11084         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11085
11086         * m4/mbstok_r.m4: Remove file.
11087         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11088         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11089
11090         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11091
11092         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11093         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11094
11095         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11096
11097 2009-03-08  Bruno Haible  <bruno@clisp.org>
11098
11099         Tests for module 'unicase/ulc-casecmp'.
11100         * modules/unicase/ulc-casecmp-tests: New file.
11101         * tests/unicase/test-ulc-casecmp1.sh: New file.
11102         * tests/unicase/test-ulc-casecmp2.sh: New file.
11103         * tests/unicase/test-ulc-casecmp.c: New file.
11104
11105         New module 'unicase/ulc-casecmp'.
11106         * lib/unicase.h (ulc_casecmp): New declaration.
11107         * lib/unicase/ulc-casecmp.c: New file.
11108         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11109         'const SRC_UNIT *'.
11110         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11111         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11112         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11113         * modules/unicase/ulc-casecmp: New file.
11114
11115         Tests for module 'unicase/u32-is-cased'.
11116         * modules/unicase/u32-is-cased-tests: New file.
11117         * tests/unicase/test-u32-is-cased.c: New file.
11118
11119         Tests for module 'unicase/u16-is-cased'.
11120         * modules/unicase/u16-is-cased-tests: New file.
11121         * tests/unicase/test-u16-is-cased.c: New file.
11122
11123         Tests for module 'unicase/u8-is-cased'.
11124         * modules/unicase/u8-is-cased-tests: New file.
11125         * tests/unicase/test-u8-is-cased.c: New file.
11126         * tests/unicase/test-is-cased.h: New file.
11127
11128         New module 'unicase/u32-is-cased'.
11129         * lib/unicase/u32-is-cased.c: New file.
11130         * modules/unicase/u32-is-cased: New file.
11131
11132         New module 'unicase/u16-is-cased'.
11133         * lib/unicase/u16-is-cased.c: New file.
11134         * modules/unicase/u16-is-cased: New file.
11135
11136         New module 'unicase/u8-is-cased'.
11137         * lib/unicase/u8-is-cased.c: New file.
11138         * lib/unicase/u-is-cased.h: New file.
11139         * modules/unicase/u8-is-cased: New file.
11140
11141         Tests for module 'unicase/u32-is-casefolded'.
11142         * modules/unicase/u32-is-casefolded-tests: New file.
11143         * tests/unicase/test-u32-is-casefolded.c: New file.
11144
11145         Tests for module 'unicase/u16-is-casefolded'.
11146         * modules/unicase/u16-is-casefolded-tests: New file.
11147         * tests/unicase/test-u16-is-casefolded.c: New file.
11148
11149         Tests for module 'unicase/u8-is-casefolded'.
11150         * modules/unicase/u8-is-casefolded-tests: New file.
11151         * tests/unicase/test-u8-is-casefolded.c: New file.
11152         * tests/unicase/test-is-casefolded.h: New file.
11153
11154         New module 'unicase/u32-is-casefolded'.
11155         * lib/unicase/u32-is-casefolded.c: New file.
11156         * modules/unicase/u32-is-casefolded: New file.
11157
11158         New module 'unicase/u16-is-casefolded'.
11159         * lib/unicase/u16-is-casefolded.c: New file.
11160         * modules/unicase/u16-is-casefolded: New file.
11161
11162         New module 'unicase/u8-is-casefolded'.
11163         * lib/unicase/u8-is-casefolded.c: New file.
11164         * modules/unicase/u8-is-casefolded: New file.
11165
11166         Tests for module 'unicase/u32-is-titlecase'.
11167         * modules/unicase/u32-is-titlecase-tests: New file.
11168         * tests/unicase/test-u32-is-titlecase.c: New file.
11169
11170         Tests for module 'unicase/u16-is-titlecase'.
11171         * modules/unicase/u16-is-titlecase-tests: New file.
11172         * tests/unicase/test-u16-is-titlecase.c: New file.
11173
11174         Tests for module 'unicase/u8-is-titlecase'.
11175         * modules/unicase/u8-is-titlecase-tests: New file.
11176         * tests/unicase/test-u8-is-titlecase.c: New file.
11177         * tests/unicase/test-is-titlecase.h: New file.
11178
11179         New module 'unicase/u32-is-titlecase'.
11180         * lib/unicase/u32-is-titlecase.c: New file.
11181         * modules/unicase/u32-is-titlecase: New file.
11182
11183         New module 'unicase/u16-is-titlecase'.
11184         * lib/unicase/u16-is-titlecase.c: New file.
11185         * modules/unicase/u16-is-titlecase: New file.
11186
11187         New module 'unicase/u8-is-titlecase'.
11188         * lib/unicase/u8-is-titlecase.c: New file.
11189         * modules/unicase/u8-is-titlecase: New file.
11190
11191         Tests for module 'unicase/u32-is-lowercase'.
11192         * modules/unicase/u32-is-lowercase-tests: New file.
11193         * tests/unicase/test-u32-is-lowercase.c: New file.
11194
11195         Tests for module 'unicase/u16-is-lowercase'.
11196         * modules/unicase/u16-is-lowercase-tests: New file.
11197         * tests/unicase/test-u16-is-lowercase.c: New file.
11198
11199         Tests for module 'unicase/u8-is-lowercase'.
11200         * modules/unicase/u8-is-lowercase-tests: New file.
11201         * tests/unicase/test-u8-is-lowercase.c: New file.
11202         * tests/unicase/test-is-lowercase.h: New file.
11203
11204         New module 'unicase/u32-is-lowercase'.
11205         * lib/unicase/u32-is-lowercase.c: New file.
11206         * modules/unicase/u32-is-lowercase: New file.
11207
11208         New module 'unicase/u16-is-lowercase'.
11209         * lib/unicase/u16-is-lowercase.c: New file.
11210         * modules/unicase/u16-is-lowercase: New file.
11211
11212         New module 'unicase/u8-is-lowercase'.
11213         * lib/unicase/u8-is-lowercase.c: New file.
11214         * modules/unicase/u8-is-lowercase: New file.
11215
11216         Tests for module 'unicase/u32-is-uppercase'.
11217         * modules/unicase/u32-is-uppercase-tests: New file.
11218         * tests/unicase/test-u32-is-uppercase.c: New file.
11219
11220         Tests for module 'unicase/u16-is-uppercase'.
11221         * modules/unicase/u16-is-uppercase-tests: New file.
11222         * tests/unicase/test-u16-is-uppercase.c: New file.
11223
11224         Tests for module 'unicase/u8-is-uppercase'.
11225         * modules/unicase/u8-is-uppercase-tests: New file.
11226         * tests/unicase/test-u8-is-uppercase.c: New file.
11227         * tests/unicase/test-is-uppercase.h: New file.
11228
11229         New module 'unicase/u32-is-uppercase'.
11230         * lib/unicase/u32-is-uppercase.c: New file.
11231         * modules/unicase/u32-is-uppercase: New file.
11232
11233         New module 'unicase/u16-is-uppercase'.
11234         * lib/unicase/u16-is-uppercase.c: New file.
11235         * modules/unicase/u16-is-uppercase: New file.
11236
11237         New module 'unicase/u8-is-uppercase'.
11238         * lib/unicase/u8-is-uppercase.c: New file.
11239         * modules/unicase/u8-is-uppercase: New file.
11240
11241         New module 'unicase/u32-is-invariant'.
11242         * lib/unicase/u32-is-invariant.c: New file.
11243         * modules/unicase/u32-is-invariant: New file.
11244
11245         New module 'unicase/u16-is-invariant'.
11246         * lib/unicase/u16-is-invariant.c: New file.
11247         * modules/unicase/u16-is-invariant: New file.
11248
11249         New module 'unicase/u8-is-invariant'.
11250         * lib/unicase/u8-is-invariant.c: New file.
11251         * lib/unicase/invariant.h: New file.
11252         * lib/unicase/u-is-invariant.h: New file.
11253         * modules/unicase/u8-is-invariant: New file.
11254
11255         Tests for module 'unicase/u32-casecoll'.
11256         * modules/unicase/u32-casecoll-tests: New file.
11257         * tests/unicase/test-u32-casecoll.c: New file.
11258
11259         Tests for module 'unicase/u16-casecoll'.
11260         * modules/unicase/u16-casecoll-tests: New file.
11261         * tests/unicase/test-u16-casecoll.c: New file.
11262
11263         Tests for module 'unicase/u8-casecoll'.
11264         * modules/unicase/u8-casecoll-tests: New file.
11265         * tests/unicase/test-u8-casecoll.c: New file.
11266
11267         New module 'unicase/u32-casecoll'.
11268         * lib/unicase/u32-casecoll.c: New file.
11269         * modules/unicase/u32-casecoll: New file.
11270
11271         New module 'unicase/u16-casecoll'.
11272         * lib/unicase/u16-casecoll.c: New file.
11273         * modules/unicase/u16-casecoll: New file.
11274
11275         New module 'unicase/u8-casecoll'.
11276         * lib/unicase/u8-casecoll.c: New file.
11277         * lib/unicase/u-casecoll.h: New file.
11278         * modules/unicase/u8-casecoll: New file.
11279
11280         New module 'unicase/u32-casexfrm'.
11281         * lib/unicase/u32-casexfrm.c: New file.
11282         * modules/unicase/u32-casexfrm: New file.
11283
11284         New module 'unicase/u16-casexfrm'.
11285         * lib/unicase/u16-casexfrm.c: New file.
11286         * modules/unicase/u16-casexfrm: New file.
11287
11288         New module 'unicase/u8-casexfrm'.
11289         * lib/unicase/u8-casexfrm.c: New file.
11290         * lib/unicase/u-casexfrm.h: New file.
11291         * modules/unicase/u8-casexfrm: New file.
11292
11293         Tests for module 'unicase/u32-casecmp'.
11294         * modules/unicase/u32-casecmp-tests: New file.
11295         * tests/unicase/test-u32-casecmp.c: New file.
11296
11297         Tests for module 'unicase/u16-casecmp'.
11298         * modules/unicase/u16-casecmp-tests: New file.
11299         * tests/unicase/test-u16-casecmp.c: New file.
11300
11301         Tests for module 'unicase/u8-casecmp'.
11302         * modules/unicase/u8-casecmp-tests: New file.
11303         * tests/unicase/test-u8-casecmp.c: New file.
11304         * tests/unicase/test-casecmp.h: New file.
11305
11306         New module 'unicase/u32-casecmp'.
11307         * lib/unicase/u32-casecmp.c: New file.
11308         * modules/unicase/u32-casecmp: New file.
11309
11310         New module 'unicase/u16-casecmp'.
11311         * lib/unicase/u16-casecmp.c: New file.
11312         * modules/unicase/u16-casecmp: New file.
11313
11314         New module 'unicase/u8-casecmp'.
11315         * lib/unicase/u8-casecmp.c: New file.
11316         * lib/unicase/u-casecmp.h: New file.
11317         * modules/unicase/u8-casecmp: New file.
11318
11319         Tests for module 'unicase/u32-casefold'.
11320         * modules/unicase/u32-casefold-tests: New file.
11321         * tests/unicase/test-u32-casefold.c: New file.
11322
11323         Tests for module 'unicase/u16-casefold'.
11324         * modules/unicase/u16-casefold-tests: New file.
11325         * tests/unicase/test-u16-casefold.c: New file.
11326
11327         Tests for module 'unicase/u8-casefold'.
11328         * modules/unicase/u8-casefold-tests: New file.
11329         * tests/unicase/test-u8-casefold.c: New file.
11330
11331         New module 'unicase/u32-casefold'.
11332         * lib/unicase/u32-casefold.c: New file.
11333         * modules/unicase/u32-casefold: New file.
11334
11335         New module 'unicase/u16-casefold'.
11336         * lib/unicase/u16-casefold.c: New file.
11337         * modules/unicase/u16-casefold: New file.
11338
11339         New module 'unicase/u8-casefold'.
11340         * lib/unicase/u8-casefold.c: New file.
11341         * lib/unicase/u-casefold.h: New file.
11342         * modules/unicase/u8-casefold: New file.
11343
11344         New module 'unicase/tocasefold'.
11345         * lib/unicase/casefold.h: New file.
11346         * lib/unicase/tocasefold.c: New file.
11347         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11348         * modules/unicase/tocasefold: New file.
11349
11350         Tests for module 'unicase/u32-totitle'.
11351         * modules/unicase/u32-totitle-tests: New file.
11352         * tests/unicase/test-u32-totitle.c: New file.
11353
11354         Tests for module 'unicase/u16-totitle'.
11355         * modules/unicase/u16-totitle-tests: New file.
11356         * tests/unicase/test-u16-totitle.c: New file.
11357
11358         Tests for module 'unicase/u8-totitle'.
11359         * modules/unicase/u8-totitle-tests: New file.
11360         * tests/unicase/test-u8-totitle.c: New file.
11361
11362         New module 'unicase/u32-totitle'.
11363         * lib/unicase/u32-totitle.c: New file.
11364         * modules/unicase/u32-totitle: New file.
11365
11366         New module 'unicase/u16-totitle'.
11367         * lib/unicase/u16-totitle.c: New file.
11368         * modules/unicase/u16-totitle: New file.
11369
11370         New module 'unicase/u8-totitle'.
11371         * lib/unicase/u8-totitle.c: New file.
11372         * lib/unicase/u-totitle.h: New file.
11373         * modules/unicase/u8-totitle: New file.
11374
11375         Tests for module 'unicase/u32-tolower'.
11376         * modules/unicase/u32-tolower-tests: New file.
11377         * tests/unicase/test-u32-tolower.c: New file.
11378
11379         Tests for module 'unicase/u16-tolower'.
11380         * modules/unicase/u16-tolower-tests: New file.
11381         * tests/unicase/test-u16-tolower.c: New file.
11382
11383         Tests for module 'unicase/u8-tolower'.
11384         * modules/unicase/u8-tolower-tests: New file.
11385         * tests/unicase/test-u8-tolower.c: New file.
11386
11387         New module 'unicase/u32-tolower'.
11388         * lib/unicase/u32-tolower.c: New file.
11389         * modules/unicase/u32-tolower: New file.
11390
11391         New module 'unicase/u16-tolower'.
11392         * lib/unicase/u16-tolower.c: New file.
11393         * modules/unicase/u16-tolower: New file.
11394
11395         New module 'unicase/u8-tolower'.
11396         * lib/unicase/u8-tolower.c: New file.
11397         * modules/unicase/u8-tolower: New file.
11398
11399         Tests for module 'unicase/u32-toupper'.
11400         * modules/unicase/u32-toupper-tests: New file.
11401         * tests/unicase/test-u32-toupper.c: New file.
11402
11403         Tests for module 'unicase/u16-toupper'.
11404         * modules/unicase/u16-toupper-tests: New file.
11405         * tests/unicase/test-u16-toupper.c: New file.
11406
11407         Tests for module 'unicase/u8-toupper'.
11408         * modules/unicase/u8-toupper-tests: New file.
11409         * tests/unicase/test-u8-toupper.c: New file.
11410
11411         New module 'unicase/u32-toupper'.
11412         * lib/unicase/u32-toupper.c: New file.
11413         * modules/unicase/u32-toupper: New file.
11414
11415         New module 'unicase/u16-toupper'.
11416         * lib/unicase/u16-toupper.c: New file.
11417         * modules/unicase/u16-toupper: New file.
11418
11419         New module 'unicase/u8-toupper'.
11420         * lib/unicase/u8-toupper.c: New file.
11421         * modules/unicase/u8-toupper: New file.
11422
11423         New module 'unicase/u32-casemap'.
11424         * lib/unicase/u32-casemap.c: New file.
11425         * modules/unicase/u32-casemap: New file.
11426
11427         New module 'unicase/u16-casemap'.
11428         * lib/unicase/u16-casemap.c: New file.
11429         * modules/unicase/u16-casemap: New file.
11430
11431         New module 'unicase/u8-casemap'.
11432         * lib/unicase/unicasemap.h: New file.
11433         * lib/unicase/u8-casemap.c: New file.
11434         * lib/unicase/u-casemap.h: New file.
11435         * modules/unicase/u8-casemap: New file.
11436
11437         New module 'unicase/special-casing'.
11438         * lib/unicase/special-casing.h: New file.
11439         * lib/unicase/special-casing.c: New file.
11440         * lib/unicase/special-casing-table.gperf: New file, generated by
11441         gen-uni-tables.c.
11442         * modules/unicase/special-casing: New file.
11443
11444         Tests for module 'unicase/locale-language'.
11445         * modules/unicase/locale-language-tests: New file.
11446         * tests/unicase/test-locale-language.sh: New file.
11447         * tests/unicase/test-locale-language.c: New file.
11448
11449         New module 'unicase/locale-language'.
11450         * lib/unicase/locale-language.c: New file.
11451         * lib/unicase/locale-languages.gperf: New file.
11452         * modules/unicase/locale-language: New file.
11453
11454         Generate more tables for case conversion and case folding.
11455         * lib/gen-uni-tables.c (SCC_*): New enum items.
11456         (struct special_casing_rule): New type.
11457         (casing_rules, num_casing_rules, allocated_casing_rules): New
11458         variables.
11459         (add_casing_rule, fill_casing_rules): New functions.
11460         (struct casefold_rule): New type.
11461         (casefolding_rules, num_casefolding_rules,
11462         allocated_casefolding_rules): New variables.
11463         (fill_casefolding_rules): New function.
11464         (unicode_casefold): New variable.
11465         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11466         sort_casing_rules, output_casing_rules): New functions.
11467         (main): Accept to more arguments: SpecialCasing.txt and
11468         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11469         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11470         Output mapping for casefolding.
11471
11472         * lib/unicase.h: Include stdbool.h, uninorm.h.
11473         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11474         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11475         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11476         arguments.
11477         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11478         resultp arguments.
11479         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11480         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11481         resultp arguments.
11482         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11483         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11484         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11485         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11486         declarations.
11487         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11488
11489 2009-03-08  Bruno Haible  <bruno@clisp.org>
11490
11491         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11492         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11493         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11494         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11495
11496 2009-03-07  Bruno Haible  <bruno@clisp.org>
11497
11498         Adjust u*_normcmp, u*_normcoll API.
11499         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11500         u16_normcoll, u32_normcoll): Change failure conventions.
11501         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11502         errno and return -1.
11503         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11504
11505 2009-03-07  Bruno Haible  <bruno@clisp.org>
11506
11507         Tests for module 'uninorm/u32-normcoll'.
11508         * modules/uninorm/u32-normcoll-tests: New file.
11509         * tests/uninorm/test-u32-normcoll.c: New file.
11510
11511         Tests for module 'uninorm/u16-normcoll'.
11512         * modules/uninorm/u16-normcoll-tests: New file.
11513         * tests/uninorm/test-u16-normcoll.c: New file.
11514
11515         Tests for module 'uninorm/u8-normcoll'.
11516         * modules/uninorm/u8-normcoll-tests: New file.
11517         * tests/uninorm/test-u8-normcoll.c: New file.
11518
11519 2009-03-07  Bruno Haible  <bruno@clisp.org>
11520
11521         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11522         tests/uninorm/test-u32-normcmp.c.
11523         * tests/uninorm/test-u32-normcmp.c: Include it.
11524         (test_nonascii): New function, extracted from main. Add some more
11525         tests.
11526         (main): Invoke test_ascii and test_nonascii.
11527         * modules/uninorm/u32-normcmp-tests (Files): Add
11528         tests/uninorm/test-u32-normcmp.h.
11529         (Depends-on): Remove uninorm/u32-normcmp.
11530
11531         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11532         tests/uninorm/test-u16-normcmp.c.
11533         * tests/uninorm/test-u16-normcmp.c: Include it.
11534         (test_nonascii): New function, extracted from main. Add some more
11535         tests.
11536         (main): Invoke test_ascii and test_nonascii.
11537         * modules/uninorm/u16-normcmp-tests (Files): Add
11538         tests/uninorm/test-u16-normcmp.h.
11539         (Depends-on): Remove uninorm/u16-normcmp.
11540
11541         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11542         tests/uninorm/test-u8-normcmp.c.
11543         * tests/uninorm/test-u8-normcmp.c: Include it.
11544         (test_nonascii): New function, extracted from main. Add some more
11545         tests.
11546         (main): Invoke test_ascii and test_nonascii.
11547         * modules/uninorm/u8-normcmp-tests (Files): Add
11548         tests/uninorm/test-u8-normcmp.h.
11549         (Depends-on): Remove uninorm/u8-normcmp.
11550
11551 2009-03-07  Bruno Haible  <bruno@clisp.org>
11552
11553         New module 'uninorm/u32-normcoll'.
11554         * lib/uninorm/u32-normcoll.c: New file.
11555         * modules/uninorm/u32-normcoll: New file.
11556
11557         New module 'uninorm/u16-normcoll'.
11558         * lib/uninorm/u16-normcoll.c: New file.
11559         * modules/uninorm/u16-normcoll: New file.
11560
11561         New module 'uninorm/u8-normcoll'.
11562         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11563         declarations.
11564         * lib/uninorm/u8-normcoll.c: New file.
11565         * lib/uninorm/u-normcoll.h: New file.
11566         * modules/uninorm/u8-normcoll: New file.
11567
11568         New module 'uninorm/u32-normxfrm'.
11569         * lib/uninorm/u32-normxfrm.c: New file.
11570         * modules/uninorm/u32-normxfrm: New file.
11571
11572         New module 'uninorm/u16-normxfrm'.
11573         * lib/uninorm/u16-normxfrm.c: New file.
11574         * modules/uninorm/u16-normxfrm: New file.
11575
11576         New module 'uninorm/u8-normxfrm'.
11577         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11578         declarations.
11579         * lib/uninorm/u8-normxfrm.c: New file.
11580         * lib/uninorm/u-normxfrm.h: New file.
11581         * modules/uninorm/u8-normxfrm: New file.
11582
11583 2009-03-07  Bruno Haible  <bruno@clisp.org>
11584
11585         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11586         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11587         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11588
11589 2009-03-07  Bruno Haible  <bruno@clisp.org>
11590
11591         New module 'memxfrm'.
11592         * lib/memxfrm.h: New file.
11593         * lib/memxfrm.c: New file.
11594         * modules/memxfrm: New file.
11595
11596 2009-03-07  Bruno Haible  <bruno@clisp.org>
11597
11598         New module 'memcmp2'.
11599         * lib/memcmp2.h: New file.
11600         * lib/memcmp2.c: New file.
11601         * modules/memcmp2: New file.
11602
11603 2009-03-07  Bruno Haible  <bruno@clisp.org>
11604
11605         Tests for module 'uninorm/decomposing-form'.
11606         * modules/uninorm/decomposing-form-tests: New file.
11607         * tests/uninorm/test-decomposing-form.c: New file.
11608
11609         New module 'uninorm/decomposing-form'.
11610         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11611         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11612         Add 'decomposing_variant' field.
11613         * lib/uninorm/decomposing-form.c: New file.
11614         * lib/uninorm/nfc.c (uninorm_nfc): Update.
11615         * lib/uninorm/nfd.c (uninorm_nfd): Update.
11616         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11617         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11618         * modules/uninorm/decomposing-form: New file.
11619         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11620         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11621
11622 2009-03-07  Bruno Haible  <bruno@clisp.org>
11623
11624         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11625         strings.
11626
11627 2009-03-06  Bruno Haible  <bruno@clisp.org>
11628
11629         Tests for module 'uninorm/u32-normcmp'.
11630         * tests/uninorm/test-u32-normcmp.c: New file.
11631         * modules/uninorm/u32-normcmp-tests: New file.
11632
11633         Tests for module 'uninorm/u16-normcmp'.
11634         * tests/uninorm/test-u16-normcmp.c: New file.
11635         * modules/uninorm/u16-normcmp-tests: New file.
11636
11637         Tests for module 'uninorm/u8-normcmp'.
11638         * tests/uninorm/test-u8-normcmp.c: New file.
11639         * modules/uninorm/u8-normcmp-tests: New file.
11640
11641         New module 'uninorm/u32-normcmp'.
11642         * lib/uninorm/u32-normcmp.c: New file.
11643         * modules/uninorm/u32-normcmp: New file.
11644
11645         New module 'uninorm/u16-normcmp'.
11646         * lib/uninorm/u16-normcmp.c: New file.
11647         * modules/uninorm/u16-normcmp: New file.
11648
11649         New module 'uninorm/u8-normcmp'.
11650         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11651         declarations.
11652         * lib/uninorm/u8-normcmp.c: New file.
11653         * lib/uninorm/u-normcmp.h: New file.
11654         * modules/uninorm/u8-normcmp: New file.
11655
11656 2009-03-06  Bruno Haible  <bruno@clisp.org>
11657
11658         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11659         Reported by Eric Blake.
11660
11661 2009-03-06  Eric Blake  <ebb9@byu.net>
11662             Bruno Haible  <bruno@clisp.org>
11663
11664         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11665         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11666         condition.
11667         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11668         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11669         condition.
11670         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11671
11672 2009-03-06  Eric Blake  <ebb9@byu.net>
11673
11674         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11675         to avoid compiler warnings.
11676         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11677
11678 2009-03-05  Bruno Haible  <bruno@clisp.org>
11679
11680         * tests/test-ftell.c (main): Disable test beyond end of file on
11681         FreeMiNT.
11682         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11683
11684 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
11685
11686         * lib/filevercmp.c: Move hidden files up in ordering.
11687         * tests/test-filevercmp.c: Add tests for hidden files.
11688
11689 2009-03-04  Bruno Haible  <bruno@clisp.org>
11690
11691         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11692         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11693         AM_CFLAGS.
11694         Reported by Simon Josefsson.
11695
11696 2009-03-03  Bruno Haible  <bruno@clisp.org>
11697
11698         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11699         Reported by Simon Josefsson.
11700
11701         * doc/ld-version-script.texi: Update node reference.
11702
11703 2009-03-03  Bruno Haible  <bruno@clisp.org>
11704
11705         * modules/visibility (License): Change to 'unlimited'.
11706         Suggested by Simon Josefsson.
11707
11708 2009-03-03  Jim Meyering  <meyering@redhat.com>
11709
11710         unlinkdir: cannot_unlink_dir may modify process state
11711         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11712         it's neither thread-safe nor appropriate for use in a library.
11713
11714 2009-03-03  Eric Blake  <ebb9@byu.net>
11715
11716         test-closein: silence test under Darwin
11717         * tests/test-closein.sh: Ignore stderr from cat, since we don't
11718         care if it dies from EPIPE or EBADF.
11719
11720 2009-03-03  Bruno Haible  <bruno@clisp.org>
11721
11722         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
11723         earlier.
11724         * doc/visibility.texi: Fix @node and @section.
11725
11726 2009-03-03  Simon Josefsson  <simon@josefsson.org>
11727
11728         * doc/gnulib.texi: Link to sections for ld version script and
11729         visibility.
11730         * doc/visibility.texi: Add @node and @section.
11731         * modules/ld-version-script: New module.
11732         * m4/ld-version-script.m4: New file.
11733         * doc/ld-version-script.texi: New file.
11734
11735 2009-03-02  David Lutterkort  <lutter@redhat.com>
11736
11737         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
11738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11739
11740 2009-03-02  Bruno Haible  <bruno@clisp.org>
11741
11742         * doc/visibility.texi: Mention libtool's -export-symbols option.
11743
11744 2009-03-02  Jim Meyering  <meyering@redhat.com>
11745
11746         announce-gen: new option: --no-print-checksums
11747         * build-aux/announce-gen (usage): Describe it.
11748         (print_checksums): Print a newline here, not in the [*] footnote.
11749         (main): Honor it.
11750
11751 2009-03-01  Bruno Haible  <bruno@clisp.org>
11752
11753         Use socklen_t in the native Windows replacements prototypes.
11754         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
11755         instead of 'int'.
11756         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11757         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11758         * modules/getsockopt (Depends-on): Add socklen.
11759         * modules/setsockopt (Depends-on): Add socklen.
11760
11761 2009-03-01  Bruno Haible  <bruno@clisp.org>
11762
11763         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
11764         least 4.2.
11765
11766 2009-03-01  Eric Blake  <ebb9@byu.net>
11767             Bruno Haible  <bruno@clisp.org>
11768
11769         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
11770         error messages.
11771         * lib/wait-process.c (wait_subprocess): Omit error message about
11772         deadly signal sent to the child of termsigp != NULL.
11773
11774 2009-03-01  Eric Blake  <ebb9@byu.net>
11775
11776         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
11777
11778 2009-03-01  Bruno Haible  <bruno@clisp.org>
11779
11780         Avoid a gcc warning.
11781         * tests/test-sched.c (b): Make global.
11782         Reported by Eric Blake.
11783
11784 2009-01-19  Martin Lambers  <marlam@marlam.de>
11785
11786         Provide POSIX semantics for socket timeout options on W32.
11787         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
11788         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
11789         * modules/setsockopt: Depend on sys_time module for struct timeval.
11790         * modules/getsockopt: Depend on sys_time module for struct timeval.
11791
11792 2009-03-01  Simon Josefsson  <simon@josefsson.org>
11793
11794         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
11795         __USE_GNU, for consistency with netdb.in.h.
11796         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11797
11798 2009-03-01  Bruno Haible  <bruno@clisp.org>
11799
11800         More support for FreeMiNT.
11801         * lib/fseeko.c (rpl_fseeko): Complete last commit.
11802         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11803
11804 2009-03-01  Bruno Haible  <bruno@clisp.org>
11805
11806         More support for FreeMiNT.
11807         * lib/fpurge.c (fpurge): Correct last commit.
11808         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11809
11810 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11811
11812         Fix unportable awk script in vc-list-files.
11813         * build-aux/vc-list-files: In the replacement awk script, use
11814         substr with a second argument of 1, not zero.
11815         Report by Simon Josefsson.
11816
11817 2009-02-28  Bruno Haible  <bruno@clisp.org>
11818
11819         More support for FreeMiNT.
11820         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
11821         to FreeMiNT today.
11822         * lib/fwriting.c (fwriting): Likewise.
11823         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
11824
11825 2009-02-28  Bruno Haible  <bruno@clisp.org>
11826
11827         * tests/test-freadseek.c (main): Disable test beyond end of file on
11828         FreeMiNT.
11829         * tests/test-ftello.c (main): Likewise.
11830         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11831
11832 2009-02-28  Bruno Haible  <bruno@clisp.org>
11833
11834         Add tentative support for FreeMiNT.
11835         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
11836         * lib/fpurge.c (fpurge): Likewise.
11837         * lib/freadable.c (freadable): Likewise.
11838         * lib/freading.c (freading): Likewise.
11839         * lib/freadptr.c (freadptr): Likewise.
11840         * lib/freadseek.c (freadptrinc): Likewise.
11841         * lib/fseeko.c (rpl_fseeko): Likewise.
11842         * lib/fseterr.c (fseterr): Likewise.
11843         * lib/fwritable.c (fwritable): Likewise.
11844         * lib/fwriting.c (fwriting): Likewise.
11845         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
11846         Hourihane.
11847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11848
11849 2009-02-28  Bruno Haible  <bruno@clisp.org>
11850
11851         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
11852         SIGCHLD.
11853         Reported by Jim Meyering.
11854
11855 2009-02-28  Bruno Haible  <bruno@clisp.org>
11856
11857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
11858         Mention the results of these tests on various platforms.
11859         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
11860         order.
11861         * doc/posix-functions/printf.texi: Likewise.
11862         * doc/posix-functions/snprintf.texi: Likewise.
11863         * doc/posix-functions/sprintf.texi: Likewise.
11864         * doc/posix-functions/vfprintf.texi: Likewise.
11865         * doc/posix-functions/vprintf.texi: Likewise.
11866         * doc/posix-functions/vsnprintf.texi: Likewise.
11867         * doc/posix-functions/vsprintf.texi: Likewise.
11868         * doc/glibc-functions/obstack_printf.texi: Likewise.
11869         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11870
11871 2009-02-28  Bruno Haible  <bruno@clisp.org>
11872
11873         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
11874         Reported by Loïc Minier <lool@dooz.org>.
11875
11876 2009-02-27  Bruno Haible  <bruno@clisp.org>
11877
11878         * gnulib-tool (func_import): Make the sed expression used to create the
11879         sed script for updating the .gitignore file POSIX compliant.
11880         Reported by Eric Blake.
11881
11882 2009-02-27  Bruno Haible  <bruno@clisp.org>
11883
11884         * gnulib-tool (sed): Don't alias as "sed --posix".
11885         Reported by Eric Blake.
11886
11887 2009-02-27  Bruno Haible  <bruno@clisp.org>
11888
11889         Avoid test link errors.
11890         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
11891         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
11892         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
11893         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
11894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11895
11896 2009-02-27  Bruno Haible  <bruno@clisp.org>
11897
11898         Avoid spurious "(cached)" in configure output.
11899         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
11900         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
11901         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11902         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11903         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11904         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11905         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11906         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11907         Reported by Eric Blake.
11908
11909 2009-02-27  Eric Blake  <ebb9@byu.net>
11910
11911         printf: fix regression in previous patch
11912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
11913
11914 2009-02-27  Bruno Haible  <bruno@clisp.org>
11915
11916         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
11917         value.
11918         * lib/stdint.in.h: Likewise.
11919         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
11920
11921 2009-02-27  Eric Blake  <ebb9@byu.net>
11922
11923         doc: mention more functions added in cygwin 1.7.0
11924         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
11925         addition.
11926         * doc/posix-functions/open_wmemstream.texi: Likewise.
11927         * doc/posix-functions/wcsnlen.texi: Likewise.
11928         * doc/posix-functions/wcsnrtombs.texi: Likewise.
11929         * doc/posix-functions/wcstod.texi: Likewise.
11930         * doc/posix-functions/wcstof.texi: Likewise.
11931         * doc/posix-functions/wcstoimax.texi: Likewise.
11932         * doc/posix-functions/wcstok.texi: Likewise.
11933         * doc/posix-functions/wcstoumax.texi: Likewise.
11934
11935         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
11936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
11937         * doc/posix-functions/fprintf.texi: Update.
11938         * doc/posix-functions/printf.texi: Update.
11939         * doc/posix-functions/snprintf.texi: Update.
11940         * doc/posix-functions/sprintf.texi: Update.
11941         * doc/posix-functions/vfprintf.texi: Update.
11942         * doc/posix-functions/vprintf.texi: Update.
11943         * doc/posix-functions/vsnprintf.texi: Update.
11944         * doc/posix-functions/vsprintf.texi: Update.
11945         * doc/glibc-functions/obstack_printf.texi: Update.
11946         * doc/glibc-functions/obstack_vprintf.texi: Update.
11947
11948 2009-02-26  Eric Blake  <ebb9@byu.net>
11949
11950         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
11951         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
11952         compilation bug by using runtime conversion.
11953         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11954         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
11955         * modules/ceill-tests (Files): Use nan.h.
11956         * modules/floorl-tests (Files): Likewise.
11957         * modules/frexpl-tests (Files): Likewise.
11958         * modules/isnanl-tests (Files): Likewise.
11959         * modules/ldexpl-tests (Files): Likewise.
11960         * modules/roundl-tests (Files): Likewise.
11961         * modules/truncl-tests (Files): Likewise.
11962         * tests/test-ceill.c (main): Use a working NaN.
11963         * tests/test-floorl.c (main): Likewise.
11964         * tests/test-frexpl.c (main): Likewise.
11965         * tests/test-isnan.c (test_long_double): Likewise.
11966         * tests/test-isnanl.h (main): Likewise.
11967         * tests/test-ldexpl.h (main): Likewise.
11968         * tests/test-roundl.h (main): Likewise.
11969         * tests/test-truncl.h (main): Likewise.
11970         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
11971
11972 2009-02-26  Eric Blake  <ebb9@byu.net>
11973             Bruno Haible  <bruno@clisp.org>
11974
11975         Work around a *printf bug with %ls on Solaris.
11976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
11977         precision is specified, sprintf stops converting the wide string
11978         argument when the number of bytes that have been produced by this
11979         conversion equals or exceeds the precision.
11980         * doc/posix-functions/fprintf.texi: Update.
11981         * doc/posix-functions/printf.texi: Update.
11982         * doc/posix-functions/snprintf.texi: Update.
11983         * doc/posix-functions/sprintf.texi: Update.
11984         * doc/posix-functions/vfprintf.texi: Update.
11985         * doc/posix-functions/vprintf.texi: Update.
11986         * doc/posix-functions/vsnprintf.texi: Update.
11987         * doc/posix-functions/vsprintf.texi: Update.
11988         * doc/glibc-functions/obstack_printf.texi: Update.
11989         * doc/glibc-functions/obstack_vprintf.texi: Update.
11990
11991 2009-02-26  Eric Blake  <ebb9@byu.net>
11992
11993         stdlib: favor compiler check of random.h
11994         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
11995         to avoid an ObjC random.h installed by Swarm.
11996
11997 2009-02-26  Bruno Haible  <bruno@clisp.org>
11998
11999         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12000         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12001         Reported by Gary V. Vaughan <gary@gnu.org>.
12002
12003 2009-02-26  Bruno Haible  <bruno@clisp.org>
12004
12005         Fix *printf behaviour regarding the %ls directive.
12006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12007         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12008         NEED_PRINTF_DIRECTIVE_LS.
12009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12010         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12012         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12013         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12014         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12015         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12020         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12021         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12024         * doc/posix-functions/fprintf.texi: Update.
12025         * doc/posix-functions/printf.texi: Update.
12026         * doc/posix-functions/snprintf.texi: Update.
12027         * doc/posix-functions/sprintf.texi: Update.
12028         * doc/posix-functions/vfprintf.texi: Update.
12029         * doc/posix-functions/vprintf.texi: Update.
12030         * doc/posix-functions/vsnprintf.texi: Update.
12031         * doc/posix-functions/vsprintf.texi: Update.
12032         * doc/glibc-functions/obstack_printf.texi: Update.
12033         * doc/glibc-functions/obstack_vprintf.texi: Update.
12034         Reported by Eric Blake.
12035
12036 2009-02-25  Bruno Haible  <bruno@clisp.org>
12037
12038         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12039         with known value.
12040         Reported by Gary V. Vaughan <gary@gnu.org>.
12041
12042 2009-02-25  Bruno Haible  <bruno@clisp.org>
12043
12044         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12045         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12046         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12047         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12048         Reported by Gary V. Vaughan <gary@gnu.org>.
12049
12050 2009-02-25  Bruno Haible  <bruno@clisp.org>
12051
12052         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12053         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12054         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12055         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12056         Reported by Gary V. Vaughan <gary@gnu.org>.
12057
12058 2009-02-25  Eric Blake  <ebb9@byu.net>
12059
12060         tests: skip fseek/ftell tests if ungetc is broken
12061         * m4/ungetc.m4: New file.
12062         * modules/fseek-tests: Split test, so ungetc dependency is
12063         separate from rest of test.
12064         * modules/fseeko-tests: Likewise.
12065         * modules/ftell-tests: Likewise.
12066         * modules/ftello-tests: Likewise.
12067         * tests/test-fseek.c (main): Isolate ungetc dependency.
12068         * tests/test-fseeko.c (main): Likewise.
12069         * tests/test-ftell.c (main): Likewise.
12070         * tests/test-ftello.c (main): Likewise.
12071         * tests/test-fseek2.sh: New file.
12072         * tests/test-fseeko2.sh: Likewise.
12073         * tests/test-ftell2.sh: Likewise.
12074         * tests/test-ftello2.sh: Likewise.
12075
12076 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
12077
12078         test-getaddrinfo: fix usage of skip return code 77
12079         * tests/test-gettaddrinfo.c: Return skip code 77 only
12080         for first occurance of skip (4x77 is not 77)
12081
12082 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12083
12084         strtod: avoid C99 decl-after-statement
12085         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12086
12087 2009-02-24  Eric Blake  <ebb9@byu.net>
12088
12089         strtod: detect HP-UX 11.31 bug
12090         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12091         Reported by Gary V. Vaughan.
12092
12093 2009-02-23  Bruno Haible  <bruno@clisp.org>
12094
12095         Fix invalid read past end of memory block.
12096         * lib/vasnprintf.c (DCHAR_SET): Define.
12097         (local_wcslen): Define only when needed.
12098         (local_strnlen, local_wcsnlen): New functions.
12099         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12100         directives that involve a conversion ourselves.
12101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12102         wcsnlen, mbrtowc, wcrtomb.
12103         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12104         * tests/test-vasprintf-posix.c (test_function): Likewise.
12105         * tests/test-snprintf-posix.h (test_function): Likewise.
12106         * tests/test-sprintf-posix.h (test_function): Likewise.
12107         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12108
12109 2009-02-22  Bruno Haible  <bruno@clisp.org>
12110
12111         Implement new clarified decomposition of Hangul syllables.
12112         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12113         of type LTV, return only a pairwise decomposition.
12114         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12115         Likewise.
12116         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12117         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12118         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12119
12120 2009-02-22  Bruno Haible  <bruno@clisp.org>
12121
12122         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12123         zero-length results and shrink excess allocated memory.
12124         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12125         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12126         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12127         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12128         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12129         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12130         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12131         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12132         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12133         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12134         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12135         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12136
12137 2009-02-21  Bruno Haible  <bruno@clisp.org>
12138
12139         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12140         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12141         spaces after a period. Put a space between a macro name and its
12142         argument list. Trivial rewordings.
12143         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12144         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12145         (main): Return 0 explicitly.
12146
12147 2009-02-21  Bruno Haible  <bruno@clisp.org>
12148
12149         Tests for module 'uninorm/filter'.
12150         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12151         * modules/uninorm/filter-tests: New file.
12152
12153         New module 'uninorm/filter'.
12154         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12155         uninorm_filter_flush, uninorm_filter_free): New declarations.
12156         * lib/uninorm/uninorm-filter.c: New file.
12157         * modules/uninorm/filter: New file.
12158
12159 2009-02-21  Bruno Haible  <bruno@clisp.org>
12160
12161         Tests for module 'uninorm/nfkc'.
12162         * tests/uninorm/test-nfkc.c: New file.
12163         * tests/uninorm/test-u8-nfkc.c: New file.
12164         * tests/uninorm/test-u16-nfkc.c: New file.
12165         * tests/uninorm/test-u32-nfkc.c: New file.
12166         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12167         * tests/uninorm/test-u32-nfkc-big.c: New file.
12168         * modules/uninorm/nfkc-tests: New file.
12169
12170         New module 'uninorm/nfkc'.
12171         * lib/uninorm/nfkc.c: New file.
12172         * modules/uninorm/nfkc: New file.
12173
12174         Tests for module 'uninorm/nfkd'.
12175         * tests/uninorm/test-nfkd.c: New file.
12176         * tests/uninorm/test-u8-nfkd.c: New file.
12177         * tests/uninorm/test-u16-nfkd.c: New file.
12178         * tests/uninorm/test-u32-nfkd.c: New file.
12179         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12180         * tests/uninorm/test-u32-nfkd-big.c: New file.
12181         * modules/uninorm/nfkd-tests: New file.
12182
12183         New module 'uninorm/nfkd'.
12184         * lib/uninorm/nfkd.c: New file.
12185         * modules/uninorm/nfkd: New file.
12186
12187         Tests for module 'uninorm/nfc'.
12188         * tests/uninorm/test-nfc.c: New file.
12189         * tests/uninorm/test-u8-nfc.c: New file.
12190         * tests/uninorm/test-u16-nfc.c: New file.
12191         * tests/uninorm/test-u32-nfc.c: New file.
12192         * tests/uninorm/test-u32-nfc-big.sh: New file.
12193         * tests/uninorm/test-u32-nfc-big.c: New file.
12194         * modules/uninorm/nfc-tests: New file.
12195
12196         New module 'uninorm/nfc'.
12197         * lib/uninorm/nfc.c: New file.
12198         * modules/uninorm/nfc: New file.
12199
12200         Tests for module 'uninorm/nfd'.
12201         * tests/uninorm/test-nfd.c: New file.
12202         * tests/uninorm/test-u8-nfd.c: New file.
12203         * tests/uninorm/test-u16-nfd.c: New file.
12204         * tests/uninorm/test-u32-nfd.c: New file.
12205         * tests/uninorm/test-u32-nfd-big.sh: New file.
12206         * tests/uninorm/test-u32-nfd-big.c: New file.
12207         * tests/uninorm/test-u32-normalize-big.h: New file.
12208         * tests/uninorm/test-u32-normalize-big.c: New file.
12209         * tests/uninorm/NormalizationTest.txt: New file, created from
12210         Unicode 5.1.0 NormalizationTest.txt.
12211         * modules/uninorm/nfd-tests: New file.
12212
12213         New module 'uninorm/nfd'.
12214         * lib/uninorm/nfd.c: New file.
12215         * modules/uninorm/nfd: New file.
12216
12217         New module 'uninorm/u32-normalize'.
12218         * lib/uninorm/u32-normalize.c: New file.
12219         * modules/uninorm/u32-normalize: New file.
12220
12221         New module 'uninorm/u16-normalize'.
12222         * lib/uninorm/u16-normalize.c: New file.
12223         * modules/uninorm/u16-normalize: New file.
12224
12225         New module 'uninorm/u8-normalize'.
12226         * lib/uninorm/u8-normalize.c: New file.
12227         * lib/uninorm/normalize-internal.h: New file.
12228         * lib/uninorm/u-normalize-internal.h: New file.
12229         * modules/uninorm/u8-normalize: New file.
12230
12231         New module 'uninorm/decompose-internal'.
12232         * lib/uninorm/decompose-internal.c: New file.
12233         * modules/uninorm/decompose-internal: New file.
12234
12235         Tests for module 'uninorm/composition'.
12236         * tests/uninorm/test-composition.c: New file.
12237         * modules/uninorm/composition-tests: New file.
12238
12239         New module 'uninorm/composition'.
12240         * lib/uninorm/composition.c: New file.
12241         * lib/uninorm/composition-table.gperf: New file, generated by
12242         gen-uni-tables.
12243         * modules/uninorm/composition: New file.
12244
12245         Tests for module 'uninorm/compat-decomposition'.
12246         * tests/uninorm/test-compat-decomposition.c: New file.
12247         * modules/uninorm/compat-decomposition-tests: New file.
12248
12249         New module 'uninorm/compat-decomposition'.
12250         * lib/uninorm/decompose-internal.h: New file.
12251         * lib/uninorm/compat-decomposition.c: New file.
12252         * modules/uninorm/compat-decomposition: New file.
12253
12254         Tests for module 'uninorm/canonical-decomposition'.
12255         * tests/uninorm/test-canonical-decomposition.c: New file.
12256         * modules/uninorm/canonical-decomposition-tests: New file.
12257
12258         New module 'uninorm/canonical-decomposition'.
12259         * lib/uninorm/canonical-decomposition.c: New file.
12260         * modules/uninorm/canonical-decomposition: New file.
12261
12262         Tests for module 'uninorm/decomposition'.
12263         * tests/uninorm/test-decomposition.c: New file.
12264         * modules/uninorm/decomposition-tests: New file.
12265
12266         New module 'uninorm/decomposition'.
12267         * lib/uninorm/decomposition.c: New file.
12268         * modules/uninorm/decomposition: New file.
12269
12270         New module 'uninorm/decomposition-table'.
12271         * lib/uninorm/decomposition-table.h: New file.
12272         * lib/uninorm/decomposition-table.c: New file.
12273         * lib/uninorm/decomposition-table1.h: New file, generated by
12274         gen-uni-tables.
12275         * lib/uninorm/decomposition-table2.h: New file, generated by
12276         gen-uni-tables.
12277         * modules/uninorm/decomposition-table: New file.
12278
12279         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12280         (UC_DECOMP_*): New enumeration items.
12281         (get_decomposition): New function.
12282         (struct decomp_table): New type.
12283         (output_decomposition, output_decomposition_tables): New functions.
12284         (unicode_composition_exclusions): New variable.
12285         (fill_composition_exclusions, debug_output_composition_tables): New
12286         functions.
12287         (main): Accept one more argument. Invoke fill_composition_exclusions.
12288         Output decomposition and composition tables.
12289
12290         New module 'uninorm/base'.
12291         * lib/uninorm.h: New file.
12292         * lib/unictype.h: Update comment.
12293         * modules/uninorm/base: New file.
12294
12295 2009-02-21  David Lutterkort  <lutter@redhat.com>
12296
12297         Tests for module 'safe-alloc'.
12298         * tests/test-safe-alloc.c: New file.
12299         * modules/safe-alloc-tests: New file.
12300
12301         New module 'safe-alloc'.
12302         * lib/safe-alloc.h: New file.
12303         * lib/safe-alloc.c: New file.
12304         * m4/safe-alloc.m4: New file.
12305         * modules/safe-alloc: New file.
12306         * doc/safe-alloc.texi: New file.
12307         * doc/gnulib.texi: Include it.
12308         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12309         safe-alloc.
12310
12311 2009-02-18  Bruno Haible  <bruno@clisp.org>
12312
12313         Fix link error on non-glibc systems.
12314         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12315         variable.
12316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12317
12318 2009-02-18  Jim Meyering  <meyering@redhat.com>
12319
12320         fts: avoid used-uninitialized error due to recent change
12321         * lib/fts.c (fts_read): Guard uses of the new member,
12322         parent->fts_n_dirs_remaining, since it's not relevant for
12323         the parent of a directory specified on the command-line.
12324
12325 2009-02-17  James Youngman  <jay@gnu.org>
12326             Bruno Haible  <bruno@clisp.org>
12327
12328         * m4/include_next.m4: Reformulate comment.
12329
12330 2009-02-16  Jim Meyering  <meyering@redhat.com>
12331
12332         fts: add #if guards so that the fts_lgpl module still builds
12333         * lib/fts.c: Guard just-added hash-table-using parts with
12334         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12335         Reported by Simon Josefsson.
12336
12337 2009-02-15  Bruno Haible  <bruno@clisp.org>
12338
12339         * modules/array-mergesort-tests: New file.
12340         * tests/test-array-mergesort.c: New file.
12341
12342         New module 'array-mergesort'.
12343         * modules/array-mergesort: New file.
12344         * lib/array-mergesort.h: New file.
12345
12346 2009-02-15  Bruno Haible  <bruno@clisp.org>
12347
12348         Fix 2009-02-07 commit.
12349         * lib/gen-uni-tables.c (output_predicate, output_category,
12350         output_combclass, output_bidi_category, output_decimal_digit,
12351         output_digit, output_numeric, output_mirror, output_scripts,
12352         output_ident_category, output_simple_mapping): Fix format directives.
12353         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12354
12355 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12356
12357         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12358         fixes are available from IBM.
12359
12360 2009-02-13  Jim Meyering  <meyering@redhat.com>
12361
12362         fts: arrange not to stat non-directories in more cases
12363         This makes GNU find (when it doesn't need to stat each file)
12364         *much* more efficient at traversing reiserfs file systems.
12365         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12366         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12367         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12368         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12369         (leaf_optimization_applies): New function.
12370         (LCO_hash, LCO_compare): New helper functions.
12371         (link_count_optimize_ok): New function.
12372         (fts_stat): Initialize new member (if dir).
12373         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12374         we've just stat'ed a directory.  Skip the stat call when possible.
12375         ---
12376         Note this AFS-related exchange:
12377         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12378         and note find's pioctl call in find/fstype.c.
12379         But that is necessary only if you want to enable the
12380         optimization for AFS, and for now, I don't.
12381
12382         fts: move a function definition "up" (no semantic change)
12383         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12384         "up" to precede upcoming use of a related function.
12385
12386 2009-02-11  Jim Meyering  <meyering@redhat.com>
12387
12388         fts: correct internal computation of nlinks (optimization-related)
12389         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12390         whether the current entry is a directory, so don't test it.
12391
12392 2009-02-10  Bruno Haible  <bruno@clisp.org>
12393
12394         Tests for module 'uniwbrk/ulc-wordbreaks'.
12395         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12396         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12397         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12398
12399         Tests for module 'uniwbrk/u32-wordbreaks'.
12400         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12401         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12402
12403         Tests for module 'uniwbrk/u16-wordbreaks'.
12404         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12405         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12406
12407         Tests for module 'uniwbrk/u8-wordbreaks'.
12408         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12409         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12410
12411 2009-02-10  Bruno Haible  <bruno@clisp.org>
12412
12413         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12414         property.
12415         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12416         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12417         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12418
12419 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12420
12421         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12422         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12423
12424 2009-02-10  Bruno Haible  <bruno@clisp.org>
12425
12426         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12427         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12428         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12429         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12430         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12431         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12432
12433 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12434
12435         * lib/sockets.h (gl_fd_to_handle): New function.
12436
12437         * tests/test-sockets.c: Call gl_fd_to_handle.
12438
12439 2009-02-09  Bruno Haible  <bruno@clisp.org>
12440
12441         * doc/havelib.texi: Document the conventions on bi-arch systems.
12442
12443 2009-02-08  Bruno Haible  <bruno@clisp.org>
12444
12445         Document the AC_LIB_LINKFLAGS macro.
12446         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12447         * doc/gnulib.texi: Include it.
12448
12449 2009-02-08  Bruno Haible  <bruno@clisp.org>
12450
12451         Fix wrong order of sections, compared to TOC.
12452         * doc/gnulib.texi: Include relocatable-maint.texi after the
12453         "Regular expressions" node, not before.
12454
12455 2009-02-08  Bruno Haible  <bruno@clisp.org>
12456
12457         Tests for module 'unicase/totitle'.
12458         * modules/unicase/totitle-tests: New file.
12459
12460         Tests for module 'unicase/tolower'.
12461         * modules/unicase/tolower-tests: New file.
12462
12463         Tests for module 'unicase/toupper'.
12464         * modules/unicase/toupper-tests: New file.
12465         * tests/unicase/test-mapping-part1.h: New file.
12466         * tests/unicase/test-mapping-part2.h: New file.
12467
12468         New module 'unicase/totitle'.
12469         * modules/unicase/totitle: New file.
12470         * lib/unicase/totitle.c: New file.
12471
12472         New module 'unicase/tolower'.
12473         * modules/unicase/tolower: New file.
12474         * lib/unicase/tolower.c: New file.
12475
12476         New module 'unicase/toupper'.
12477         * modules/unicase/toupper: New file.
12478         * lib/unicase/toupper.c: New file.
12479         * lib/unicase/simple-mapping.h: New file.
12480
12481         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12482         (mapping_table): New structure.
12483         (output_simple_mapping): New function.
12484         (main): Invoke output_simple_mapping_test and output_simple_mapping.
12485         * modules/gen-uni-tables (Description): Update.
12486         * lib/unicase/toupper.h: New file, automatically generated by
12487         gen-uni-tables.
12488         * lib/unicase/tolower.h: New file, automatically generated by
12489         gen-uni-tables.
12490         * lib/unicase/totitle.h: New file, automatically generated by
12491         gen-uni-tables.
12492         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12493         gen-uni-tables.
12494         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12495         gen-uni-tables.
12496         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12497         gen-uni-tables.
12498
12499         New module 'unicase/base'.
12500         * modules/unicase/base: New file.
12501         * lib/unicase.h: New file.
12502
12503 2009-02-08  Bruno Haible  <bruno@clisp.org>
12504
12505         New module 'uniwbrk/ulc-wordbreaks'.
12506         * modules/uniwbrk/ulc-wordbreaks: New file.
12507         * lib/uniwbrk/ulc-wordbreaks.c: New file.
12508
12509         New module 'uniwbrk/u32-wordbreaks'.
12510         * modules/uniwbrk/u32-wordbreaks: New file.
12511         * lib/uniwbrk/u32-wordbreaks.c: New file.
12512
12513         New module 'uniwbrk/u16-wordbreaks'.
12514         * modules/uniwbrk/u16-wordbreaks: New file.
12515         * lib/uniwbrk/u16-wordbreaks.c: New file.
12516
12517         New module 'uniwbrk/u8-wordbreaks'.
12518         * modules/uniwbrk/u8-wordbreaks: New file.
12519         * lib/uniwbrk/u8-wordbreaks.c: New file.
12520         * lib/uniwbrk/u-wordbreaks.h: New file.
12521
12522         New module 'uniwbrk/table'.
12523         * modules/uniwbrk/table: New file.
12524         * lib/uniwbrk/wbrktable.h: New file.
12525         * lib/uniwbrk/wbrktable.c: New file.
12526
12527         New module 'uniwbrk/wordbreak-property'.
12528         * modules/uniwbrk/wordbreak-property: New file.
12529         * lib/uniwbrk/wordbreak-property.c: New file.
12530
12531         * lib/gen-uni-tables.c (WBP_*): New enum items.
12532         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12533         (unicode_org_wbp): New variable.
12534         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12535         New functions.
12536         (wbp_table): New structure.
12537         (output_wbp, output_wbrk_tables): New functions.
12538         (main): Accept additional argument. Invoke fill_org_wbp,
12539         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12540         output_wbrk_tables.
12541         * modules/gen-uni-tables (Description): Update.
12542         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12543         gen-uni-tables.
12544
12545         New module 'uniwbrk/base'.
12546         * modules/uniwbrk/base: New file.
12547         * lib/uniwbrk.h: New file.
12548
12549 2009-02-08  Bruno Haible  <bruno@clisp.org>
12550
12551         Update to Unicode 5.1.0.
12552         * lib/gen-uni-tables.c (is_property_alphabetic): Include
12553         U+2185..U+2188.
12554         (is_property_default_ignorable_code_point): Don't include characters
12555         of category Cc or Cs and not-a-characters.
12556         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12557         U+0D79, U+109E, U+109F, U+A60C.
12558         * lib/unictype/bidi_of.h: Regenerated.
12559         * lib/unictype/blocks.h: Regenerated.
12560         * lib/unictype/categ_C.h: Regenerated.
12561         * lib/unictype/categ_Cf.h: Regenerated.
12562         * lib/unictype/categ_Cn.h: Regenerated.
12563         * lib/unictype/categ_L.h: Regenerated.
12564         * lib/unictype/categ_Ll.h: Regenerated.
12565         * lib/unictype/categ_Lm.h: Regenerated.
12566         * lib/unictype/categ_Lo.h: Regenerated.
12567         * lib/unictype/categ_Lu.h: Regenerated.
12568         * lib/unictype/categ_M.h: Regenerated.
12569         * lib/unictype/categ_Mc.h: Regenerated.
12570         * lib/unictype/categ_Me.h: Regenerated.
12571         * lib/unictype/categ_Mn.h: Regenerated.
12572         * lib/unictype/categ_N.h: Regenerated.
12573         * lib/unictype/categ_Nd.h: Regenerated.
12574         * lib/unictype/categ_Nl.h: Regenerated.
12575         * lib/unictype/categ_No.h: Regenerated.
12576         * lib/unictype/categ_P.h: Regenerated.
12577         * lib/unictype/categ_Pd.h: Regenerated.
12578         * lib/unictype/categ_Pe.h: Regenerated.
12579         * lib/unictype/categ_Pf.h: Regenerated.
12580         * lib/unictype/categ_Pi.h: Regenerated.
12581         * lib/unictype/categ_Po.h: Regenerated.
12582         * lib/unictype/categ_Ps.h: Regenerated.
12583         * lib/unictype/categ_S.h: Regenerated.
12584         * lib/unictype/categ_Sk.h: Regenerated.
12585         * lib/unictype/categ_Sm.h: Regenerated.
12586         * lib/unictype/categ_So.h: Regenerated.
12587         * lib/unictype/categ_of.h: Regenerated.
12588         * lib/unictype/combining.h: Regenerated.
12589         * lib/unictype/ctype_alnum.h: Regenerated.
12590         * lib/unictype/ctype_alpha.h: Regenerated.
12591         * lib/unictype/ctype_graph.h: Regenerated.
12592         * lib/unictype/ctype_lower.h: Regenerated.
12593         * lib/unictype/ctype_print.h: Regenerated.
12594         * lib/unictype/ctype_punct.h: Regenerated.
12595         * lib/unictype/ctype_upper.h: Regenerated.
12596         * lib/unictype/decdigit.h: Regenerated.
12597         * lib/unictype/digit.h: Regenerated.
12598         * lib/unictype/mirror.h: Regenerated.
12599         * lib/unictype/numeric.h: Regenerated.
12600         * lib/unictype/pr_alphabetic.h: Regenerated.
12601         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12602         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12603         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12604         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12605         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12606         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12607         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12608         * lib/unictype/pr_combining.h: Regenerated.
12609         * lib/unictype/pr_dash.h: Regenerated.
12610         * lib/unictype/pr_decimal_digit.h: Regenerated.
12611         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12612         * lib/unictype/pr_deprecated.h: Regenerated.
12613         * lib/unictype/pr_diacritic.h: Regenerated.
12614         * lib/unictype/pr_extender.h: Regenerated.
12615         * lib/unictype/pr_format_control.h: Regenerated.
12616         * lib/unictype/pr_grapheme_base.h: Regenerated.
12617         * lib/unictype/pr_grapheme_extend.h: Regenerated.
12618         * lib/unictype/pr_grapheme_link.h: Regenerated.
12619         * lib/unictype/pr_id_continue.h: Regenerated.
12620         * lib/unictype/pr_id_start.h: Regenerated.
12621         * lib/unictype/pr_ideographic.h: Regenerated.
12622         * lib/unictype/pr_ignorable_control.h: Regenerated.
12623         * lib/unictype/pr_lowercase.h: Regenerated.
12624         * lib/unictype/pr_math.h: Regenerated.
12625         * lib/unictype/pr_numeric.h: Regenerated.
12626         * lib/unictype/pr_other_alphabetic.h: Regenerated.
12627         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12628         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12629         * lib/unictype/pr_other_id_continue.h: Regenerated.
12630         * lib/unictype/pr_other_lowercase.h: Regenerated.
12631         * lib/unictype/pr_other_math.h: Regenerated.
12632         * lib/unictype/pr_punctuation.h: Regenerated.
12633         * lib/unictype/pr_sentence_terminal.h: Regenerated.
12634         * lib/unictype/pr_soft_dotted.h: Regenerated.
12635         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12636         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12637         * lib/unictype/pr_unified_ideograph.h: Regenerated.
12638         * lib/unictype/pr_uppercase.h: Regenerated.
12639         * lib/unictype/pr_xid_continue.h: Regenerated.
12640         * lib/unictype/pr_xid_start.h: Regenerated.
12641         * lib/unictype/pr_zero_width.h: Regenerated.
12642         * lib/unictype/scripts.h: Regenerated.
12643         * lib/unictype/scripts_byname.gperf: Regenerated.
12644         * lib/unictype/sy_java_ident.h: Regenerated.
12645         * lib/unilbrk/lbrkprop1.h: Regenerated.
12646         * lib/unilbrk/lbrkprop2.h: Regenerated.
12647         * tests/unictype/test-categ_C.c: Regenerated.
12648         * tests/unictype/test-categ_Cf.c: Regenerated.
12649         * tests/unictype/test-categ_Cn.c: Regenerated.
12650         * tests/unictype/test-categ_L.c: Regenerated.
12651         * tests/unictype/test-categ_Ll.c: Regenerated.
12652         * tests/unictype/test-categ_Lm.c: Regenerated.
12653         * tests/unictype/test-categ_Lo.c: Regenerated.
12654         * tests/unictype/test-categ_Lu.c: Regenerated.
12655         * tests/unictype/test-categ_M.c: Regenerated.
12656         * tests/unictype/test-categ_Mc.c: Regenerated.
12657         * tests/unictype/test-categ_Me.c: Regenerated.
12658         * tests/unictype/test-categ_Mn.c: Regenerated.
12659         * tests/unictype/test-categ_N.c: Regenerated.
12660         * tests/unictype/test-categ_Nd.c: Regenerated.
12661         * tests/unictype/test-categ_Nl.c: Regenerated.
12662         * tests/unictype/test-categ_No.c: Regenerated.
12663         * tests/unictype/test-categ_P.c: Regenerated.
12664         * tests/unictype/test-categ_Pd.c: Regenerated.
12665         * tests/unictype/test-categ_Pe.c: Regenerated.
12666         * tests/unictype/test-categ_Pf.c: Regenerated.
12667         * tests/unictype/test-categ_Pi.c: Regenerated.
12668         * tests/unictype/test-categ_Po.c: Regenerated.
12669         * tests/unictype/test-categ_Ps.c: Regenerated.
12670         * tests/unictype/test-categ_S.c: Regenerated.
12671         * tests/unictype/test-categ_Sk.c: Regenerated.
12672         * tests/unictype/test-categ_Sm.c: Regenerated.
12673         * tests/unictype/test-categ_So.c: Regenerated.
12674         * tests/unictype/test-ctype_alnum.c: Regenerated.
12675         * tests/unictype/test-ctype_alpha.c: Regenerated.
12676         * tests/unictype/test-ctype_graph.c: Regenerated.
12677         * tests/unictype/test-ctype_lower.c: Regenerated.
12678         * tests/unictype/test-ctype_print.c: Regenerated.
12679         * tests/unictype/test-ctype_punct.c: Regenerated.
12680         * tests/unictype/test-ctype_upper.c: Regenerated.
12681         * tests/unictype/test-decdigit.h: Regenerated.
12682         * tests/unictype/test-digit.h: Regenerated.
12683         * tests/unictype/test-numeric.h: Regenerated.
12684         * tests/unictype/test-pr_alphabetic.c: Regenerated.
12685         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12686         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12687         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12688         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12689         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12690         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12691         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12692         * tests/unictype/test-pr_combining.c: Regenerated.
12693         * tests/unictype/test-pr_dash.c: Regenerated.
12694         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12695         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12696         * tests/unictype/test-pr_deprecated.c: Regenerated.
12697         * tests/unictype/test-pr_diacritic.c: Regenerated.
12698         * tests/unictype/test-pr_extender.c: Regenerated.
12699         * tests/unictype/test-pr_format_control.c: Regenerated.
12700         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12701         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12702         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12703         * tests/unictype/test-pr_id_continue.c: Regenerated.
12704         * tests/unictype/test-pr_id_start.c: Regenerated.
12705         * tests/unictype/test-pr_ideographic.c: Regenerated.
12706         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12707         * tests/unictype/test-pr_lowercase.c: Regenerated.
12708         * tests/unictype/test-pr_math.c: Regenerated.
12709         * tests/unictype/test-pr_numeric.c: Regenerated.
12710         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12711         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12712         Regenerated.
12713         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12714         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12715         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12716         * tests/unictype/test-pr_other_math.c: Regenerated.
12717         * tests/unictype/test-pr_punctuation.c: Regenerated.
12718         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12719         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12720         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
12721         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
12722         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
12723         * tests/unictype/test-pr_uppercase.c: Regenerated.
12724         * tests/unictype/test-pr_xid_continue.c: Regenerated.
12725         * tests/unictype/test-pr_xid_start.c: Regenerated.
12726         * tests/unictype/test-pr_zero_width.c: Regenerated.
12727
12728         Update to Unicode 5.1.0.
12729         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
12730         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
12731         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
12732         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
12733         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
12734         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
12735         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
12736         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
12737         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
12738         (nonspacing_table_ind): Update.
12739         * tests/uniwidth/test-uc_width2.sh: Update expected result.
12740
12741         Update to Unicode 5.1.0.
12742         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
12743         code transform.
12744         * lib/uniname/uniname.c (unicode_character_name,
12745         unicode_name_character): Add the range 0x1Fxxx to the code transform.
12746         * lib/uniname/uninames.h: Regenerated.
12747         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
12748
12749 2009-02-07  Bruno Haible  <bruno@clisp.org>
12750
12751         Merge gen-ctype and gen-lbrk into a single program.
12752         * lib/gen-uni-tables.c: New file, incorporating
12753         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
12754         Add directory prefixes to the names of the generated files.
12755         * lib/unictype/gen-ctype.c: Remove file.
12756         * lib/unilbrk/gen-lbrk.c: Remove file.
12757         * modules/gen-uni-tables: New file.
12758         * modules/unictype/gen-ctype: Remove file.
12759         * modules/unilbrk/gen-lbrk: Remove file.
12760
12761 2009-02-07  Bruno Haible  <bruno@clisp.org>
12762
12763         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
12764
12765         New module 'unistr/u32-strcoll'.
12766         * modules/unistr/u32-strcoll: New file.
12767         * lib/unistr/u32-strcoll.c: New file.
12768
12769         New module 'unistr/u16-strcoll'.
12770         * modules/unistr/u16-strcoll: New file.
12771         * lib/unistr/u16-strcoll.c: New file.
12772
12773         New module 'unistr/u8-strcoll'.
12774         * modules/unistr/u8-strcoll: New file.
12775         * lib/unistr/u8-strcoll.c: New file.
12776         * lib/unistr/u-strcoll.h: New file.
12777
12778 2009-02-07  Bruno Haible  <bruno@clisp.org>
12779
12780         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
12781         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12782         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12783         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
12784         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
12785         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
12786
12787 2009-02-07  Bruno Haible  <bruno@clisp.org>
12788
12789         Make 64-bit clean.
12790         * lib/unictype/gen-ctype.c (output_predicate, output_category,
12791         output_combclass, output_bidi_category, output_decimal_digit,
12792         output_digit, output_numeric, output_mirror, output_scripts,
12793         output_ident_category): Use proper width specifier in format strings.
12794
12795 2009-02-07  Bruno Haible  <bruno@clisp.org>
12796
12797         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
12798         failure behaviour.
12799
12800 2009-02-07  Jim Meyering  <meyering@redhat.com>
12801
12802         regex: avoid compilation failure with upcoming gcc-4.4
12803         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
12804         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
12805         "... error: integer overflow in preprocessor expression".
12806
12807 2009-02-05  Ben Pfaff  <blp@gnu.org>
12808
12809         Fix link errors on Windows when close module is used.
12810         * modules/close: Add $(LIB_CLOSE) to Link section.
12811         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
12812         $(LIB_CLOSE) on Windows.
12813
12814 2009-02-05  Jim Meyering  <meyering@redhat.com>
12815
12816         still avoid unused-parameter warnings, but do it cleanly
12817         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
12818         (get_fs_usage): Cast to void instead.
12819         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
12820         (dev_from_mount_options, read_file_system_list): Cast to void.
12821         Prompted by Bruno Haible.
12822
12823 2009-02-04  Jim Meyering  <meyering@redhat.com>
12824
12825         fsusage.c: correct copyright year
12826         * lib/fsusage.c: Reflect year in which the change is pushed into
12827
12828         avoid misc. warnings
12829         * lib/fsusage.c (UNUSED_PARAM): Define.
12830         (get_fs_usage): Mark parameter "disk" as unused.
12831         * lib/getugroups.c (getgrent): Use "void" in prototype.
12832         * lib/mountlist.c: Mark unused parameters.
12833         (read_file_system_list): Declare a local with "const".
12834         * lib/nanosleep.c (getnow): Declare static.
12835         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
12836
12837         dirfd: set errno upon failure
12838         * lib/dirfd.c: Include <errno.h>.
12839         Set errno to ENOTSUP when returning -1.
12840         * modules/dirfd (Depends-on): Add errno.
12841         Suggested by John Kodis <kodis@comcast.net>.
12842
12843 2009-02-01  Bruno Haible  <bruno@clisp.org>
12844
12845         Don't assume sizeof (long) >= sizeof (void *).
12846         * lib/memcmp.c: Include stdint.h.
12847         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
12848         srcp2 to 'const byte *'.
12849         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
12850         types to uintptr_t.
12851         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
12852         * modules/memcmp (Depends-on): Add stdint.
12853         Reported by Ozkan Sezer <sezeroz@gmail.com>.
12854
12855 2009-01-30  Eric Blake  <ebb9@byu.net>
12856
12857         fix more require-before-expand issues
12858         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
12859         expand, AC_PROG_AWK.
12860         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
12861
12862 2009-01-28  Eric Blake  <ebb9@byu.net>
12863
12864         version-etc: use consistent URL formatting
12865         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
12866         Improve formatting.  Use fputs for string without %.
12867
12868 2009-01-28  Jim Meyering  <meyering@redhat.com>
12869
12870         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
12871         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
12872         "underquoted definition of NAME" from autoconf-2.59.
12873
12874 2009-01-28  Bruno Haible  <bruno@clisp.org>
12875
12876         * doc/gnulib.texi: Add "Obsolete modules" to index.
12877
12878 2009-01-28  Jim Meyering  <meyering@redhat.com>
12879
12880         useless-if-before-free: recognize more variants
12881         * build-aux/useless-if-before-free: Also recognize e.g.,
12882         if (NULL != p) free (p);
12883
12884 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
12885
12886         test-getaddrinfo: skip (don't fail) this test when there's no network
12887         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
12888         on the presumption that it means you lack network access.
12889
12890 2009-01-26  Jim Meyering  <meyering@redhat.com>
12891
12892         fflush: avoid warnings on modern systems
12893         * lib/fflush.c (rpl_fflush): Move declarations of locals,
12894         pos and result, into scopes where they're used.
12895
12896 2009-01-26  Eric Blake  <ebb9@byu.net>
12897
12898         Silence warning reintroduced by recent extensions patch.
12899         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
12900         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
12901         autoconf.
12902
12903         Backport improved autoconf semantics of AC_DEFUN_ONCE.
12904         * m4/00gnulib.m4: New file.
12905         * gnulib-tool (func_get_filelist): Always use it.
12906         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
12907         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
12908
12909 2009-01-25  Bruno Haible  <bruno@clisp.org>
12910
12911         Make test-quotearg work on MacOS X and AIX.
12912         * tests/test-quotearg.sh: New file.
12913         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
12914         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
12915         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
12916         include <libintl.h>.
12917         (fake_locale): Remove variable.
12918         (gettext, dgettext, dcgettext): Remove functions.
12919         (main): Instead of setting a fake locale, set a real locale. Call
12920         textdomain and bindtextdomain.
12921         * modules/quotearg-tests (Files): Add the new files.
12922         (Depends-on): Add gettext, setenv, unsetenv.
12923         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
12924         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
12925         Augment TESTS_ENVIRONMENT.
12926
12927 2009-01-25  Bruno Haible  <bruno@clisp.org>
12928
12929         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
12930         fr_FR.ISO8859-1 locale on MacOS X.
12931         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
12932         ja_JP.eucJP locale on MacOS X.
12933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
12934         zh_CN.GB18030 locale on MacOS X.
12935
12936 2009-01-25  Bruno Haible  <bruno@clisp.org>
12937
12938         Avoid link errors on MacOS X 10.3.
12939         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
12940         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12941
12942 2009-01-25  Bruno Haible  <bruno@clisp.org>
12943
12944         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
12945         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
12946         * modules/pipe (Files): Remove m4/posix_spawn.m4.
12947         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
12948         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
12949         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
12950         posix_spawnattr_init, posix_spawnattr_setsigmask,
12951         posix_spawnattr_setflags, posix_spawnattr_destroy.
12952
12953         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
12954         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
12955         * modules/execute (Files): Remove m4/posix_spawn.m4.
12956         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
12957         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
12958         posix_spawnattr_init, posix_spawnattr_setsigmask,
12959         posix_spawnattr_setflags, posix_spawnattr_destroy.
12960
12961 2009-01-25  Bruno Haible  <bruno@clisp.org>
12962
12963         * lib/glthread/threadlib.c: Include <stdlib.h>.
12964
12965 2009-01-25  Bruno Haible  <bruno@clisp.org>
12966
12967         * lib/glthread/threadlib.c (dummy): New declaration.
12968
12969 2009-01-25  Bruno Haible  <bruno@clisp.org>
12970
12971         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
12972         multibyte characters also for the GB18030 encoding. Don't crash when
12973         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
12974
12975 2009-01-25  Bruno Haible  <bruno@clisp.org>
12976
12977         Avoid redefining 'struct random_data' on OSF/1 5.1.
12978         * lib/stdlib.in.h: Include <random.h> if it exists.
12979         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
12980         HAVE_RANDOM_H. Include <random.h> when testing whether
12981         'struct random_data' exists.
12982         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
12983
12984 2009-01-25  Bruno Haible  <bruno@clisp.org>
12985
12986         Don't install charset.alias on MacOS X >= 10.3.
12987         * lib/localcharset.c (DARWIN7): New macro.
12988         (get_charset_aliases): Hardcode the result for Darwin7.
12989         * modules/localcharset (install-exec-local): Don't install
12990         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
12991
12992 2009-01-25  Bruno Haible  <bruno@clisp.org>
12993
12994         Don't install charset.alias on mingw and Cygwin.
12995         * modules/localcharset (install-exec-local): Don't install
12996         charset.alias on mingw and Cygwin, if the file does not yet exist.
12997         The result for these platforms is hardcoded in localcharset.c.
12998
12999 2009-01-25  Bruno Haible  <bruno@clisp.org>
13000
13001         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13003         before requiring AC_USE_SYSTEM_EXTENSIONS.
13004
13005 2009-01-25  Jim Meyering  <meyering@redhat.com>
13006
13007         c-strtod: avoid warnings
13008         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13009         "assignment discards qualifiers from pointer target type" warnings.
13010
13011 2009-01-24  Bruno Haible  <bruno@clisp.org>
13012
13013         Add support for non-UTF-8 locales on MacOS X.
13014         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13015         canonical encodings. For Darwin 7 and newer, don't map traditional
13016         encodings to UTF-8.
13017         Reported by Vincent Lefevre <vincent@vinc17.org>
13018         at <http://savannah.gnu.org/bugs/?25235>.
13019
13020 2009-01-24  Bruno Haible  <bruno@clisp.org>
13021
13022         * doc/gnulib.texi (Obsolete modules): New section.
13023         Reported by Mike Frysinger <vapier@gentoo.org>.
13024
13025 2009-01-24  Bruno Haible  <bruno@clisp.org>
13026
13027         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13028         (%.dvi): New rule.
13029
13030 2009-01-24  Bruno Haible  <bruno@clisp.org>
13031
13032         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13033         Reported by Eric Blake.
13034
13035 2009-01-24  Bruno Haible  <bruno@clisp.org>
13036
13037         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13038         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13039         Reported by Gary V. Vaughan <gary@gnu.org>.
13040
13041 2009-01-24  Bruno Haible  <bruno@clisp.org>
13042
13043         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13044
13045 2009-01-23  Bruno Haible  <bruno@clisp.org>
13046
13047         Make c-strtod, c-strtold usable in libraries.
13048         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13049         (C_STRTOD): Call strdup instead of xstrdup.
13050         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13051         * modules/c-strtold (Depends-on): Likewise.
13052         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13053         * NEWS: Mention the change.
13054         Reported by Michael Gold <mgold@ncf.ca>.
13055
13056 2009-01-23  Jim Meyering  <meyering@redhat.com>
13057
13058         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13059         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13060         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13061
13062 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13063
13064         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13065         GNU CoreUtils.
13066         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13067         * modules/version-etc (Description): Update.
13068
13069 2009-01-22  Bruno Haible  <bruno@clisp.org>
13070
13071         Cache the C locale object.
13072         * lib/c-strtod.c (c_locale_cache): New variable.
13073         (c_locale): New function.
13074         (C_STRTOD): Use it, and don't call freelocale.
13075         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13076         Suggested by Paolo Bonzini.
13077
13078 2009-01-21  Bruno Haible  <bruno@clisp.org>
13079
13080         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13081         conditions other than overflow.
13082
13083 2009-01-21  Bruno Haible  <bruno@clisp.org>
13084
13085         * lib/c-strtod.c: Include errno.h.
13086         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13087         value from STRTOD_L and STRTOD.
13088
13089 2009-01-21  Bruno Haible  <bruno@clisp.org>
13090         and Jim Meyering  <meyering@redhat.com>
13091
13092         nanosleep: skip configure test (fail it) for apple universal builds
13093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13094         universal builds, assume that nanosleep does not work.
13095         * modules/nanosleep (Depends-on): Add multiarch.
13096
13097         mktime: skip configure test (fail it) for apple universal builds
13098         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13099         universal builds, assume that mktime does not work.
13100         * modules/mktime (Depends-on): Add multiarch.
13101
13102 2009-01-21  Eric Blake  <ebb9@byu.net>
13103
13104         multiarch: avoid expand-before-require warning
13105         * modules/multiarch (configure.ac): Require, rather than expand,
13106         gl_MULTIARCH.
13107         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13108         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13109         enforce that all clients require it.  Partial reversion of
13110         2008-12-29 patch.
13111
13112         error: avoid expand-before-require warning
13113         * modules/errno (configure.ac): Require, rather than expand,
13114         gl_HEADER_ERRNO_H.
13115         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13116         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13117         enforce that all clients require it.
13118
13119         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13120         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13121         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13122         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13123
13124 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13125
13126         Revert:
13127         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13128
13129         regex: do not depend on obsolete modules.
13130         * modules/regex: Remove memcmp and memmove.
13131
13132 2009-01-20  Bruno Haible  <bruno@clisp.org>
13133
13134         Make the 'link' module link on Windows NT 4.
13135         * lib/link.c (_WIN32_WINNT): Don't define.
13136         (CreateHardLinkFuncType): New type.
13137         (CreateHardLinkFunc, initialized): New variables.
13138         (initialize): New function.
13139         (link): Invoke CreateHardLink indirectly through the function pointer.
13140
13141 2009-01-20  Bruno Haible  <bruno@clisp.org>
13142
13143         Fix compilation failure on mingw.
13144         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13145
13146 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13147
13148         * doc/c-strtod.texi: Mention a couple of restrictions.
13149
13150 2009-01-20  Jim Meyering  <meyering@redhat.com>
13151
13152         gettimeofday: move more declarations out of functions
13153         * lib/gettimeofday.c: Move extern declarations of tzset and
13154         gmtime out of containing functions.  Prompted by Bruno Haible.
13155
13156 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13157
13158         regex: do not depend on obsolete modules.
13159         * modules/regex: Remove memcmp and memmove.
13160
13161 2009-01-19  Bruno Haible  <bruno@clisp.org>
13162
13163         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13164         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13165         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13166         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13167         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13168
13169 2009-01-19  Bruno Haible  <bruno@clisp.org>
13170
13171         * tests/test-link.c: Include <errno.h>.
13172         (main): Exit with code 77 when a hard link cannot be created due to
13173         the file system.
13174         * tests/test-link.sh: Skip test when a hard link cannot be created due
13175         to the file system.
13176         Suggested by Eric Blake.
13177
13178 2009-01-19  Martin Lambers  <marlam@marlam.de>
13179
13180         * modules/link-tests: New file.
13181         * tests/test-link.sh: New file.
13182         * tests/test-link.c: New file.
13183
13184 2009-01-19  Eric Blake  <ebb9@byu.net>
13185
13186         doc: mention another function added in cygwin 1.7.0
13187         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13188         Another new function in cygwin 1.7.
13189
13190 2009-01-19  Bruno Haible  <bruno@clisp.org>
13191
13192         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13193         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13194         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13195         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13196         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13197         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13198         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13199         * m4/md4.m4 (gl_MD4): Likewise.
13200         * m4/md5.m4 (gl_MD5): Likewise.
13201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13202         * m4/sha1.m4 (gl_SHA1): Likewise.
13203         * m4/sha256.m4 (gl_SHA256): Likewise.
13204         * m4/sha512.m4 (gl_SHA512): Likewise.
13205
13206 2009-01-19  Bruno Haible  <bruno@clisp.org>
13207
13208         * modules/uniname/uniname-tests (Depends-on): Add progname.
13209         * tests/uniname/test-uninames.c: Include progname.h.
13210         (main): Call set_program_name.
13211
13212         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13213         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13214         (main): Call set_program_name.
13215
13216         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13217         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13218         (main): Call set_program_name.
13219
13220         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13221         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13222         (main): Call set_program_name.
13223
13224         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13225         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13226         (main): Call set_program_name.
13227
13228         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13229         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13230         (main): Call set_program_name.
13231
13232         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13233         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13234         (main): Call set_program_name.
13235
13236         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13237         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13238         (main): Call set_program_name.
13239
13240         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13241         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13242         (main): Call set_program_name.
13243
13244 2009-01-19  Eric Blake  <ebb9@byu.net>
13245
13246         test-unistd: test previous patch
13247         * tests/test-unistd.c: Test *_FILENO macros.
13248
13249         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13250         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13251         Guarantee a definition.
13252         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13253         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13254         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13255         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13256         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13257         Likewise.
13258         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13259         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13260         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13261         Likewise.
13262         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13263         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13264         (STDERR_FILENO): Likewise.
13265         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13266         (STDERR_FILENO): Likewise.
13267         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13268         (STDERR_FILENO): Likewise.
13269         Reported by Elbert Pol.
13270
13271 2009-01-19  Eric Blake  <ebb9@byu.net>
13272
13273         doc: mention more functions added in cygwin 1.7.0
13274         * doc/posix-functions/abort.texi (abort): Update wording related
13275         to cygwin.
13276         * doc/posix-functions/daylight.texi (daylight): Likewise.
13277         * doc/posix-functions/optarg.texi (optarg): Likewise.
13278         * doc/posix-functions/optarg.texi (opterr): Likewise.
13279         * doc/posix-functions/optarg.texi (optind): Likewise.
13280         * doc/posix-functions/optarg.texi (optopt): Likewise.
13281         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13282         worked in 1.5.x, and was withdrawn in 1.7.
13283         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13284         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13285         cygwin versions.
13286         * doc/posix-functions/perror.texi (perror): Likewise.
13287         * doc/posix-functions/printf.texi (printf): Likewise.
13288         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13289         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13290         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13291         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13292         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13293         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13294         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13295         Likewise.
13296         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13297         Likewise.
13298         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13299         this function.
13300         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13301         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13302         Likewise.
13303         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13304         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13305         * doc/posix-functions/confstr.texi (confstr): Likewise.
13306         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13307         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13308         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13309         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13310         * doc/posix-functions/fputws.texi (fputws): Likewise.
13311         * doc/posix-functions/fwide.texi (fwide): Likewise.
13312         * doc/posix-functions/getwc.texi (getwc): Likewise.
13313         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13314         * doc/posix-functions/putwc.texi (putwc): Likewise.
13315         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13316         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13317         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13318         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13319         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13320         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13321         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13322         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13323         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13324         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13325         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13326
13327 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13328
13329         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13330         * lib/ioctl.c: Include <sys/ioctl.h>.
13331
13332 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13333
13334         * modules/getdate-tests (Depends-on): Add progname.
13335         * tests/test-getdate.c: Use progname module, to avoid link errors
13336         on non-glibc systems.
13337
13338 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13339
13340         * modules/filenamecat-tests (Depends-on): Add progname.
13341         * modules/fstrcmp-tests (Depends-on): Likewise.
13342
13343         * tests/test-filenamecat.c: Use progname module, to avoid link
13344         errors on non-glibc systems.
13345         * tests/test-fstrcmp.c: Likewise.
13346
13347 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13348
13349         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13350         * lib/gettimeofday.c: Move extern declaration out of function.
13351
13352 2009-01-18  Bruno Haible  <bruno@clisp.org>
13353
13354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13355         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13356         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13357
13358 2009-01-18  Bruno Haible  <bruno@clisp.org>
13359
13360         * lib/strftime.c (MEMPCPY): Remove unused macro.
13361         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13362
13363 2009-01-18  Martin Lambers  <marlam@marlam.de>
13364
13365         New module 'link'.
13366         * lib/unistd.in.h (link): New declaration.
13367         * lib/link.c: New file.
13368         * m4/link.m4: New file.
13369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13370         HAVE_LINK.
13371         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13372         * modules/link: New file.
13373         * doc/posix-functions/link.texi: Mention the new module.
13374
13375 2009-01-18  Bruno Haible  <bruno@clisp.org>
13376
13377         * tests/test-avltree_list.c (main): Call set_program_name.
13378         * tests/test-avltree_oset.c (main): Likewise.
13379         * tests/test-obstack-printf.c: Include progname.h.
13380         (main): Call set_program_name.
13381         * tests/test-quotearg.c: Include progname.h.
13382         (main): Call set_program_name.
13383         * tests/test-xmemdup0.c: Include progname.h.
13384         (main): Call set_program_name.
13385
13386 2009-01-18  Bruno Haible  <bruno@clisp.org>
13387
13388         New module 'alphasort'.
13389         * lib/dirent.in.h (alphasort): New declaration.
13390         * lib/alphasort.c: New file, from glibc with modifications.
13391         * m4/alphasort.m4: New file.
13392         * modules/alphasort: New file.
13393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13394         HAVE_ALPHASORT.
13395         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13396         HAVE_ALPHASORT.
13397         * doc/posix-functions/alphasort.texi: Mention the new module and the
13398         portability problems.
13399
13400 2009-01-18  Bruno Haible  <bruno@clisp.org>
13401
13402         New module 'scandir'.
13403         * lib/dirent.in.h (scandir): New declaration.
13404         * lib/scandir.c: New file, from glibc with modifications.
13405         * m4/scandir.m4: New file.
13406         * modules/scandir: New file.
13407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13408         HAVE_SCANDIR.
13409         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13410         HAVE_SCANDIR.
13411         * doc/posix-functions/scandir.texi: Mention the new module and the
13412         portability problems.
13413
13414 2009-01-17  Bruno Haible  <bruno@clisp.org>
13415
13416         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13417         Update documentation.
13418         (func_remove_suffix): Escape all dots in the suffix. Update
13419         documentation.
13420         (func_filter_filelist): Update documentation.
13421         Reported by Ralf Wildenhues.
13422
13423 2009-01-17  Bruno Haible  <bruno@clisp.org>
13424
13425         * modules/dprintf-posix-tests: New file.
13426         * tests/test-dprintf-posix.sh: New file.
13427         * tests/test-dprintf-posix.c: New file.
13428
13429         New modules 'dprintf', 'dprintf-posix'.
13430         * lib/stdio.in.h (dprintf): New declaration.
13431         * lib/dprintf.c: New file.
13432         * m4/dprintf.m4: New file.
13433         * m4/dprintf-posix.m4: New file.
13434         * modules/dprintf: New file.
13435         * modules/dprintf-posix: New file.
13436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13437         HAVE_DPRINTF, REPLACE_DPRINTF.
13438         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13439         HAVE_DPRINTF, REPLACE_DPRINTF.
13440         * doc/posix-functions/dprintf.texi: Mention the new modules.
13441
13442 2009-01-17  Bruno Haible  <bruno@clisp.org>
13443
13444         * modules/vdprintf-posix-tests: New file.
13445         * tests/test-vdprintf-posix.sh: New file.
13446         * tests/test-vdprintf-posix.c: New file.
13447
13448         New modules 'vdprintf', 'vdprintf-posix'.
13449         * lib/stdio.in.h (vdprintf): New declaration.
13450         * lib/vdprintf.c: New file.
13451         * m4/vdprintf.m4: New file.
13452         * m4/vdprintf-posix.m4: New file.
13453         * modules/vdprintf: New file.
13454         * modules/vdprintf-posix: New file.
13455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13456         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13457         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13458         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13459         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13460
13461 2009-01-17  Bruno Haible  <bruno@clisp.org>
13462
13463         Fix replacement of fopen on mingw.
13464         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13465         mingw.
13466
13467 2009-01-17  Bruno Haible  <bruno@clisp.org>
13468
13469         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13470         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13471
13472 2009-01-17  Bruno Haible  <bruno@clisp.org>
13473
13474         Avoid test-fflush2.sh failure on mingw.
13475         * tests/test-fflush2.c: Include binary-io.h.
13476         (main): Put standard input into binary mode.
13477         * modules/fflush-tests (Depends-on): Add binary-io.
13478
13479 2009-01-17  Bruno Haible  <bruno@clisp.org>
13480
13481         * lib/wchar.in.h: In another particular situation, include only the
13482         system's <wchar.h> file.
13483         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13484         Reported by Albert Chin-A-Young <china@thewrittenword.com>
13485         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13486
13487 2009-01-17  Bruno Haible  <bruno@clisp.org>
13488
13489         Support for stripping executables in --enable-relocatable.
13490         * build-aux/install-reloc: Expect one more argument, or an environment
13491         variable RELOC_STRIP_PROG. If set, strip the destination program and
13492         its wrapper.
13493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13494         RELOC_STRIP_PROG.
13495         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13496         to set RELOCATABLE_STRIP.
13497         * NEWS: Mention the new Makefile requirement.
13498
13499 2009-01-17  Bruno Haible  <bruno@clisp.org>
13500
13501         * build-aux/install-reloc: Remove debugging information left over by
13502         C compiler on MacOS X.
13503
13504 2009-01-17  Bruno Haible  <bruno@clisp.org>
13505
13506         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13507         * lib/progreloc.c (find_executable): Fix type of pointer passed to
13508         _NSGetExecutablePath.
13509
13510 2009-01-16  Jim Meyering  <meyering@redhat.com>
13511
13512         strerror: avoid warnings about discarding "const"
13513         * lib/strerror.c (rpl_strerror): Instead of returning a const
13514         string from each and every "case", use a variable, and add a single
13515         cast after the switch.
13516
13517 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
13518
13519         * lib/arpa_inet.in.h: Add extern "C" block for C++.
13520
13521 2009-01-16  Bruno Haible  <bruno@clisp.org>
13522
13523         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13524         array initializer syntax that also works in C++ mode.
13525         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13526
13527 2009-01-16  Jim Meyering  <meyering@redhat.com>
13528
13529         poll: suppress a warning
13530         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13531         to ignore "...unsigned expression < 0 is always false" warnings.
13532
13533 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
13534
13535         poll: remove declarations of unused variables
13536         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13537         sockbuf and optlen.
13538
13539 2009-01-15  Bruno Haible  <bruno@clisp.org>
13540
13541         Make fflush-after-ungetc POSIX compliant on BSD systems.
13542         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13543         (clear_ungetc_buffer): Implement also for other systems.
13544         (rpl_fflush): On glibc systems, invoke
13545         clear_ungetc_buffer_preserving_position. Otherwise, invoke
13546         clear_ungetc_buffer after fetching the stream's position, not before.
13547
13548 2009-01-15  Bruno Haible  <bruno@clisp.org>
13549
13550         Make fflush-after-ungetc POSIX compliant on glibc systems.
13551         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13552         after ungetc.
13553         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13554         (rpl_fflush): On glibc systems, simply call the system's fflush
13555         function after clearing the ungetc buffer.
13556         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13557         Instead, lseek only to the end of file, then use the system's fseeko
13558         for the rest. On glibc systems, reset the EOF indicator bit.
13559
13560 2009-01-15  Jim Meyering  <meyering@redhat.com>
13561
13562         openmp.m4: revert quote-adding change, for portability to older autoconf
13563         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13564         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13565         Simon Josefsson noticed the problem when using autoconf-2.61.
13566
13567 2009-01-15  Bruno Haible  <bruno@clisp.org>
13568
13569         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13570         * tests/test-fflush2.c (ASSERT): Always fail.
13571         (main): Add two tests for fflush() after ungetc(), taking into account
13572         the Austin Group's clarification.
13573         Suggested by Eric Blake.
13574
13575 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
13576
13577         mktime.m4: remove K&R-style function prototypes
13578         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13579         for the Sun C++ compiler.
13580
13581 2009-01-14  Bruno Haible  <bruno@clisp.org>
13582
13583         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13584         while including <wchar.h>.
13585         * lib/wchar.in.h: In two particular situations on HP-UX, include only
13586         the system's <wchar.h> file.
13587         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13588
13589 2009-01-14  Bruno Haible  <bruno@clisp.org>
13590
13591         * m4/csharp.m4: Don't mention gettext on the serial number line.
13592         * m4/csharpexec.m4: Likewise.
13593         * m4/eaccess.m4: Likewise.
13594         * m4/javaexec.m4: Likewise.
13595         * m4/sig_atomic_t.m4: Likewise.
13596         * m4/tmpdir.m4: Likewise.
13597         * m4/intldir.m4: Bump gettext version.
13598         * m4/lib-ld.m4: Likewise.
13599
13600 2009-01-14  Bruno Haible  <bruno@clisp.org>
13601
13602         * lib/progname.c (set_program_name): Add more comments.
13603         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13604
13605 2009-01-14  Simon Josefsson  <simon@josefsson.org>
13606
13607         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13608         were sys/stat.h does not define it.
13609
13610 2009-01-14  Jim Meyering  <meyering@redhat.com>
13611
13612         many *.m4 files: improve m4 quoting
13613         99% of this change was performed by running the following commands:
13614         git ls-files | grep '\.m4$' | xargs perl -pi \
13615           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13616           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13617           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13618           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13619         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13620         The remainder were to add Copyright dates, increment serial numbers,
13621         undo some changes in comments, exclude m4/intl.m4, and add quotes
13622         around the "1" in ",1" where the unusual spacing prohibited the
13623         above regexps from doing the job.  For more details, see
13624         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13625         * m4/acl.m4: Modified.
13626         * m4/afs.m4: Likewise.
13627         * m4/alloca.m4: Likewise.
13628         * m4/argp.m4: Likewise.
13629         * m4/argz.m4: Likewise.
13630         * m4/atexit.m4: Likewise.
13631         * m4/bison-i18n.m4: Likewise.
13632         * m4/bison.m4: Likewise.
13633         * m4/byteswap.m4: Likewise.
13634         * m4/c-stack.m4: Likewise.
13635         * m4/c-strtod.m4: Likewise.
13636         * m4/calloc.m4: Likewise.
13637         * m4/canonicalize-lgpl.m4: Likewise.
13638         * m4/chown.m4: Likewise.
13639         * m4/clock_time.m4: Likewise.
13640         * m4/codeset.m4: Likewise.
13641         * m4/copy-file.m4: Likewise.
13642         * m4/csharp.m4: Likewise.
13643         * m4/csharpcomp.m4: Likewise.
13644         * m4/csharpexec.m4: Likewise.
13645         * m4/d-ino.m4: Likewise.
13646         * m4/d-type.m4: Likewise.
13647         * m4/dirfd.m4: Likewise.
13648         * m4/double-slash-root.m4: Likewise.
13649         * m4/eaccess.m4: Likewise.
13650         * m4/eealloc.m4: Likewise.
13651         * m4/environ.m4: Likewise.
13652         * m4/errno_h.m4: Likewise.
13653         * m4/euidaccess.m4: Likewise.
13654         * m4/execute.m4: Likewise.
13655         * m4/fatal-signal.m4: Likewise.
13656         * m4/fchdir.m4: Likewise.
13657         * m4/fcntl_h.m4: Likewise.
13658         * m4/fileblocks.m4: Likewise.
13659         * m4/filenamecat.m4: Likewise.
13660         * m4/findprog.m4: Likewise.
13661         * m4/flexmember.m4: Likewise.
13662         * m4/fnmatch.m4: Likewise.
13663         * m4/fopen.m4: Likewise.
13664         * m4/fpending.m4: Likewise.
13665         * m4/fprintf-posix.m4: Likewise.
13666         * m4/free.m4: Likewise.
13667         * m4/frexp.m4: Likewise.
13668         * m4/frexpl.m4: Likewise.
13669         * m4/fsusage.m4: Likewise.
13670         * m4/ftruncate.m4: Likewise.
13671         * m4/gc-camellia.m4: Likewise.
13672         * m4/gc-random.m4: Likewise.
13673         * m4/gc.m4: Likewise.
13674         * m4/getaddrinfo.m4: Likewise.
13675         * m4/getcwd-abort-bug.m4: Likewise.
13676         * m4/getcwd-path-max.m4: Likewise.
13677         * m4/getdate.m4: Likewise.
13678         * m4/getdomainname.m4: Likewise.
13679         * m4/getgroups.m4: Likewise.
13680         * m4/gethostname.m4: Likewise.
13681         * m4/gethrxtime.m4: Likewise.
13682         * m4/getline.m4: Likewise.
13683         * m4/getloadavg.m4: Likewise.
13684         * m4/getndelim2.m4: Likewise.
13685         * m4/getpass.m4: Likewise.
13686         * m4/gettext.m4: Likewise.
13687         * m4/gettime.m4: Likewise.
13688         * m4/gettimeofday.m4: Likewise.
13689         * m4/gnulib-common.m4: Likewise.
13690         * m4/group-member.m4: Likewise.
13691         * m4/host-os.m4: Likewise.
13692         * m4/iconv.m4: Likewise.
13693         * m4/iconv_open.m4: Likewise.
13694         * m4/inet_ntop.m4: Likewise.
13695         * m4/inet_pton.m4: Likewise.
13696         * m4/inline.m4: Likewise.
13697         * m4/intldir.m4: Likewise.
13698         * m4/intlmacosx.m4: Likewise.
13699         * m4/intmax.m4: Likewise.
13700         * m4/intmax_t.m4: Likewise.
13701         * m4/inttypes.m4: Likewise.
13702         * m4/inttypes_h.m4: Likewise.
13703         * m4/inttypes-pri.m4: Likewise.
13704         * m4/isapipe.m4: Likewise.
13705         * m4/isnand.m4: Likewise.
13706         * m4/isnanf.m4: Likewise.
13707         * m4/isnanl.m4: Likewise.
13708         * m4/javacomp.m4: Likewise.
13709         * m4/javaexec.m4: Likewise.
13710         * m4/jm-winsz1.m4: Likewise.
13711         * m4/jm-winsz2.m4: Likewise.
13712         * m4/lchown.m4: Likewise.
13713         * m4/lcmessage.m4: Likewise.
13714         * m4/ldexpl.m4: Likewise.
13715         * m4/lib-ld.m4: Likewise.
13716         * m4/lib-link.m4: Likewise.
13717         * m4/libsigsegv.m4: Likewise.
13718         * m4/link-follow.m4: Likewise.
13719         * m4/localcharset.m4: Likewise.
13720         * m4/locale-fr.m4: Likewise.
13721         * m4/locale-ja.m4: Likewise.
13722         * m4/locale-tr.m4: Likewise.
13723         * m4/locale-zh.m4: Likewise.
13724         * m4/lock.m4: Likewise.
13725         * m4/longlong.m4: Likewise.
13726         * m4/ls-mntd-fs.m4: Likewise.
13727         * m4/lstat.m4: Likewise.
13728         * m4/malloc.m4: Likewise.
13729         * m4/mathl.m4: Likewise.
13730         * m4/mbrtowc.m4: Likewise.
13731         * m4/mbstate_t.m4: Likewise.
13732         * m4/mbswidth.m4: Likewise.
13733         * m4/memchr.m4: Likewise.
13734         * m4/memcmp.m4: Likewise.
13735         * m4/memcpy.m4: Likewise.
13736         * m4/memmem.m4: Likewise.
13737         * m4/memmove.m4: Likewise.
13738         * m4/mempcpy.m4: Likewise.
13739         * m4/memrchr.m4: Likewise.
13740         * m4/memset.m4: Likewise.
13741         * m4/minmax.m4: Likewise.
13742         * m4/mkdir-slash.m4: Likewise.
13743         * m4/mkdtemp.m4: Likewise.
13744         * m4/mktime.m4: Likewise.
13745         * m4/mmap-anon.m4: Likewise.
13746         * m4/mountlist.m4: Likewise.
13747         * m4/nanosleep.m4: Likewise.
13748         * m4/nls.m4: Likewise.
13749         * m4/nocrash.m4: Likewise.
13750         * m4/open.m4: Likewise.
13751         * m4/openat.m4: Likewise.
13752         * m4/openmp.m4: Likewise.
13753         * m4/pathmax.m4: Likewise.
13754         * m4/perl.m4: Likewise.
13755         * m4/physmem.m4: Likewise.
13756         * m4/pipe.m4: Likewise.
13757         * m4/po.m4: Likewise.
13758         * m4/poll.m4: Likewise.
13759         * m4/posixtm.m4: Likewise.
13760         * m4/posixver.m4: Likewise.
13761         * m4/printf-frexp.m4: Likewise.
13762         * m4/printf-frexpl.m4: Likewise.
13763         * m4/printf-posix.m4: Likewise.
13764         * m4/printf-posix-rpl.m4: Likewise.
13765         * m4/printf.m4: Likewise.
13766         * m4/progtest.m4: Likewise.
13767         * m4/putenv.m4: Likewise.
13768         * m4/readline.m4: Likewise.
13769         * m4/readlink.m4: Likewise.
13770         * m4/readutmp.m4: Likewise.
13771         * m4/realloc.m4: Likewise.
13772         * m4/regex.m4: Likewise.
13773         * m4/relocatable.m4: Likewise.
13774         * m4/relocatable-lib.m4: Likewise.
13775         * m4/rename-dest-slash.m4: Likewise.
13776         * m4/rename.m4: Likewise.
13777         * m4/rmdir-errno.m4: Likewise.
13778         * m4/rmdir.m4: Likewise.
13779         * m4/roundf.m4: Likewise.
13780         * m4/roundl.m4: Likewise.
13781         * m4/rpmatch.m4: Likewise.
13782         * m4/save-cwd.m4: Likewise.
13783         * m4/selinux-selinux-h.m4: Likewise.
13784         * m4/setenv.m4: Likewise.
13785         * m4/settime.m4: Likewise.
13786         * m4/sig2str.m4: Likewise.
13787         * m4/sig_atomic_t.m4: Likewise.
13788         * m4/signalblocking.m4: Likewise.
13789         * m4/signbit.m4: Likewise.
13790         * m4/sigpipe.m4: Likewise.
13791         * m4/sockets.m4: Likewise.
13792         * m4/sockpfaf.m4: Likewise.
13793         * m4/st_dm_mode.m4: Likewise.
13794         * m4/stat-time.m4: Likewise.
13795         * m4/stdbool.m4: Likewise.
13796         * m4/stdint.m4: Likewise.
13797         * m4/stdint_h.m4: Likewise.
13798         * m4/stpcpy.m4: Likewise.
13799         * m4/stpncpy.m4: Likewise.
13800         * m4/strcase.m4: Likewise.
13801         * m4/strchrnul.m4: Likewise.
13802         * m4/strcspn.m4: Likewise.
13803         * m4/strdup.m4: Likewise.
13804         * m4/strftime.m4: Likewise.
13805         * m4/strndup.m4: Likewise.
13806         * m4/strnlen.m4: Likewise.
13807         * m4/strpbrk.m4: Likewise.
13808         * m4/strptime.m4: Likewise.
13809         * m4/strsep.m4: Likewise.
13810         * m4/strtod.m4: Likewise.
13811         * m4/strtoimax.m4: Likewise.
13812         * m4/strtok_r.m4: Likewise.
13813         * m4/strtol.m4: Likewise.
13814         * m4/strtoll.m4: Likewise.
13815         * m4/strtoul.m4: Likewise.
13816         * m4/strtoull.m4: Likewise.
13817         * m4/strtoumax.m4: Likewise.
13818         * m4/strverscmp.m4: Likewise.
13819         * m4/threadlib.m4: Likewise.
13820         * m4/timegm.m4: Likewise.
13821         * m4/tm_gmtoff.m4: Likewise.
13822         * m4/tmpdir.m4: Likewise.
13823         * m4/tmpfile.m4: Likewise.
13824         * m4/tzset.m4: Likewise.
13825         * m4/uintmax_t.m4: Likewise.
13826         * m4/unlinkdir.m4: Likewise.
13827         * m4/unlocked-io.m4: Likewise.
13828         * m4/uptime.m4: Likewise.
13829         * m4/userspec.m4: Likewise.
13830         * m4/utimbuf.m4: Likewise.
13831         * m4/utime.m4: Likewise.
13832         * m4/utimes-null.m4: Likewise.
13833         * m4/utimes.m4: Likewise.
13834         * m4/vararrays.m4: Likewise.
13835         * m4/vasnprintf.m4: Likewise.
13836         * m4/vfprintf-posix.m4: Likewise.
13837         * m4/vprintf-posix.m4: Likewise.
13838         * m4/wait-process.m4: Likewise.
13839         * m4/wchar_t.m4: Likewise.
13840         * m4/wint_t.m4: Likewise.
13841         * m4/write-any-file.m4: Likewise.
13842         * m4/yield.m4: Likewise.
13843
13844 2009-01-13  Bruno Haible  <bruno@clisp.org>
13845
13846         Avoid test-copy-file.sh failures when ACL support insufficient.
13847         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
13848         TESTS_ENVIRONMENT.
13849         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
13850         Reported by Jim Meyering.
13851
13852 2009-01-13  Bruno Haible  <bruno@clisp.org>
13853
13854         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
13855         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
13856         * modules/unistdio/u8-printf-parse (Files): Likewise.
13857         * modules/unistdio/u32-printf-parse (Files): Likewise.
13858         * modules/unistdio/ulc-printf-parse (Files): Likewise.
13859
13860 2009-01-13  Simon Josefsson  <simon@josefsson.org>
13861
13862         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
13863         and m4/inttypes_h.m4 too.
13864
13865 2009-01-12  Eric Blake  <ebb9@byu.net>
13866
13867         tests: IRIX 6.2 cc can't compile -0.0 into .data
13868         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
13869         rather than at compile-time.
13870         * tests/test-floorl.c (minus_zero): Likewise.
13871         * tests/test-frexpl.c (minus_zero): Likewise.
13872         * tests/test-isnan.c (minus_zerol): Likewise.
13873         * tests/test-isnanl.h (minus_zero): Likewise.
13874         * tests/test-ldexpl.c (minus_zero): Likewise.
13875         * tests/test-roundl.c (minus_zero): Likewise.
13876         * tests/test-signbit.c (minus_zerol): Likewise.
13877         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
13878         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
13879         * tests/test-truncl.c (minus_zero): Likewise.
13880         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
13881         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
13882         Reported by Tom G. Christensen and Nelson H. F. Beebe.
13883
13884 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13885
13886         regex: fix glibc bug 9697
13887         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
13888         handling.
13889
13890 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13891
13892         regex: fix glibc bug 697
13893         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
13894         being NULL also if there are no backreferences.
13895
13896 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13897
13898         regex: merge glibc changes
13899         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
13900         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
13901         re_string_skip_chars, re_string_reconstruct): Likewise.
13902         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
13903
13904 2009-01-07  Jim Meyering  <meyering@redhat.com>
13905
13906         poll: filter through cppi
13907         * lib/poll.c: Indent cpp directives to reflect nesting.
13908
13909 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
13910
13911         poll: don't return uninitialized
13912         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
13913
13914 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
13915
13916         avoid compile failure on AIX 6.1
13917         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
13918         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
13919
13920 2009-01-04  Jim Meyering  <meyering@redhat.com>
13921
13922         remove duplicate inclusion of <stdio.h>
13923         * tests/test-fprintf-posix.c: Likewise.
13924         * tests/test-printf-posix.c: Likewise.
13925         * tests/test-snprintf-posix.c: Likewise.
13926         * tests/test-sprintf-posix.c: Likewise.
13927         * tests/test-vasprintf-posix.c: Likewise.
13928         * tests/test-vfprintf-posix.c: Likewise.
13929         * tests/test-vprintf-posix.c: Likewise.
13930         * tests/test-vsnprintf-posix.c: Likewise.
13931         * tests/test-vsprintf-posix.c: Likewise.
13932
13933 2009-01-03  Jim Meyering  <meyering@redhat.com>
13934
13935         gnulib-tool: fix sed-based filtering
13936         * gnulib-tool (func_filter_filelist): Remove extra backslash
13937         in sed_fff_filter definition.
13938
13939 2009-01-02  Jim Meyering  <meyering@redhat.com>
13940
13941         strftime: avoid compilation failure on Solaris 2.6
13942         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
13943         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
13944         Don't #define mbrlen or mbsinit, since now they're guaranteed to
13945         be available.  Reported by Tom G. Christensen.  Details in
13946         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
13947
13948 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13949             Bruno Haible  <bruno@clisp.org>
13950
13951         Speed up gnulib-tool by doing more string processing through shell
13952         built-ins.
13953         * gnulib-tool (fast_func_append): New variable.
13954         (func_remove_prefix, func_remove_suffix): New functions.
13955         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
13956         (func_filter_filelist): New function.
13957         (func_get_dependencies): Use func_remove_suffix instead of sed.
13958         (func_get_automake_snippet): Use func_filter_filelist instead of a
13959         subshell and sed invocation.
13960
13961 2009-01-01  Bruno Haible  <bruno@clisp.org>
13962
13963         Fix a security bug.
13964         * gnulib-tool (func_import, import, update): Don't allow the characters
13965         '"', '$', '`', '\' in macro arguments that become part of commands that
13966         are evaluated.
13967
13968 2009-01-01  Bruno Haible  <bruno@clisp.org>
13969
13970         * gnulib-tool (func_reset_sigpipe): Add more comments.
13971
13972 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13973
13974         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
13975         func_emit_tests_Makefile_am, func_import): Abort loops early if we
13976         already know the answer.
13977
13978 2009-01-01  Jim Meyering  <meyering@redhat.com>
13979
13980         * lib/version-etc.c (version_etc_va): Update copyright year.
13981
13982 2008-12-30  Bruno Haible  <bruno@clisp.org>
13983
13984         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
13985         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
13986         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
13987
13988 2008-12-29  Eric Blake  <ebb9@byu.net>
13989
13990         multiarch: avoid autoconf AC_REQUIRE bug
13991         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
13992         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
13993         2.63 and older.
13994         Reported by Bruno Haible, and analyzed in
13995         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
13996
13997 2008-12-29  Bruno Haible  <bruno@clisp.org>
13998
13999         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14000         files in subdirectories correctly.
14001         Reported by Ralf Wildenhues.
14002
14003 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14004
14005         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14006         rather than 'join FILE -', for Solaris join.
14007
14008 2008-12-29  Bruno Haible  <bruno@clisp.org>
14009
14010         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14011         quoting.
14012         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14013         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14014         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14015         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14016         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14017         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14018         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14019         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14020         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14021         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14022         * m4/nls.m4 (AM_NLS): Likewise.
14023         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14024         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14025         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14026         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14027         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14028         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14029         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14030         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14031         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14032         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14033         * m4/xsize.m4 (gl_XSIZE): Likewise.
14034         Suggested by Jim Meyering.
14035
14036 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14037
14038         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14039         * lib/parse-duration.c: use a switch instead of cascading if's.
14040
14041 2008-12-29  Eric Blake  <ebb9@byu.net>
14042
14043         wchar.h: supply WEOF on Irix 5.3
14044         * lib/wchar.in.h (wint_t): Also supply WEOF.
14045         * lib/wctype.in.h (wint_t): Likewise.
14046         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14047         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14048         Reported by Tom G. Christensen.
14049
14050 2008-12-26  Bruno Haible  <bruno@clisp.org>
14051
14052         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14053         i486, i586, i686.
14054
14055 2008-12-26  Bruno Haible  <bruno@clisp.org>
14056
14057         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14058
14059 2008-12-26  Bruno Haible  <bruno@clisp.org>
14060
14061         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14062         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14063         not __STDC_CONSTANT_MACROS.
14064         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14065
14066 2008-12-25  Bruno Haible  <bruno@clisp.org>
14067
14068         Add support for universal builds to vasnprintf.
14069         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14070         universal builds, guess no.
14071         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14072         * modules/vasprintf-posix (Depends-on): Likewise.
14073         * modules/fprintf-posix (Depends-on): Likewise.
14074         * modules/vfprintf-posix (Depends-on): Likewise.
14075         * modules/snprintf-posix (Depends-on): Likewise.
14076         * modules/vsnprintf-posix (Depends-on): Likewise.
14077         * modules/sprintf-posix (Depends-on): Likewise.
14078         * modules/vsprintf-posix (Depends-on): Likewise.
14079         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14080         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14081         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14082         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14083         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14084         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14085         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14086
14087         Add support for universal builds to <inttypes.h>.
14088         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14089         _SCNu64_PREFIX): In Apple
14090         universal builds, define directly, using _LP64.
14091         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14092         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14093         * modules/inttypes (Depends-on): Add multiarch.
14094         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14095
14096         Add support for universal builds to <stdint.h>.
14097         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14098         universal builds, define directly, using _LP64.
14099         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14100         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14101         and size_t.
14102         * modules/stdint (Depends-on): Add multiarch.
14103         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14104
14105         New module 'multiarch'.
14106         * modules/multiarch: New file.
14107         * m4/multiarch.m4: New file.
14108
14109 2008-12-25  Bruno Haible  <bruno@clisp.org>
14110
14111         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14112
14113 2008-12-25  Bruno Haible  <bruno@clisp.org>
14114
14115         * modules/btowc (License): Relicense under LGPLv2+.
14116         * modules/mbsinit (License): Likewise.
14117         * modules/mbrtowc (License): Likewise.
14118         * modules/wcrtomb (License): Likewise.
14119         * modules/streq (License): Likewise.
14120         Reported by David Lutterkort <lutter@redhat.com>.
14121
14122 2008-12-23  Bruno Haible  <bruno@clisp.org>
14123
14124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14125
14126 2008-12-23  Bruno Haible  <bruno@clisp.org>
14127
14128         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14130         GETADDRINFO_LIB, not in LIBS.
14131         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14132         * modules/canon-host (Link): Likewise.
14133         * NEWS: Mention the change.
14134         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14135         GETADDRINFO_LIB.
14136
14137 2008-12-22  Bruno Haible  <bruno@clisp.org>
14138
14139         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14140         * doc/posix-functions/iswalpha_l.texi: Likewise.
14141         * doc/posix-functions/iswblank_l.texi: Likewise.
14142         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14143         * doc/posix-functions/iswctype_l.texi: Likewise.
14144         * doc/posix-functions/iswdigit_l.texi: Likewise.
14145         * doc/posix-functions/iswgraph_l.texi: Likewise.
14146         * doc/posix-functions/iswlower_l.texi: Likewise.
14147         * doc/posix-functions/iswprint_l.texi: Likewise.
14148         * doc/posix-functions/iswpunct_l.texi: Likewise.
14149         * doc/posix-functions/iswspace_l.texi: Likewise.
14150         * doc/posix-functions/iswupper_l.texi: Likewise.
14151         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14152         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14153         * doc/posix-functions/open_wmemstream.texi: Likewise.
14154         * doc/posix-functions/swscanf.texi: Likewise.
14155         * doc/posix-functions/towctrans_l.texi: Likewise.
14156         * doc/posix-functions/towlower.texi: Likewise.
14157         * doc/posix-functions/towlower_l.texi: Likewise.
14158         * doc/posix-functions/towupper.texi: Likewise.
14159         * doc/posix-functions/towupper_l.texi: Likewise.
14160         * doc/posix-functions/vfwprintf.texi: Likewise.
14161         * doc/posix-functions/vfwscanf.texi: Likewise.
14162         * doc/posix-functions/vswscanf.texi: Likewise.
14163         * doc/posix-functions/vwprintf.texi: Likewise.
14164         * doc/posix-functions/vwscanf.texi: Likewise.
14165         * doc/posix-functions/wcpcpy.texi: Likewise.
14166         * doc/posix-functions/wcpncpy.texi: Likewise.
14167         * doc/posix-functions/wcscasecmp.texi: Likewise.
14168         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14169         * doc/posix-functions/wcscoll_l.texi: Likewise.
14170         * doc/posix-functions/wcsdup.texi: Likewise.
14171         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14172         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14173         * doc/posix-functions/wcsnlen.texi: Likewise.
14174         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14175         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14176         * doc/posix-functions/wctrans_l.texi: Likewise.
14177         * doc/posix-functions/wctype_l.texi: Likewise.
14178         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14179         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14180         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14181         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14182         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14183         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14184         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14185         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14186         * doc/glibc-functions/wcschrnul.texi: Likewise.
14187         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14188         * doc/glibc-functions/wcstod_l.texi: Likewise.
14189         * doc/glibc-functions/wcstof_l.texi: Likewise.
14190         * doc/glibc-functions/wcstol_l.texi: Likewise.
14191         * doc/glibc-functions/wcstold_l.texi: Likewise.
14192         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14193         * doc/glibc-functions/wcstoq.texi: Likewise.
14194         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14195         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14196         * doc/glibc-functions/wcstouq.texi: Likewise.
14197         * doc/glibc-functions/wmempcpy.texi: Likewise.
14198
14199 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14200             Eric Blake  <ebb9@byu.net>
14201             Paolo Bonzini  <bonzini@gnu.org>
14202             Bruno Haible  <bruno@clisp.org>
14203
14204         Make c-stack work on Haiku.
14205         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14206         (c_stack_action): Use SA_ONSTACK flag.
14207
14208 2008-12-22  Bruno Haible  <bruno@clisp.org>
14209
14210         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14211
14212 2008-12-22  Bruno Haible  <bruno@clisp.org>
14213
14214         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14215         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14216         being overridden.
14217         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14218         New macros.
14219         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14221         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14222         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14223
14224 2008-12-22  Bruno Haible  <bruno@clisp.org>
14225
14226         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14227         from test code.
14228
14229 2008-12-22  Eric Blake  <ebb9@byu.net>
14230
14231         Avoid gcc warnings on cygwin.
14232         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14233         Avoid unused variable.
14234         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14235         Likewise.
14236
14237 2008-12-22  Bruno Haible  <bruno@clisp.org>
14238
14239         Remove HAVE_MBRTOWC conditionals.
14240         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14241         (mbscasecmp): Assume mbrtowc function.
14242         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14243         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14244         * lib/mbschr.c: Include mbuiter.h unconditionally.
14245         (mbschr): Assume mbrtowc function.
14246         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14247         (mbscspn): Assume mbrtowc function.
14248         * lib/mbslen.c: Include mbuiter.h unconditionally.
14249         (mbslen): Assume mbrtowc function.
14250         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14251         (mbsncasecmp): Assume mbrtowc function.
14252         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14253         (mbsnlen): Assume mbrtowc function.
14254         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14255         (mbspbrk): Assume mbrtowc function.
14256         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14257         (mbspcasecmp): Assume mbrtowc function.
14258         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14259         (mbsrchr): Assume mbrtowc function.
14260         * lib/mbssep.c: Include mbuiter.h unconditionally.
14261         (mbssep): Assume mbrtowc function.
14262         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14263         (mbsspn): Assume mbrtowc function.
14264         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14265         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14266         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14267         (mbstok_r): Assume mbrtowc function.
14268         * lib/propername.c: Include mbuiter.h unconditionally.
14269         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14270         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14271         (trim2): Assume mbrtowc function.
14272         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14273         (mbsnwidth): Assume mbrtowc function.
14274         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14275         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14276         fallback definitions.
14277         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14278
14279 2008-12-22  Bruno Haible  <bruno@clisp.org>
14280
14281         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14282
14283 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14284
14285         * modules/regex: Request emulations for the mb*/wc* functions we need.
14286         * m4/regex.m4: Don't look for those functions here.
14287         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14288
14289 2008-12-22  Bruno Haible  <bruno@clisp.org>
14290
14291         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14292
14293 2008-12-21  Bruno Haible  <bruno@clisp.org>
14294
14295         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14296         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14297         (Include): Remove conditionalization.
14298         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14299         (Include): Remove conditionalization.
14300         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14301         (Include): Remove conditionalization.
14302         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14303         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14304         * NEWS: Mention the change.
14305         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14306         via Sergey Poznyakoff <gray@gnu.org.ua>.
14307
14308 2008-12-21  Bruno Haible  <bruno@clisp.org>
14309
14310         * MODULES.html.sh (Extended multibyte and wide character utilities
14311         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14312         wcrtomb, wcsrtombs.
14313         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14314         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14315         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14316         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14317
14318 2008-12-21  Bruno Haible  <bruno@clisp.org>
14319
14320         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14321
14322 2008-12-21  Bruno Haible  <bruno@clisp.org>
14323
14324         * modules/wcsnrtombs-tests: New file.
14325         * tests/test-wcsnrtombs1.sh: New file.
14326         * tests/test-wcsnrtombs2.sh: New file.
14327         * tests/test-wcsnrtombs3.sh: New file.
14328         * tests/test-wcsnrtombs4.sh: New file.
14329         * tests/test-wcsnrtombs.c: New file.
14330
14331         New module 'wcsnrtombs'.
14332         * lib/wchar.in.h (wcsnrtombs): New declaration.
14333         * lib/wcsnrtombs.c: New file.
14334         * lib/wcsrtombs-state.c: New file.
14335         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14336         (internal_state): Remove variable.
14337         * m4/wcsnrtombs.m4: New file.
14338         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14339         compilation units.
14340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14341         HAVE_WCSNRTOMBS.
14342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14343         HAVE_WCSNRTOMBS.
14344         * modules/wcsnrtombs: New file.
14345         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14346         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14347
14348 2008-12-21  Bruno Haible  <bruno@clisp.org>
14349
14350         * modules/wcsrtombs-tests: New file.
14351         * tests/test-wcsrtombs1.sh: New file.
14352         * tests/test-wcsrtombs2.sh: New file.
14353         * tests/test-wcsrtombs3.sh: New file.
14354         * tests/test-wcsrtombs4.sh: New file.
14355         * tests/test-wcsrtombs.c: New file.
14356
14357         New module 'wcsrtombs'.
14358         * lib/wchar.in.h (wcsrtombs): New declaration.
14359         * lib/wcsrtombs.c: New file.
14360         * m4/wcsrtombs.m4: New file.
14361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14362         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14364         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14365         * modules/wcsrtombs: New file.
14366         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14367         bugs.
14368
14369 2008-12-21  Bruno Haible  <bruno@clisp.org>
14370
14371         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14372         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14373         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14374         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14375         if not correct.
14376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14377         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14378         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14379         m4/locale-zh.m4, m4/codeset.m4.
14380         * doc/posix-functions/wcrtomb.texi: Document the bug.
14381
14382 2008-12-21  Bruno Haible  <bruno@clisp.org>
14383
14384         Work around a btowc() bug on IRIX 6.5.
14385         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14386         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14387         REPLACE_WTOBC if not.
14388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14389         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14390         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14391
14392 2008-12-21  Bruno Haible  <bruno@clisp.org>
14393
14394         * modules/wcrtomb-tests: New file.
14395         * tests/test-wcrtomb.sh: New file.
14396         * tests/test-wcrtomb.c: New file.
14397
14398         New module 'wcrtomb'.
14399         * lib/wchar.in.h (wcrtomb): New declaration.
14400         * lib/wcrtomb.c: New file.
14401         * m4/wcrtomb.m4: New file.
14402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14403         HAVE_WCRTOMB.
14404         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14405         HAVE_WCRTOMB.
14406         * modules/wcrtomb: New file.
14407         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14408
14409 2008-12-21  Bruno Haible  <bruno@clisp.org>
14410
14411         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14412         * modules/mbsrtowcs (Files): Likewise.
14413         * modules/wctob (Files): Likewise.
14414         * modules/c-strcase-tests (Files): Likewise.
14415         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14416         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14417         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14418         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14419         * modules/vasnprintf-posix-tests (Files): Likewise.
14420
14421 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14422
14423         gitlog-to-changelog: pass all command-line arguments to git-log
14424         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14425         it is sometimes convenient to filter the commits in various ways.
14426         gitlog-to-changelog only allows --since to specify a start date,
14427         but git-log itself supports many other filtering mechanisms.
14428         At the moment, I want to filter by branch name.  Rather than
14429         adding a --branch option to gitlog-to-changelog, it seems more
14430         flexible to simply pass all options directly to git-log and let
14431         git do the work.  Notice that this effectively makes --since a
14432         redundant option for gitlog-to-changelog, but removing it would
14433         require current usage to change since calls would then require
14434         an additional '--'.
14435
14436 2008-12-21  Bruno Haible  <bruno@clisp.org>
14437
14438         * modules/mbsnrtowcs-tests: New file.
14439         * tests/test-mbsnrtowcs1.sh: New file.
14440         * tests/test-mbsnrtowcs2.sh: New file.
14441         * tests/test-mbsnrtowcs3.sh: New file.
14442         * tests/test-mbsnrtowcs4.sh: New file.
14443         * tests/test-mbsnrtowcs.c: New file.
14444
14445         New module 'mbsnrtowcs'.
14446         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14447         * lib/mbsnrtowcs.c: New file.
14448         * lib/mbsrtowcs-state.c: New file.
14449         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14450         (internal_state): Remove variable.
14451         * m4/mbsnrtowcs.m4: New file.
14452         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14453         compilation units.
14454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14455         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14456         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14457         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14458         * modules/mbsnrtowcs: New file.
14459         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14460         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14461         portability problem.
14462
14463 2008-12-21  Bruno Haible  <bruno@clisp.org>
14464
14465         Work around mbsrtowcs bug.
14466         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14467         (gl_FUNC_MBSRTOWCS): Invoke it.
14468         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14469         m4/locale-zh.m4.
14470         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14471
14472 2008-12-21  Bruno Haible  <bruno@clisp.org>
14473
14474         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14475
14476 2008-12-21  Bruno Haible  <bruno@clisp.org>
14477
14478         Update doc for AIX.
14479         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14480         16-bit wchar_t type.
14481         * doc/posix-functions/btowc.texi: Likewise.
14482         * doc/posix-functions/fgetwc.texi: Likewise.
14483         * doc/posix-functions/fgetws.texi: Likewise.
14484         * doc/posix-functions/fputwc.texi: Likewise.
14485         * doc/posix-functions/fputws.texi: Likewise.
14486         * doc/posix-functions/fwide.texi: Likewise.
14487         * doc/posix-functions/fwprintf.texi: Likewise.
14488         * doc/posix-functions/fwscanf.texi: Likewise.
14489         * doc/posix-functions/getwchar.texi: Likewise.
14490         * doc/posix-functions/getwc.texi: Likewise.
14491         * doc/posix-functions/iswalnum.texi: Likewise.
14492         * doc/posix-functions/iswalpha.texi: Likewise.
14493         * doc/posix-functions/iswblank.texi: Likewise.
14494         * doc/posix-functions/iswcntrl.texi: Likewise.
14495         * doc/posix-functions/iswctype.texi: Likewise.
14496         * doc/posix-functions/iswdigit.texi: Likewise.
14497         * doc/posix-functions/iswgraph.texi: Likewise.
14498         * doc/posix-functions/iswlower.texi: Likewise.
14499         * doc/posix-functions/iswprint.texi: Likewise.
14500         * doc/posix-functions/iswpunct.texi: Likewise.
14501         * doc/posix-functions/iswspace.texi: Likewise.
14502         * doc/posix-functions/iswupper.texi: Likewise.
14503         * doc/posix-functions/iswxdigit.texi: Likewise.
14504         * doc/posix-functions/mbrtowc.texi: Likewise.
14505         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14506         * doc/posix-functions/mbstowcs.texi: Likewise.
14507         * doc/posix-functions/mbtowc.texi: Likewise.
14508         * doc/posix-functions/putwchar.texi: Likewise.
14509         * doc/posix-functions/putwc.texi: Likewise.
14510         * doc/posix-functions/swprintf.texi: Likewise.
14511         * doc/posix-functions/tolower.texi: Likewise.
14512         * doc/posix-functions/toupper.texi: Likewise.
14513         * doc/posix-functions/towctrans.texi: Likewise.
14514         * doc/posix-functions/ungetwc.texi: Likewise.
14515         * doc/posix-functions/vswprintf.texi: Likewise.
14516         * doc/posix-functions/wcrtomb.texi: Likewise.
14517         * doc/posix-functions/wcscat.texi: Likewise.
14518         * doc/posix-functions/wcschr.texi: Likewise.
14519         * doc/posix-functions/wcscmp.texi: Likewise.
14520         * doc/posix-functions/wcscoll.texi: Likewise.
14521         * doc/posix-functions/wcscpy.texi: Likewise.
14522         * doc/posix-functions/wcscspn.texi: Likewise.
14523         * doc/posix-functions/wcsftime.texi: Likewise.
14524         * doc/posix-functions/wcslen.texi: Likewise.
14525         * doc/posix-functions/wcsncat.texi: Likewise.
14526         * doc/posix-functions/wcsncmp.texi: Likewise.
14527         * doc/posix-functions/wcsncpy.texi: Likewise.
14528         * doc/posix-functions/wcspbrk.texi: Likewise.
14529         * doc/posix-functions/wcsrchr.texi: Likewise.
14530         * doc/posix-functions/wcsrtombs.texi: Likewise.
14531         * doc/posix-functions/wcsspn.texi: Likewise.
14532         * doc/posix-functions/wcsstr.texi: Likewise.
14533         * doc/posix-functions/wcstod.texi: Likewise.
14534         * doc/posix-functions/wcstof.texi: Likewise.
14535         * doc/posix-functions/wcstoimax.texi: Likewise.
14536         * doc/posix-functions/wcstok.texi: Likewise.
14537         * doc/posix-functions/wcstold.texi: Likewise.
14538         * doc/posix-functions/wcstoll.texi: Likewise.
14539         * doc/posix-functions/wcstol.texi: Likewise.
14540         * doc/posix-functions/wcstombs.texi: Likewise.
14541         * doc/posix-functions/wcstoull.texi: Likewise.
14542         * doc/posix-functions/wcstoul.texi: Likewise.
14543         * doc/posix-functions/wcstoumax.texi: Likewise.
14544         * doc/posix-functions/wcswidth.texi: Likewise.
14545         * doc/posix-functions/wcsxfrm.texi: Likewise.
14546         * doc/posix-functions/wctob.texi: Likewise.
14547         * doc/posix-functions/wctomb.texi: Likewise.
14548         * doc/posix-functions/wctrans.texi: Likewise.
14549         * doc/posix-functions/wctype.texi: Likewise.
14550         * doc/posix-functions/wcwidth.texi: Likewise.
14551         * doc/posix-functions/wmemchr.texi: Likewise.
14552         * doc/posix-functions/wmemcmp.texi: Likewise.
14553         * doc/posix-functions/wmemcpy.texi: Likewise.
14554         * doc/posix-functions/wmemmove.texi: Likewise.
14555         * doc/posix-functions/wmemset.texi: Likewise.
14556         * doc/posix-functions/wprintf.texi: Likewise.
14557         * doc/posix-functions/wscanf.texi: Likewise.
14558
14559 2008-12-21  Bruno Haible  <bruno@clisp.org>
14560
14561         Update doc for HP-UX 11.11.
14562         * doc/posix-functions/btowc.texi: Clarify that the function is missing
14563         in HP-UX version 11.00, not in all versions of HP-UX 11.
14564         * doc/posix-functions/fwide.texi: Likewise.
14565         * doc/posix-functions/fwprintf.texi: Likewise.
14566         * doc/posix-functions/fwscanf.texi: Likewise.
14567         * doc/posix-functions/inet_ntop.texi: Likewise.
14568         * doc/posix-functions/inet_pton.texi: Likewise.
14569         * doc/posix-functions/mbrlen.texi: Likewise.
14570         * doc/posix-functions/mbrtowc.texi: Likewise.
14571         * doc/posix-functions/mbsinit.texi: Likewise.
14572         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14573         * doc/posix-functions/swprintf.texi: Likewise.
14574         * doc/posix-functions/swscanf.texi: Likewise.
14575         * doc/posix-functions/towctrans.texi: Likewise.
14576         * doc/posix-functions/vfwprintf.texi: Likewise.
14577         * doc/posix-functions/vswprintf.texi: Likewise.
14578         * doc/posix-functions/vwprintf.texi: Likewise.
14579         * doc/posix-functions/wcrtomb.texi: Likewise.
14580         * doc/posix-functions/wcsrtombs.texi: Likewise.
14581         * doc/posix-functions/wcsstr.texi: Likewise.
14582         * doc/posix-functions/wctob.texi: Likewise.
14583         * doc/posix-functions/wctrans.texi: Likewise.
14584         * doc/posix-functions/wmemchr.texi: Likewise.
14585         * doc/posix-functions/wmemcmp.texi: Likewise.
14586         * doc/posix-functions/wmemcpy.texi: Likewise.
14587         * doc/posix-functions/wmemmove.texi: Likewise.
14588         * doc/posix-functions/wmemset.texi: Likewise.
14589         * doc/posix-functions/wprintf.texi: Likewise.
14590         * doc/posix-functions/wscanf.texi: Likewise.
14591
14592 2008-12-21  Bruno Haible  <bruno@clisp.org>
14593
14594         Work around a portability problem.
14595         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14596         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14597
14598 2008-12-20  Bruno Haible  <bruno@clisp.org>
14599
14600         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14601         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14602         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14604         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14605
14606         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14607         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14608         set.
14609         (GNULIB_defined_mbstate_t): New macro.
14610         (mbsinit): Redefine if REPLACE_MBSINIT is set.
14611         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14612         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14613         reuses the system's mbrtowc function but works around the bugs.
14614         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14615         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14616         macros.
14617         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14618         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14619         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14620         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14621         REPLACE_MBSINIT if mbsinit needs to be overridden.
14622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14623         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14624         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14625         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14626         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14627         m4/locale-zh.m4.
14628         (Depends): Add mbsinit.
14629         * modules/mbsinit (Depends): Add mbrtowc.
14630         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14631
14632 2008-12-20  Bruno Haible  <bruno@clisp.org>
14633
14634         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14635         so that there are no conversion errors on AIX.
14636         * tests/test-mbsrtowcs.c (main): LIkewise.
14637
14638 2008-12-20  Bruno Haible  <bruno@clisp.org>
14639
14640         Work around wctob bug on Solaris <= 9.
14641         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14642         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14643         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14644         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14645         * modules/wctob (Files): Add m4/locale-fr.m4.
14646         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14647
14648 2008-12-20  Bruno Haible  <bruno@clisp.org>
14649
14650         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14651         /dev/null.
14652         * tests/test-select-in.sh: Likewise.
14653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14654
14655 2008-12-20  Bruno Haible  <bruno@clisp.org>
14656
14657         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14658         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14659         Cygwin 1.5.x.
14660
14661 2008-12-20  Bruno Haible  <bruno@clisp.org>
14662
14663         Ensure mbstate_t is defined on HP-UX 11.11.
14664         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14665         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14666         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14667         AC_USE_SYSTEM_EXTENSIONS.
14668         * modules/fnmatch (Depends-on): Add extensions.
14669         * modules/mbrlen (Depends-on): Likewise.
14670         * modules/mbrtowc (Depends-on): Likewise.
14671         * modules/mbsinit (Depends-on): Likewise.
14672         * modules/mbsrtowcs (Depends-on): Likewise.
14673         * modules/mbswidth (Depends-on): Likewise.
14674         * modules/quotearg (Depends-on): Likewise.
14675         * modules/strftime (Depends-on): Likewise.
14676
14677 2008-12-20  Bruno Haible  <bruno@clisp.org>
14678
14679         Ensure wctob is declared on IRIX 6.5.
14680         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14681         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14682         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14684         of HAVE_WCTOB.
14685         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14686         HAVE_WCTOB.
14687         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14688
14689 2008-12-19  Bruno Haible  <bruno@clisp.org>
14690
14691         * modules/mbsrtowcs-tests: New file.
14692         * tests/test-mbsrtowcs1.sh: New file.
14693         * tests/test-mbsrtowcs2.sh: New file.
14694         * tests/test-mbsrtowcs3.sh: New file.
14695         * tests/test-mbsrtowcs4.sh: New file.
14696         * tests/test-mbsrtowcs.c: New file.
14697
14698         New module 'mbsrtowcs'.
14699         * lib/wchar.in.h (mbsrtowcs): New declaration.
14700         * lib/mbsrtowcs.c: New file.
14701         * m4/mbsrtowcs.m4: New file.
14702         * modules/mbsrtowcs: New file.
14703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14704         HAVE_MBSRTOWCS.
14705         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14706         HAVE_MBSRTOWCS.
14707         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14708
14709 2008-12-19  Bruno Haible  <bruno@clisp.org>
14710
14711         New module 'mbrlen'.
14712         * lib/wchar.in.h (mbrlen): New declaration.
14713         * lib/mbrlen.c: New file.
14714         * m4/mbrlen.m4: New file.
14715         * modules/mbrlen: New file.
14716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14717         HAVE_MBRLEN.
14718         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14719         HAVE_MBRLEN.
14720         * doc/posix-functions/mbrlen.texi: Document the new module.
14721
14722 2008-12-19  Bruno Haible  <bruno@clisp.org>
14723
14724         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
14725         * modules/mbrtowc (Depends-on): Add verify.
14726         Suggested by Paul Eggert.
14727
14728 2008-12-18  Bruno Haible  <bruno@clisp.org>
14729
14730         * modules/mbsinit-tests: New file.
14731         * tests/test-mbsinit.sh: New file.
14732         * tests/test-mbsinit.c: New file.
14733
14734 2008-12-18  Bruno Haible  <bruno@clisp.org>
14735
14736         * modules/mbrtowc-tests: New file.
14737         * tests/test-mbrtowc1.sh: New file.
14738         * tests/test-mbrtowc2.sh: New file.
14739         * tests/test-mbrtowc3.sh: New file.
14740         * tests/test-mbrtowc4.sh: New file.
14741         * tests/test-mbrtowc.c: New file.
14742
14743         New module 'mbrtowc'.
14744         * lib/wchar.in.h (mbstate_t): Override when the system does not have
14745         mbsinit and mbrtowc.
14746         (mbrtowc): New declaration.
14747         * lib/mbrtowc.c: New file.
14748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
14749         * modules/mbrtowc: New file.
14750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
14751         HAVE_MBRTOWC.
14752         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
14753         HAVE_MBRTOWC.
14754         * doc/posix-functions/mbrtowc.texi: Document the new module.
14755
14756 2008-12-18  Bruno Haible  <bruno@clisp.org>
14757
14758         New module 'wctob'.
14759         * lib/wchar.in.h (wctob): New declaration.
14760         * lib/wctob.c: New file.
14761         * m4/wctob.m4: New file.
14762         * modules/wctob: New file.
14763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
14764         HAVE_WCTOB.
14765         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
14766         * doc/posix-functions/wctob.texi: Document the new module.
14767
14768 2008-12-18  Bruno Haible  <bruno@clisp.org>
14769
14770         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
14771         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
14772
14773 2008-12-18  Simon Josefsson  <simon@josefsson.org>
14774
14775         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
14776         G. Christensen" <tgc@jupiterrise.com>.
14777
14778         * lib/flock.c: Need to include errno.h.  Reported by "Tom
14779         G. Christensen" <tgc@jupiterrise.com>.
14780
14781         * lib/flock.c: Need to include string.h.  Reported by "Tom
14782         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
14783         <ebb9@byu.net>.
14784
14785 2008-12-18  Bruno Haible  <bruno@clisp.org>
14786
14787         * m4/locale-ja.m4: New file, from GNU gettext.
14788
14789 2008-12-17  Bruno Haible  <bruno@clisp.org>
14790
14791         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
14792         Suggested by Eric Blake.
14793
14794 2008-12-17  Bruno Haible  <bruno@clisp.org>
14795
14796         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
14797
14798 2008-12-17  Bruno Haible  <bruno@clisp.org>
14799
14800         * lib/mbsinit.c: Include verify.h. Verify an assumption.
14801         * modules/mbsinit (Depends-on): Add verify.
14802         Suggested by Paul Eggert.
14803
14804 2008-12-17  Bruno Haible  <bruno@clisp.org>
14805
14806         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
14807         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
14808         gl_FUNC_MBRTOWC.
14809         * m4/mbiter.m4 (gl_MBITER): LIkewise.
14810         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
14811         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
14812         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
14813         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
14814         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
14815         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
14816         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
14817         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
14818         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
14819         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
14820         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
14821         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
14822         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
14823         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
14824         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14825         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
14826         * modules/trim (configure.ac): Likewise.
14827
14828 2008-12-17  Bruno Haible  <bruno@clisp.org>
14829
14830         * modules/btowc-tests: New file.
14831         * tests/test-btowc1.sh: New file.
14832         * tests/test-btowc2.sh: New file.
14833         * tests/test-btowc.c: New file.
14834
14835         New module 'btowc'.
14836         * lib/wchar.in.h (btowc): New declaration.
14837         * lib/btowc.c: New file.
14838         * m4/btowc.m4: New file.
14839         * modules/btowc: New file.
14840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
14841         HAVE_BTOWC.
14842         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
14843         * doc/posix-functions/btowc.texi: Document the new module.
14844
14845 2008-12-17  Bruno Haible  <bruno@clisp.org>
14846
14847         New module 'mbsinit'.
14848         * lib/wchar.in.h (mbsinit): New declaration.
14849         * lib/mbsinit.c: New file.
14850         * m4/mbsinit.m4: New file.
14851         * modules/mbsinit: New file.
14852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
14853         HAVE_MBSINIT.
14854         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
14855         HAVE_MBSINIT.
14856         * doc/posix-functions/mbsinit.texi: Document the new module.
14857
14858 2008-12-16  Bruno Haible  <bruno@clisp.org>
14859
14860         * lib/unistd.in.h: Add comment.
14861         * tests/test-environ.c: Don't include <stdlib.h>.
14862
14863 2008-12-16  Bruno Haible  <bruno@clisp.org>
14864
14865         * lib/parse-duration.h (parse_duration): Document return value
14866         convention.
14867         * lib/parse-duration.c: Include specification header first. Add
14868         comments.
14869         (_): Remove macro.
14870         (parse_year_month_day, parse_hour_minute_second): Move side effects
14871         outside of strchr call.
14872         (parse_non_iso8601): Move side effects outside of isspace call.
14873         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
14874         call.
14875
14876 2008-12-16  Bruno Haible  <bruno@clisp.org>
14877
14878         * tests/test-parse-duration.sh: Produce no output when the test
14879         succeeds.
14880
14881 2008-12-16  Bruno Haible  <bruno@clisp.org>
14882
14883         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
14884         expressions.
14885
14886 2008-12-15  Bruno Haible  <bruno@clisp.org>
14887
14888         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
14889         * doc/glibc-functions/flistxattr.texi: Likewise.
14890         * doc/glibc-functions/fopencookie.texi: Likewise.
14891         * doc/glibc-functions/fremovexattr.texi: Likewise.
14892         * doc/glibc-functions/fsetxattr.texi: Likewise.
14893         * doc/glibc-functions/getxattr.texi: Likewise.
14894         * doc/glibc-functions/lgetxattr.texi: Likewise.
14895         * doc/glibc-functions/listxattr.texi: Likewise.
14896         * doc/glibc-functions/llistxattr.texi: Likewise.
14897         * doc/glibc-functions/lremovexattr.texi: Likewise.
14898         * doc/glibc-functions/lsetxattr.texi: Likewise.
14899         * doc/glibc-functions/removexattr.texi: Likewise.
14900         * doc/glibc-functions/setxattr.texi: Likewise.
14901         * doc/posix-functions/open_memstream.texi: Likewise.
14902
14903 2008-12-15  Eric Blake  <ebb9@byu.net>
14904
14905         Update doc for cygwin 1.7.
14906         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
14907         functions.
14908         * doc/posix-functions/fchmodat.texi: Likewise.
14909         * doc/posix-functions/fchownat.texi: Likewise.
14910         * doc/posix-functions/fdopendir.texi: Likewise.
14911         * doc/posix-functions/fmemopen.texi: Likewise.
14912         * doc/posix-functions/freeaddrinfo.texi: Likewise.
14913         * doc/posix-functions/fstatat.texi: Likewise.
14914         * doc/posix-functions/futimens.texi: Likewise.
14915         * doc/posix-functions/gai_strerror.texi: Likewise.
14916         * doc/posix-functions/getaddrinfo.texi: Likewise.
14917         * doc/posix-functions/getnameinfo.texi: Likewise.
14918         * doc/posix-functions/if_freenameindex.texi: Likewise.
14919         * doc/posix-functions/if_indextoname.texi: Likewise.
14920         * doc/posix-functions/if_nameindex.texi: Likewise.
14921         * doc/posix-functions/if_nametoindex.texi: Likewise.
14922         * doc/posix-functions/insque.texi: Likewise.
14923         * doc/posix-functions/linkat.texi: Likewise.
14924         * doc/posix-functions/llrint.texi: Likewise.
14925         * doc/posix-functions/llrintf.texi: Likewise.
14926         * doc/posix-functions/llrintl.texi: Likewise.
14927         * doc/posix-functions/lockf.texi: Likewise.
14928         * doc/posix-functions/lrintl.texi: Likewise.
14929         * doc/posix-functions/mkdirat.texi: Likewise.
14930         * doc/posix-functions/mkfifoat.texi: Likewise.
14931         * doc/posix-functions/mknodat.texi: Likewise.
14932         * doc/posix-functions/mq_close.texi: Likewise.
14933         * doc/posix-functions/mq_getattr.texi: Likewise.
14934         * doc/posix-functions/mq_notify.texi: Likewise.
14935         * doc/posix-functions/mq_open.texi: Likewise.
14936         * doc/posix-functions/mq_receive.texi: Likewise.
14937         * doc/posix-functions/mq_send.texi: Likewise.
14938         * doc/posix-functions/mq_setattr.texi: Likewise.
14939         * doc/posix-functions/mq_timedreceive.texi: Likewise.
14940         * doc/posix-functions/mq_timedsend.texi: Likewise.
14941         * doc/posix-functions/mq_unlink.texi: Likewise.
14942         * doc/posix-functions/open_memstream.texi: Likewise.
14943         * doc/posix-functions/openat.texi: Likewise.
14944         * doc/posix-functions/posix_fadvise.texi: Likewise.
14945         * doc/posix-functions/posix_fallocate.texi: Likewise.
14946         * doc/posix-functions/posix_madvise.texi: Likewise.
14947         * doc/posix-functions/posix_memalign.texi: Likewise.
14948         * doc/posix-functions/posix_openpt.texi: Likewise.
14949         * doc/posix-functions/readlinkat.texi: Likewise.
14950         * doc/posix-functions/remque.texi: Likewise.
14951         * doc/posix-functions/renameat.texi: Likewise.
14952         * doc/posix-functions/rintl.texi: Likewise.
14953         * doc/posix-functions/sem_unlink.texi: Likewise.
14954         * doc/posix-functions/shm_open.texi: Likewise.
14955         * doc/posix-functions/shm_unlink.texi: Likewise.
14956         * doc/posix-functions/signgam.texi: Likewise.
14957         * doc/posix-functions/sigset.texi: Likewise.
14958         * doc/posix-functions/stpcpy.texi: Likewise.
14959         * doc/posix-functions/stpncpy.texi: Likewise.
14960         * doc/posix-functions/strerror.texi: Likewise.
14961         * doc/posix-functions/strtod.texi: Likewise.
14962         * doc/posix-functions/symlinkat.texi: Likewise.
14963         * doc/posix-functions/unlinkat.texi: Likewise.
14964         * doc/posix-functions/utimensat.texi: Likewise.
14965         * doc/glibc-functions/bindresvport.texi: Likewise.
14966         * doc/glibc-functions/dn_expand.texi: Likewise.
14967         * doc/glibc-functions/exp10.texi: Likewise.
14968         * doc/glibc-functions/exp10f.texi: Likewise.
14969         * doc/glibc-functions/fgetxattr.texi: Likewise.
14970         * doc/glibc-functions/flistxattr.texi: Likewise.
14971         * doc/glibc-functions/fopencookie.texi: Likewise.
14972         * doc/glibc-functions/freeifaddrs.texi: Likewise.
14973         * doc/glibc-functions/fremovexattr.texi: Likewise.
14974         * doc/glibc-functions/fsetxattr.texi: Likewise.
14975         * doc/glibc-functions/getifaddrs.texi: Likewise.
14976         * doc/glibc-functions/getxattr.texi: Likewise.
14977         * doc/glibc-functions/lgetxattr.texi: Likewise.
14978         * doc/glibc-functions/listxattr.texi: Likewise.
14979         * doc/glibc-functions/llistxattr.texi: Likewise.
14980         * doc/glibc-functions/lremovexattr.texi: Likewise.
14981         * doc/glibc-functions/lsetxattr.texi: Likewise.
14982         * doc/glibc-functions/pow10.texi: Likewise.
14983         * doc/glibc-functions/pow10f.texi: Likewise.
14984         * doc/glibc-functions/rcmd_af.texi: Likewise.
14985         * doc/glibc-functions/removexattr.texi: Likewise.
14986         * doc/glibc-functions/res_init.texi: Likewise.
14987         * doc/glibc-functions/res_mkquery.texi: Likewise.
14988         * doc/glibc-functions/res_query.texi: Likewise.
14989         * doc/glibc-functions/res_querydomain.texi: Likewise.
14990         * doc/glibc-functions/res_send.texi: Likewise.
14991         * doc/glibc-functions/rresvport_af.texi: Likewise.
14992         * doc/glibc-functions/setxattr.texi: Likewise.
14993         * doc/glibc-functions/strcasestr.texi: Likewise.
14994
14995 2008-12-15  Bruno Haible  <bruno@clisp.org>
14996
14997         Fix compilation error on OSF/1 4.0.
14998         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
14999         <sys/time.h>, simply delegate to the system header.
15000         Reported by Daniel Richard G. <oss@teragram.com>.
15001
15002 2008-12-15  Bruno Haible  <bruno@clisp.org>
15003
15004         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15005         * doc/posix-functions/fchmodat.texi: Likewise.
15006         * doc/posix-functions/fchownat.texi: Likewise.
15007         * doc/posix-functions/fdopendir.texi: Likewise.
15008         * doc/posix-functions/fstatat.texi: Likewise.
15009         * doc/posix-functions/mkdirat.texi: Likewise.
15010         * doc/posix-functions/unlinkat.texi: Likewise.
15011
15012 2008-12-14  Bruno Haible  <bruno@clisp.org>
15013
15014         Update doc for POSIX:2008.
15015         * doc/posix-functions/faccessat.texi: New file.
15016         * doc/posix-functions/fchmodat.texi: New file.
15017         * doc/posix-functions/fchownat.texi: New file.
15018         * doc/posix-functions/fdopendir.texi: New file.
15019         * doc/posix-functions/fstatat.texi: New file.
15020         * doc/posix-functions/futimens.texi: New file.
15021         * doc/posix-functions/linkat.texi: New file.
15022         * doc/posix-functions/mkdirat.texi: New file.
15023         * doc/posix-functions/mkfifoat.texi: New file.
15024         * doc/posix-functions/mknodat.texi: New file.
15025         * doc/posix-functions/open_wmemstream.texi: New file.
15026         * doc/posix-functions/openat.texi: New file.
15027         * doc/posix-functions/psiginfo.texi: New file.
15028         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15029         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15030         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15031         * doc/posix-functions/readlinkat.texi: New file.
15032         * doc/posix-functions/renameat.texi: New file.
15033         * doc/posix-functions/strerror_l.texi: New file.
15034         * doc/posix-functions/symlinkat.texi: New file.
15035         * doc/posix-functions/unlinkat.texi: New file.
15036         * doc/posix-functions/utimensat.texi: New file.
15037         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15038
15039 2008-12-14  Bruno Haible  <bruno@clisp.org>
15040
15041         Update doc for POSIX:2008.
15042         * doc/posix-functions/alphasort.texi: Renamed from
15043         doc/glibc-functions/alphasort.texi.
15044         * doc/posix-functions/dirfd.texi: Renamed from
15045         doc/glibc-functions/dirfd.texi.
15046         * doc/posix-functions/dprintf.texi: Renamed from
15047         doc/glibc-functions/dprintf.texi.
15048         * doc/posix-functions/duplocale.texi: Renamed from
15049         doc/glibc-functions/duplocale.texi.
15050         * doc/posix-functions/fexecve.texi: Renamed from
15051         doc/glibc-functions/fexecve.texi.
15052         * doc/posix-functions/fmemopen.texi: Renamed from
15053         doc/glibc-functions/fmemopen.texi.
15054         * doc/posix-functions/freelocale.texi: Renamed from
15055         doc/glibc-functions/freelocale.texi.
15056         * doc/posix-functions/getdate_err.texi: Renamed from
15057         doc/glibc-functions/getdate_err.texi.
15058         * doc/posix-functions/isalnum_l.texi: Renamed from
15059         doc/glibc-functions/isalnum_l.texi.
15060         * doc/posix-functions/isalpha_l.texi: Renamed from
15061         doc/glibc-functions/isalpha_l.texi.
15062         * doc/posix-functions/isblank_l.texi: Renamed from
15063         doc/glibc-functions/isblank_l.texi.
15064         * doc/posix-functions/iscntrl_l.texi: Renamed from
15065         doc/glibc-functions/iscntrl_l.texi.
15066         * doc/posix-functions/isdigit_l.texi: Renamed from
15067         doc/glibc-functions/isdigit_l.texi.
15068         * doc/posix-functions/isgraph_l.texi: Renamed from
15069         doc/glibc-functions/isgraph_l.texi.
15070         * doc/posix-functions/islower_l.texi: Renamed from
15071         doc/glibc-functions/islower_l.texi.
15072         * doc/posix-functions/isprint_l.texi: Renamed from
15073         doc/glibc-functions/isprint_l.texi.
15074         * doc/posix-functions/ispunct_l.texi: Renamed from
15075         doc/glibc-functions/ispunct_l.texi.
15076         * doc/posix-functions/isspace_l.texi: Renamed from
15077         doc/glibc-functions/isspace_l.texi.
15078         * doc/posix-functions/isupper_l.texi: Renamed from
15079         doc/glibc-functions/isupper_l.texi.
15080         * doc/posix-functions/iswalnum_l.texi: Renamed from
15081         doc/glibc-functions/iswalnum_l.texi.
15082         * doc/posix-functions/iswalpha_l.texi: Renamed from
15083         doc/glibc-functions/iswalpha_l.texi.
15084         * doc/posix-functions/iswblank_l.texi: Renamed from
15085         doc/glibc-functions/iswblank_l.texi.
15086         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15087         doc/glibc-functions/iswcntrl_l.texi.
15088         * doc/posix-functions/iswctype_l.texi: Renamed from
15089         doc/glibc-functions/iswctype_l.texi.
15090         * doc/posix-functions/iswdigit_l.texi: Renamed from
15091         doc/glibc-functions/iswdigit_l.texi.
15092         * doc/posix-functions/iswgraph_l.texi: Renamed from
15093         doc/glibc-functions/iswgraph_l.texi.
15094         * doc/posix-functions/iswlower_l.texi: Renamed from
15095         doc/glibc-functions/iswlower_l.texi.
15096         * doc/posix-functions/iswprint_l.texi: Renamed from
15097         doc/glibc-functions/iswprint_l.texi.
15098         * doc/posix-functions/iswpunct_l.texi: Renamed from
15099         doc/glibc-functions/iswpunct_l.texi.
15100         * doc/posix-functions/iswspace_l.texi: Renamed from
15101         doc/glibc-functions/iswspace_l.texi.
15102         * doc/posix-functions/iswupper_l.texi: Renamed from
15103         doc/glibc-functions/iswupper_l.texi.
15104         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15105         doc/glibc-functions/iswxdigit_l.texi.
15106         * doc/posix-functions/isxdigit_l.texi: Renamed from
15107         doc/glibc-functions/isxdigit_l.texi.
15108         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15109         doc/glibc-functions/mbsnrtowcs.texi.
15110         * doc/posix-functions/mkdtemp.texi: Renamed from
15111         doc/glibc-functions/mkdtemp.texi.
15112         * doc/posix-functions/newlocale.texi: Renamed from
15113         doc/glibc-functions/newlocale.texi.
15114         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15115         doc/glibc-functions/nl_langinfo_l.texi.
15116         * doc/posix-functions/open_memstream.texi: Renamed from
15117         doc/glibc-functions/open_memstream.texi.
15118         * doc/posix-functions/opterr.texi: Renamed from
15119         doc/glibc-functions/opterr.texi.
15120         * doc/posix-functions/optind.texi: Renamed from
15121         doc/glibc-functions/optind.texi.
15122         * doc/posix-functions/optopt.texi: Renamed from
15123         doc/glibc-functions/optopt.texi.
15124         * doc/posix-functions/psignal.texi: Renamed from
15125         doc/glibc-functions/psignal.texi.
15126         * doc/posix-functions/scandir.texi: Renamed from
15127         doc/glibc-functions/scandir.texi.
15128         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15129         doc/glibc-functions/sched_get_priority_min.texi.
15130         * doc/posix-functions/signgam.texi: Renamed from
15131         doc/glibc-functions/signgam.texi.
15132         * doc/posix-functions/stpcpy.texi: Renamed from
15133         doc/glibc-functions/stpcpy.texi.
15134         * doc/posix-functions/stpncpy.texi: Renamed from
15135         doc/glibc-functions/stpncpy.texi.
15136         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15137         doc/glibc-functions/strcasecmp_l.texi.
15138         * doc/posix-functions/strcoll_l.texi: Renamed from
15139         doc/glibc-functions/strcoll_l.texi.
15140         * doc/posix-functions/strfmon_l.texi: Renamed from
15141         doc/glibc-functions/strfmon_l.texi.
15142         * doc/posix-functions/strftime_l.texi: Renamed from
15143         doc/glibc-functions/strftime_l.texi.
15144         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15145         doc/glibc-functions/strncasecmp_l.texi.
15146         * doc/posix-functions/strndup.texi: Renamed from
15147         doc/glibc-functions/strndup.texi.
15148         * doc/posix-functions/strnlen.texi: Renamed from
15149         doc/glibc-functions/strnlen.texi.
15150         * doc/posix-functions/strsignal.texi: Renamed from
15151         doc/glibc-functions/strsignal.texi.
15152         * doc/posix-functions/strxfrm_l.texi: Renamed from
15153         doc/glibc-functions/strxfrm_l.texi.
15154         * doc/posix-functions/timer_gettime.texi: Renamed from
15155         doc/glibc-functions/timer_gettime.texi.
15156         * doc/posix-functions/tolower_l.texi: Renamed from
15157         doc/glibc-functions/tolower_l.texi.
15158         * doc/posix-functions/toupper_l.texi: Renamed from
15159         doc/glibc-functions/toupper_l.texi.
15160         * doc/posix-functions/towctrans_l.texi: Renamed from
15161         doc/glibc-functions/towctrans_l.texi.
15162         * doc/posix-functions/towlower_l.texi: Renamed from
15163         doc/glibc-functions/towlower_l.texi.
15164         * doc/posix-functions/towupper_l.texi: Renamed from
15165         doc/glibc-functions/towupper_l.texi.
15166         * doc/posix-functions/uselocale.texi: Renamed from
15167         doc/glibc-functions/uselocale.texi.
15168         * doc/posix-functions/vdprintf.texi: Renamed from
15169         doc/glibc-functions/vdprintf.texi.
15170         * doc/posix-functions/wcpcpy.texi:
15171         Renamed from doc/glibc-functions/wcpcpy.texi.
15172         * doc/posix-functions/wcpncpy.texi: Renamed from
15173         doc/glibc-functions/wcpncpy.texi.
15174         * doc/posix-functions/wcscasecmp.texi: Renamed from
15175         doc/glibc-functions/wcscasecmp.texi.
15176         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15177         doc/glibc-functions/wcscasecmp_l.texi.
15178         * doc/posix-functions/wcscoll_l.texi: Renamed from
15179         doc/glibc-functions/wcscoll_l.texi.
15180         * doc/posix-functions/wcsdup.texi: Renamed from
15181         doc/glibc-functions/wcsdup.texi.
15182         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15183         doc/glibc-functions/wcsncasecmp.texi.
15184         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15185         doc/glibc-functions/wcsncasecmp_l.texi.
15186         * doc/posix-functions/wcsnlen.texi: Renamed from
15187         doc/glibc-functions/wcsnlen.texi.
15188         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15189         doc/glibc-functions/wcsnrtombs.texi.
15190         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15191         doc/glibc-functions/wcsxfrm_l.texi.
15192         * doc/posix-functions/wctrans_l.texi: Renamed from
15193         doc/glibc-functions/wctrans_l.texi.
15194         * doc/posix-functions/wctype_l.texi: Renamed from
15195         doc/glibc-functions/wctype_l.texi.
15196         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15197         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15198         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15199         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15200         these subsections.
15201         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15202         Remove sections.
15203
15204 2008-12-14  Bruno Haible  <bruno@clisp.org>
15205
15206         Update doc for POSIX:2008.
15207         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15208
15209 2008-12-14  Bruno Haible  <bruno@clisp.org>
15210
15211         Update doc for POSIX:2008.
15212         * doc/pastposix-functions/bcmp.texi: Renamed from
15213         doc/posix-functions/bcmp.texi.
15214         * doc/pastposix-functions/bcopy.texi: Renamed from
15215         doc/posix-functions/bcopy.texi.
15216         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15217         doc/posix-functions/bsd_signal.texi.
15218         * doc/pastposix-functions/bzero.texi: Renamed from
15219         doc/posix-functions/bzero.texi.
15220         * doc/pastposix-functions/ecvt.texi: Renamed from
15221         doc/posix-functions/ecvt.texi.
15222         * doc/pastposix-functions/fcvt.texi: Renamed from
15223         doc/posix-functions/fcvt.texi.
15224         * doc/pastposix-functions/ftime.texi: Renamed from
15225         doc/posix-functions/ftime.texi.
15226         * doc/pastposix-functions/gcvt.texi: Renamed from
15227         doc/posix-functions/gcvt.texi.
15228         * doc/pastposix-functions/getcontext.texi: Renamed from
15229         doc/posix-functions/getcontext.texi.
15230         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15231         doc/posix-functions/gethostbyaddr.texi.
15232         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15233         doc/posix-functions/gethostbyname.texi.
15234         * doc/pastposix-functions/getwd.texi: Renamed from
15235         doc/posix-functions/getwd.texi.
15236         * doc/pastposix-functions/h_errno.texi: Renamed from
15237         doc/posix-functions/h_errno.texi.
15238         * doc/pastposix-functions/index.texi: Renamed from
15239         doc/posix-functions/index.texi.
15240         * doc/pastposix-functions/makecontext.texi: Renamed from
15241         doc/posix-functions/makecontext.texi.
15242         * doc/pastposix-functions/mktemp.texi: Renamed from
15243         doc/posix-functions/mktemp.texi.
15244         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15245         doc/posix-functions/pthread_attr_getstackaddr.texi.
15246         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15247         doc/posix-functions/pthread_attr_setstackaddr.texi.
15248         * doc/pastposix-functions/rindex.texi: Renamed from
15249         doc/posix-functions/rindex.texi.
15250         * doc/pastposix-functions/scalb.texi: Renamed from
15251         doc/posix-functions/scalb.texi.
15252         * doc/pastposix-functions/setcontext.texi: Renamed from
15253         doc/posix-functions/setcontext.texi.
15254         * doc/pastposix-functions/swapcontext.texi: Renamed from
15255         doc/posix-functions/swapcontext.texi.
15256         * doc/pastposix-functions/ualarm.texi: Renamed from
15257         doc/posix-functions/ualarm.texi.
15258         * doc/pastposix-functions/usleep.texi: Renamed from
15259         doc/posix-functions/usleep.texi.
15260         * doc/pastposix-functions/vfork.texi: Renamed from
15261         doc/posix-functions/vfork.texi.
15262         * doc/pastposix-functions/wcswcs.texi: Renamed from
15263         doc/posix-functions/wcswcs.texi.
15264         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15265         (Function Substitutes): Update.
15266
15267 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15268
15269         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15270         m4/strerror.m4.
15271
15272 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15273             Bruno Haible  <bruno@clisp.org>
15274
15275         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15276
15277 2008-12-13  Bruno Haible  <bruno@clisp.org>
15278
15279         * modules/strtoull (Depends-on): Remove unistd.
15280
15281 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15282
15283         * modules/strtoull (Depends-on): Add stdlib.
15284
15285 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15286
15287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15288
15289 2008-12-10  Jim Meyering  <meyering@redhat.com>
15290
15291         gl_ASSERT: don't say assertions are disabled when they're not
15292         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15293         "checking whether to enable assertions... no", when they are in
15294         fact enabled.  This is solely a bug in the output of configure.
15295         In spite of saying "no", NDEBUG was not defined in that case.
15296         Also, as noted by Eric Blake, leave assertions enabled upon
15297         --enable-assert=INVALID.
15298
15299 2008-12-10  Bruno Haible  <bruno@clisp.org>
15300
15301         Change MODULES.html to refer to POSIX:2008 where possible.
15302         * MODULES.html.sh (POSIX2008_URL): New variable.
15303         (posix_headers): Remove sys/timeb, ucontext.
15304         (posix2001_headers): New variable.
15305         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15306         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15307         index, makecontext, mktemp, pthread_attr_getstackaddr,
15308         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15309         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15310         (posix2001_functions): New variable.
15311         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15312         otherwise.
15313
15314 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15315
15316         add missing include to parse-duration.c
15317         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15318         * modules/parse-duration (Depends-on): Add xalloc.
15319
15320         fix sed script reading maint.mk
15321         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15322         (syntax-check-rules): Use it.
15323
15324 2008-12-09  Bruno Haible  <bruno@clisp.org>
15325
15326         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15327         MacOS X 10.4/PowerPC.
15328         Reported by Simon Josefsson.
15329
15330 2008-12-08  Jim Meyering  <meyering@redhat.com>
15331
15332         work around mingw's lack of some S_IF definitions
15333         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15334         Reported by Simon Josefsson.
15335
15336 2008-12-08  Bruno Haible  <bruno@clisp.org>
15337
15338         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15339         applied to variables. Needed on MacOS X 10.4/PowerPC.
15340         Reported by Simon Josefsson.
15341
15342 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15343         and Eric Blake  <ebb9@byu.net>
15344
15345         assert: honor --enable-assert
15346         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15347         order to honor --enable-assert, rather than treating it as a
15348         synonym for --disable-assert.
15349
15350 2008-12-08  Jim Meyering  <meyering@redhat.com>
15351
15352         * lib/posixtm.c: Remove now-useless declaration of mktime.
15353
15354         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15355
15356 2008-12-07  Bruno Haible  <bruno@clisp.org>
15357
15358         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15359         test_once): Mark functions as static.
15360         * tests/test-tls.c (test_tls): Likewise.
15361
15362 2008-12-07  Bruno Haible  <bruno@clisp.org>
15363
15364         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15365         iconv_register_autodetect.
15366
15367 2008-12-07  Jim Meyering  <meyering@redhat.com>
15368
15369         posixtm.c: avoid a warning
15370         * lib/posixtm.c (posixtime): Don't initialize tm0.
15371         It's no longer needed to placate gcc4's -Wuninitialized,
15372         and the attempt to placate would elicit a new warning.
15373
15374         unicodeio.c: mark unused parameters
15375         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15376         (fallback_failure_callback): Likewise.
15377
15378 2008-12-07  Bruno Haible  <bruno@clisp.org>
15379
15380         * gnulib-tool (func_create_testdir): When building the tests
15381         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15382         Reported by Simon Josefsson.
15383
15384 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15385
15386         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15387
15388 2008-12-06  Bruno Haible  <bruno@clisp.org>
15389
15390         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15391         Suggested by Eric Blake.
15392
15393 2008-12-06  Bruno Haible  <bruno@clisp.org>
15394
15395         Fix a c-stack test failure on MacOS X.
15396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15397         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15398         handler for SIGBUS as well.
15399         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15400         install a signal handler for SIGBUS as well.
15401         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15402
15403 2008-12-06  Bruno Haible  <bruno@clisp.org>
15404
15405         Advocacy documentation.
15406         * doc/gnulib-intro.texi (Benefits): New section.
15407         * doc/gnulib.texi: Update.
15408
15409 2008-12-06  Bruno Haible  <bruno@clisp.org>
15410
15411         Document the 'manywarnings' module.
15412         * doc/manywarnings.texi: New file.
15413         * doc/gnulib.texi: Include it.
15414
15415 2008-12-05  Eric Blake  <ebb9@byu.net>
15416
15417         tests: silence some gcc warnings
15418         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15419         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15420         type mismatches.
15421
15422 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15423             Bruno Haible  <bruno@clisp.org>
15424
15425         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15426
15427 2008-11-29  Jim Meyering  <meyering@redhat.com>
15428
15429         unicodeio.c: mark unused parameters
15430         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15431         (fallback_failure_callback): Likewise.
15432
15433         fts: fix a thinko
15434         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15435         (set_stat_type): Return S_IF*-valued "type" directly.
15436         Prompted by James Youngman's spotting a related bug.
15437         Confirmed by further testing through find.
15438
15439         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15440         * lib/fts.c (D_TYPE): Define.
15441         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15442         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15443         (s_ifmt_shift_bits): New function.
15444         (set_stat_type): New function.
15445         (fts_build): When not calling fts_stat, call set_stat_type
15446         to propagate dirent.d_type info to fts_read caller.
15447         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15448         fts_statp->st_mode type information may be valid.
15449
15450 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15451
15452         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15453         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15454         <sds@gnu.org>.
15455
15456 2008-11-20  Bruno Haible  <bruno@clisp.org>
15457
15458         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15459         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15460         INCLUDE_NEXT.
15461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15462         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15463         * modules/math (Makefile.am): Substitute
15464         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15466
15467 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15468             Bruno Haible  <bruno@clisp.org>
15469
15470         * lib/stdint.in.h: Define all type macros so that their expansion is
15471         a single typedef'ed token. Fixes a compilation failure in Boost which
15472         does "using ::int8_t;".
15473
15474 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15475
15476         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15477         gl_MANYWARN_ALL_GCC.
15478         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15479         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
15480         * modules/manywarnings: New file.
15481         * MODULES.html.sh: Mention manywarnings module.
15482
15483 2008-11-18  Bruno Haible  <bruno@clisp.org>
15484
15485         * doc/gnulib-tool.texi (Unit tests): New section.
15486
15487 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15488
15489         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15490         paths like 'lib/po/foo.po'.
15491
15492 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15493
15494         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
15495         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15496
15497 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15498
15499         * m4/warnings.m4: Use CPPFLAGS to really check whether the
15500         parameter works.
15501
15502 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15503
15504         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15505
15506 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15507
15508         * modules/parse-duration-tests: New file.
15509         * tests/test-parse-duration.sh: New file.
15510         * tests/test-parse-duration.c: New file.
15511
15512         New module 'parse-duration'.
15513         * lib/parse-duration.h: New file.
15514         * lib/parse-duration.c: New file.
15515         * modules/parse-duration: New file.
15516
15517 2008-11-17  Bruno Haible  <bruno@clisp.org>
15518
15519         * tests/test-select-out.sh: Comment out the first pipe test.
15520         Reported by Simon Josefsson.
15521
15522 2008-11-17  Bruno Haible  <bruno@clisp.org>
15523
15524         * modules/getaddrinfo (Depends-on): Add servent, hostent.
15525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15526         gl_HOSTENT.
15527
15528 2008-11-17  Bruno Haible  <bruno@clisp.org>
15529
15530         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15531         -lnetwork and -lnet. Needed for Haiku and BeOS.
15532
15533 2008-11-16  Bruno Haible  <bruno@clisp.org>
15534
15535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15536
15537 2008-11-16  Bruno Haible  <bruno@clisp.org>
15538
15539         Avoid test failure on Haiku.
15540         * tests/test-fsync.c: Include <errno.h>.
15541         (main): Don't require that fsync (0) fails.
15542
15543 2008-11-15  Bruno Haible  <bruno@clisp.org>
15544
15545         New module 'hostent'.
15546         * modules/hostent: New file.
15547         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15548
15549 2008-11-15  Bruno Haible  <bruno@clisp.org>
15550
15551         New module 'servent'.
15552         * modules/servent: New file.
15553         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15554
15555 2008-11-15  Bruno Haible  <bruno@clisp.org>
15556
15557         Avoid generating same test program with two different rules.
15558         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15559         test-frexp to test-frexp-nolibm.
15560         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15561         test-frexpl to test-frexpl-nolibm.
15562
15563 2008-11-15  Bruno Haible  <bruno@clisp.org>
15564
15565         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15566         $(FREXPL_LIBM).
15567
15568 2008-11-15  Bruno Haible  <bruno@clisp.org>
15569
15570         * lib/netdb.in.h: Activate the definitions also when the system's
15571         <netdb.h> has 'struct addrinfo'.
15572         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15573         EAI_OVERFLOW or AI_NUMERICSERV.
15574         * doc/posix-headers/netdb.texi: Document the problem.
15575
15576 2008-11-15  Bruno Haible  <bruno@clisp.org>
15577
15578         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15579
15580         Make the 'sched' module work on platforms where <sched.h> exists but
15581         is incomplete (such as Haiku).
15582         * lib/sched.in.h; Include the system's <sched.h> if it exists.
15583         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15584         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15585         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15586         HAVE_STRUCT_SCHED_PARAM.
15587         * modules/sched (Depends-on): Add include_next.
15588         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15589         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15590         * doc/posix-headers/sched.texi: Document the issue.
15591
15592 2008-11-13  Jim Meyering  <meyering@redhat.com>
15593
15594         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15595         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15596         test would fail due to the difference in the Report bugs to ...
15597         line.  The expected address is empty, "<>", while the actual
15598         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
15599
15600 2008-11-12  Bruno Haible  <bruno@clisp.org>
15601
15602         lstat: don't compile lstat.c on systems lacking lstat
15603         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15604         which don't have lstat; this is handled by lib/sys_stat.in.h already.
15605         Reported by Daniel P. Berrange via Jim Meyering.
15606
15607 2008-11-12  Jim Meyering  <meyering@redhat.com>
15608
15609         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15610
15611 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15612
15613         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15614         instead.
15615
15616 2008-11-12  Bruno Haible  <bruno@clisp.org>
15617
15618         * lib/unicodeio.c: Include unistr.h.
15619         (utf8_wctomb): Remove function.
15620         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15621
15622 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15623
15624         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15625         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15626         <bruno@clisp.org>.
15627         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15628
15629 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15630
15631         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15632         * doc/gnulib.texi: Add section for warnings.
15633
15634 2008-11-11  Bruno Haible  <bruno@clisp.org>
15635
15636         * lib/sockets.h: Add a comment.
15637
15638 2008-11-11  Karl Berry  <karl@gnu.org>
15639
15640         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15641
15642 2008-11-11  Eric Blake  <ebb9@byu.net>
15643
15644         fdl.texi: avoid git symlinks
15645         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15646
15647 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15648
15649         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15650
15651 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15652
15653         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15654         (gl_WARN_ADD): Substitute $2 if literal.
15655
15656 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15657
15658         * m4/warning.m4: Remove.
15659
15660 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15661
15662         * m4/warnings.m4: Almost complete rewrite. :-)
15663
15664 2008-11-10  Simon Josefsson  <simon@josefsson.org>
15665
15666         * modules/warnings: New module.
15667         * m4/warnings.m4: New file.
15668         * MODULES.html.sh: Mention warnings module.
15669         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15670         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15671
15672 2008-11-10  Eric Blake  <ebb9@byu.net>
15673
15674         fdl.texi: make a symlink to the latest version
15675         * doc/standards.texi: Revert today's earlier change.
15676         * doc/fdl-1.2.texi: Rename from old fdl.texi...
15677         * doc/fdl.texi: ...and replace this with a symlink to the newer
15678         fdl-1.3.texi.
15679
15680 2008-11-10  Bruno Haible  <bruno@clisp.org>
15681
15682         * tests/test-select-fd.c (main): Accept the result file name as fourth
15683         argument.
15684         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15685         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15686
15687 2008-11-10  Bruno Haible  <bruno@clisp.org>
15688
15689         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15690         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15691         as autoconf-substituted macros.
15692         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15693         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15694         gl_NETDB_H_DEFAULTS. Set these variables.
15695         * modules/netdb (Makefile.am): Substitute these variables.
15696
15697 2008-11-10  Eric Blake  <ebb9@byu.net>
15698
15699         standards.texi: include correct file for FDL 1.3
15700         * doc/standards.texi (GNU Free Documentation License): Change
15701         include file to pull in FDL 1.3, not 1.2.
15702
15703         fdl.texi: revert accidental change to license
15704         * doc/fdl.texi: This is FDL 1.2, not 1.3.
15705
15706 2008-11-10  Bruno Haible  <bruno@clisp.org>
15707
15708         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15709         cross-compiling guesses also when the native compile gives no result.
15710
15711 2008-11-10  Bruno Haible  <bruno@clisp.org>
15712
15713         * lib/spawni.c (__spawni): Force variable into the stack.
15714
15715 2008-11-10  Bruno Haible  <bruno@clisp.org>
15716
15717         Add support for Haiku.
15718         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15719         glibc and BeOS, but also on Haiku.
15720         * lib/fpurge.c (fpurge): Likewise.
15721         * lib/freadable.c (freadable): Likewise.
15722         * lib/freadahead.c (freadahead): Likewise.
15723         * lib/freading.c (freading): Likewise.
15724         * lib/freadptr.c (freadptr): Likewise.
15725         * lib/freadseek.c (freadptrinc): Likewise.
15726         * lib/fseeko.c (rpl_fseeko): Likewise.
15727         * lib/fseterr.c (fseterr): Likewise.
15728         * lib/fwritable.c (fwritable): Likewise.
15729         * lib/fwriting.c (fwriting): Likewise.
15730         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
15731
15732 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15733
15734         * lib/config.charset: Treat Haiku like BeOS.
15735
15736 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15737
15738         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
15739         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
15740
15741 2008-11-08  Bruno Haible  <bruno@clisp.org>
15742
15743         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
15744         AC_CACHE_CHECK.
15745
15746 2008-11-08  Bruno Haible  <bruno@clisp.org>
15747
15748         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
15749
15750 2008-11-08  Bruno Haible  <bruno@clisp.org>
15751
15752         * tests/test-select-fd.c: New file.
15753         * tests/test-select-in.sh: New file.
15754         * tests/test-select-out.sh: New file.
15755         * tests/test-select-stdin.c: New file.
15756         * modules/select-tests (Files): Add the new files.
15757         (Depends-on): Add gettimeofday.
15758         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
15759         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
15760         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
15761
15762 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
15763             Bruno Haible  <bruno@clisp.org>
15764
15765         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
15766
15767 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
15768
15769         * build-aux/pmccabe2html: Added support for C++ source files.
15770
15771 2008-11-05  Ben Pfaff  <blp@gnu.org>
15772
15773         Fix lib/close.c build on Windows.
15774         * modules/close (Files): Add lib/w32sock.h.
15775
15776 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
15777
15778         Accept Bison's NEWS format.
15779         * build-aux/announce-gen (print_news_deltas): Tweak
15780         $re_prefix.
15781
15782 2008-11-04  Bruno Haible  <bruno@clisp.org>
15783
15784         * modules/random_r (Maintainer): Add glibc.
15785
15786 2008-11-04  Simon Josefsson  <simon@josefsson.org>
15787
15788         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
15789         by karl@freefriends.org (Karl Berry).
15790         * doc/alloca.texi: Likewise.
15791         * doc/c-ctype.texi: Likewise.
15792         * doc/c-strcase.texi: Likewise.
15793         * doc/c-strcaseeq.texi: Likewise.
15794         * doc/c-strcasestr.texi: Likewise.
15795         * doc/c-strstr.texi: Likewise.
15796         * doc/c-strtod.texi: Likewise.
15797         * doc/c-strtold.texi: Likewise.
15798         * doc/ctime.texi: Likewise.
15799         * doc/error.texi: Likewise.
15800         * doc/fdl.texi: Likewise.
15801         * doc/gcd.texi: Likewise.
15802         * doc/getdate.texi: Likewise.
15803         * doc/gnulib-intro.texi: Likewise.
15804         * doc/gnulib-tool.texi: Likewise.
15805         * doc/gnulib.texi: Likewise.
15806         * doc/inet_ntoa.texi: Likewise.
15807         * doc/maintain.texi: Likewise.
15808         * doc/make-stds.texi: Likewise.
15809         * doc/quote.texi: Likewise.
15810         * doc/regexprops-generic.texi: Likewise.
15811         * doc/standards.texi: Likewise.
15812         * doc/verify.texi: Likewise.
15813         * doc/visibility.texi: Likewise.
15814         * doc/gnulib.texi (GNU Free Documentation License): Include
15815         fdl-1.3.texi instead of fdl.texi.
15816
15817 2008-11-04  Simon Josefsson  <simon@josefsson.org>
15818
15819         * doc/fdl-1.3.texi: New file, from
15820         <http://www.gnu.org/licenses/fdl-1.3.texi>.
15821         * modules/fdl-1.3: Add.
15822         * MODULES.html.sh: Add fdl-1.3.
15823
15824 2008-11-03  Bruno Haible  <bruno@clisp.org>
15825
15826         Make determination of absolute name of header file work with AIX xlc.
15827         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
15828         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
15829         preprocessing.
15830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15831         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
15832
15833 2008-11-03  Simon Josefsson  <simon@josefsson.org>
15834
15835         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
15836         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
15837         <ludo@gnu.org>.
15838
15839 2008-11-02  Bruno Haible  <bruno@clisp.org>
15840
15841         Mark 'strpbrk' obsolete.
15842         * modules/strpbrk (Status, Notice): New sections.
15843         * modules/strtok_r (Depends-on): Add strpbrk.
15844
15845 2008-11-02  Bruno Haible  <bruno@clisp.org>
15846
15847         Mark 'strdup' obsolete.
15848         * modules/strdup (Status, Notice): New sections.
15849         * modules/findprog (Depends-on): Add strdup.
15850         * modules/getaddrinfo (Depends-on): Likewise.
15851         * modules/localename (Depends-on): Likewise.
15852         * modules/relocatable-lib (Depends-on): Likewise.
15853         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
15854         * modules/relocatable-prog (Depends-on): Likewise.
15855         * modules/trim (Depends-on): Likewise.
15856         * modules/unictype/gen-ctype (Depends-on): Likewise.
15857         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
15858
15859 2008-11-02  Bruno Haible  <bruno@clisp.org>
15860
15861         Mark 'strcspn' obsolete.
15862         * modules/strcspn (Status, Notice): New sections.
15863
15864 2008-11-02  Bruno Haible  <bruno@clisp.org>
15865
15866         Mark 'rmdir' obsolete.
15867         * modules/rmdir (Status, Notice): New sections.
15868         * modules/clean-temp (Depends-on): Add rmdir.
15869         * modules/openat (Depends-on): Likewise.
15870
15871 2008-11-02  Bruno Haible  <bruno@clisp.org>
15872
15873         Mark 'raise' obsolete.
15874         * modules/raise (Status, Notice): New sections.
15875         (Include): Specify <signal.h>.
15876         * modules/stdio (Depends-on): Add raise.
15877         * modules/write (Depends-on): Likewise.
15878
15879 2008-11-02  Bruno Haible  <bruno@clisp.org>
15880
15881         Mark 'memset' obsolete.
15882         * modules/memset (Status, Notice): New sections.
15883
15884 2008-11-02  Bruno Haible  <bruno@clisp.org>
15885
15886         Mark 'memmove' obsolete.
15887         * modules/memmove (Status, Notice): New sections.
15888         * modules/argp (Depends-on): Add memmove.
15889         * modules/argz (Depends-on): Likewise.
15890         * modules/canonicalize (Depends-on): Likewise.
15891         * modules/canonicalize-lgpl (Depends-on): Likewise.
15892         * modules/fts (Depends-on): Likewise.
15893         * modules/getcwd (Depends-on): Likewise.
15894         * modules/human (Depends-on): Likewise.
15895         * modules/regex (Depends-on): Likewise.
15896         * modules/striconveh (Depends-on): Likewise.
15897         * modules/trim (Depends-on): Likewise.
15898         * modules/unistr/u8-move (Depends-on): Likewise.
15899         * modules/unistr/u16-move (Depends-on): Likewise.
15900         * modules/unistr/u32-move (Depends-on): Likewise.
15901
15902 2008-11-02  Bruno Haible  <bruno@clisp.org>
15903
15904         Mark 'memcpy' obsolete.
15905         * modules/memcpy (Status, Notice): New sections.
15906
15907 2008-11-02  Bruno Haible  <bruno@clisp.org>
15908
15909         Mark 'memcmp' obsolete.
15910         * modules/memcmp (Status, Notice): New sections.
15911         * modules/argmatch (Depends-on): Add memchr.
15912         * modules/backupfile (Depends-on): Likewise.
15913         * modules/c-strcasestr (Depends-on): Likewise.
15914         * modules/crypto/des (Depends-on): Likewise.
15915         * modules/csharpcomp (Depends-on): Likewise.
15916         * modules/fnmatch (Depends-on): Likewise.
15917         * modules/git-merge-changelog (Depends-on): Likewise.
15918         * modules/isnand (Depends-on): Likewise.
15919         * modules/isnand-nolibm (Depends-on): Likewise.
15920         * modules/isnanf (Depends-on): Likewise.
15921         * modules/isnanf-nolibm (Depends-on): Likewise.
15922         * modules/isnanl (Depends-on): Likewise.
15923         * modules/isnanl-nolibm (Depends-on): Likewise.
15924         * modules/mbchar (Depends-on): Likewise.
15925         * modules/memcoll (Depends-on): Likewise.
15926         * modules/quotearg (Depends-on): Likewise.
15927         * modules/regex (Depends-on): Likewise.
15928         * modules/relocatable-prog (Depends-on): Likewise.
15929         * modules/same (Depends-on): Likewise.
15930         * modules/signbit (Depends-on): Likewise.
15931         * modules/strcasestr-simple (Depends-on): Likewise.
15932         * modules/unictype/gen-ctype (Depends-on): Likewise.
15933         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
15934         * modules/uniname/uniname (Depends-on): Likewise.
15935         * modules/unistr/u8-cmp (Depends-on): Likewise.
15936
15937 2008-11-02  Bruno Haible  <bruno@clisp.org>
15938
15939         Mark 'memchr' obsolete.
15940         * modules/memchr (Status, Notice): New sections.
15941         * modules/argp (Depends-on): Add memchr.
15942         * modules/base64 (Depends-on): Likewise.
15943         * modules/c-strcasestr (Depends-on): Likewise.
15944         * modules/chdir-long (Depends-on): Likewise.
15945         * modules/fnmatch (Depends-on): Likewise.
15946         * modules/getsubopt (Depends-on): Likewise.
15947         * modules/git-merge-changelog (Depends-on): Likewise.
15948         * modules/glob (Depends-on): Likewise.
15949         * modules/strcasestr-simple (Depends-on): Likewise.
15950         * modules/strnlen (Depends-on): Likewise.
15951
15952 2008-11-02  Bruno Haible  <bruno@clisp.org>
15953
15954         Mark 'atexit' obsolete.
15955         * modules/atexit (Status, Notice): New sections.
15956         * modules/chdir-long (Depends-on): Add atexit.
15957         * modules/wait-process (Depends-on): Likewise.
15958
15959 2008-11-02  Bruno Haible  <bruno@clisp.org>
15960
15961         * gnulib-tool: New option --with-obsolete.
15962         (func_usage): Document it.
15963         (func_modules_transitive_closure): Drop obsolete dependencies if
15964         incobsolete is not true.
15965         (func_import): Read and save the incobsolete variable to the cache.
15966
15967 2008-11-02  Bruno Haible  <bruno@clisp.org>
15968
15969         * modules/TEMPLATE-EXTENDED: New field 'Status'.
15970         * gnulib-tool: New option --extract-status.
15971         (func_usage): Document it.
15972         (sed_extract_prog): Recognize it.
15973         (func_get_status): New function.
15974
15975 2008-10-30  Simon Josefsson  <simon@josefsson.org>
15976
15977         * modules/sockets (License): Change from LGPL to LGPLv2+.
15978
15979 2008-10-28  Simon Josefsson  <simon@josefsson.org>
15980
15981         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
15982
15983 2008-10-28  Simon Josefsson  <simon@josefsson.org>
15984
15985         * MODULES.html.sh (Support for systems lacking POSIX:2001):
15986         Mention times and sys_times.
15987         * modules/sys_times, modules/sys_times-tests: New modules.
15988         * modules/times, modules/times-tests: Likewise
15989         * m4/sys_times_h.m4: New file.
15990         * lib/sys_times.in.h: Likewise
15991         * lib/times.c: Likewise.
15992         * tests/test-sys_times.c: Likewise.
15993         * tests/test-times.c: Likewise.
15994         * doc/posix-headers/sys_times.texi: Update.
15995         * doc/posix-functions/times.texi: Update.
15996
15997 2008-10-28  Jim Meyering  <meyering@redhat.com>
15998
15999         * modules/tempname (Depends-on): Add lstat.
16000
16001         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16002
16003 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16004
16005         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16006         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16007         using idiom used elsewhere in gnulib.
16008
16009 2008-10-27  Jim Meyering  <meyering@redhat.com>
16010
16011         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16012
16013 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16014
16015         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16016         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16017         programs.
16018         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16019
16020 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16021
16022         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16023
16024 2008-10-27  Bruno Haible  <bruno@clisp.org>
16025
16026         * tests/test-lstat.c: Include <stdio.h>.
16027
16028 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16029
16030         * modules/lstat-tests: New module.
16031         * tests/test-lstat.c: New file.
16032
16033 2008-10-26  Jim Meyering  <meyering@redhat.com>
16034
16035         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16036
16037 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16038             Bruno Haible  <bruno@clisp.org>
16039
16040         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16041         * modules/configmake (Include): Add a note that the include must come
16042         after all system headers.
16043         * lib/javaversion.c: Include configmake.h after all other includes.
16044
16045 2008-10-26  Bruno Haible  <bruno@clisp.org>
16046
16047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16048         HAVE_STRUCT_RANDOM_DATA to 1.
16049         (gl_STDLIB_H): Simplify.
16050
16051 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16052
16053         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16054         substitute HAVE_STRUCT_RANDOM_DATA.
16055         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16056         random_data.
16057         * modules/stdlib (Makefile.am): Substitute
16058         HAVE_STRUCT_RANDOM_DATA.
16059
16060 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16061
16062         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16063         * doc/gnulib-intro.texi (Copyright): Likewise.
16064
16065 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16066
16067         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16068         findings.
16069
16070 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16071             Bruno Haible  <bruno@clisp.org>
16072
16073         * lib/unistd.in.h: Include <winsock2.h>.
16074         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16075         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16076         Provide dummy declarations.
16077         (gethostname): Override.
16078         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16080         gl_PREREQ_SYS_H_WINSOCK2.
16081         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16082         * doc/posix-functions/gethostname.texi: More details.
16083
16084 2008-10-25  Bruno Haible  <bruno@clisp.org>
16085
16086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16087         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16088         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16089
16090         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16091         here ...
16092         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16093         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16094         gl_UNISTD_H_DEFAULTS.
16095
16096 2008-10-25  Eric Blake  <ebb9@byu.net>
16097
16098         signbit: avoid spurious compiler failure
16099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16100         declarations inside function.
16101
16102 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16103             Bruno Haible  <bruno@clisp.org>
16104
16105         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16106         * modules/random_r (Depends-on): Add stdint.
16107
16108 2008-10-24  Bruno Haible  <bruno@clisp.org>
16109
16110         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16111         Eggert.
16112         * modules/strerror (License): Likewise.
16113
16114 2008-10-24  Jim Meyering  <meyering@redhat.com>
16115
16116         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16117         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16118
16119 2008-10-24  Eric Blake  <ebb9@byu.net>
16120
16121         getgroups: fix compilation when getgroups is available
16122         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16123         but with <config.h> override of getgroups disabled.
16124
16125 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16126
16127         * doc/gnulib.texi (Header files): Add note about C++ problems.
16128         Explained by Bruno Haible <bruno@clisp.org>.
16129
16130 2008-10-23  Bruno Haible  <bruno@clisp.org>
16131
16132         Define a dummy SA_NODEFER macro on Interix.
16133         * lib/signal.in.h (SA_NODEFER): Define fallback.
16134         Reported by Aleksey Cheusov <cheusov@tut.by> via
16135         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16136
16137 2008-10-23  Bruno Haible  <bruno@clisp.org>
16138
16139         * modules/freadahead (License): Change to LGPLv2+.
16140         Suggested by Simon Josefsson.
16141
16142 2008-10-23  Jim Meyering  <meyering@redhat.com>
16143
16144         random_r: new module
16145         * modules/random_r: New file.
16146         * m4/random_r.m4: New file.
16147         * lib/random_r.c: New file, from glibc.
16148         * modules/random_r-tests: New file.
16149         * tests/test-random_r.c: New file.
16150         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16151          Declare.
16152         (RAND_MAX): Define.
16153         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16154         * modules/stdlib: Substitute them, too.
16155         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16156         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16157         * doc/glibc-functions/random_r.texi: Likewise.
16158         * doc/glibc-functions/setstate_r.texi: Likewise.
16159         * doc/glibc-functions/srandom_r.texi: Likewise.
16160         * config/srclist.txt: Mention it.
16161
16162 2008-10-23  David Lutterkort  <lutter@redhat.com>
16163
16164         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16165         link requirement
16166
16167 2008-10-23  Jim Meyering  <meyering@redhat.com>
16168
16169         selinux-h: mark parameters of stub functions as intentionally unused
16170         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16171         * lib/se-context.in.h: Likewise.
16172
16173 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16174
16175         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16176
16177 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16178
16179         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16180
16181 2008-10-22  Eric Blake  <ebb9@byu.net>
16182
16183         glthread/thread: avoid compiler warning
16184         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16185         Add unreachable abort to silence compiler.
16186
16187 2008-10-22  Eric Blake  <ebb9@byu.net>
16188
16189         netdb: also supply struct addrinfo for cygwin 1.5.x
16190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16191         older cygwin.
16192         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16193         cygwin.
16194         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16195
16196 2008-10-22  Bruno Haible  <bruno@clisp.org>
16197
16198         * users.txt: Update entry about pspp.
16199
16200 2008-10-21  Bruno Haible  <bruno@clisp.org>
16201
16202         Simplification.
16203         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16204         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16205
16206         Simplification.
16207         * lib/ioctl.c (ioctl): Don't undefine.
16208         * lib/socket.c (socket): Don't undefine.
16209
16210         Remove unused module indicator macros.
16211         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16212         GNULIB_$1 as a C macro.
16213
16214         * doc/posix-functions/close.texi: Undo last change.
16215         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16216         Windows platforms.
16217
16218 2008-10-21  Bruno Haible  <bruno@clisp.org>
16219
16220         Add gethostname() declaration to <unistd.h>.
16221         * lib/unistd.in.h (gethostname): New declaration.
16222         * lib/gethostname.c: Include <unistd.h>.
16223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16224         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16226         and HAVE_GETHOSTNAME.
16227         * modules/gethostname (Depends-on): Add unistd.
16228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16229         (Include): Specify <unistd.h>.
16230         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16231         HAVE_GETHOSTNAME.
16232         * tests/test-gethostname.c: Include <unistd.h> first.
16233
16234 2008-10-21  Bruno Haible  <bruno@clisp.org>
16235
16236         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16237         * modules/select-tests (Depends-on): Likewise.
16238         Reported by Simon Josefsson.
16239
16240 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16241
16242         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16243         * lib/accept.c: New file, based on winsock.c.
16244         * lib/bind.c: New file, based on winsock.c.
16245         * lib/connect.c: New file, based on winsock.c.
16246         * lib/getpeername.c: New file, based on winsock.c.
16247         * lib/getsockname.c: New file, based on winsock.c.
16248         * lib/getsockopt.c: New file, based on winsock.c.
16249         * lib/ioctl.c: New file, based on winsock.c.
16250         * lib/listen.c: New file, based on winsock.c.
16251         * lib/recv.c: New file, based on winsock.c.
16252         * lib/recvfrom.c: New file, based on winsock.c.
16253         * lib/send.c: New file, based on winsock.c.
16254         * lib/sendto.c: New file, based on winsock.c.
16255         * lib/setsockopt.c: New file, based on winsock.c.
16256         * lib/shutdown.c: New file, based on winsock.c.
16257         * lib/socket.c: New file, based on winsock.c.
16258         * lib/w32sock.h: New file, based on winsock.c.
16259         * lib/winsock.c: Remove file.
16260         * modules/accept: Likewise.
16261         * modules/bind: Likewise.
16262         * modules/connect: Likewise.
16263         * modules/getpeername: Likewise.
16264         * modules/getsockname: Likewise.
16265         * modules/getsockopt: Likewise.
16266         * modules/ioctl: Likewise.
16267         * modules/listen: Likewise.
16268         * modules/recv: Likewise.
16269         * modules/recvfrom: Likewise.
16270         * modules/send: Likewise.
16271         * modules/sendto: Likewise.
16272         * modules/setsockopt: Likewise.
16273         * modules/shutdown: Likewise.
16274         * modules/socket: Use socket.c instead of winsock.c.
16275         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16276         * doc/posix-functions/accept.texi: Doc fix.
16277         * doc/posix-functions/bind.texi: Doc fix.
16278         * doc/posix-functions/close.texi: Doc fix.
16279         * doc/posix-functions/connect.texi: Doc fix.
16280         * doc/posix-functions/getpeername.texi: Doc fix.
16281         * doc/posix-functions/getsockname.texi: Doc fix.
16282         * doc/posix-functions/getsockopt.texi: Doc fix.
16283         * doc/posix-functions/ioctl.texi: Doc fix.
16284         * doc/posix-functions/listen.texi: Doc fix.
16285         * doc/posix-functions/recv.texi: Doc fix.
16286         * doc/posix-functions/recvfrom.texi: Doc fix.
16287         * doc/posix-functions/send.texi: Doc fix.
16288         * doc/posix-functions/sendto.texi: Doc fix.
16289         * doc/posix-functions/setsockopt.texi: Doc fix.
16290         * doc/posix-functions/shutdown.texi: Doc fix.
16291         * doc/posix-functions/socket.texi: Doc fix.
16292
16293 2008-10-20  Bruno Haible  <bruno@clisp.org>
16294
16295         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16296         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16297         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16298         as an alias for SIGABRT.
16299         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16300         (sigaction): Map it to SIGABRT.
16301         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16302
16303 2008-10-20  Bruno Haible  <bruno@clisp.org>
16304
16305         * lib/fts.c: Don't include lstat.h.
16306         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16307
16308         Move the lstat() declaration to <sys/stat.h>.
16309         * lib/lstat.h: Remove file.
16310         * lib/sys_stat.in.h: Add special invocation convention.
16311         (lstat): New declaration.
16312         * lib/lstat.c (orig_lstat): New function.
16313         (rpl_lstat): Use orig_lstat instead of lstat.
16314         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16315         AC_C_INLINE. Set REPLACE_LSTAT.
16316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16317         and REPLACE_LSTAT.
16318         * modules/lstat (Files): Remove lib/lstat.h.
16319         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16320         (Include): Specify <sys/stat.h> instead of lstat.h.
16321         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16322         REPLACE_LSTAT.
16323         * NEWS: Mention the change.
16324
16325 2008-10-20  Bruno Haible  <bruno@clisp.org>
16326
16327         * modules/posix_spawn-tests: New file.
16328         * tests/test-posix_spawn3.c: New file.
16329
16330 2008-10-20  Bruno Haible  <bruno@clisp.org>
16331
16332         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16333         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16334         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16335         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16336         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16337
16338 2008-10-20  Bruno Haible  <bruno@clisp.org>
16339
16340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16341         of posix_spawn on AIX 5.3.
16342
16343 2008-10-20  Bruno Haible  <bruno@clisp.org>
16344
16345         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16346
16347 2008-10-20  Bruno Haible  <bruno@clisp.org>
16348
16349         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16350         of AC_LANG_PROGRAM.
16351
16352 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16353
16354         * lib/netdb.in.h: Don't define GNU specific constants until they
16355         are supported or needed.  Reported by Bruno Haible
16356         <bruno@clisp.org>.
16357
16358 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16359
16360         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16361
16362 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16363
16364         * lib/getaddrinfo.h: Remove file.
16365         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16366         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16367         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16368         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16369         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16370         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16371         * tests/test-getaddrinfo.c: Likewise.
16372         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16373         * NEWS: Mention change.
16374
16375 2008-10-19  Bruno Haible  <bruno@clisp.org>
16376
16377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16378
16379 2008-10-19  Bruno Haible  <bruno@clisp.org>
16380
16381         * lib/wait-process.c: Include simply <sys/wait.h>.
16382         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16383         WIFSTOPPED): Remove fallback definitions.
16384         * modules/wait-process (Depends-on): Add sys_wait.
16385
16386         New module 'sys_wait'.
16387         * modules/sys_wait: New file.
16388         * lib/sys_wait.in.h: New file, partially copied from
16389         lib/wait-process.c.
16390         * m4/sys_wait_h.m4: New file.
16391         * doc/posix-headers/sys_wait.texi: Mention the new module.
16392
16393 2008-10-19  Bruno Haible  <bruno@clisp.org>
16394
16395         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16396
16397 2008-10-19  Bruno Haible  <bruno@clisp.org>
16398
16399         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16400         * lib/wait-process.c (WAIT_T): Remove type.
16401         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16402         (wait_subprocess): Update.
16403
16404 2008-10-19  Bruno Haible  <bruno@clisp.org>
16405
16406         New module 'atoll'.
16407         * modules/atoll: New file.
16408         * lib/stdlib.in.h (atoll): New declaration.
16409         * lib/atoll.c: New file, from glibc with modifications.
16410         * m4/atoll.m4: New file.
16411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16412         HAVE_ATOLL.
16413         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16414         * doc/posix-functions/atoll.texi: Mention the new module.
16415
16416 2008-10-19  Bruno Haible  <bruno@clisp.org>
16417
16418         Add strtoull() declaration to <stdlib.h>.
16419         * lib/stdlib.in.h (strtoull): New declaration.
16420         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16421         Set HAVE_STRTOULL.
16422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16423         HAVE_STRTOULL.
16424         * modules/strtoull (Depends-on): Add stdlib.
16425         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16426         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16427         HAVE_STRTOULL.
16428
16429 2008-10-19  Bruno Haible  <bruno@clisp.org>
16430
16431         Add strtoll() declaration to <stdlib.h>.
16432         * lib/stdlib.in.h (strtoll): New declaration.
16433         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16434         Set HAVE_STRTOLL.
16435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16436         HAVE_STRTOLL.
16437         * modules/strtoll (Depends-on): Add stdlib.
16438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16439         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16440
16441 2008-10-19  Bruno Haible  <bruno@clisp.org>
16442
16443         * modules/bcopy (Depends-on): Add strings.
16444         (Include): Specify <strings.h>.
16445
16446 2008-10-19  Bruno Haible  <bruno@clisp.org>
16447
16448         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16449
16450 2008-10-19  Bruno Haible  <bruno@clisp.org>
16451
16452         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16453         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16454         mingw.
16455
16456 2008-10-19  Bruno Haible  <bruno@clisp.org>
16457
16458         * lib/atanl.c: Don't include isnanl.h.
16459         * lib/cosl.c: Likewise.
16460         * lib/ldexpl.c: Likewise.
16461         * lib/logl.c: Likewise.
16462         * lib/sinl.c: Likewise.
16463         * lib/sqrtl.c: Likewise.
16464         * lib/tanl.c: Likewise.
16465
16466         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16467         * lib/isnanf.h: Remove file.
16468         * lib/isnand.h: Remove file.
16469         * lib/isnanl.h: Remove file.
16470         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16471         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16472         macros.
16473         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16474         HAVE_ISNANF, don't define it as a C macro.
16475         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16476         HAVE_ISNAND, don't define it as a C macro.
16477         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16478         HAVE_ISNANL, don't define it as a C macro.
16479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16480         HAVE_ISNAN[FDL].
16481         * modules/isnanf (Files): Remove lib/isnanf.h.
16482         (Depends-on): Add math.
16483         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16484         (Include): Specify <math.h> instead of isnanf.h.
16485         * modules/isnand (Files): Remove lib/isnand.h.
16486         (Depends-on): Add math.
16487         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16488         (Include): Specify <math.h> instead of isnand.h.
16489         * modules/isnanl (Files): Remove lib/isnanl.h.
16490         (Depends-on): Add math.
16491         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16492         (Include): Specify <math.h> instead of isnanl.h.
16493         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16494         HAVE_ISNAN[FDL].
16495         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16496         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16497         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16498         * NEWS: Mention the change.
16499
16500 2008-10-18  Bruno Haible  <bruno@clisp.org>
16501
16502         Add getusershell(), setusershell(), endusershell() declarations to
16503         <unistd.h>.
16504         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16505         declarations.
16506         * lib/getusershell.c: Include unistd.h.
16507         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16508         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16509         HAVE_GETUSERSHELL.
16510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16511         and HAVE_GETUSERSHELL.
16512         * modules/getusershell (Depends-on): Add unistd, extensions.
16513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16514         (Include): Specify <unistd.h>.
16515         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16516         HAVE_GETUSERSHELL.
16517
16518 2008-10-18  Bruno Haible  <bruno@clisp.org>
16519
16520         Add a getloadavg() declaration to <stdlib.h>.
16521         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16522         getloadavg declaration.
16523         (getloadavg): New declaration.
16524         * lib/getloadavg.c: Include <stdlib.h> first.
16525         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16526         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16527         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16529         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16530         * modules/getloadavg (Depends-on): Add stdlib, extensions.
16531         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16532         (Include): Specify <stdlib.h>.
16533         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16534         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16535
16536 2008-10-18  Bruno Haible  <bruno@clisp.org>
16537
16538         * lib/dirchownmod.c: Don't include lchmod.h.
16539
16540         Move the lchmod() declaration to <sys/stat.h>.
16541         * lib/lchmod.h: Remove file.
16542         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16543         (lchmod): New declaration, moved here from lib/lchown.h.
16544         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16545         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16547         and HAVE_LCHMOD.
16548         * modules/lchmod (Files): Remove lib/lchmod.h.
16549         (Depends-on): Add sys_stat, extensions.
16550         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16551         (Include): Specify <sys/stat.h> instead of lchmod.h.
16552         * modules/sys_stat (Depends-on): Add link-warning.
16553         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16554         definition of GL_LINK_WARNING.
16555         * NEWS: Mention the change.
16556
16557 2008-10-18  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/fchdir.c: Don't include dirfd.h.
16560         * lib/fts.c: Likewise.
16561         * lib/getcwd.c: Likewise.
16562         * lib/glob.c: Likewise.
16563
16564         Move the dirfd() declaration to <dirent.h>.
16565         * lib/dirfd.h: Remove file.
16566         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16567         (dirfd): New declaration.
16568         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16569         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16570         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16571         HAVE_DECL_DIRFD.
16572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16573         HAVE_DECL_DIRFD.
16574         * modules/dirfd (Files): Remove lib/dirfd.h.
16575         (Depends-on): Add dirent, extensions.
16576         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16577         (Include): Specify <dirent.h> instead of dirfd.h.
16578         * modules/dirent (Depends-on): Add link-warning.
16579         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16580         definition of GL_LINK_WARNING.
16581         * NEWS: Mention the change.
16582
16583 2008-10-18  Bruno Haible  <bruno@clisp.org>
16584
16585         Move the euidaccess() declaration to <unistd.h>.
16586         * lib/euidaccess.h: Remove file.
16587         * lib/unistd.in.h (euidaccess): New declaration.
16588         * lib/euidaccess.c: Don't include euidaccess.h.
16589         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16590         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16592         and HAVE_EUIDACCESS.
16593         * modules/euidaccess (Files): Remove lib/euidaccess.h.
16594         (Depends-on): Add unistd.
16595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16596         (Include): Specify <unistd.h> instead of euidaccess.h.
16597         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16598         HAVE_EUIDACCESS.
16599         * NEWS: Mention the change.
16600
16601 2008-10-18  Bruno Haible  <bruno@clisp.org>
16602
16603         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16604
16605         Move the getdomainname() declaration to <unistd.h>.
16606         * lib/getdomainname.h: Remove file.
16607         * lib/unistd.in.h (getdomainname): New declaration.
16608         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16609         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16610         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16611         HAVE_GETDOMAINNAME.
16612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16613         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16614         * modules/getdomainname (Files): Remove lib/getdomainname.h.
16615         (Depends-on): Add unistd, extensions.
16616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16617         (Includes): Specify <unistd.h> instead of getdomainname.h.
16618         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16619         HAVE_GETDOMAINNAME.
16620         * NEWS: Mention the change.
16621
16622 2008-10-18  Bruno Haible  <bruno@clisp.org>
16623
16624         * modules/dirent: New file.
16625         * m4/dirent_h.m4: New file.
16626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16627         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16628         * modules/fchdir (Files): Remove lib/dirent.in.h.
16629         (Depends-on): Add dirent.
16630         (Makefile.am): Move rules to modules/dirent.
16631         * doc/posix-headers/dirent.texi: Mention the new module.
16632
16633 2008-10-18  Bruno Haible  <bruno@clisp.org>
16634
16635         Avoid -Wunused-parameter warnings in public gnulib header files.
16636         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16637         macro.
16638         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16639
16640 2008-10-18  Bruno Haible  <bruno@clisp.org>
16641
16642         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16643         * doc/glibc-functions/error.texi: Mention the module 'error'.
16644         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16645         * doc/glibc-functions/getdomainname.texi: Mention the module
16646         'getdomainname'.
16647         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16648         * doc/glibc-functions/getpagesize.texi: Mention the module
16649         'getpagesize'.
16650         * doc/glibc-functions/getusershell.texi: Mention the module
16651         'getusershell'.
16652         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16653         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16654         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16655         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16656         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16657         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16658         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16659         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16660         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16661         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16662         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16663         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16664         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16665         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16666
16667 2008-10-17  Bruno Haible  <bruno@clisp.org>
16668
16669         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16670         HP-UX and IRIX, use -0.0L.
16671         * tests/test-ceill.c (minus_zero): Likewise.
16672         * tests/test-floorl.c (minus_zero): Likewise.
16673         * tests/test-frexpl.c (minus_zero): Likewise.
16674         * tests/test-isnan.c (minus_zerol): Likewise.
16675         * tests/test-isnanl.h (minus_zero): Likewise.
16676         * tests/test-ldexpl.c (minus_zero): Likewise.
16677         * tests/test-roundl.c (minus_zero): Likewise.
16678         * tests/test-signbit.c (minus_zerol): Likewise.
16679         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16680         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16681         * tests/test-truncl.c (minus_zero): Likewise.
16682         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16683         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16684         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16685         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16686
16687 2008-10-17  Bruno Haible  <bruno@clisp.org>
16688
16689         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16690         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16691         that it gets activated only for gcc >= 3.0.
16692         * lib/dirent.in.h: Likewise.
16693         * lib/errno.in.h: Likewise.
16694         * lib/fcntl.in.h: Likewise.
16695         * lib/float.in.h: Likewise.
16696         * lib/iconv.in.h: Likewise.
16697         * lib/inttypes.in.h: Likewise.
16698         * lib/locale.in.h: Likewise.
16699         * lib/math.in.h: Likewise.
16700         * lib/netdb.in.h: Likewise.
16701         * lib/netinet_in.in.h: Likewise.
16702         * lib/search.in.h: Likewise.
16703         * lib/signal.in.h: Likewise.
16704         * lib/spawn.in.h: Likewise.
16705         * lib/stdarg.in.h: Likewise.
16706         * lib/stdint.in.h: Likewise.
16707         * lib/stdio.in.h: Likewise.
16708         * lib/stdlib.in.h: Likewise.
16709         * lib/string.in.h: Likewise.
16710         * lib/strings.in.h: Likewise.
16711         * lib/sys_file.in.h: Likewise.
16712         * lib/sys_ioctl.in.h: Likewise.
16713         * lib/sys_select.in.h: Likewise.
16714         * lib/sys_socket.in.h: Likewise.
16715         * lib/sys_stat.in.h: Likewise.
16716         * lib/sys_time.in.h: Likewise.
16717         * lib/sysexits.in.h: Likewise.
16718         * lib/time.in.h: Likewise.
16719         * lib/unistd.in.h: Likewise.
16720         * lib/wchar.in.h: Likewise.
16721         * lib/wctype.in.h: Likewise.
16722         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16723
16724 2008-10-17  Jim Meyering  <meyering@redhat.com>
16725
16726         ignore-value: don't depend on inline module
16727         * modules/ignore-value (Depends-on): Remove 'inline'.
16728         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
16729         Suggestion from Bruno Haible.
16730
16731 2008-10-17  Bruno Haible  <bruno@clisp.org>
16732
16733         New implementation of condition variables for Win32.
16734         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
16735         (gl_linked_waitqueue_t): New type.
16736         (gl_cond_t): Use it.
16737         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
16738         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
16739         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
16740         (glthread_cond_init_func, glthread_cond_wait_func,
16741         glthread_cond_timedwait_func, glthread_cond_signal_func,
16742         glthread_cond_broadcast_func, glthread_cond_destroy_func):
16743         Reimplemented on the basis of gl_linked_waitqueue_t.
16744         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
16745         gl_waitqueue_t.
16746         (gl_rwlock_t): Update.
16747         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
16748
16749 2008-10-17  Simon Josefsson  <simon@josefsson.org>
16750
16751         * modules/recvfrom (Depends-on): Add dependency on getpeername.
16752         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16753
16754 2008-10-17  Jim Meyering  <meyering@redhat.com>
16755
16756         ignore-value: new module
16757         * modules/ignore-value: New file.
16758         * lib/ignore-value.h: New file.
16759         * MODULES.html.sh (Compiler warning management): New section,
16760         just for this module.  More to come.
16761
16762 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16763
16764         open-safer.c: avoid 'signed and unsigned in conditional...' warning
16765         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
16766         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
16767
16768 2008-10-16  Jim Meyering  <meyering@redhat.com>
16769
16770         openat-die.c: avoid 'no previous prototype' warning
16771         * lib/openat-die.c: Include "openat.h".
16772         Reported by Reuben Thomas <rrt@sc3d.org>.
16773
16774 2008-10-16  Simon Josefsson  <simon@josefsson.org>
16775
16776         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16777         * lib/netdb.in.h: Fix typo.
16778         Reported by Bruno Haible  <bruno@clisp.org>
16779
16780         * lib/netdb.in.h: Include sys/socket.h for platforms without
16781         netdb.h, to get structures like hostent on MinGW.
16782         * modules/netdb (Depends-on): Add sys_socket.
16783
16784 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16785
16786         * modules/netdb, modules/netdb-tests: New file.
16787         * m4/netdb_h.m4: New file.
16788         * lib/netdb.in.h: Add, currently just an empty file pending
16789         definitions.
16790         * tests/test-netdb.c: New file.
16791         * doc/posix-headers/netdb.texi: Mention that we replace it if
16792         needed.
16793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16794         netdb.
16795
16796 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16797
16798         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
16799         with code.
16800
16801 2008-10-13  Bruno Haible  <bruno@clisp.org>
16802
16803         * lib/glthread/cond.c (glthread_cond_wait_func,
16804         glthread_cond_timedwait_func): Add a comment.
16805
16806 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16807
16808         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
16809         * tests/test-select.c: Likewise,
16810
16811 2008-10-13  Bruno Haible  <bruno@clisp.org>
16812
16813         * lib/glthread/cond.c (glthread_cond_wait_func,
16814         glthread_cond_timedwait_func): Fix variable name.
16815         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16816
16817 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
16818
16819         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
16820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
16821         struct sockaddr.sa_len.
16822         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
16823
16824 2008-10-13  Simon Josefsson  <simon@josefsson.org>
16825
16826         * build-aux/pmccabe2html: Add css and css_url parameters.
16827
16828 2008-10-12  Bruno Haible  <bruno@clisp.org>
16829
16830         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
16831         calling aclx_get.
16832         Reported by Rainer Tammer <tammer@tammer.net>.
16833
16834 2008-10-12  Bruno Haible  <bruno@clisp.org>
16835
16836         Use msvcrt aware primitives for creation/termination of Win32 threads.
16837         * lib/glthread/thread.c: Include <process.h>.
16838         (glthread_create_func): Use _beginthreadex instead of CreateThread.
16839         (wrapper_func): Update signature.
16840         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
16841
16842 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16843             Bruno Haible  <bruno@clisp.org>
16844
16845         Provide a Win32 implementation of the 'cond' module.
16846         * lib/glthread/cond.h [USE_WIN32]: New implementation.
16847         * lib/glthread/cond.c (glthread_cond_init_func,
16848         glthread_cond_wait_func, glthread_cond_timedwait_func,
16849         glthread_cond_signal_func, glthread_cond_broadcast_func,
16850         glthread_cond_destroy_func) [USE_WIN32]: New functions.
16851         * modules/cond (Dependencies): Add gettimeofday.
16852
16853 2008-10-11  Bruno Haible  <bruno@clisp.org>
16854
16855         Make sleep work on older versions of mingw.
16856         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
16857         only whether it exists.
16858         * doc/posix-functions/sleep.texi: Mention the problem with older
16859         versions of mingw.
16860
16861 2008-10-11  Bruno Haible  <bruno@clisp.org>
16862
16863         New module 'shutdown'.
16864         * modules/shutdown: New file.
16865         * lib/sys_socket.in.h (shutdown): New declaration.
16866         * lib/winsock.c (shutdown): New function.
16867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16868         GNULIB_SHUTDOWN.
16869         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
16870         * doc/posix-functions/shutdown.texi: Document the new module.
16871
16872 2008-10-11  Jim Meyering  <meyering@redhat.com>
16873
16874         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
16875
16876 2008-10-11  Bruno Haible  <bruno@clisp.org>
16877
16878         New module 'fclose'.
16879         * modules/fclose: New file.
16880         * lib/stdio.in.h (fclose): New declaration.
16881         * lib/fclose.c: New file.
16882         * m4/fclose.m4: New file.
16883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
16884         REPLACE_FCLOSE.
16885         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
16886         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
16887         REPLACE_FCLOSE.
16888         * modules/close (Depends-on): fclose.
16889         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
16890
16891 2008-10-11  Bruno Haible  <bruno@clisp.org>
16892
16893         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
16894         set errno and don't call _close.
16895
16896 2008-10-10  Bruno Haible  <bruno@clisp.org>
16897
16898         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
16899         ACL, not afterwards. Fixes test failure on Cygwin.
16900
16901 2008-10-09  Ben Pfaff  <blp@gnu.org>
16902
16903         * build-aux/announce-gen: Fix gnulib version related part of usage
16904         message.  Die with a useful error message if no tarballs are
16905         found.
16906
16907 2008-10-10  Jim Meyering  <meyering@redhat.com>
16908
16909         bootstrap: use git's --depth=N option only if it's supported
16910         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
16911         recognize the --depth option.  Reported by Pádraig Brady.
16912
16913 2008-10-09  Bruno Haible  <bruno@clisp.org>
16914
16915         New module 'ioctl'.
16916         * modules/ioctl: New file.
16917         * lib/sys_socket.in.h (ioctl): Remove declaration.
16918         * lib/winsock.c: Include <sys/ioctl.h>.
16919         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
16920         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16921         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
16922         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
16923         * doc/posix-functions/ioctl.texi: Mention the new module.
16924
16925 2008-10-09  Bruno Haible  <bruno@clisp.org>
16926
16927         New module 'sys_ioctl'.
16928         * lib/sys_ioctl.in.h: New file.
16929         * m4/sys_ioctl_h.m4: New file.
16930         * modules/sys_ioctl: New file.
16931         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
16932
16933 2008-10-09  Bruno Haible  <bruno@clisp.org>
16934
16935         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
16936         * lib/winsock.c: Include <stdarg.h>.
16937         (rpl_ioctl): Change to second argument 'int' and then varargs.
16938
16939 2008-10-09  Bruno Haible  <bruno@clisp.org>
16940
16941         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
16942         when the sys_socket module is present and the system has <winsock2.h>.
16943
16944 2008-10-09  Bruno Haible  <bruno@clisp.org>
16945
16946         * doc/posix-functions/close.texi: Mention module 'close' instead of
16947         module 'sys_socket'.
16948
16949 2008-10-09  Bruno Haible  <bruno@clisp.org>
16950
16951         * doc/glibc-headers/sys_ioctl.texi: New file.
16952         * doc/gnulib.texi: Include it.
16953
16954 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16955             Bruno Haible  <bruno@clisp.org>
16956
16957         Combine the two replacements of 'close'.
16958         * lib/sys_socket.in.h (close): Define to a reminder to include
16959         <unistd.h>.
16960         (_gl_close_fd_maybe_socket): New declaration.
16961         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
16962         * lib/winsock.c (close): Remove undefinition.
16963         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
16964         needed for the gnulib module 'close'.
16965         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
16966         define to an error symbol or to a warning, if suitable.
16967         * lib/close.c: Include <sys/socket.h>.
16968         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
16969         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
16970         UNISTD_H_HAVE_WINSOCK2_H.
16971         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
16972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16973         UNISTD_H_HAVE_WINSOCK2_H.
16974         * modules/sys_socket (Files): Add m4/unistd_h.m4.
16975         (configure.ac): Set a module indicator.
16976         (Makefile.am): Substitute GNULIB_CLOSE.
16977         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
16978         * modules/poll-tests (Depends-on): Add close.
16979         * modules/select-tests (Depends-on): Likewise.
16980
16981 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16982             Bruno Haible  <bruno@clisp.org>
16983
16984         New module 'close'.
16985         * modules/close: New file.
16986         * lib/unistd.in.h (close): Move declaration out of the
16987         FCHDIR_REPLACEMENT scope.
16988         (_gl_unregister_fd): New declaration.
16989         * lib/close.c: New file.
16990         * lib/fchdir.c (rpl_close): Remove function.
16991         * m4/close.m4: New file.
16992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
16993         close.
16994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
16995         REPLACE_CLOSE.
16996         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
16997         REPLACE_CLOSE.
16998         * modules/fchdir (Depends-on): Add close.
16999
17000 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17001             Bruno Haible  <bruno@clisp.org>
17002
17003         * lib/fcntl.in.h (open): Simplify conditionals.
17004         (_gl_register_fd): New declaration.
17005         * lib/fchdir.c (rpl_open): Remove function.
17006         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17007         also.
17008         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17010         open.
17011
17012 2008-10-09  Jim Meyering  <meyering@redhat.com>
17013
17014         GNUmakefile: use the more name-space-friendly "_version"
17015         * top/GNUmakefile (_dummy): Update.
17016         (_version): Rename from "version".
17017
17018 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17019             Bruno Haible  <bruno@clisp.org>
17020
17021         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17022         rpl_close.
17023         (_gl_register_fd): New function, extracted from rpl_open.
17024         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17025         (rpl_open, rpl_opendir): Use _gl_register_fd.
17026
17027 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17028
17029         Fix organization of 'open' replacement.
17030         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17031         (gl_FUNC_OPEN): Use it.
17032         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17033
17034 2008-10-08  Bruno Haible  <bruno@clisp.org>
17035
17036         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17037
17038 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17039
17040         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17041         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17042         listen).
17043
17044 2008-10-08  Eric Blake  <ebb9@byu.net>
17045
17046         GNUmakefile: add 'make version' target
17047         * top/GNUmakefile (_curr-ver): Split version update rules...
17048         (version): ...into a target.
17049
17050 2008-10-07  Bruno Haible  <bruno@clisp.org>
17051
17052         Use a more portable replacement expression for -0.0L.
17053         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17054         instead of -0.0L. Fix m4 quotation.
17055
17056         * tests/test-signbit.c: Include <float.h>.
17057         (minus_zero): New variable.
17058         (test_signbitl): Use minus_zero instead of -zero.
17059         * modules/signbit-tests (Depends-on): Add float.
17060
17061         * tests/test-ceill.c: Include <float.h>.
17062         (zero): Remove variable.
17063         (minus_zero): New variable.
17064         (main): Use minus_zero instead of -zero.
17065         * modules/ceill-tests (Depends-on): Add float.
17066
17067         * tests/test-floorl.c: Include <float.h>.
17068         (zero): Remove variable.
17069         (minus_zero): New variable.
17070         (main): Use minus_zero instead of -zero.
17071         * modules/floorl-tests (Depends-on): Add float.
17072
17073         * tests/test-roundl.c: Include <float.h>.
17074         (zero): Remove variable.
17075         (minus_zero): New variable.
17076         (main): Use minus_zero instead of -zero.
17077         * modules/roundl-tests (Depends-on): Add float.
17078
17079         * tests/test-truncl.c: Include <float.h>.
17080         (zero): Remove variable.
17081         (minus_zero): New variable.
17082         (main): Use minus_zero instead of -zero.
17083         * modules/truncl-tests (Depends-on): Add float.
17084
17085         * tests/test-frexpl.c (zero): Remove variable.
17086         (minus_zero): New variable.
17087         (main): Use minus_zero instead of -zero.
17088         * modules/frexpl-tests (Depends-on): Add float.
17089
17090         * tests/test-isnan.c (zerol): Remove variable.
17091         (minus_zerol): New variable.
17092         (test_long_double): Use minus_zerol instead of -zerol.
17093         * modules/isnan-tests (Depends-on): Add float.
17094
17095         * tests/test-isnanl.h (zero): Remove variable.
17096         (minus_zero): New variable.
17097         (main): Use minus_zero instead of -zero.
17098         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17099         * modules/isnanl-tests (Depends-on): Add float.
17100
17101         * tests/test-ldexpl.c (zero): Remove variable.
17102         (minus_zero): New variable.
17103         (main): Use minus_zero instead of -zero.
17104         * modules/ldexpl-tests (Depends-on): Add float.
17105
17106         * tests/test-snprintf-posix.h (zerol): Remove variable.
17107         (minus_zerol): New variable.
17108         (test_function): Use minus_zerol instead of -zerol.
17109         * modules/snprintf-posix-tests (Depends-on): Add float.
17110         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17111
17112         * tests/test-sprintf-posix.h (zerol): Remove variable.
17113         (minus_zerol): New variable.
17114         (test_function): Use minus_zerol instead of -zerol.
17115         * modules/sprintf-posix-tests (Depends-on): Add float.
17116         * modules/vsprintf-posix-tests (Depends-on): Add float.
17117
17118         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17119         (minus_zerol): New variable.
17120         (test_function): Use minus_zerol instead of -zerol.
17121         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17122
17123         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17124         (minus_zerol): New variable.
17125         (test_function): Use minus_zerol instead of -zerol.
17126         * modules/vasprintf-posix-tests (Depends-on): Add float.
17127
17128 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17129
17130         * MODULES.html.sh (Support for building documentation): Mention
17131         pmccabe2html.  Sort entries.
17132
17133         Add pmccabe2html module, from gnupdf.
17134         * build-aux/pmccabe.css: New file.
17135         * build-aux/pmccabe2html: New file.
17136         * m4/pmccabe2html.m4: New file.
17137         * modules/pmccabe2html: New file.
17138
17139 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17140
17141         flock: new module
17142         * MODULES.html.sh: Add to list of modules.
17143         * lib/flock.c: flock implementation for Windows and Unix systems
17144         which have fcntl.
17145         * doc/glibc-functions/flock.texi: Update documentation.
17146         * lib/sys_file.in.h: <sys/file.h> header file.
17147         * m4/flock.m4: M4 macros.
17148         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17149         * modules/flock: flock module.
17150         * modules/flock-tests: flock tests module.
17151         * modules/sys_file: sys/file.h module.
17152         * tests/test-flock.c: test suite for flock.
17153
17154 2008-10-06  Jim Meyering  <meyering@redhat.com>
17155
17156         bootstrap: check for LT_INIT more portably still ;-)
17157         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17158         Spotted by Bruno Haible.
17159
17160 2008-10-06  Eric Blake  <ebb9@byu.net>
17161
17162         test-signbit: avoid tripping Irix cc bug on -0.0L
17163         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17164         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17165         entire testsuite consistent and avoids an Irix 6.2 bug.
17166
17167 2008-10-05  Bruno Haible  <bruno@clisp.org>
17168             Jim Meyering  <jim@meyering.net>
17169
17170         Add an option for ignoring EPIPE during close_stdout.
17171         * lib/closeout.h: Include <stdbool.h>.
17172         (close_stdout_set_ignore_EPIPE): New declaration.
17173         * lib/closeout.c: Include <stdbool.h>.
17174         (ignore_EPIPE): New variable.
17175         (close_stdout_set_ignore_EPIPE): New function.
17176         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17177         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17178         failure.
17179         * modules/closeout (Depends-on): Add stdbool.
17180
17181 2008-10-05  Bruno Haible  <bruno@clisp.org>
17182
17183         * modules/accept: New file.
17184         * modules/bind: New file.
17185         * modules/connect: New file.
17186         * modules/getpeername: New file.
17187         * modules/getsockname: New file.
17188         * modules/getsockopt: New file.
17189         * modules/listen: New file.
17190         * modules/recv: New file.
17191         * modules/recvfrom: New file.
17192         * modules/send: New file.
17193         * modules/sendto: New file.
17194         * modules/setsockopt: New file.
17195         * modules/socket: New file.
17196         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17197         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17198         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17199         the particular module is requested. Add a link warning when the
17200         particular module is not requested.
17201         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17202         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17203         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17204         the particular module is requested.
17205         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17206         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17207         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17208         * modules/sys_socket (Depends-on): Add link-warning.
17209         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17210         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17211         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17212         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17213         GL_LINK_WARNING.
17214         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17215         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17216         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17217         * doc/posix-functions/getpeername.texi: Mention the new module
17218         'getpeername'.
17219         * doc/posix-functions/getsockname.texi: Mention the new module
17220         'getsockname'.
17221         * doc/posix-functions/getsockopt.texi: Mention the new module
17222         'getsockopt'.
17223         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17224         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17225         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17226         * doc/posix-functions/send.texi: Mention the new module 'send'.
17227         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17228         * doc/posix-functions/setsockopt.texi: Mention the new module
17229         'setsockopt'.
17230         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17231         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17232         listen, connect, accept.
17233         * modules/select-tests (Depends-on): Likewise.
17234
17235 2008-10-05  Bruno Haible  <bruno@clisp.org>
17236
17237         * lib/winsock.c (strerror): Remove unused #undef.
17238         (rpl_close): Remove unused local variable.
17239
17240         * modules/sys_socket (Depends-on); Add errno.
17241
17242 2008-10-05  Bruno Haible  <bruno@clisp.org>
17243
17244         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17245         (select): Add a link warning when the 'select' module is not used.
17246         * modules/sys_select (Depends-on): Add link-warning.
17247         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17248         Suggested by Paolo Bonzini.
17249
17250 2008-10-05  Jim Meyering  <meyering@redhat.com>
17251
17252         bootstrap: check for LT_INIT more portably
17253         * build-aux/bootstrap: Avoid using grep -E, since it's not
17254         portable enough.  Suggestion from Bruno Haible.
17255
17256 2008-10-05  Bruno Haible  <bruno@clisp.org>
17257
17258         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17259         as being fixed by gnulib.
17260
17261 2008-10-05  Bruno Haible  <bruno@clisp.org>
17262
17263         * modules/select-tests: New file, mostly copied from
17264         modules/sys_select-tests.
17265         * tests/test-select.c: New file, mostly copied from
17266         tests/test-sys_select.c.
17267         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17268         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17269         (Makefile.am): Remove test_sys_select_LDADD.
17270
17271         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17272         to an undefined symbol, for an error message.
17273         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17274         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17275         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17276         winsock-select.c here.
17277         * modules/sys_select (Files): Remove lib/winsock-select.c.
17278         (Depends-on): Remove alloca.
17279         (Makefile.am): Substitute GNULIB_SELECT.
17280         * modules/select: New file.
17281         * doc/posix-functions/select.texi: Update.
17282
17283 2008-10-05  Bruno Haible  <bruno@clisp.org>
17284
17285         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17286         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17287         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17288         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17289         getdtablesize.
17290         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17291         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17292
17293 2008-10-05  Bruno Haible  <bruno@clisp.org>
17294
17295         * modules/getdtablesize-tests: New file.
17296         * tests/test-getdtablesize.c: New file.
17297
17298         New module 'getdtablesize'.
17299         * lib/unistd.in.h (getdtablesize): New declaration.
17300         * lib/getdtablesize.c: New file.
17301         * m4/getdtablesize.m4: New file.
17302         * modules/getdtablesize: New file.
17303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17304         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17305         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17306         HAVE_GETDTABLESIZE.
17307         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17308
17309 2008-10-05  Bruno Haible  <bruno@clisp.org>
17310
17311         * modules/sched (Makefile.am): Fix typo.
17312         Reported by Simon Josefsson.
17313
17314 2008-10-05  Jim Meyering  <meyering@redhat.com>
17315
17316         bootstrap: check for LT_INIT, too
17317         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17318         are deprecated.  Suggestion from Ralf Wildenhues.
17319
17320 2008-10-05  Bruno Haible  <bruno@clisp.org>
17321
17322         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17323         overriding them by ours.
17324         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17325
17326 2008-10-05  Jim Meyering  <meyering@redhat.com>
17327
17328         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17329         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17330         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17331
17332 2008-10-04  Bruno Haible  <bruno@clisp.org>
17333
17334         * modules/dup2 (License): Change to LGPLv2+.
17335         * modules/sleep (License): Likewise.
17336         * modules/perror (License): Likewise.
17337         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17338         Blake.
17339         * modules/signal (License): Likewise.
17340         * modules/sigprocmask (License): Likewise.
17341         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17342         Meyering.
17343
17344 2008-10-04  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17347         Reported by Rainer Tammer <tammer@tammer.net>.
17348
17349 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17350             Bruno Haible  <bruno@clisp.org>
17351
17352         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17353         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17354         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17355
17356 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17357
17358         filevercmp: new module
17359         * lib/filevercmp.h: New function filevercmp comparing version strings.
17360         * lib/filevercmp.c: Implementation of filevercmp function.
17361         * modules/filevercmp: Module metadata.
17362         * tests/test-filevercmp.c: Unit test for new module.
17363         * modules/filevercmp-tests: Unit test metadata.
17364         * MODULES.html.sh: Add filevercmp module.
17365
17366 2008-10-03  Bruno Haible  <bruno@clisp.org>
17367
17368         * lib/c-ctype.h: Add comment.
17369         Reported by Jim Meyering.
17370
17371 2008-10-02  Bruno Haible  <bruno@clisp.org>
17372
17373         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17374
17375 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17376
17377         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17378         name of bootstrap.conf accordingly.
17379
17380 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17381
17382         * build-aux/bootstrap: Install git-merge-changelog configuration
17383         items into .gitconfig if needed.
17384
17385 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17386
17387         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17388         git repository, and initialize/update it accordingly.
17389
17390 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17391
17392         * modules/fsync-tests: New file.
17393         * tests/test-fsync.c: New file.
17394
17395         New module 'fsync'.
17396         * lib/fsync.c: New file.
17397         * m4/fsync.m4: New file.
17398         * modules/fsync: New file.
17399         * lib/unistd.in.h (fsync): New declaration.
17400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17401         GNULIB_FSYNC and HAVE_FSYNC.
17402         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17403         * MODULES.html.sh (posix_functions): Add fsync.
17404         * doc/posix-functions/fsync.texi: Mention the new module.
17405
17406 2008-10-02  Jim Meyering  <meyering@redhat.com>
17407
17408         fts.c: sync with similar code from coreutils' remove.c
17409         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17410         Guard also with "#if defined __linux__", since for now at least,
17411         this code is Linux-kernel-specific.
17412
17413 2008-10-02  Jim Meyering  <meyering@redhat.com>
17414
17415         fts: bug fixes
17416         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17417         Include <sys/vfs.h>, not <sys/statfs.h>.
17418
17419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17420         Include <sys/vfs.h>, not <sys/statfs.h>.
17421
17422 2008-10-01  Bruno Haible  <bruno@clisp.org>
17423
17424         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17426         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17427         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17428         * doc/posix-functions/posix_spawnp.texi: Likewise.
17429         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17430         whether posix_spawn actually works.
17431         * m4/pipe.m4 (gl_PIPE): Likewise.
17432         * modules/execute (Files): Add m4/posix_spawn.m4.
17433         * modules/pipe (Files): Add m4/posix_spawn.m4.
17434         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17435
17436 2008-10-01  Jim Meyering  <meyering@redhat.com>
17437
17438         remove trailing spaces
17439         * NEWS: Likewise.
17440         * lib/poll.c (poll): Likewise.
17441         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17442         * lib/winsock.c (rpl_close): Likewise.
17443         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17444         * modules/yield: Likewise.
17445         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17446         * tests/test-sys_select.c (connect_to_socket): Likewise.
17447
17448         fts.c: adjust a new interface to be more generally useful
17449         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17450         (fts_build): Adjust caller.
17451
17452 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17453
17454         * modules/cond-tests: New file.
17455         * tests/test-cond.c: New file.
17456
17457 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17458             Bruno Haible  <bruno@clisp.org>
17459
17460         * modules/cond (Dependencies): Add errno, time.
17461         * lib/glthread/cond.h: Include <time.h>.
17462         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17463         across platforms.
17464
17465 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17466             Bruno Haible  <bruno@clisp.org>
17467
17468         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17469
17470 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17471             Bruno Haible  <bruno@clisp.org>
17472
17473         * modules/tls-tests (Depends-on): Add thread, yield.
17474         (configure.ac): Remove all checks.
17475         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17476         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17477         gl_thread_self): Remove definitions. Include glthread/thread.h and
17478         glthread/yield.h instead.
17479         (test_tls): Pass an additional NULL argument to gl_thread_join.
17480
17481 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17482             Bruno Haible  <bruno@clisp.org>
17483
17484         * modules/lock-tests (Depends-on): Add thread, yield.
17485         (configure.ac): Remove all checks.
17486         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17487         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17488         gl_thread_self): Remove definitions. Include glthread/thread.h and
17489         glthread/yield.h instead.
17490         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17491         additional NULL argument to gl_thread_join.
17492
17493 2008-09-30  Bruno Haible  <bruno@clisp.org>
17494
17495         Fix the Win32 implementation of the 'thread' module.
17496         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17497         pointer type.
17498         (gl_thread_self): Invoke gl_thread_self_func.
17499         (gl_thread_self_func): New declaration.
17500         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17501         (do_init_self_key, init_self_key): New functions.
17502         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17503         Remove some fields.
17504         (running_threads, running_lock): Remove variables.
17505         (get_current_thread_handle): New function.
17506         (gl_thread_self_func, wrapper_func, glthread_create_func,
17507         glthread_join_func, gl_thread_exit_func): Largely rewritten and
17508         simplified.
17509
17510 2008-09-30  Bruno Haible  <bruno@clisp.org>
17511
17512         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17513         files.
17514
17515 2008-09-30  Jim Meyering  <meyering@redhat.com>
17516
17517         fts.m4: correct the test for statfs.f_type
17518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17519         when checking for statfs.f_type.
17520
17521 2008-09-15  Simon Josefsson  <simon@josefsson.org>
17522
17523         tests: avoid some compiler warnings
17524         * tests/test-memchr.c (main): Pass NULL indirectly.
17525         * tests/test-getdate.c (main): Remove unused variable 'ret'.
17526
17527 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
17528
17529         getdate.y: disallow countable dayshifts like "4 yesterday ago"
17530         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17531         exactly specified dayshifts.
17532         (dayshift): New rule.
17533         (rel): Add dayshift.
17534         (relative_time_table) [tomorrow, yesterday, today, now]:
17535         Use tDAY_SHIFT in place of tDAY_UNIT.
17536         * tests/test-getdate.c: Add tests for now-disallowed countable
17537         dayshifts, e.g., "4 yesterday ago".
17538
17539 2008-09-29  Bruno Haible  <bruno@clisp.org>
17540
17541         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17542         * tests/test-posix_spawn1.in.sh: Renamed from
17543         tests/test-posix_spawn.in.sh.
17544         * tests/test-posix_spawn2.c: New file.
17545         * tests/test-posix_spawn2.in.sh: New file.
17546         * modules/posix_spawnp-tests (Files): Update.
17547         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17548
17549 2008-09-29  Bruno Haible  <bruno@clisp.org>
17550
17551         Propagate effects of putenv/setenv/unsetenv to child processes.
17552         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17553         * lib/pipe.c (create_pipe): Likewise.
17554
17555 2008-09-29  Bruno Haible  <bruno@clisp.org>
17556
17557         Enable use of shell scripts as executables in mingw.
17558         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17559         run the program as a shell script.
17560         * lib/pipe.c (create_pipe): Likewise.
17561         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17562         resulting array.
17563
17564 2008-09-29  Eric Blake  <ebb9@byu.net>
17565
17566         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17567
17568 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
17569
17570         * doc/posix-functions/accept.texi: Update mingw problems.
17571         * doc/posix-functions/bind.texi: Update mingw problems.
17572         * doc/posix-functions/close.texi: Update mingw problems.
17573         * doc/posix-functions/connect.texi: Update mingw problems.
17574         * doc/posix-functions/getpeername.texi: Update mingw problems.
17575         * doc/posix-functions/getsockname.texi: Update mingw problems.
17576         * doc/posix-functions/getsockopt.texi: Update mingw problems.
17577         * doc/posix-functions/ioctl.texi: Update mingw problems.
17578         * doc/posix-functions/listen.texi: Update mingw problems.
17579         * doc/posix-functions/recv.texi: Update mingw problems.
17580         * doc/posix-functions/recvfrom.texi: Update mingw problems.
17581         * doc/posix-functions/select.texi: Update mingw problems.
17582         * doc/posix-functions/send.texi: Update mingw problems.
17583         * doc/posix-functions/sendto.texi: Update mingw problems.
17584         * doc/posix-functions/setsockopt.texi: Update mingw problems.
17585         * doc/posix-functions/socket.texi: Update mingw problems.
17586
17587 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
17588             Bruno Haible  <bruno@clisp.org>
17589
17590         * lib/sys_select.in.h: Include sys/time.h.
17591         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17592         * modules/sys_select: Depend on sys_time.
17593         * tests/test-sys_select.c: Test that sys/select.h defines struct
17594         timeval fully.
17595
17596 2008-09-29  Bruno Haible  <bruno@clisp.org>
17597
17598         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17599         * lib/sys_select.in.h: Likewise.
17600
17601 2008-09-29  Bruno Haible  <bruno@clisp.org>
17602
17603         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17604
17605 2008-09-29  Bruno Haible  <bruno@clisp.org>
17606
17607         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17608         Set LIBSOCKET instead of augmenting LIBS.
17609         * modules/sockets (Link): New section.
17610         * modules/sockets-tests (test_sockets_LDADD): New variable.
17611         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17612         * modules/poll-tests (test_poll_LDADD): New variable.
17613         * NEWS: Document the change.
17614
17615 2008-09-29  Bruno Haible  <bruno@clisp.org>
17616
17617         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17618         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17619         ARPA_INET_H directly.
17620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17621
17622 2008-09-28  Bruno Haible  <bruno@clisp.org>
17623
17624         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17625         from gl_HEADER_SYS_SOCKET.
17626         (gl_HEADER_SYS_SOCKET): Invoke it.
17627         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17628
17629 2008-09-28  Bruno Haible  <bruno@clisp.org>
17630
17631         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17632         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17633         Needed on OSF/1 4.0.
17634
17635 2008-09-28  Bruno Haible  <bruno@clisp.org>
17636
17637         Override open more carefully.
17638         * lib/open.c (orig_open): New function.
17639         (rpl_open): Use orig_open instead of open.
17640         * lib/fcntl.in.h: Add special invocation convention.
17641         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17642         (gl_FUNC_OPEN): Invoke it.
17643
17644         Override freopen more carefully.
17645         * lib/freopen.c (orig_freopen): New function.
17646         (rpl_freopen): Use orig_freopen instead of freopen.
17647         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17648         (gl_FUNC_FREOPEN): Invoke it.
17649
17650         Override fopen more carefully.
17651         * lib/fopen.c (orig_fopen): New function.
17652         (rpl_fopen): Use orig_fopen instead of fopen.
17653         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17654         (gl_FUNC_FOPEN): Invoke it.
17655         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17656
17657 2008-09-28  Bruno Haible  <bruno@clisp.org>
17658
17659         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17660         SIGPIPE.
17661
17662 2008-09-28  Bruno Haible  <bruno@clisp.org>
17663
17664         * tests/test-sigaction.c (handler, main): Disable the check whether
17665         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17666         glibc systems with LinuxThreads.
17667
17668 2008-09-28  Bruno Haible  <bruno@clisp.org>
17669
17670         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17671
17672         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17673         with AIX xlc.
17674         * lib/fcntl.in.h (open): Likewise.
17675         Reported by Rainer Tammer <tammer@tammer.net>.
17676
17677 2008-09-28  Bruno Haible  <bruno@clisp.org>
17678
17679         * modules/posix_spawnp-tests: New file.
17680         * tests/test-posix_spawn.c: New file.
17681         * tests/test-posix_spawn.in.sh: New file.
17682
17683         New module 'posix_spawnp'.
17684         * modules/posix_spawnp: New file.
17685         * lib/spawnp.c: New file, from GNU libc with modifications.
17686         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17687
17688         New module 'posix_spawn'.
17689         * modules/posix_spawn: New file.
17690         * lib/spawn.c: New file, from GNU libc with modifications.
17691         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17692
17693         New module 'posix_spawnattr_destroy'.
17694         * modules/posix_spawnattr_destroy: New file.
17695         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17696         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17697         module.
17698
17699         New module 'posix_spawnattr_setsigmask'.
17700         * modules/posix_spawnattr_setsigmask: New file.
17701         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17702         modifications.
17703         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17704         new module.
17705
17706         New module 'posix_spawnattr_getsigmask'.
17707         * modules/posix_spawnattr_getsigmask: New file.
17708         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17709         modifications.
17710         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17711         new module.
17712
17713         New module 'posix_spawnattr_setsigdefault'.
17714         * modules/posix_spawnattr_setsigdefault: New file.
17715         * lib/spawnattr_setdefault.c: New file, from GNU libc with
17716         modifications.
17717         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17718         new module.
17719
17720         New module 'posix_spawnattr_getsigdefault'.
17721         * modules/posix_spawnattr_getsigdefault: New file.
17722         * lib/spawnattr_getdefault.c: New file, from GNU libc with
17723         modifications.
17724         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
17725         new module.
17726
17727         New module 'posix_spawnattr_setschedpolicy'.
17728         * modules/posix_spawnattr_setschedpolicy: New file.
17729         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
17730         modifications.
17731         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
17732         new module.
17733
17734         New module 'posix_spawnattr_getschedpolicy'.
17735         * modules/posix_spawnattr_getschedpolicy: New file.
17736         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
17737         modifications.
17738         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
17739         new module.
17740
17741         New module 'posix_spawnattr_setschedparam'.
17742         * modules/posix_spawnattr_setschedparam: New file.
17743         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
17744         modifications.
17745         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
17746         new module.
17747
17748         New module 'posix_spawnattr_getschedparam'.
17749         * modules/posix_spawnattr_getschedparam: New file.
17750         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
17751         modifications.
17752         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
17753         new module.
17754
17755         New module 'posix_spawnattr_setpgroup'.
17756         * modules/posix_spawnattr_setpgroup: New file.
17757         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
17758         modifications.
17759         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
17760         module.
17761
17762         New module 'posix_spawnattr_getpgroup'.
17763         * modules/posix_spawnattr_getpgroup: New file.
17764         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
17765         modifications.
17766         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
17767         module.
17768
17769         New module 'posix_spawnattr_setflags'.
17770         * modules/posix_spawnattr_setflags: New file.
17771         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
17772         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
17773         module.
17774
17775         New module 'posix_spawnattr_getflags'.
17776         * modules/posix_spawnattr_getflags: New file.
17777         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
17778         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
17779         module.
17780
17781         New module 'posix_spawnattr_init'.
17782         * modules/posix_spawnattr_init: New file.
17783         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
17784         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
17785         module.
17786
17787         New module 'posix_spawn_file_actions_destroy'.
17788         * modules/posix_spawn_file_actions_destroy: New file.
17789         * lib/spawn_faction_destroy.c: New file, from GNU libc with
17790         modifications.
17791         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
17792         the new module.
17793
17794         New module 'posix_spawn_file_actions_addopen'.
17795         * modules/posix_spawn_file_actions_addopen: New file.
17796         * lib/spawn_faction_addopen.c: New file, from GNU libc with
17797         modifications.
17798         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
17799         the new module.
17800
17801         New module 'posix_spawn_file_actions_adddup2'.
17802         * modules/posix_spawn_file_actions_adddup2: New file.
17803         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
17804         modifications.
17805         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
17806         the new module.
17807
17808         New module 'posix_spawn_file_actions_addclose'.
17809         * modules/posix_spawn_file_actions_addclose: New file.
17810         * lib/spawn_faction_addclose.c: New file, from GNU libc with
17811         modifications.
17812         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
17813         the new module.
17814
17815         New module 'posix_spawn_file_actions_init'.
17816         * modules/posix_spawn_file_actions_init: New file.
17817         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
17818         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
17819         new module.
17820
17821         New module 'posix_spawn-internal'.
17822         * modules/posix_spawn-internal: New file.
17823         * lib/spawn_int.h: New file, from GNU libc with modifications.
17824         * lib/spawni.c: New file, from GNU libc with modifications.
17825         * m4/posix_spawn.m4: New file.
17826
17827         New module 'spawn'.
17828         * modules/spawn: New file.
17829         * lib/spawn.in.h: New file, from GNU libc with modifications.
17830         * m4/spawn_h.m4: New file.
17831         * doc/posix-headers/spawn.texi: Mention the new module.
17832
17833 2008-09-28  Bruno Haible  <bruno@clisp.org>
17834
17835         * modules/sched-tests: New file.
17836         * tests/test-sched.c: New file.
17837
17838         New module 'sched'.
17839         * modules/sched: New file.
17840         * lib/sched.in.h: New file.
17841         * m4/sched_h.m4: New file.
17842         * doc/posix-headers/sched.texi: Mention the new module.
17843
17844 2008-09-27  Eric Blake  <ebb9@byu.net>
17845
17846         Fix previous patch, and tweak references to $0.
17847         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
17848         (func_version, func_gnulib_dir): Don't call this program
17849         gnulib-tool.
17850         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
17851         with using $0 in function.
17852         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
17853         (func_fatal_error): Reuse the name the user invoked us with.
17854
17855 2008-09-27  Bruno Haible  <bruno@clisp.org>
17856
17857         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
17858         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
17859         (gl_ICONV_H): Not here.
17860         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17861         instead of assigning ICONV_H directly.
17862
17863         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
17864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
17865         WCHAR_H directly.
17866
17867 2008-09-27  Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
17870         * modules/arpa_inet (Depends-on): Add link-warning.
17871         (Makefile.am): Insert the definition of GL_LINK-WARNING.
17872         * modules/unistd (Makefile.am): Likewise.
17873
17874 2008-09-26  Bruno Haible  <bruno@clisp.org>
17875
17876         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
17877         variables.
17878         (func_version): Essentially copied from gnulib-tool.
17879         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
17880         func_readlink): Copied from gnulib-tool.
17881
17882 2008-09-26  Bruno Haible  <bruno@clisp.org>
17883
17884         * gnulib-tool (func_version): Change directory to $gnulib_dir before
17885         invoking git-version-gen.
17886
17887 2008-09-26  Bruno Haible  <bruno@clisp.org>
17888
17889         * posix-modules: Update to directory names changed on 2008-01-19.
17890         Remove commas in output before splitting into words. No more need to
17891         avoid 'ftruncate' since 2007-02-19.
17892
17893 2008-09-26  Bruno Haible  <bruno@clisp.org>
17894
17895         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
17896
17897 2008-09-26  Bruno Haible  <bruno@clisp.org>
17898
17899         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
17900         * modules/fwriteerror (Depends-on): Add errno.
17901
17902 2008-09-26  Bruno Haible  <bruno@clisp.org>
17903
17904         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
17905         * tests/test-vc-list-files-cvs.sh: Likewise.
17906
17907 2008-09-26  Bruno Haible  <bruno@clisp.org>
17908
17909         * doc/posix-headers/sys_resource.texi: Reorder items.
17910
17911 2008-09-26  Jim Meyering  <meyering@redhat.com>
17912
17913         fts: tweak inode comparison function
17914         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
17915         inode numbers, as documented.
17916
17917         fts: sort dirent entries on inode number before traversing
17918         This avoids a quadratic, seek-related performance penalty when
17919         operating on a directory containing many entries (measurable at 10k;
17920         3.5 hours at 2 million entries with a cold cache) on certain types
17921         of file systems, including ext3 and ext4, but not tmpfs.
17922         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
17923         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
17924         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
17925         (fs_handles_readdir_ordered_dirents_efficiently): New function.
17926         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
17927         (fts_build): Set the stat.st_ino member from D_INO.
17928         If it is likely to be useful, sort dirent entries on inode number.
17929
17930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
17931         and the struct statfs.f_type member.
17932         * modules/fts (Depends-on): Add d-ino.
17933
17934 2008-09-26  Bruno Haible  <bruno@clisp.org>
17935
17936         * modules/sigpipe-die (Depends-on): Add sigpipe.
17937
17938         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
17939         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
17940         and GNULIB_STDIO_H_SIGPIPE are set.
17941         * lib/stdio-write.c: New file.
17942         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
17943         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17944         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17945         REPLACE_STDIO_WRITE_FUNCS.
17946         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
17947         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17948         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17949         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
17950         * modules/stdio (Files): Add lib/stdio-write.c.
17951         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
17952         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17953         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17954         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
17955         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
17956         REPLACE_FPRINTF_POSIX.
17957         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
17958         REPLACE_PRINTF_POSIX.
17959         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
17960         REPLACE_VFPRINTF_POSIX.
17961         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
17962         REPLACE_VPRINTF_POSIX.
17963         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
17964         SIGPIPE issue.
17965         * doc/posix-functions/fputc.texi: Likewise.
17966         * doc/posix-functions/fputs.texi: Likewise.
17967         * doc/posix-functions/fwrite.texi: Likewise.
17968         * doc/posix-functions/printf.texi: Likewise.
17969         * doc/posix-functions/putc.texi: Likewise.
17970         * doc/posix-functions/putchar.texi: Likewise.
17971         * doc/posix-functions/puts.texi: Likewise.
17972         * doc/posix-functions/vfprintf.texi: Likewise.
17973         * doc/posix-functions/vprintf.texi: Likewise.
17974
17975         * modules/safe-write (Depends-on): Add write.
17976
17977         * modules/sigpipe-tests: New file.
17978         * tests/test-sigpipe.c: New file.
17979         * tests/test-sigpipe.sh: New file.
17980
17981         * modules/write: New file.
17982         * lib/unistd.in.h: Include <sys/types.h>.
17983         (write): New declaration.
17984         * lib/write.c: New file.
17985         * m4/write.m4: New file.
17986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17987         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
17988         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
17989         GNULIB_WRITE, REPLACE_WRITE.
17990         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
17991         and the SIGPIPE issue.
17992
17993         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
17994         (raise): New declaration.
17995         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
17996         (ext_signal): New function.
17997         (rpl_raise): New function.
17998         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17999         GNULIB_SIGNAL_H_SIGPIPE.
18000         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18001         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18002
18003         * modules/sigpipe: New file.
18004         * m4/sigpipe.m4: New file.
18005
18006 2008-09-25  Derek Price  <derek@ximbiot.com>
18007             Bruno Haible  <bruno@clisp.org>
18008
18009         * gnulib-tool (func_import): Report all license incompatibilities, not
18010         just the first one.
18011
18012 2008-09-25  Bruno Haible  <bruno@clisp.org>
18013
18014         * gnulib-tool (func_import): When computing the edits, consider not
18015         only the Makefile.ams that exist but also those that will be generated.
18016
18017 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18018
18019         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18020         fixes gnulib-tool --test warning about duplicate dependency.
18021
18022 2008-09-25  Bruno Haible  <bruno@clisp.org>
18023
18024         * gnulib-tool: Don't ask the user to perform edits in the generated
18025         Makefile.ams.
18026         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18027         apply to the Makefile.am being generated.
18028         (func_emit_tests_Makefile_am): Execute edits that apply to the
18029         Makefile.am being generated.
18030         (func_import): Setup list of Makefile.am edits before emitting the
18031         Makefile.ams, not at the end.
18032         (func_create_testdir): Update.
18033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18034
18035 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18036
18037         * gnulib-tool (func_import): Store the --tests-base option in the
18038         comment in gnulib-cache.m4.
18039
18040 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18041
18042         * NEWS: Document increased portability that sys_select now provides.
18043
18044         * lib/sys_select.in.h: Install select wrapper.
18045         * lib/sys_socket.in.h: Use more descriptive name when there is no
18046         select wrapper.
18047         * lib/winsock-select.c: New.
18048         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18049         Require gl_HEADER_SYS_SOCKET.
18050         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18051         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18052         * tests/test-sys_select.c: Add functional tests.
18053
18054 2008-09-24  Eric Blake  <ebb9@byu.net>
18055
18056         open, fopen: close fd leak in last patch
18057         * lib/open.c (rpl_open): Close fd before returning error.
18058         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18059         * doc/posix-functions/open.texi (open): Document that Irix also
18060         has the bug.
18061         * doc/posix-functions/fopen.texi (fopen): Likewise.
18062         Reported by Paolo Bonzini.
18063
18064 2008-09-24  Bruno Haible  <bruno@clisp.org>
18065
18066         Ensure that a filename ending in a slash cannot be used to access a
18067         non-directory.
18068         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18069         to check whether it's really a directory.
18070         * lib/fopen.c: Include fcntl.h, unistd.h.
18071         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18072         and fdopen().
18073         * modules/fopen (Depends-on): Add unistd.
18074         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18075         * tests/test-fopen.c (main): Likewise.
18076         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18077         * doc/posix-functions/fopen.texi: Likewise.
18078         Reported by Eric Blake.
18079
18080 2008-09-23  Eric Blake  <ebb9@byu.net>
18081
18082         c-stack: avoid compiler optimizations when provoking overflow
18083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18084         recursion harder to optimize, to ensure a stack overflow occurs.
18085         * tests/test-c-stack.c (recurse): Likewise.
18086         Borrowed from libsigsegv.
18087
18088         c-stack: work around Irix sigaltstack bug
18089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18090         whether sigaltstack uses wrong end of stack_t (copied in part from
18091         libsigsegv).
18092         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18093         Irix bug, without requiring an over-allocation.
18094         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18095         bug.
18096
18097         fopen: document mingw bug on directories
18098         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18099         not allowing a stream visiting a directory, even though reading
18100         from such a stream is not portable.
18101
18102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18103
18104         * lib/poll.c: Rewrite.
18105         * modules/poll: Depend on alloca.
18106
18107 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18108
18109         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18110         instead define prototypes for a full set of wrappers.  Ensure
18111         that Cygwin does not use the compatibility code, which is only
18112         for MinGW.
18113         * lib/winsock.c: New.
18114         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18115         * modules/sys_socket: Add lib/winsock.c.
18116
18117         * modules/poll-tests: Add errno and perror.
18118         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18119
18120 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18121
18122         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18123
18124 2008-09-23  Bruno Haible  <bruno@clisp.org>
18125
18126         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18127         * doc/glibc-functions/*: Likewise.
18128
18129 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18130
18131         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18132         success.
18133
18134 2008-09-22  Eric Blake  <ebb9@byu.net>
18135             Bruno Haible  <bruno@clisp.org>
18136
18137         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18138         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18139         supply %A but mishandle pseudo-NaN.
18140         Reported by Simon Josefsson.
18141
18142 2008-09-21  Bruno Haible  <bruno@clisp.org>
18143
18144         * tests/test-lock.c (main): Tweak skip message.
18145         * tests/test-tls.c (main): Likewise.
18146
18147 2008-09-21  Bruno Haible  <bruno@clisp.org>
18148
18149         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18150         whether 'struct sigaction' has sa_sigaction here...
18151         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18152         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18153
18154 2008-09-21  Bruno Haible  <bruno@clisp.org>
18155
18156         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18157         section.
18158         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18159         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18160         the new section.
18161         (Support for obsolete systems lacking POSIX:2001): New section.
18162         (String handling <string.h>): Move strdup to the new section.
18163         Suggested by Simon Josefsson and Paolo Bonzini.
18164
18165 2008-09-21  Bruno Haible  <bruno@clisp.org>
18166
18167         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18168         exponents in %e and %g results on 'long double'. Needed for mingw's
18169         improved *printf functions.
18170         * tests/test-vasprintf-posix.c (test_function): Likewise.
18171         * tests/test-snprintf-posix.h (test_function): Likewise.
18172         * tests/test-sprintf-posix.h (test_function): Likewise.
18173         Reported by Eric Blake.
18174
18175 2008-09-21  Bruno Haible  <bruno@clisp.org>
18176
18177         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18178         * tests/test-sprintf-posix.h (test_function): Likewise.
18179
18180 2008-09-21  Bruno Haible  <bruno@clisp.org>
18181
18182         * modules/getpass (Depends-on): Add strdup-posix.
18183
18184         New module 'strdup-posix'.
18185         * modules/strdup-posix: New file.
18186         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18187         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18189         REPLACE_STRDUP.
18190         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18191         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18193         strdup-posix.
18194
18195         * modules/strdup (Depends-on): Remove malloc-posix.
18196
18197 2008-09-20  Bruno Haible  <bruno@clisp.org>
18198
18199         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18200         Wildenhues.
18201
18202 2008-09-20  Bruno Haible  <bruno@clisp.org>
18203
18204         Ensure that wint_t gets defined on IRIX 5.3.
18205         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18206         * lib/wctype.in.h (wint_t): Likewise.
18207         (__wctype_wint_t): Remove type.
18208         (isw*): Use wint_t instead of __wctype_wint_t.
18209         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18210         * modules/wchar (Files): Add m4/wint_t.m4.
18211         (Makefile.am): Substitute HAVE_WINT_T.
18212         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18213         * tests/test-wctype.c: Check that wint_t is defined.
18214         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18215         * doc/posix-headers/wctype.texi: Likewise.
18216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18217
18218 2008-09-18  Bruno Haible  <bruno@clisp.org>
18219
18220         * gnulib-tool (func_exit): Update comment.
18221
18222 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18223
18224         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18225         assumes strdup exists and does not depend on strdup to return
18226         ENOMEM on out of memory conditions.
18227
18228 2008-09-18  Bruno Haible  <bruno@clisp.org>
18229
18230         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
18231         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18232         digits for the exponent.
18233
18234 2008-09-18  Jim Meyering  <meyering@redhat.com>
18235             Bruno Haible  <bruno@clisp.org>
18236
18237         * lib/vasnprintf.c (decimal_point_char): Define also if
18238         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18239
18240 2008-09-16  Bruno Haible  <bruno@clisp.org>
18241         and Eric Blake  <ebb9@byu.net>
18242
18243         vasnprintf: support Irix 5.3
18244         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18245         that mishandle long double infinity.
18246         Reported by Tom G. Christensen.
18247
18248 2008-09-16  Bruno Haible  <bruno@clisp.org>
18249
18250         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18251         Solaris 9.
18252         * doc/glibc-functions/alphasort.texi: Likewise.
18253         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18254
18255 2008-09-16  Jim Meyering  <meyering@redhat.com>
18256
18257         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18258         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18259         a umask modification leak out of a subshell.  Otherwise, the
18260         opensolaris /bin/sh would be accepted and thus cause unwarranted
18261         failures in the coreutils test suite.
18262
18263 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18264
18265         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18266         to succeed.
18267
18268 2008-09-16  Jim Meyering  <meyering@redhat.com>
18269
18270         avoid spurious test failure when library is built without ACL support
18271         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18272         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18273         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18274         * tests/test-copy-acl.sh: Likewise.
18275
18276 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18277
18278         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18279         based on character occurrence counts.
18280
18281 2008-09-15  Eric Blake  <ebb9@byu.net>
18282
18283         tests: avoid some compiler warnings
18284         * tests/test-memchr.c (main): Pass NULL indirectly.
18285         * tests/test-closein.c (main): Avoid unused variable.
18286
18287 2008-09-15  Bruno Haible  <bruno@clisp.org>
18288
18289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18290         are missing on OpenBSD 4.0 individually.
18291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18292
18293 2008-09-15  Bruno Haible  <bruno@clisp.org>
18294
18295         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18296         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18297         * doc/posix-functions/perror.texi: Likewise.
18298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18299         is missing.
18300         Reported by Eric Blake.
18301
18302         * lib/errno.in.h: Use replacement values >= 2000.
18303         Reported by Eric Blake.
18304
18305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18306
18307         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18308         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18309         limit.
18310         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18311         compareseq was aborted.
18312
18313 2008-09-14  Bruno Haible  <bruno@clisp.org>
18314
18315         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18316         yvec_edit_count.
18317         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18318         (fstrcmp_bounded): Simplify result computation accordingly.
18319
18320 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18321
18322         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18323         (fstrcmp): Define in terms of fstrcmp_bounded.
18324         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18325         lower_bound argument.
18326         Return quickly if the result is certainly < lower_bound.
18327         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18328
18329 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18330
18331         * lib/diffseq.h (EARLY_ABORT): New macro.
18332         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18333         evaluates to true.
18334
18335 2008-09-14  Bruno Haible  <bruno@clisp.org>
18336
18337         * modules/perror-tests: New file.
18338         * tests/test-perror.sh: New file.
18339         * tests/test-perror.c: New file.
18340
18341         New module 'perror'.
18342         * lib/stdio.in.h (perror): New declaration.
18343         * lib/perror.c: New file.
18344         * m4/perror.m4: New file.
18345         * modules/perror: New file.
18346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18347         * doc/posix-functions/perror.texi: Mention the perror module.
18348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18349         REPLACE_PERROR.
18350         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18351         REPLACE_PERROR.
18352
18353 2008-09-14  Bruno Haible  <bruno@clisp.org>
18354
18355         * modules/stdio (Makefile.am): Reorder to match the order in
18356         lib/stdio.in.h.
18357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18358
18359 2008-09-13  Bruno Haible  <bruno@clisp.org>
18360
18361         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18362
18363 2008-09-13  Bruno Haible  <bruno@clisp.org>
18364
18365         Extend strerror to cover the added errno values.
18366         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18367         (rpl_strerror): Provide error messages for the added errno values and
18368         for the WSA* values.
18369         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18370         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18371         strerror.
18372         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18373         * modules/strerror (Depends-on): Add errno.
18374         * doc/posix-functions/strerror.texi: Document the change.
18375         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18376         and EOVERFLOW.
18377
18378 2008-09-13  Bruno Haible  <bruno@clisp.org>
18379
18380         * modules/EOVERFLOW: Remove file.
18381         * m4/eoverflow.m4: Remove file.
18382         * modules/EOVERFLOW-tests: Remove file.
18383         * tests/test-EOVERFLOW.c: Remove file.
18384         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18385         * modules/ftell (Depends-on): Likewise.
18386         * modules/getdelim (Depends-on): Likewise.
18387         * modules/getugroups (Depends-on): Likewise.
18388         * modules/poll (Depends-on): Likewise.
18389         * modules/snprintf (Depends-on): Likewise.
18390         * modules/sprintf-posix (Depends-on): Likewise.
18391         * modules/vasnprintf (Depends-on): Likewise.
18392         * modules/vasprintf (Depends-on): Likewise.
18393         * modules/vfprintf-posix (Depends-on): Likewise.
18394         * modules/vsnprintf (Depends-on): Likewise.
18395         * modules/vsprintf-posix (Depends-on): Likewise.
18396         * modules/xvasprintf (Depends-on): Likewise.
18397         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18398         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18399         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18400         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18402         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18403         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18404         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18406         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18407         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18408         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18409         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18410         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18411         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18412         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18413         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18414         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18415         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18416         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18417         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18418         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18419         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18420         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18421         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18422         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18423         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18424         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18425         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18426         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18427         * MODULES.html.sh: Remove EOVERFLOW.
18428         * NEWS: Mention the change.
18429
18430 2008-09-13  Bruno Haible  <bruno@clisp.org>
18431
18432         * modules/errno-tests: New file.
18433         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18434
18435         * lib/errno.in.h: New file.
18436         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18437         * modules/errno: New file.
18438         * doc/posix-headers/errno.texi: Update documentation.
18439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18440
18441 2008-09-13  Bruno Haible  <bruno@clisp.org>
18442
18443         * tests/test-poll.c: Use #if for native Windows, rather than testing
18444         __MSVCRT__.
18445
18446 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18447             Bruno Haible  <bruno@clisp.org>
18448
18449         * lib/glob.c: Don't include <pwd.h> on native Windows.
18450         (WINDOWS32): New macro.
18451         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18452
18453 2008-09-13  Bruno Haible  <bruno@clisp.org>
18454
18455         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18456         (ETIMEDOUT): Remove macro.
18457         (glthread_cond_timedwait_multithreaded): New declaration.
18458         (glthread_cond_timedwait): Use it.
18459         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18460         (glthread_cond_timedwait_multithreaded): New function.
18461
18462 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18463
18464         * modules/poll-tests: Do not check for io.h.
18465         * tests/test-poll.c: Check for __MSVCRT__ instead.
18466
18467 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18468
18469         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18470         * modules/poll-tests: Add inet_pton, stdbool, sockets.
18471         * tests/test-poll.c: Use them.  Use _pipe on Windows.
18472
18473 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18474
18475         * modules/poll-tests: New.
18476         * tests/test-poll.c: New.
18477
18478 2008-09-12  Eric Blake  <ebb9@byu.net>
18479
18480         frexp: test for NetBSD failure on -0.0
18481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18482         not all, bugs from NetBSD 3.0 have been fixed.
18483         * doc/posix-functions/frexp.texi (frexp): Document bug.
18484         Reported by Thomas Klausner.
18485
18486         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18487         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18488         literal -0.0.
18489         Reported by Jonathan C. Patschke <jp@centtech.com>.
18490
18491 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18492
18493         * lib/glthread/cond.h: Use dummy implementation also if
18494         USE_WIN32_THREADS.
18495
18496 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18497
18498         * modules/fnmatch-posix (License): Change to LGPLv2+.
18499         * modules/fnmatch-gnu (License): Likewise.
18500
18501 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18502
18503         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18504
18505 2008-09-11  Jim Meyering  <meyering@redhat.com>
18506
18507         * users.txt: Add gtk-vnc.
18508
18509 2008-09-08  Simon Josefsson  <simon@josefsson.org>
18510
18511         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18512         rotate amounts.
18513
18514         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18515         required for 16-bit and 8-bit rotates.
18516         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18517         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18518         UINT8_MAX instead of hard-coded constants.
18519         Suggested by Paul Eggert.
18520
18521 2008-09-07  Bruno Haible  <bruno@clisp.org>
18522
18523         * tests/test-striconveh.c (main): Check behaviour when converting from
18524         UTF-7.
18525
18526         Make striconveh work better with stateful encodings.
18527         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18528         that iconv does not increment the inptr when returning -1/EINVAL.
18529
18530 2008-09-07  Bruno Haible  <bruno@clisp.org>
18531
18532         * build-aux/config.rpath: Update according to libtool-2.2.6.
18533         * build-aux/config.libpath: Likewise.
18534
18535 2008-09-06  Bruno Haible  <bruno@clisp.org>
18536
18537         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18538         * lib/freadptr.c (freadptr): Likewise.
18539         * lib/freadseek.c (freadptrinc): Likewise.
18540         Reported by Simon Josefsson.
18541
18542 2008-09-06  Bruno Haible  <bruno@clisp.org>
18543
18544         * modules/freadptr (License): Change to LGPLv2+.
18545         * modules/freadseek (License): Likewise.
18546         Suggested by Eric Blake.
18547
18548         * modules/memchr2 (License): Change to LGPLv2+.
18549         Approved by Eric Blake.
18550
18551 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18552             Bruno Haible  <bruno@clisp.org>
18553
18554         Make gnulib-tool work with native 'sed' on AIX.
18555         * gnulib-tool (sed_noop): New variable.
18556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18557         func_add_or_update, func_create_testdir): Use it to initialize sed
18558         script variables.
18559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18560
18561 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
18562             Bruno Haible  <bruno@clisp.org>
18563
18564         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18565         also works after #include directives.
18566
18567 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
18568
18569         getdate.y: reject an out-of-range timezone value
18570         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18571         the range [-24...+24].  When specified with only one or two digits,
18572         * tests/test-getdate.c: Tests for the fix.
18573         * doc/getdate.texi: Document this change.
18574
18575 2008-09-03  Bruno Haible  <bruno@clisp.org>
18576
18577         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18578
18579 2008-09-02  Simon Josefsson  <simon@josefsson.org>
18580
18581         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
18582         <bruce.korb@gmail.com> with ideas from Ben Pfaff
18583         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18584         Blake <ebb9@byu.net>.
18585
18586         * tests/test-bitrotate.c: Add more test vectors.
18587
18588 2008-09-02  Eric Blake  <ebb9@byu.net>
18589
18590         vasnprintf-posix: handle large precision via %.*d
18591         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18592         when handling it ourselves.
18593         * tests/test-vasnprintf-posix.c (test_function): Add test.
18594         * tests/test-snprintf-posix.h (test_function): Likewise.
18595         * tests/test-sprintf-posix.h (test_function): Likewise.
18596         * tests/test-vasprintf-posix.c (test_function): Likewise.
18597         Reported by Alain Guibert.
18598
18599 2008-09-01  Eric Blake  <ebb9@byu.net>
18600
18601         c-stack: make configure-time check more robust
18602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18603         successful sigaction call.
18604         Reported by Tom G. Christensen.
18605
18606 2008-09-01  Bruno Haible  <bruno@clisp.org>
18607
18608         New module 'findprog-lgpl'.
18609         * modules/findprog-lgpl: New file.
18610         * lib/findprog-lgpl.c: New file.
18611         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18612         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18613         to decide whether to use strdup or xstrdup, concatenated_filename or
18614         xconcatenated_filename.
18615
18616 2008-09-01  Bruno Haible  <bruno@clisp.org>
18617
18618         Split module 'concat-filename' into 'concat-filename' (LGPL) and
18619         'xconcat-filename' (GPL).
18620         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18621         (License): Change to LGPLv2+.
18622         * modules/xconcat-filename: New file.
18623         * lib/concat-filename.h (concatenated_filename): Change specification.
18624         (xconcatenated_filename): New declaration.
18625         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18626         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18627         memory situations.
18628         * lib/xconcat-filename.c: New file.
18629         * NEWS: Mention the change.
18630         * lib/findprog.c: Include concat-filename.h, not filename.h.
18631         (find_in_path): Use xconcatenated_filename instead of
18632         concatenated_filename.
18633         * lib/javacomp.c: Include concat-filename.h, not filename.h.
18634         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18635         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18636         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18637         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18638         instead of concatenated_filename.
18639         * lib/javaexec.c: Include concat-filename.h, not filename.h.
18640         (execute_java_class): Use xconcatenated_filename instead of
18641         concatenated_filename.
18642         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18643         * modules/javacomp (Depends-on): Likewise.
18644         * modules/javaexec (Depends-on): Likewise.
18645
18646 2008-09-01  Bruno Haible  <bruno@clisp.org>
18647
18648         Split module 'filename' into 'filename' and 'concat-filename'.
18649         * modules/filename: Keep only lib/filename.h.
18650         (License): Change to LGPLv2+.
18651         * modules/concat-filename: New file, extracted from modules/filename.
18652         * lib/filename.h (concatenated_filename): Remove declaration.
18653         * lib/concat-filename.h: New file, extracted from lib/filename.h.
18654         * lib/concat-filename.c: Include concat-filename.h.
18655         * NEWS: Mention the change.
18656
18657 2008-09-01  Simon Josefsson  <simon@josefsson.org>
18658
18659         * lib/bitrotate.h (rotl8, rotr8): Add.
18660
18661         * modules/bitrotate (configure.ac): Need
18662         AC_REQUIRE([AC_C_INLINE]).
18663         (Description): Mention stdint.h.  Reported by Bruno Haible
18664         <bruno@clisp.org>.
18665
18666         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
18667         Paolo Bonzini <bonzini@gnu.org>.
18668
18669 2008-08-31  Bruno Haible  <bruno@clisp.org>
18670
18671         Assume Solaris specific bi-arch conventions on Solaris systems.
18672         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18673         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18674         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18675         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18676         like acl_libdirstem.
18677         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18678         acl_libdirstem.
18679         * NEWS: Mention the change.
18680         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18681
18682 2008-08-31  Jim Meyering  <meyering@redhat.com>
18683
18684         * lib/strftime.h: Add comments describing the two added arguments.
18685
18686         remove duplicate #include directives
18687         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18688         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18689
18690 2008-08-31  Bruno Haible  <bruno@clisp.org>
18691
18692         New module 'sigpipe-die'.
18693         * modules/sigpipe-die: New file.
18694         * lib/sigpipe-die.h: New file.
18695         * lib/sigpipe-die.c: New file.
18696         * MODULES.html.sh (Signal handling): Add sigpipe-die.
18697
18698 2008-08-31  Bruno Haible  <bruno@clisp.org>
18699
18700         Don't override previously installed signal handlers.
18701         * lib/fatal-signal.c (saved_sigactions): New variable.
18702         (uninstall_handlers): Reset the signal to the saved handler, not
18703         to SIG_DFL (except when ignored).
18704         (install_handlers): Save the previous handlers.
18705
18706 2008-08-30  Bruno Haible  <bruno@clisp.org>
18707
18708         * gnulib-tool (func_reset_sigpipe): New function.
18709         (func_get_automake_snippet, func_modules_transitive_closure,
18710         func_import): Invoke it before a join command that reads from stdin,
18711         to avoid "echo: write error: Broken pipe" error messages on stderr.
18712         Reported by Sam Steingold <sds@gnu.org>.
18713
18714 2008-08-30  Bruno Haible  <bruno@clisp.org>
18715
18716         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18717         Code copied from m4/open.m4.
18718         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18719         access and the filename ends in a slash. Code copied from lib/open.c.
18720         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
18721         * tests/test-fopen.c (main): Check against bug with trailing slash.
18722
18723 2008-08-29  Bruno Haible  <bruno@clisp.org>
18724
18725         Avoid some "gcc -pedantic" warnings.
18726         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
18727         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
18728         * lib/dirent.in.h: Likewise.
18729         * lib/fcntl.in.h: Likewise.
18730         * lib/float.in.h: Likewise.
18731         * lib/iconv.in.h: Likewise.
18732         * lib/inttypes.in.h: Likewise.
18733         * lib/locale.in.h: Likewise.
18734         * lib/math.in.h: Likewise.
18735         * lib/netinet_in.in.h: Likewise.
18736         * lib/search.in.h: Likewise.
18737         * lib/signal.in.h: Likewise.
18738         * lib/stdarg.in.h: Likewise.
18739         * lib/stdint.in.h: Likewise.
18740         * lib/stdio.in.h: Likewise.
18741         * lib/stdlib.in.h: Likewise.
18742         * lib/string.in.h: Likewise.
18743         * lib/strings.in.h: Likewise.
18744         * lib/sys_select.in.h: Likewise.
18745         * lib/sys_socket.in.h: Likewise.
18746         * lib/sys_stat.in.h: Likewise.
18747         * lib/sys_time.in.h: Likewise.
18748         * lib/sysexits.in.h: Likewise.
18749         * lib/time.in.h: Likewise.
18750         * lib/unistd.in.h: Likewise.
18751         * lib/wchar.in.h: Likewise.
18752         * lib/wctype.in.h: Likewise.
18753         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
18754         * modules/fchdir (Makefile.am): Likewise.
18755         * modules/fcntl (Makefile.am): Likewise.
18756         * modules/float (Makefile.am): Likewise.
18757         * modules/iconv_open (Makefile.am): Likewise.
18758         * modules/inttypes (Makefile.am): Likewise.
18759         * modules/locale (Makefile.am): Likewise.
18760         * modules/math (Makefile.am): Likewise.
18761         * modules/netinet_in (Makefile.am): Likewise.
18762         * modules/search (Makefile.am): Likewise.
18763         * modules/signal (Makefile.am): Likewise.
18764         * modules/stdarg (Makefile.am): Likewise.
18765         * modules/stdint (Makefile.am): Likewise.
18766         * modules/stdio (Makefile.am): Likewise.
18767         * modules/stdlib (Makefile.am): Likewise.
18768         * modules/string (Makefile.am): Likewise.
18769         * modules/strings (Makefile.am): Likewise.
18770         * modules/sys_select (Makefile.am): Likewise.
18771         * modules/sys_socket (Makefile.am): Likewise.
18772         * modules/sys_stat (Makefile.am): Likewise.
18773         * modules/sys_time (Makefile.am): Likewise.
18774         * modules/sysexits (Makefile.am): Likewise.
18775         * modules/time (Makefile.am): Likewise.
18776         * modules/unistd (Makefile.am): Likewise.
18777         * modules/wchar (Makefile.am): Likewise.
18778         * modules/wctype (Makefile.am): Likewise.
18779         Reported by Reuben Thomas <rrt@sc3d.org>.
18780
18781 2008-08-29  Bruno Haible  <bruno@clisp.org>
18782
18783         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
18784         any more.
18785
18786 2008-08-29  Simon Josefsson  <simon@josefsson.org>
18787
18788         * MODULES.html.sh (Misc): Add bitrotate.
18789
18790         * modules/bitrotate: New file.
18791
18792         * lib/bitrotate.h: New file.
18793
18794         * modules/bitrotate-tests: New file.
18795
18796         * tests/test-bitrotate.c: New file.
18797
18798         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
18799         on the bitrotate module.
18800
18801         * lib/arctwo.c: Use new bitrotate module.
18802
18803 2008-08-29  Jim Meyering  <meyering@redhat.com>
18804
18805         bootstrap: merge changes from coreutils
18806         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
18807         of copied files.  Remove a kludge, now that this is fixed.
18808         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
18809         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
18810         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
18811
18812 2008-08-29  Bruno Haible  <bruno@clisp.org>
18813
18814         * MODULES.html.sh: Remove --cvs-urls option.
18815
18816 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
18817
18818         maint.mk: adjust to file name change
18819         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
18820
18821 2008-08-28  Jim Meyering  <meyering@redhat.com>
18822
18823         * modules/getndelim2 (License): Relicense to LGPLv2+.
18824         Approved by Richard Stallman for the version of 1995, and by
18825         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
18826
18827 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
18828
18829         * lib/getdelim.c (flockfile, funlockfile): Make all of them
18830         dummy if one is not available.  Do not touch them if
18831         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
18832         (getc_maybe_unlocked): New.
18833         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
18834
18835 2008-08-26  Eric Blake  <ebb9@byu.net>
18836
18837         doc/INSTALL: resync from autoconf
18838         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
18839         (INSTALL_PRELUDE): Delete; this is done more efficiently by
18840         moving...
18841         * install.texi [!autoconf]: ...here.  Resync from autoconf.
18842         * INSTALL: Regenerate.
18843         * INSTALL.ISO: New file.
18844         * INSTALL.UTF-8: Likewise.
18845
18846 2008-08-26  Jim Meyering  <meyering@redhat.com>
18847
18848         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
18849         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
18850         these definitions conditional, so that they may be overridden, too.
18851
18852 2008-08-26  Bruno Haible  <bruno@clisp.org>
18853
18854         Generate INSTALL file variants with prettier quotes.
18855         * doc/Makefile (INSTALL_PRELUDE): New macro.
18856         (INSTALL): Use it.
18857         (INSTALL.ISO, INSTALL.UTF-8): New rules.
18858
18859 2008-08-26  Bruno Haible  <bruno@clisp.org>
18860
18861         Run makeinfo in an English locale.
18862         * doc/Makefile (MAKEINFO): New variable.
18863
18864 2008-08-26  Bruno Haible  <bruno@clisp.org>
18865
18866         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
18867         Suggested by Eric Blake.
18868
18869 2008-08-25  Bruno Haible  <bruno@clisp.org>
18870
18871         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
18872
18873 2008-08-25  Eric Blake  <ebb9@byu.net>
18874
18875         c-stack: test that stack overflow can be caught
18876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
18877         that platform allows handling stack overflow; at least OS/2 EMX
18878         has sigaltstack, but crashes before transferring control to
18879         handler on stack overflow.
18880         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
18881         check for HAVE_STACK_OVERFLOW_HANDLING.
18882         Reported by Elbert Pol.
18883
18884 2008-08-25  Bruno Haible  <bruno@clisp.org>
18885
18886         * doc/posix-functions/strftime.texi: Fix description of strftime
18887         module.
18888
18889 2008-08-24  Bruno Haible  <bruno@clisp.org>
18890
18891         * tests/uniwidth/test-uc_width2.c: New file.
18892         * tests/uniwidth/test-uc_width2.sh: New file.
18893         * modules/uniwidth/width-tests (Files): Add the new files.
18894         (TESTS): Add uniwidth/test-uc_width2.sh.
18895         (TESTS_ENVIRONMENT): New variable.
18896         (check_PROGRAMS): Add test-uc_width2.
18897         (test_uc_width2_SOURCES): New variable.
18898
18899         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
18900         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
18901         not 0x00AB.
18902         Reported by Alexander V. Lukyanov <lav@netis.ru>.
18903
18904 2008-08-22  Eric Blake  <ebb9@byu.net>
18905
18906         test-lock, test-tls: mention why a test is skipped
18907         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
18908         skipped.
18909         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
18910
18911         count-one-bits: relax license
18912         * modules/count-one-bits (License): Relicense to LGPLv2+.
18913         Suggested by Ludovic Courtès, approved by Ben Pfaff.
18914
18915 2008-08-22  Andreas Schwab  <schwab@suse.de>
18916
18917         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18918         Remove spurious space in assignment.
18919
18920 2008-08-21  Simon Josefsson  <simon@josefsson.org>
18921
18922         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
18923         Paul Eggert <eggert@CS.UCLA.EDU>.
18924
18925 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
18926
18927         * modules/gettext: Add m4/threadlib.m4.
18928
18929 2008-08-19  Eric Blake  <ebb9@byu.net>
18930
18931         test-c-stack: fix compilation failure on FreeBSD 5.0
18932         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
18933         headers before <sys/resource.h>.
18934         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
18935         the bug.
18936         Reported by Nelson H. F. Beebe.
18937
18938         strverscmp: migrate from "strverscmp.h" to <string.h>
18939         * modules/string (Makefile.am): Add new hooks.
18940         * modules/strverscmp (Files): Remove strverscmp.h.
18941         (Depends-on): Add string.
18942         (configure.ac): Add indicator.
18943         (Include): Mention new header.
18944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
18945         defaults.
18946         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
18947         results.
18948         * lib/strverscmp.h: Delete.
18949         * lib/string.in.h (strverscmp): Provide declaration, when needed.
18950         * tests/test-strverscmp.c (includes): Adjust client.
18951         * lib/check-version.c (includes): Likewise.
18952         * NEWS: Document the change.
18953
18954         strverscmp: add unit test
18955         * modules/strverscmp-tests: New file.
18956         * tests/test-strverscmp.c: Likewise.
18957
18958 2008-08-19  Simon Josefsson  <simon@josefsson.org>
18959
18960         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
18961         regarding Windows crypto stuff, from Mono.
18962
18963 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
18964
18965         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
18966         if present, for intel RND.  Return error on failures.
18967
18968 2008-08-18  Ben Pfaff  <blp@gnu.org>
18969
18970         gitlog-to-changelog: give better diagnostic for failed pipe-open
18971         * build-aux/gitlog-to-changelog: Improve error message: suggest
18972         that the version of Git may be too old.
18973
18974 2008-08-18  Simon Josefsson  <simon@josefsson.org>
18975
18976         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
18977         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
18978
18979 2008-08-18  Bruno Haible  <bruno@clisp.org>
18980
18981         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
18982         pthread_in_use().
18983
18984 2008-08-18  Bruno Haible  <bruno@clisp.org>
18985
18986         * lib/glthread/threadlib.c: Include <pthread.h>.
18987
18988 2008-08-18  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
18991         glthread_recursive_lock_* macros.
18992         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
18993         Fix syntax error.
18994
18995 2008-08-18  Bruno Haible  <bruno@clisp.org>
18996
18997         * lib/glthread/thread.c: Avoid forcing a context switch right after
18998         thread creation.
18999
19000 2008-08-17  Bruno Haible  <bruno@clisp.org>
19001
19002         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19003         * lib/glthread/thread.h: Provide Win32 specific implementation.
19004         * modules/thread (Files): Add lib/glthread/thread.c.
19005         (Depends-on): Add lock.
19006         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19007
19008 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19009
19010         New module 'yield'.
19011         * modules/yield: New file.
19012         * lib/glthread/yield.h: New file.
19013         * m4/yield.m4: New file.
19014         * MODULES.html.sh (Multithreading): Add yield.
19015
19016 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19017
19018         New module 'thread'.
19019         * modules/thread: New file.
19020         * lib/glthread/thread.h: New file.
19021         * m4/thread.m4: New file.
19022         * MODULES.html.sh (Multithreading): Add thread.
19023
19024 2008-08-17  Bruno Haible  <bruno@clisp.org>
19025
19026         * lib/glthread/lock.h: Include <stdlib.h> always.
19027         * lib/glthread/tls.h: Likewise.
19028         * lib/glthread/cond.h: Likewise.
19029
19030 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19031
19032         New module 'cond'.
19033         * modules/cond: New file.
19034         * lib/glthread/cond.h: New file.
19035         * lib/glthread/cond.c: New file.
19036         * m4/cond.m4: New file.
19037         * MODULES.html.sh (Multithreading): Add cond.
19038
19039 2008-08-16  Eric Blake  <ebb9@byu.net>
19040
19041         c-stack: fix regression on Irix 5.3 from 2008-06-21
19042         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19043         sa_sigaction...
19044         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19045         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19047         * modules/signal (Makefile.am): Use the value.
19048         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19049         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19050         * doc/posix-headers/signal.texi (signal.h): Document this
19051         portability issue.
19052         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19053         Reported by Tom G. Christensen.
19054
19055 2008-08-17  Bruno Haible  <bruno@clisp.org>
19056
19057         New module 'threadlib'.
19058         * modules/threadlib: New file.
19059         * lib/glthread/threadlib.c: New file, extracted from
19060         lib/glthread/lock.c.
19061         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19062         functions.
19063         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19064         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19065         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19066         macros.
19067         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19068         (gl_DISABLE_THREADS): Remove macro.
19069         * modules/lock (Files): Remove build-aux/config.rpath.
19070         (Depends-on): Remove havelib. Add threadlib.
19071         (configure.ac-early): Remove section.
19072         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19073         * modules/tls (Depends-on): Remove lock. Add threadlib.
19074         (Link): New section, copied from threadlib.
19075         * MODULES.html.sh (Multithreading): Add threadlib.
19076
19077 2008-08-14  Bruno Haible  <bruno@clisp.org>
19078
19079         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19080         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19081         glthread_rwlock_unlock, glthread_rwlock_destroy,
19082         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19083         glthread_recursive_lock_destroy): Define as macros always.
19084         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19085         glthread_lock_lock.
19086         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19087         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19088         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19089         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19090         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19091         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19092         (glthread_recursive_lock_lock_func): Renamed from
19093         glthread_recursive_lock_lock.
19094         (glthread_recursive_lock_unlock_func): Renamed from
19095         glthread_recursive_lock_unlock.
19096         (glthread_recursive_lock_destroy_func): Renamed from
19097         glthread_recursive_lock_destroy.
19098
19099 2008-08-14  Bruno Haible  <bruno@clisp.org>
19100
19101         * lib/glthread/lock.h: Renamed from lib/lock.h.
19102         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19103         * lib/glthread/tls.h: Renamed from lib/tls.h.
19104         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19105         * lib/fstrcmp.c: Update includes.
19106         * lib/strsignal.c: Update includes.
19107         * modules/lock (Files, Makefile.am): Update.
19108         (Include): Change to "glthread/lock.h".
19109         * modules/tls (Files, Makefile.am): Update.
19110         (Include): Change to "glthread/tls.h".
19111         * tests/test-lock.c: Update includes.
19112         * tests/test-tls.c: Update includes.
19113         * NEWS: Mention the renamed header files.
19114
19115 2008-08-11  Jim Meyering  <meyering@redhat.com>
19116
19117         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19118
19119 2008-08-11  Eric Blake  <ebb9@byu.net>
19120
19121         test-c-stack: avoid C99-ism
19122         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19123         before statement.
19124         Reported by Alain Guibert.
19125
19126 2008-08-10  Jim Meyering  <meyering@redhat.com>
19127
19128         ensure that return value of uinttostr et al are not ignored
19129         * lib/inttostr.h (__GNUC_PREREQ): Define.
19130         (__attribute_warn_unused_result__): Define.
19131         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19132
19133 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19134
19135         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19136         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19137
19138 2008-08-07  Jim Meyering  <meyering@redhat.com>
19139
19140         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19141
19142         * modules/mkstemp (License): Relicense under LGPLv2+.
19143         * modules/tempname (License): Likewise.
19144
19145 2008-08-06  Bruno Haible  <bruno@clisp.org>
19146
19147         * lib/poll.c (poll): Further micro-optimization.
19148
19149 2008-08-06  Jim Meyering  <meyering@redhat.com>
19150
19151         inet_pton.c: use locale-independent tolower
19152         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19153         (inet_pton6): Use c_tolower rather than tolower.
19154         * modules/inet_pton (Depends-on): Add c-ctype.
19155
19156 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19157
19158         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19159         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19160
19161 2008-08-06  Jim Meyering  <meyering@redhat.com>
19162
19163         * modules/inet_pton (License): Relicense under LGPLv2+.
19164
19165 2008-08-03  Bruno Haible  <bruno@clisp.org>
19166
19167         Additional non-aborting API for lock and tls.
19168         * lib/lock.h: Include <errno.h>.
19169         (glthread_lock_init): New macro/function.
19170         (gl_lock_init): Define as wrapper around glthread_lock_init.
19171         (glthread_lock_lock): New macro/function.
19172         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19173         (glthread_lock_unlock): New macro/function.
19174         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19175         (glthread_lock_destroy): New macro/function.
19176         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19177         (glthread_rwlock_init): New macro/function.
19178         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19179         (glthread_rwlock_rdlock): New macro/function.
19180         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19181         (glthread_rwlock_wrlock): New macro/function.
19182         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19183         (glthread_rwlock_unlock): New macro/function.
19184         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19185         (glthread_rwlock_destroy): New macro/function.
19186         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19187         (glthread_recursive_lock_init): New macro/function.
19188         (gl_recursive_lock_init): Define as wrapper around
19189         glthread_recursive_lock_init.
19190         (glthread_recursive_lock_lock): New macro/function.
19191         (gl_recursive_lock_lock): Define as wrapper around
19192         glthread_recursive_lock_lock.
19193         (glthread_recursive_lock_unlock): New macro/function.
19194         (gl_recursive_lock_unlock): Define as wrapper around
19195         glthread_recursive_lock_unlock.
19196         (glthread_recursive_lock_destroy): New macro/function.
19197         (gl_recursive_lock_destroy): Define as wrapper around
19198         glthread_recursive_lock_destroy.
19199         (glthread_once): New macro/function.
19200         (gl_once): Define as wrapper around glthread_once.
19201         Update function declarations.
19202         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19203         glthread_rwlock_init. Return error code.
19204         (glthread_rwlock_rdlock_multithreaded): Renamed from
19205         glthread_rwlock_rdlock. Return error code.
19206         (glthread_rwlock_wrlock_multithreaded): Renamed from
19207         glthread_rwlock_wrlock. Return error code.
19208         (glthread_rwlock_unlock_multithreaded): Renamed from
19209         glthread_rwlock_unlock. Return error code.
19210         (glthread_rwlock_destroy_multithreaded): Renamed from
19211         glthread_rwlock_destroy. Return error code.
19212         (glthread_recursive_lock_init_multithreaded): Renamed from
19213         glthread_recursive_lock_init. Return error code.
19214         (glthread_recursive_lock_lock_multithreaded): Renamed from
19215         glthread_recursive_lock_lock. Return error code.
19216         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19217         glthread_recursive_lock_unlock. Return error code.
19218         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19219         glthread_recursive_lock_destroy. Return error code.
19220         (glthread_once_call): Make static.
19221         (glthread_once_multithreaded): Renamed from glthread_once.
19222         * lib/tls.h: Include <errno.h>.
19223         (glthread_tls_key_init): New macro/function.
19224         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19225         (glthread_tls_set): New macro/function.
19226         (gl_tls_set): Define as wrapper around glthread_tls_set.
19227         (glthread_tls_key_destroy): New macro/function.
19228         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19229         Update function declarations.
19230         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19231         glthread_tls_get.
19232         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19233
19234 2008-08-04  Eric Blake  <ebb9@byu.net>
19235
19236         gnumakefile: use space, not TAB, outside of targets
19237         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19238
19239 2008-08-02  Jim Meyering  <meyering@redhat.com>
19240
19241         getdate.y: avoid locale-dependent date parsing failure
19242         In Turkish locales, getdate would fail to recognize keywords
19243         containing a lowercase "i".  The solution is not to rely on
19244         locale-sensitive case-conversion.
19245         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19246         (lookup_word): Use c_toupper in place of toupper.
19247         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19248         Reported by Vefa Bicakci <bicave@superonline.com> in
19249         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19250         * modules/getdate (Depends-on): Add c-ctype.
19251
19252 2008-08-02  Bruno Haible  <bruno@clisp.org>
19253
19254         * gnulib-tool (func_import): When updating or creating a .gitignore
19255         file, prepend each added line with a slash, and ignore leading slashes
19256         from the existing lines.
19257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19258
19259 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19260
19261         Portability fix for GNU make 3.79.1.
19262         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19263         versions do not understand.
19264
19265 2008-08-01  Bruno Haible  <bruno@clisp.org>
19266
19267         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19268         * tests/test-isnanf.h (zero): New variable.
19269         (main): Avoid literal -0.0f.
19270         * tests/test-isnand.h (zero): New variable.
19271         (main): Avoid literal -0.0.
19272         * tests/test-isnanl.h (zero): New variable.
19273         (main): Avoid literal -0.0L.
19274         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19275         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19276         -0.0, -0.0L.
19277         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19278         (test_signbitd): Avoid literal -0.0.
19279         (test_signbitl): Avoid literal -0.0L.
19280         * tests/test-ceilf1.c (zero): New variable.
19281         (main): Avoid literal -0.0f.
19282         * tests/test-ceill.c (zero): New variable.
19283         (main): Avoid literal -0.0L.
19284         * tests/test-floorf1.c (zero): New variable.
19285         (main): Avoid literal -0.0f.
19286         * tests/test-floorl.c (zero): New variable.
19287         (main): Avoid literal -0.0L.
19288         * tests/test-roundf1.c (zero): New variable.
19289         (main): Avoid literal -0.0f.
19290         * tests/test-round1.c (zero): New variable.
19291         (main): Avoid literal -0.0.
19292         * tests/test-roundl.c (zero): New variable.
19293         (main): Avoid literal -0.0L.
19294         * tests/test-truncf1.c (zero): New variable.
19295         (main): Avoid literal -0.0f.
19296         * tests/test-trunc1.c (zero): New variable.
19297         (main): Avoid literal -0.0.
19298         * tests/test-truncl.c (zero): New variable.
19299         (main): Avoid literal -0.0L.
19300         * tests/test-frexp.c (zero): New variable.
19301         (main): Avoid literal -0.0.
19302         * tests/test-frexpl.c (zero): New variable.
19303         (main): Avoid literal -0.0L.
19304         * tests/test-ldexpl.c (zero): New variable.
19305         (main): Avoid literal -0.0L.
19306         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19307         (zerod, zerol): New variables.
19308         (test_function): Avoid literals -0.0, -0.0L.
19309         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19310         (zerod, zerol): New variables.
19311         (test_function): Avoid literals -0.0, -0.0L.
19312         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19313         (zerod, zerol): New variables.
19314         (test_function): Avoid literals -0.0, -0.0L.
19315         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19316         (zerod, zerol): New variables.
19317         (test_function): Avoid literals -0.0, -0.0L.
19318         * tests/test-strtod.c (zero): New variable.
19319         (main): Avoid literal -0.0.
19320         Reported by Jonathan C. Patschke <jp@centtech.com>.
19321
19322 2008-07-31  Jim Meyering  <meyering@redhat.com>
19323
19324         sha256.h: correct definition of SHA224_DIGEST_SIZE
19325         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19326         Reported by Paulie Pena IV <paulie4@gmail.com>.
19327         Define as 224 / 8, rather than as a literal.
19328         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19329         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19330         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19331
19332 2008-07-31  Bruno Haible  <bruno@clisp.org>
19333
19334         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19335         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19336         Reported by Jonathan Patschke <jp@centtech.com>.
19337
19338 2008-07-31  Bruno Haible  <bruno@clisp.org>
19339
19340         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19341         Reported by Paolo Bonzini <bonzini@gnu.org>.
19342
19343 2008-07-30  Eric Blake  <ebb9@byu.net>
19344
19345         test-strtod: allow compilation without -lm
19346         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19347         Reported by Dennis Clarke <blastwave@gmail.com>.
19348
19349 2008-07-28  Jim Meyering  <meyering@redhat.com>
19350
19351         bootstrap: work also when there are no .po files in po/
19352         * build-aux/bootstrap (update_po_files): Complete the change
19353         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19354
19355 2008-07-27  Jim Meyering  <meyering@redhat.com>
19356
19357         * users.txt: Add zile.
19358
19359 2008-07-26  Ben Pfaff  <blp@gnu.org>
19360
19361         Add missing dependencies on new m4/exponent[fdl].m4 files.
19362         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19363         * modules/isnand-nolibm: Add m4/exponentd.m4.
19364         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19365         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19366         m4/isnan[fdl].m4, because the macros actually used moved.
19367         Reported by Jim Meyering.
19368
19369 2008-07-14  Ben Pfaff  <blp@gnu.org>
19370
19371         Add isinf module.
19372         * lib/isinf.c: New file.
19373         * lib/math.in.h: Define isinf macro if we have decided to replace
19374         it.
19375         * m4/isinf.m4: New file.
19376         * m4/math_h.m4: Initialize and substitute variables for isinf
19377         module.
19378         * modules/isinf: New file.
19379         * modules/isinf-tests: New file.
19380         * modules/math: Add substitutions for new module.
19381         * tests/test-isinf.c: New file.
19382         * doc/posix-functions/isinf.texi: Mention new module.
19383         * MODULES.html.sh: Mention new module.
19384
19385 2008-07-14  Ben Pfaff  <blp@gnu.org>
19386
19387         Factor out some macros for use by additional modules.
19388         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19389         exponentf.m4.
19390         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19391         exponentd.m4.
19392         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19393         file exponentl.m4.
19394         * m4/exponentf.m4: New file.
19395         * m4/exponentd.m4: New file.
19396         * m4/exponentl.m4: New file.
19397         * modules/isnanf: Use new file m4/exponentf.m4.
19398         * modules/isnand: Use new file m4/exponentd.m4.
19399         * modules/isnanl: Use new file m4/exponentl.m4.
19400
19401 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19402
19403         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19404         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19405         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19406         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19407
19408         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19409         readlink on platforms without PATH_MAX.
19410
19411 2008-07-21  Eric Blake  <ebb9@byu.net>
19412
19413         Warn, not fail, on stale version.
19414         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19415
19416         Don't allow installation with stale devel version number.
19417         * top/GNUmakefile (_is-install-target): New macro.
19418         (_curr-ver): Forbid installation with stale version number.
19419
19420 2008-07-20  Bruno Haible  <bruno@clisp.org>
19421
19422         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19423         TESTS_ENVIRONMENT.
19424         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19425
19426 2008-07-20  Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/c-stack.h (c_stack_action): Add documentation.
19429         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19430
19431 2008-07-20  Bruno Haible  <bruno@clisp.org>
19432
19433         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19434         * modules/readlink (License): Likewise.
19435
19436 2008-07-17  Eric Blake  <ebb9@byu.net>
19437
19438         * modules/c-stack (Link): Fix typo.
19439
19440         Make c-stack use libsigsegv, when available.
19441         * modules/c-stack (Depends-on): Add libsigsegv.
19442         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19443         needed.
19444         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19445         (segv_handler, overflow_handler, c_stack_action)
19446         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19447         implementation when libsigsegv is available, but only when using
19448         the library is necessary.
19449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19450         comment, explaining why XSI check fails on Linux.
19451         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19452         * tests/test-c-stack2.sh: Tweak skip message.
19453         * NEWS: Document new link-time requirements.
19454
19455 2008-07-16  Eric Blake  <ebb9@byu.net>
19456
19457         c-stack: Expose false positives when not using libsigsegv.
19458         * modules/c-stack-tests (Files): Expand test.
19459         * tests/test-c-stack.c (main): Add means to conditionally trigger
19460         non-overflow SIGSEGV.
19461         * tests/test-c-stack2.sh: New file.
19462
19463 2008-07-14  Bruno Haible  <bruno@clisp.org>
19464
19465         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19466         Reported by Eric Blake.
19467
19468 2008-07-14  Sam Steingold  <sds@gnu.org>
19469             Bruno Haible  <bruno@clisp.org>
19470
19471         New module libsigsegv.
19472         * modules/libsigsegv: New file.
19473         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19474         modifications.
19475         * MODULES.html.sh (Signal handling): New section.
19476
19477 2008-07-14  Bruno Haible  <bruno@clisp.org>
19478
19479         * modules/unictype/ctype-* (Description): Add the word "function".
19480         Improves the resulting doc in MODULES.html.
19481
19482 2008-07-12  Ben Pfaff  <blp@gnu.org>
19483
19484         Add longlong module.
19485         * modules/longlong: New file.
19486
19487 2008-07-12  Bruno Haible  <bruno@clisp.org>
19488
19489         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19490         to empty.
19491
19492 2008-07-10  Ben Pfaff  <blp@gnu.org>
19493
19494         Add isnan module.
19495         * doc/posix-functions/isnan.texi: Mention new module.
19496         * lib/math.in.h: Define isnan macro if we have decided to replace
19497         it.
19498         * m4/isnan.m4: New file.
19499         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19500         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19501         also.
19502         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19503         redundancy.
19504         * m4/math_h.m4: Initialize and substitute variables for isnan
19505         module.
19506         * modules/isnan: New file.
19507         * modules/isnan-tests: New file.
19508         * modules/math: Add substitutions for new module.
19509         * tests/test-isnan.c: New file.
19510         * MODULES.html.sh: Mention new module.
19511
19512 2008-07-10  Ben Pfaff  <blp@gnu.org>
19513
19514         Add isnanf module.
19515         * lib/isnanf.m4: New file.
19516         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19517         (gl_HAVE_ISNANF_IN_LIBM): New macro.
19518         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19519         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19520         * modules/isnanf: New file.
19521         * modules/isnanf-tests: New file.
19522         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19523         files.
19524         * tests/test-isnanf-nolibm.c: factored most of its contents into
19525         new file tests/test-isnanf.h.
19526         * tests/test-isnanf.h: New file.
19527         * tests/test-isnanf.c: New file.
19528         * MODULES.html.sh: Mention new module.
19529         * doc/glibc-functions/isnanf.texi: Mention new module.
19530
19531 2008-07-10  Ben Pfaff  <blp@gnu.org>
19532
19533         Add isnand module.
19534         * lib/isnand.h: New file.
19535         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19536         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19537         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19538         functionality also.
19539         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19540         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19541         (gl_HAVE_ISNAND_IN_LIBM): New macro.
19542         * modules/isnand: New file.
19543         * modules/isnand-tests: New file.
19544         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19545         files.
19546         * tests/test-isnand-nolibm.c: factored most of its contents into
19547         new file tests/test-isnand.h.
19548         * tests/test-isnand.h: New file.
19549         * tests/test-isnand.c: New file.
19550         * MODULES.html.sh: Mention new module.
19551
19552 2008-07-10  Ben Pfaff  <blp@gnu.org>
19553
19554         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19555         * lib/isnand.h: Rename lib/isnand-nolibm.h.
19556         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19557         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19558         * modules/isnanf-nolibm: Update references to renamed files.
19559         * modules/isnand-nolibm: Likewise.
19560         * modules/isnanf-nolibm-tests: Likewise.
19561         * modules/isnand-nolibm-tests: Likewise.
19562         * lib/frexp.c: Likewise.
19563         * lib/isfinite.c: Likewise.
19564         * lib/signbitd.c: Likewise.
19565         * lib/signbitf.c: Likewise.
19566         * lib/vasnprintf.c: Likewise.
19567         * tests/test-ceilf1.c: Likewise.
19568         * tests/test-ceilf2.c: Likewise.
19569         * tests/test-floorf1.c: Likewise.
19570         * tests/test-floorf2.c: Likewise.
19571         * tests/test-frexp.c: Likewise.
19572         * tests/test-round1.c: Likewise.
19573         * tests/test-round2.c: Likewise.
19574         * tests/test-roundf1.c: Likewise.
19575         * tests/test-strtod.c: Likewise.
19576         * tests/test-trunc1.c: Likewise.
19577         * tests/test-trunc2.c: Likewise.
19578         * tests/test-truncf1.c: Likewise.
19579         * tests/test-truncf2.c: Likewise.
19580         * NEWS: Mention the renamed header files.
19581
19582 2008-07-11  Jim Meyering  <meyering@redhat.com>
19583
19584         vc-list-files: make the last-resort awk code more portable
19585         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19586         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19587         does not support it.
19588
19589 2008-07-10  Eric Blake  <ebb9@byu.net>
19590
19591         Work with tar's bootstrap.
19592         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19593         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19594         an m4 comment.
19595
19596 2008-07-09  Jim Meyering  <meyering@redhat.com>
19597
19598         posix-shell.m4: fix typo that made this test malfunction
19599         * m4/posix-shell.m4: Remove capitalization in variable name.
19600
19601 2008-07-08  Bruno Haible  <bruno@clisp.org>
19602
19603         * m4/onceonly.m4: Update comments.
19604         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19605
19606 2008-07-04  Jim Meyering  <meyering@redhat.com>
19607
19608         * users.txt: Add vc-dwim.
19609         (bison, coreutils): Use the gitweb URL.
19610
19611 2008-07-03  Jim Meyering  <meyering@redhat.com>
19612
19613         * users.txt: Add libffcall.  From Sam Steingold.
19614
19615 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
19616
19617         getdate.y: do not ignore TZ with relative day, month or year offset
19618         * lib/getdate.y (get_date): Move the tz-handling block to follow the
19619         relative-date-handling, since otherwise, the latter would clobber the
19620         sole output (an updated Start value) of the tz-handling block.
19621         * tests/test-getdate.c: Tests for the fix
19622
19623 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19624
19625         Recognize 'foo_LIBRARIES += libgnu.a'.
19626         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19627         makefile snippet has already specified an installation location,
19628         also using '+='.
19629
19630 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
19631
19632         getdate.y: factor out common actions
19633         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19634         Use them in place of open-coded actions.
19635
19636 2008-07-01  Simon Josefsson  <simon@josefsson.org>
19637
19638         Add self-test for getdate module.
19639         * modules/getdate-tests: New file.
19640         * tests/test-getdate.c: New file.
19641
19642 2008-06-29  Bruno Haible  <bruno@clisp.org>
19643
19644         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19645         .gitignore.
19646         Reported by Sylvain Beucler <beuc@beuc.net>.
19647
19648 2008-06-29  Bruno Haible  <bruno@clisp.org>
19649
19650         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19651         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19652
19653 2008-06-29  Bruno Haible  <bruno@clisp.org>
19654
19655         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19656         EXTRA_DIST.
19657         Reported by Sylvain Beucler <beuc@beuc.net>.
19658
19659 2008-06-26  Jim Meyering  <meyering@redhat.com>
19660
19661         make several modules depend on the "open" module
19662         This provides slightly increased consistency when opening-for-write
19663         the name of a non-directory spelled with a trailing slash.
19664         * modules/chdir-safer: Likewise.
19665         * modules/chown: Likewise.
19666         * modules/clean-temp: Likewise.
19667         * modules/copy-file: Likewise.
19668         * modules/fchdir: Likewise.
19669         * modules/fcntl-safer: Likewise.
19670         * modules/pipe: Likewise.
19671         * modules/utime: Likewise.
19672         Prompted by Eric Blake and Bruno Haible.
19673
19674 2008-06-24  Andreas Schwab  <schwab@suse.de>
19675
19676         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19677         literals can be used as initializers for global variables.
19678
19679 2008-06-23  Eric Blake  <ebb9@byu.net>
19680
19681         Make gnulib-cache.m4 easier to diff.
19682         * gnulib-tool (func_import): Allow newlines when reading cached
19683         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19684
19685 2008-06-23  Bruno Haible  <bruno@clisp.org>
19686
19687         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19688         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19689         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19690         m4/signalblocking.m4.
19691         (gl_PREREQ_SIGACTION): Don't invoke it.
19692         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19693         gl_PREREQ_SIG_HANDLER_H.
19694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19695         Don't check for sigaction here.
19696
19697 2008-06-23  Bruno Haible  <bruno@clisp.org>
19698
19699         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19700         (install_handlers): Don't set the SA_RESETHAND flag.
19701
19702 2008-06-23  Bruno Haible  <bruno@clisp.org>
19703
19704         * m4/sigaction.m4: Comment fixes.
19705         * lib/signal.in.h: Likewise.
19706
19707 2008-06-23  Eric Blake  <ebb9@byu.net>
19708
19709         Fix typo.
19710         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19711
19712         Avoid SA_ namespace.
19713         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19714         Reported by Ralf Wildenhues.
19715
19716         Avoid test failure due to SA_RESTORER.
19717         * tests/test-sigaction.c (SA_MASK): New macro.
19718         (main): Avoid failing due to extension flags being set.
19719         Reported by Jim Meyering.
19720
19721         Revert use of sig-handler.h in sigprocmask.c.
19722         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
19723         it requires the existence of struct sigaction.
19724         * lib/sigprocmask.c (handler_t): Restore typedef.
19725         (rpl_signal, old_handlers): Use local type.
19726
19727 2008-06-22  Bruno Haible  <bruno@clisp.org>
19728
19729         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
19730         conditionally.
19731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19732
19733 2008-06-22  Bruno Haible  <bruno@clisp.org>
19734
19735         * doc/posix-functions/siginterrupt.texi: Move note.
19736
19737         * lib/signal.in.h (SA_RESTART): New macro.
19738         * lib/sigaction.c: Update comment.
19739
19740         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
19741
19742         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
19743         (gl_PREREQ_SIGPROCMASK): Invoke it.
19744         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
19745
19746         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
19747
19748         * lib/sigprocmask.c: Update a comment.
19749
19750 2008-06-21  Eric Blake  <ebb9@byu.net>
19751
19752         Use sigaction module rather than signal().
19753         * modules/c-stack (Depends-on): Add sigaction.
19754         * modules/fatal-signal (Depends-on): Likewise.
19755         * modules/nanosleep (Depends-on): Likewise.
19756         * modules/sigprocmask (Files): Add sig-handler.h.
19757         * modules/sigaction (Files): Likewise.
19758         * lib/sig-handler.h (get_handler): New file, suggested by Paul
19759         Eggert.
19760         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
19761         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
19762         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
19763         (init_fatal_signals): Likewise.
19764         * lib/nanosleep.c (rpl_nanosleep): Likewise.
19765         (siginterrupt): Delete fallback.
19766         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
19767         instead.
19768         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
19769         siginterrupt.
19770
19771         New module sigaction, for mingw.
19772         * modules/sigaction: New module...
19773         * modules/sigaction-tests: ...and its test.
19774         * m4/sigaction.m4: New file.
19775         * lib/sigaction.c: Likewise.
19776         * tests/test-sigaction.c: Likewise.
19777         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
19778         * modules/signal (Makefile.am): Likewise.
19779         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
19780         needed.
19781         * doc/posix-headers/signal.texi (signal.h): Mention provided
19782         types.
19783         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
19784         that sigaction is preferable.
19785         * doc/posix-functions/sigaction.texi (sigaction): Mention new
19786         module.
19787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19788         sigaction.
19789
19790         Improve robustness of sigprocmask by overriding signal.
19791         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
19792         is in use.
19793         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
19794         (SIGKILL, SIGSTOP): Provide fallbacks.
19795         (rpl_signal): Implement.
19796         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
19797         signal can be called inside handlers.
19798
19799         Fix nanosleep module on mingw.
19800         * modules/nanosleep (Depends-on): Add sys_select.
19801         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
19802
19803         Fix licensing of sigprocmask.
19804         * modules/raise (License): Relicense as LGPL.
19805
19806 2008-06-21  Bruno Haible  <bruno@clisp.org>
19807
19808         * lib/propername.c (proper_name_utf8): Don't use the transliterated
19809         result if it contains question marks.
19810         Reported by Michael Geng <linux@michaelgeng.de>.
19811
19812 2008-06-19  Bruno Haible  <bruno@clisp.org>
19813
19814         Fix CVS-ism.
19815         * doc/gnulib.texi: Include updated-stamp.texi.
19816         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
19817         (updated-stamp.texi): New rule.
19818         (gnulib.info): Depend on it.
19819         * doc/.gitignore: Add updated-stamp.texi.
19820         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
19821
19822 2008-06-19  Bruno Haible  <bruno@clisp.org>
19823
19824         * doc/Makefile (gnulib.info): Update and simplify dependencies.
19825         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19826
19827 2008-06-19  Eric Blake  <ebb9@byu.net>
19828
19829         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
19830         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
19831         Reported by Stepan Kasal.
19832
19833 2008-06-18  Bruno Haible  <bruno@clisp.org>
19834
19835         * lib/fatal-signal.c (init_fatal_signals): Add comment.
19836         Reported by Eric Blake.
19837
19838 2008-06-18  Eric Blake  <ebb9@byu.net>
19839
19840         Work around cygwin 1.5.25 strsignal bug.
19841         * tests/test-strsignal.c: Allow for const char *.
19842         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
19843
19844 2008-06-18  Simon Josefsson  <simon@josefsson.org>
19845
19846         * users.txt: Update URL to article and add author/date
19847         information.
19848
19849 2008-06-17  Bruno Haible  <bruno@clisp.org>
19850
19851         New macro gl_DISABLE_THREADS.
19852         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
19853         if the user did not pass --enable-threads or --disable-threads option.
19854         (gl_DISABLE_THREADS): New macro.
19855         Reported by Eric Blake <ebb9@byu.net>.
19856
19857 2008-06-17  Bruno Haible  <bruno@clisp.org>
19858
19859         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
19860         when the macro ignores it.
19861         Based on a patch by Eric Blake <ebb9@byu.net>.
19862
19863 2008-06-17  Bruno Haible  <bruno@clisp.org>
19864
19865         * modules/tls (License): Change to LGPLv2+.
19866         Reported by Eric Blake.
19867
19868 2008-06-17  Eric Blake  <ebb9@byu.net>
19869
19870         Simplify c-stack prerequisites.
19871         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
19872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
19873         no longer requires <ucontext.h> to exist.  Optimize setrlimit
19874         check.
19875         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
19876         <sys/resource.h>.
19877
19878         Move c-stack test into testsuite.
19879         * modules/c-stack-tests: New file.
19880         * lib/c-stack.c [DEBUG]: Move test program...
19881         * tests/test-c-stack.c: ...into this new file.  Skip rather than
19882         fail test if sigaltstack is lacking.
19883         * tests/test-c-stack.sh: New driver file.
19884
19885 2008-06-16  Eric Blake  <ebb9@byu.net>
19886
19887         Use raise module consistently.
19888         * modules/fatal-signal (Depends-on): Add raise.
19889         * modules/sigprocmask (Depends-on): Likewise.
19890         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
19891         * lib/sigprocmask.c (sigprocmask): Likewise.
19892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19893         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
19894
19895         Fix compliance bug in sigpending.
19896         * lib/sigprocmask.c (sigpending): Return pending array via
19897         parameter, not return value.
19898
19899 2008-06-14  Eric Blake  <ebb9@byu.net>
19900
19901         Improve obstack-printf test code.
19902         * tests/test-obstack-printf.c (test_function): Fix comment, and
19903         simplify usage of obstack_* in macros.  Add a test for coverage.
19904         Reported by Bruno Haible.
19905
19906 2008-06-14  Bruno Haible  <bruno@clisp.org>
19907
19908         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
19909         array size as a constant, not as a const variable.
19910         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
19911         AC_USE_SYSTEM_EXTENSIONS.
19912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19913         Test whether the obstack_printf function actually exists.
19914         * modules/obstack-printf (Depends-on): Add extensions.
19915         (Include): Remove obstack.h.
19916         * modules/obstack-printf-posix (Depends-on): Add extensions.
19917         (Include): Remove obstack.h.
19918
19919 2008-06-13  Eric Blake  <ebb9@byu.net>
19920
19921         Add obstack-printf and obstack-printf-posix modules.
19922         * modules/obstack-printf: New file.
19923         * modules/obstack-printf-posix: Likewise.
19924         * MODULES.html.sh (Misc): Mention them.
19925         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
19926         Likewise.
19927         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
19928         Likewise.
19929         * modules/stdio (Makefile.am): Accomodate new modules.
19930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19931         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
19932         Declare.
19933         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
19934         functions.
19935         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
19936         (gl_REPLACE_OBSTACK_PRINTF): New macros
19937         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
19938         * tests/test-obstack-printf.c: New file.
19939         * modules/obstack-printf-tests: Likewise.
19940         * modules/obstack-printf-posix-tests: Likewise.
19941
19942 2008-06-11  Bruno Haible  <bruno@clisp.org>
19943
19944         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
19945         * lib/open.c: Include errno.h.
19946         (open): Fail when attempting to write to a file that has a trailing
19947         slash.
19948         * tests/test-open.c (main): Test against trailing slash bug.
19949         * doc/posix-functions/open.texi: Mention the trailing slash bug.
19950
19951 2008-06-10  Bruno Haible  <bruno@clisp.org>
19952
19953         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
19954         for $? to work inside the trap command, with various /bin/sh-s.
19955         * tests/test-vc-list-files-cvs.sh: Likewise.
19956
19957 2008-06-10  Bruno Haible  <bruno@clisp.org>
19958
19959         * lib/acl-internal.h: Don't include gettext.h here.
19960         * lib/set-mode-acl.c: Include gettext.h here.
19961         * lib/copy-acl.c: Likewise.
19962
19963 2008-06-10  Bruno Haible  <bruno@clisp.org>
19964
19965         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
19966         * lib/wait-process.c (wait_subprocess): Likewise.
19967         * lib/execute.h (execute): Add termsigp argument.
19968         * lib/execute.c (execute): Likewise.
19969         * lib/csharpcomp.c (compile_csharp_using_pnet,
19970         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
19971         * lib/csharpexec.c (execute_csharp_using_pnet,
19972         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
19973         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
19974         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
19975         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
19976         is_jikes_present): Update.
19977         * lib/javaexec.c (execute_java_class): Update.
19978         * lib/javaversion.c (execute_and_read_line): Update.
19979         * NEWS: Document the changes.
19980         Reported by Eric Blake.
19981
19982 2008-06-10  Eric Blake  <ebb9@byu.net>
19983
19984         Add missing include.
19985         * tests/test-strstr.c (includes): Add <signal.h>.
19986         * tests/test-strcasestr.c (includes): Likewise.
19987         * tests/test-memmem.c (includes): Likewise.
19988
19989 2008-06-10  Bruno Haible  <bruno@clisp.org>
19990
19991         * lib/wait-process.c (wait_subprocess): Add an assertion.
19992
19993 2008-06-10  Bruno Haible  <bruno@clisp.org>
19994
19995         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
19996
19997 2008-06-10  Bruno Haible  <bruno@clisp.org>
19998
19999         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20000         using alarm().
20001         * tests/test-strcasestr.c (main): Likewise.
20002         * tests/test-strstr.c (main): Likewise.
20003
20004 2008-06-09  Bruno Haible  <bruno@clisp.org>
20005
20006         Work around the Solaris 10 ACE ACLs ABI change.
20007         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20008         declare if ACL_NO_TRIVIAL is present.
20009         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20010         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20011         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20012         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20013         define if ACL_NO_TRIVIAL is present.
20014         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20015         and use the current ABI.
20016         (file_has_acl): Use same #if condition as elsewhere.
20017         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20018         in use, and use the current ABI.
20019         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20020         Reported by Jim Meyering.
20021
20022 2008-06-09  Eric Blake  <ebb9@byu.net>
20023
20024         Work around environments that (stupidly) ignore SIGALRM.
20025         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20026         before using alarm().
20027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20029         Reported by Ian Beckwith <ianb@erislabs.net>.
20030
20031         Produce autobuild blurb earlier in log.
20032         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20033
20034 2008-06-09  Jim Meyering  <meyering@redhat.com>
20035         and OndÅ™ej Vašík  <ovasik@redhat.com>
20036
20037         utimens.c: correct kernel bug work-around
20038         OndÅ™ej Vašík found that the invalid return value of 280 indicates
20039         failure, not success, and the kernel bug we're trying to work
20040         around affects not just the utimensat call, but also the fallback
20041         futimens call.
20042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20043         not success.
20044         [HAVE_FUTIMENS]: Use the same work-around, here.
20045
20046 2008-06-09  Jim Meyering  <meyering@redhat.com>
20047
20048         add more guards around definition of ACE_-related code
20049         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20050         ALLOW and ACE_OWNER are also defined.
20051
20052 2008-06-08  Bruno Haible  <bruno@clisp.org>
20053
20054         * lib/acl-internal.h: Add me as co-author.
20055         * lib/file-has-acl.c: Likewise.
20056         * lib/set-mode-acl.c: Likewise.
20057         * lib/copy-acl.c: Likewise.
20058
20059 2008-06-08  Bruno Haible  <bruno@clisp.org>
20060
20061         Add support for AIX ACLs.
20062         * lib/acl-internal.h (acl_nontrivial): New declaration.
20063         * lib/file-has-acl.c (acl_nontrivial): New function.
20064         (file_has_acl): Add implementation using AIX 4 ACL API.
20065         * lib/set-mode-acl.c (qset_acl): Likewise.
20066         * lib/copy-acl.c (qcopy_acl): Likewise.
20067
20068 2008-06-08  Bruno Haible  <bruno@clisp.org>
20069
20070         Add support for HP-UX ACLs.
20071         * lib/acl-internal.h (acl_nontrivial): New declaration.
20072         * lib/file-has-acl.c (acl_nontrivial): New function.
20073         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20074         * lib/set-mode-acl.c (qset_acl): Likewise.
20075         * lib/copy-acl.c (qcopy_acl): Likewise.
20076
20077 2008-06-08  Bruno Haible  <bruno@clisp.org>
20078
20079         Add support for Cygwin ACLs.
20080         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20081         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20082         the chmod_or_fchmod call.
20083         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20084
20085 2008-06-08  Bruno Haible  <bruno@clisp.org>
20086
20087         Fix bug with setuid modes in Solaris 10+ code.
20088         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20089         succeeded, when the mode contains some special bits.
20090
20091 2008-06-08  Bruno Haible  <bruno@clisp.org>
20092
20093         Add support for Solaris 7..10 ACLs.
20094         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20095         declarations.
20096         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20097         functions.
20098         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20099         * lib/set-mode-acl.c (qset_acl): Likewise.
20100         * lib/copy-acl.c (qcopy_acl): Likewise.
20101
20102 2008-06-08  Bruno Haible  <bruno@clisp.org>
20103
20104         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20105         declaration.
20106         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20107         (acl_access_nontrivial): Remove MacOS X case.
20108         (file_has_acl): Use acl_extended_nontrivial.
20109         * lib/copy-acl.c (qcopy_acl): Likewise.
20110
20111 2008-06-08  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20114
20115 2008-06-08  Jim Meyering  <meyering@redhat.com>
20116
20117         * modules/acl (Maintainer): Add Bruno Haible.
20118
20119 2008-06-07  Bruno Haible  <bruno@clisp.org>
20120
20121         Improve support for Tru64 ACLs.
20122         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20123         ACL on OSF/1.
20124
20125 2008-06-07  Bruno Haible  <bruno@clisp.org>
20126
20127         Add support for MacOS X ACLs.
20128         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20129         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20130         * lib/set-mode-acl.c (qset_acl): Likewise.
20131         * lib/copy-acl.c (qcopy_acl): Likewise.
20132
20133 2008-06-07  Bruno Haible  <bruno@clisp.org>
20134
20135         Fix memory leak introduced on 2008-05-22.
20136         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20137         use.
20138
20139 2008-06-07  Bruno Haible  <bruno@clisp.org>
20140
20141         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20142         to construct an empty ACL.
20143
20144 2008-06-07  Bruno Haible  <bruno@clisp.org>
20145
20146         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20147         precisely.
20148         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20149
20150 2008-06-07  Bruno Haible  <bruno@clisp.org>
20151
20152         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20153         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20154
20155 2008-06-07  Bruno Haible  <bruno@clisp.org>
20156
20157         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20158         regardless of POSIX.
20159         * doc/posix-functions/_longjmp.texi: Likewise.
20160         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20161         SystemV platform in this case.
20162
20163 2008-06-06  Eric Blake  <ebb9@byu.net>
20164
20165         Document abort() bugs.
20166         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20167
20168         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20169         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20170         sigsetjmp.
20171         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20172         siglongjmp, but only as a macro.
20173         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20174         is obsolete.
20175         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20176
20177         Tweak documentation to cover cygwin argz bugs.
20178         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20179         argz bug fix; no code change needed since no cygwin releases
20180         occurred between the last fix and the bug being tested.
20181         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20182         module and recently fixed cygwin bugs.
20183         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20184         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20185         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20186         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20187         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20188         Likewise.
20189         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20190         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20191         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20192         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20193         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20194         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20195         Likewise.
20196
20197         Avoid gcc warning on cygwin.
20198         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20199         !ACL_NO_TRIVIAL]: Avoid unused variable.
20200
20201 2008-06-05  Eric Blake  <ebb9@byu.net>
20202
20203         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20204         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20205         git-version-gen fails to come up with a version.
20206         Reported by Simon Josefsson.
20207
20208 2008-06-05  Jim Meyering  <meyering@redhat.com>
20209             Paul Eggert  <eggert@cs.ucla.edu>
20210
20211         utimens.c: work around a probable Linux kernel bug
20212         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20213         appears to be a kernel bug that causes utimensat to return 280
20214         instead of 0, indicating success.
20215
20216 2008-06-04  Bruno Haible  <bruno@clisp.org>
20217
20218         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20219         2008-06-01 commit.
20220
20221 2008-06-04  Bruno Haible  <bruno@clisp.org>
20222
20223         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20224         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20225         (file_has_acl): Use it. Save errno afterwards.
20226         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20227
20228 2008-06-03  Bruno Haible  <bruno@clisp.org>
20229
20230         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20231         draft code. Simplify #ifs.
20232         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20233         Put Solaris code after POSIX-draft code. Fix comments regarding
20234         Solaris 10, HP-UX. Mention Cygwin.
20235         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20236
20237 2008-06-03  Eric Blake  <ebb9@byu.net>
20238
20239         Provide fallback for older kernels.
20240         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20241         Provide runtime fallback if kernel lacks support.
20242         Reported by Mike Frysinger.
20243
20244 2008-06-02  Bruno Haible  <bruno@clisp.org>
20245
20246         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20247         it exists.
20248
20249 2008-06-02  Bruno Haible  <bruno@clisp.org>
20250
20251         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20252         * lib/copy-acl.c (qcopy_acl): Update comment.
20253
20254 2008-06-02  Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20257         like ACL APIs.
20258
20259 2008-06-02  Bruno Haible  <bruno@clisp.org>
20260
20261         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20262         * tests/test-set-mode-acl.sh: Likewise.
20263         * tests/test-copy-acl.sh: Likewise.
20264         * tests/test-copy-file.sh: Likewise.
20265
20266 2008-06-02  Bruno Haible  <bruno@clisp.org>
20267
20268         * tests/test-file-has-acl.sh: Remove unused code.
20269
20270 2008-06-01  Bruno Haible  <bruno@clisp.org>
20271
20272         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20273         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20274         messages.
20275         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20276
20277 2008-06-01  Bruno Haible  <bruno@clisp.org>
20278
20279         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20280         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20281         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20282         APIs.
20283         * modules/acl-tests (configure.ac): Remove tests now contained in
20284         m4/acl.m4.
20285
20286 2008-06-02  Jim Meyering  <meyering@redhat.com>
20287
20288         announce-gen: use a better key-server host name
20289         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20290         it may be more consistently reliable.  Suggested by Werner Koch
20291         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20292
20293 2008-06-01  Bruno Haible  <bruno@clisp.org>
20294
20295         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20296         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20297
20298 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20299
20300         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20301
20302 2008-06-01  Bruno Haible  <bruno@clisp.org>
20303
20304         New ACL tests.
20305         * tests/test-file-has-acl.sh: New file.
20306         * tests/test-file-has-acl.c: New file.
20307         * tests/test-set-mode-acl.sh: New file.
20308         * tests/test-set-mode-acl.c: New file.
20309         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20310         * tests/test-copy-acl.c: New file.
20311         * modules/acl-tests: New file, based on modules/copy-file-tests.
20312         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20313         (Depends-on): Add acl-tests.
20314         (configure.ac): Remove checks.
20315         (Makefile.am): Don't create test-sameacls program here any more.
20316
20317 2008-06-01  Bruno Haible  <bruno@clisp.org>
20318
20319         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20320         * tests/test-sameacls.c: Include progname.h.
20321         (main): Invoke set_program_name. Portability fixes for MacOS X,
20322         Solaris, HP-UX.
20323
20324 2008-06-01  Bruno Haible  <bruno@clisp.org>
20325
20326         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20327         function.
20328         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20329
20330 2008-06-01  Bruno Haible  <bruno@clisp.org>
20331
20332         * modules/rpmatch (Depends-on): Add strdup.
20333
20334 2008-06-01  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/pipe.c: Include unistd-safer.h.
20337         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20338         * modules/pipe (Depends-on): Add unistd-safer.
20339
20340 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20341
20342         * modules/autobuild (configure.ac): Call AB_INIT.
20343
20344 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20345
20346         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20347         Suggested by Bruno Haible <bruno@clisp.org>.
20348
20349 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20350
20351         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20352         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20353         <bruno@clisp.org>.
20354
20355 2008-05-29  Eric Blake  <ebb9@byu.net>
20356
20357         Prefer new POSIX 200x interfaces over futimesat.
20358         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20359         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20360         when available.
20361         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20362
20363 2008-05-28  Bruno Haible  <bruno@clisp.org>
20364
20365         * modules/stpcpy (License): Change to LGPLv2+.
20366         Requested by David Lutterkort <dlutter@redhat.com>.
20367
20368 2008-05-27  Bruno Haible  <bruno@clisp.org>
20369
20370         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20371         current mingw.
20372         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20373
20374 2008-05-27  Bruno Haible  <bruno@clisp.org>
20375
20376         * modules/iconv_open (Link): New section, from module 'iconv'.
20377         * modules/striconv (Link): Likewise.
20378         * modules/striconveh (Link): Likewise.
20379         * modules/xstriconv (Link): Likewise.
20380         * modules/unicodeio (Link): Likewise.
20381         * modules/propername (Link): Likewise.
20382         Reported by Jim Meyering.
20383
20384 2008-05-26  Jim Meyering  <meyering@redhat.com>
20385
20386         sha256: do not artificially restrict buffer length to be < 2^32
20387         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20388         uint32_t to size_t.
20389         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20390         to match.
20391
20392         avoid unaligned access errors, e.g., on sparc
20393         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20394         direct access through a possibly-unaligned uint64* pointer.
20395         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20396         direct access through a possibly-unaligned uint32* pointer.
20397         Prompted by this patch from Tom "spot" Callaway:
20398         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20399
20400         sha512.c: fix typo in comment
20401         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20402
20403 2008-05-25  Bruno Haible  <bruno@clisp.org>
20404
20405         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20406         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20407         (Makefile.am): Update lib_SOURCES.
20408
20409 2008-05-25  Bruno Haible  <bruno@clisp.org>
20410
20411         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20412
20413 2008-05-25  Jim Meyering  <meyering@redhat.com>
20414
20415         useless-if-before-free: freed expr may have white-space differences
20416         * build-aux/useless-if-before-free: Recognize cases in which the
20417         freed expression differs from the tested one in embedded white
20418         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20419         $1 was used, so we can't make any regexp shy.  Improved tests now
20420         detect this.
20421
20422         useless-if-before-free: accept white space in the expression.
20423         * build-aux/useless-if-before-free: For now, any white space
20424         in the expression must be identical in the free argument.
20425
20426         useless-if-before-free: efficiency tweak
20427         * build-aux/useless-if-before-free: Make the expression-matching
20428         regexp "shy".
20429         Make the *outer* regexp shy, not the expr-matching one.
20430
20431         update code-in-comment to accept cast of free arg
20432         * build-aux/useless-if-before-free: Update regexp.
20433
20434 2008-05-25  Bruno Haible  <bruno@clisp.org>
20435
20436         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20437         * modules/copy-file-tests (Files, Makefile.am): Update.
20438         * tests/test-copy-file.c (func_test_copy): Update.
20439
20440 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20441
20442         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20443
20444 2008-05-23  Bruno Haible  <bruno@clisp.org>
20445
20446         Improve support for ACLs on OSF/1.
20447         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20448         Remove fallback for unknown flavors of ACLs.
20449
20450 2008-05-22  Bruno Haible  <bruno@clisp.org>
20451
20452         Add support for ACLs on OSF/1.
20453         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20454         replacements.
20455         (acl_free_text): New macro fallback.
20456         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20457         acl_free.
20458         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20459         acl_free_text function. Require AC_C_INLINE.
20460
20461 2008-05-22  Bruno Haible  <bruno@clisp.org>
20462
20463         Make copy_acl work on MacOS X 10.5.
20464         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20465         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20466         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20467         If MODE_INSIDE_ACL, don't assume that every system has the same text
20468         representation for ACLs as FreeBSD.
20469         * lib/copy-acl.c (copy_acl): Add support for platforms with
20470         !MODE_INSIDE_ACL.
20471         * lib/file-has-acl.c (file_has_acl): Likewise.
20472         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20473         FreeBSD, MacOS X, or IRIX, respectively.
20474
20475 2008-05-22  Bruno Haible  <bruno@clisp.org>
20476
20477         * lib/acl.h: Don't include <sys/acl.h>.
20478         (GETACLCNT): Move fallback to lib/acl-internal.h.
20479         * lib/acl-internal.h: Include <sys/acl.h> here.
20480         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20481
20482 2008-05-22  Bruno Haible  <bruno@clisp.org>
20483
20484         Split off copy_acl function to separate file.
20485         * lib/copy-acl.c: New file, extracted from lib/acl.c.
20486         * lib/acl.c (copy_acl): Moved function to separate file.
20487         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20488         * modules/acl (Files): Add lib/copy-acl.c.
20489         (Makefiles.am): Augment lib_SOURCES.
20490
20491 2008-05-22  Bruno Haible  <bruno@clisp.org>
20492
20493         * modules/copy-file-tests: New file.
20494         * tests/test-copy-file.sh: New file.
20495         * tests/test-copy-file.c: New file.
20496         * tests/test-copy-file-sameacls.c: New file.
20497
20498 2008-05-22  Eric Blake  <ebb9@byu.net>
20499
20500         Avoid gcc warning.
20501         * tests/test-memcmp.c (main): Pass NULL indirectly.
20502
20503 2008-05-21  Bruno Haible  <bruno@clisp.org>
20504
20505         Add reference doc about ACLs.
20506         * doc/acl-resources.txt: New file.
20507         * doc/acl-cygwin.txt: New file.
20508
20509 2008-05-21  Bruno Haible  <bruno@clisp.org>
20510
20511         Avoid one more warning from gcc.
20512         * lib/vasnprintf.c (IF_LINT): Update comments.
20513         (VASNPRINTF): Use it also for the 'prefix' array initializer.
20514
20515 2008-05-21  Jim Meyering  <meyering@redhat.com>
20516
20517         avoid a warning from gcc
20518         * lib/vasnprintf.c (IF_LINT): Define.
20519         (scale10_round_decimal_long_double):
20520         Use it to avoid a "may be used uninitialized" warning.
20521         (scale10_round_decimal_double): Likewise.
20522
20523 2008-05-21  Simon Josefsson  <simon@josefsson.org>
20524
20525         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20526         declared.
20527
20528 2008-05-20  Bruno Haible  <bruno@clisp.org>
20529
20530         * tests/test-memcmp.c (main): Test also the sign of the result. Test
20531         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20532
20533 2008-05-20  Simon Josefsson  <simon@josefsson.org>
20534
20535         * modules/memcmp-tests: New file.
20536         * tests/test-memcmp.c: New file.
20537
20538 2008-05-19  Bruno Haible  <bruno@clisp.org>
20539
20540         * modules/propername (Notice, configure.ac): Put quoted "..." into
20541         --keyword option.
20542         * lib/propername.h: Update comments accordingly.
20543         Reported by Eric Blake.
20544
20545 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
20546
20547         * modules/getpass-gnu (Depends-on): Add fseeko.
20548
20549 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20550
20551         * modules/base64-tests: New file.
20552
20553 2008-05-19  Bo Borgerson <gigabo@gmail.com>
20554
20555         * lib/base64.c (base64_decode_ctx): If a decode context structure
20556         was passed in use it to ignore newlines.  If a context structure
20557         was _not_ passed in, continue to treat newlines as garbage (this
20558         is the historical behavior).  Formerly base64_decode.
20559         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20560         takes a decode context structure.
20561         * lib/base64.h (base64_decode): Macro for four-argument calls.
20562         (base64_decode_alloc): Likewise.
20563         * lib/base64.c (base64_decode_ctx): If a decode context structure
20564         was passed in use it to ignore newlines.  If a context structure
20565         was _not_ passed in, continue to treat newlines as garbage (this
20566         is the historical behavior).  Formerly base64_decode.
20567         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20568         takes a decode context structure.
20569         * lib/base64.h (base64_decode): Macro for four-argument calls.
20570         (base64_decode_alloc): Likewise.
20571
20572 2008-05-19  Jim Meyering  <meyering@redhat.com>
20573
20574         avoid a warning from gcc
20575         * lib/trim.c (IF_LINT): Define.
20576         (trim2): Use it to avoid a "may be used uninitialized" warning.
20577
20578         Fix doc typo.
20579         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20580
20581 2008-05-19  Bruno Haible  <bruno@clisp.org>
20582
20583         * doc/glibc-functions/getpass.texi: Document limits of other
20584         implementations.
20585
20586 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20587             Bruno Haible <bruno@clisp.org>
20588
20589         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20590
20591 2008-05-18  Bruno Haible  <bruno@clisp.org>
20592
20593         * modules/propername: New file, from GNU gettext.
20594         * lib/propername.h: New file, from GNU gettext.
20595         * lib/propername.c: New file, from GNU gettext.
20596         * MODULES.html.sh (Internationalization functions): Add propername.
20597
20598 2008-05-16  Jim Meyering  <meyering@redhat.com>
20599             Bruno Haible  <bruno@clisp.org>
20600
20601         Avoid some warnings from "gcc -Wshadow".
20602         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20603
20604 2008-05-15  Eric Blake  <ebb9@byu.net>
20605
20606         Extend previous patch to cygwin 1.7.0.
20607         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20608         fast implementation in cygwin >= 1.7.0.
20609         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20611
20612 2008-05-15  Bruno Haible  <bruno@clisp.org>
20613
20614         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20615         implementation in glibc >= 2.9.
20616         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20618
20619 2008-05-15  Bruno Haible  <bruno@clisp.org>
20620
20621         * MODULES.html.sh (Internationalization functions): Remove linebreak.
20622         (Unicode string functions): Add unilbrk/*.
20623         Reported by Karl Berry.
20624
20625 2008-05-15  Eric Blake  <ebb9@byu.net>
20626
20627         Fix violation of <stdbool.h> replacement in regex.
20628         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20629         * lib/regexec.c (re_search_internal): Likewise.
20630         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20631
20632 2008-05-15  Jim Meyering  <meyering@redhat.com>
20633
20634         avoid distracting test output when git or cvs is not found
20635         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20636         * tests/test-vc-list-files-git.sh: Likewise.
20637
20638 2008-05-15  Eric Blake  <ebb9@byu.net>
20639
20640         Glibc finally accepted the memmem speedup code, bugzilla #5514.
20641         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20642         glibc version.
20643         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20644         * doc/posix-functions/strstr.texi (strstr): Likewise.
20645         * lib/str-two-way.h (MAX): Sychronize with glibc.
20646
20647 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
20648
20649         * lib/regcomp.c (optimize_utf8): Add a note on why we test
20650         opr.ctx_type.
20651         (calc_first): Initialize constraint field.
20652         (duplicate_node_closure): Use it instead of special casing ANCHORS.
20653         Fix grammar.
20654         (duplicate_node): Merge constraint field for all node types.
20655         (calc_eclosure_iter): Look at constraint field for all node types.
20656         * lib/regex_internal.c (create_cd_newstate): Don't look at
20657         opr.ctx_type.
20658
20659 2008-05-14  Bruno Haible  <bruno@clisp.org>
20660
20661         Help GCC to do better code generation.
20662         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20663         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20664         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20665         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20666         Declare with attribute 'malloc' if supported.
20667
20668 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
20669
20670         use "echo STR|wc -c" rather than unportable "expr length STR"
20671         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20672         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20673
20674 2008-05-14  Jim Meyering  <meyering@redhat.com>
20675
20676         use dd ibs=$n count=1 ... rather than less-portable head -c$n
20677         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20678         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20679         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20680         via Collin Lasse.
20681
20682 2008-05-14  Eric Blake  <ebb9@byu.net>
20683
20684         Avoid quadratic growth in gl_LIBSOURCES.
20685         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20686         Suggested by Bruno Haible.
20687
20688         Test xmemdup0.
20689         * modules/xmemdup0-tests: New file.
20690         * tests/test-xmemdup0.c: Likewise.
20691
20692 2008-05-13  Eric Blake  <ebb9@byu.net>
20693
20694         Split xmemdup0 into its own module.
20695         * modules/xmemdup0: New file.
20696         * lib/xmemdup0.h: Likewise.
20697         * lib/xmemdup0.c: Likewise.
20698         * MODULES.html.sh (Memory management functions): Add xmemdup0.
20699         * lib/xalloc.h (xmemdup0): Remove.
20700         * lib/xmalloc.c (xmemdup0): Likewise.
20701
20702 2008-05-13  Eric Blake  <ebb9@byu.net>
20703             Bruno Haible  <bruno@clisp.org>
20704
20705         Reduce number of forks required during autoconf.
20706         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20707         and gl_LIBSOURCES_DIR.
20708         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20709         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20710         m4_syscmd per file.
20711         <m4_foreach_w>: Move...
20712         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20713
20714 2008-05-13  Eric Blake  <ebb9@byu.net>
20715
20716         * gnulib-tool: Fix various comment typos.
20717
20718 2008-05-12  Bruno Haible  <bruno@clisp.org>
20719
20720         Tailor the linebreaking algorithm.
20721         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
20722
20723 2008-05-12  Bruno Haible  <bruno@clisp.org>
20724
20725         Update to Unicode 5.0.0.
20726         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20727         LBP_JV, LBP_JT. Redistribute values.
20728         (unilbrk_table): Change size.
20729         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
20730         Unicode TR#14 rev. 22.
20731         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20732         LBP_JV, LBP_JT. Redistribute values.
20733         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
20734         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
20735         Update.
20736         * lib/unilbrk/lbrkprop1.h: Regenerated.
20737         * lib/unilbrk/lbrkprop2.h: Regenerated.
20738         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
20739         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
20740         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
20741         Likewise.
20742         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
20743         Likewise.
20744         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
20745         result.
20746         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20747         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20748         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20749         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
20750         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
20751         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
20752
20753 2008-05-11  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
20756
20757 2008-05-11  Bruno Haible  <bruno@clisp.org>
20758
20759         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
20760         * modules/unilbrk/gen-lbrk: New file.
20761
20762 2008-05-11  Bruno Haible  <bruno@clisp.org>
20763
20764         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
20765         * m4/sha512.m4 (gl_SHA512): Likewise.
20766
20767 2008-05-11  Jim Meyering  <meyering@redhat.com>
20768
20769         New modules: crypto/sha256, crypto/sha512 (from coreutils)
20770         * modules/crypto/sha256: New file.
20771         * modules/crypto/sha512: Likewise.
20772         * lib/sha256.c: Likewise.
20773         * lib/sha256.h: Likewise.
20774         * lib/sha512.c: Likewise.
20775         * lib/sha512.h: Likewise.
20776         * lib/u64.h: Likewise.
20777         * m4/sha256.m4: Likewise.
20778         * m4/sha512.m4: Likewise.
20779         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
20780
20781 2008-05-10  Bruno Haible  <bruno@clisp.org>
20782
20783         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
20784         (Input/Output <stdio.h>): Add xprintf.
20785         (Signal handling <signal.h>): Add strsignal.
20786         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
20787         (Core language properties): Add func.
20788         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
20789         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
20790         strings.
20791         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
20792         (Input/output): New section.
20793         (File system functions): Add openat-die, stat-macros.
20794         (Networking functions): Add sockets.
20795         (Unicode string functions): Add unictype/*.
20796         (Support for building libraries and executables): Add gperf.
20797         (Support for building documentation): Add agpl-3.0.
20798         (Misc): Add nocrash.
20799
20800 2008-05-10  Bruno Haible  <bruno@clisp.org>
20801
20802         * modules/unictype/gen-ctype: New file.
20803
20804 2008-05-10  Jim Meyering  <meyering@redhat.com>
20805
20806         Make chdir-safer.c more efficient on a system with no symlinks.
20807         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
20808         also if ELOOP is zero.  Suggested by Bruno Haible.
20809
20810         Make chdir-safer.c slightly safer.
20811         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
20812         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
20813
20814         Avoid compile failure on systems without ELOOP (like mingw).
20815         * lib/chdir-safer.c (ELOOP): Define if not already defined.
20816         Reported by Bruno Haible.
20817
20818 2008-05-10  Bruno Haible  <bruno@clisp.org>
20819
20820         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
20821         (is_utf8_encoding): Use a case-insensitive comparison.
20822         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
20823         streq.
20824
20825 2008-05-10  Bruno Haible  <bruno@clisp.org>
20826
20827         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
20828         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
20829         * lib/unilbrk/ulc-common.h (iconv_string_length,
20830         iconv_string_keeping_offsets): Remove declarations.
20831         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
20832         Don't include <iconv.h>, streq.h, xsize.h.
20833         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
20834         conversion.
20835         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
20836         <iconv.h>, streq.h, xsize.h.
20837         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
20838         conversion.
20839         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
20840         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
20841         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
20842         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
20843
20844 2008-05-10  Bruno Haible  <bruno@clisp.org>
20845
20846         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
20847         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
20848
20849         * modules/unilbrk/u32-width-linebreaks-tests: New file.
20850         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
20851
20852         * modules/unilbrk/u16-width-linebreaks-tests: New file.
20853         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
20854
20855         * modules/unilbrk/u8-width-linebreaks-tests: New file.
20856         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
20857
20858         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
20859         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
20860
20861         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
20862         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
20863
20864         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
20865         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
20866
20867         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
20868         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
20869
20870 2008-05-10  Bruno Haible  <bruno@clisp.org>
20871
20872         Split up 'linebreak' module.
20873         * lib/unilbrk.h: New file, based on lib/linebreak.h.
20874         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
20875         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
20876         modifications.
20877         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
20878         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
20879         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
20880         lib/linebreak.c.
20881         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
20882         lib/linebreak.c.
20883         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
20884         lib/linebreak.c.
20885         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
20886         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
20887         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
20888         lib/linebreak.c.
20889         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
20890         lib/linebreak.c.
20891         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
20892         lib/linebreak.c.
20893         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
20894         lib/linebreak.c.
20895         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
20896         lib/linebreak.c.
20897         * modules/unilbrk/base: New file.
20898         * modules/unilbrk/tables: New file.
20899         * modules/unilbrk/u8-possible-linebreaks: New file.
20900         * modules/unilbrk/u16-possible-linebreaks: New file.
20901         * modules/unilbrk/u32-possible-linebreaks: New file.
20902         * modules/unilbrk/ulc-common: New file.
20903         * modules/unilbrk/ulc-possible-linebreaks: New file.
20904         * modules/unilbrk/u8-width-linebreaks: New file.
20905         * modules/unilbrk/u16-width-linebreaks: New file.
20906         * modules/unilbrk/u32-width-linebreaks: New file.
20907         * modules/unilbrk/ulc-width-linebreaks: New file.
20908         * lib/linebreak.h: Remove file.
20909         * lib/linebreak.c: Remove file.
20910         * m4/linebreak.m4: Remove file.
20911         * modules/linebreak: Remove file.
20912         * NEWS: Mention the changes.
20913
20914 2008-05-09  Eric Blake  <ebb9@byu.net>
20915
20916         Add xmemdup0.
20917         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
20918         implementation.
20919         * lib/xmalloc.c (xmemdup0): New C implementation.
20920
20921 2008-05-08  Bruno Haible  <bruno@clisp.org>
20922
20923         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
20924
20925 2008-05-07  Eric Blake  <ebb9@byu.net>
20926
20927         Support cross-compilation of <wctype.h>.
20928         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
20929         AC_CACHE_CHECK.
20930
20931 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
20932
20933         * build-aux/vc-list-files: Add support for bzr.
20934
20935 2008-05-03  Jim Meyering  <meyering@redhat.com>
20936
20937         avoid failed assertion with tight malloc
20938         * tests/test-getndelim2.c: Correct an off-by-one assertion.
20939
20940 2008-05-03  Simon Josefsson  <simon@josefsson.org>
20941
20942         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
20943         are needed from arpa/inet.h.
20944         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
20945         Reported by Bruno Haible.
20946
20947 2008-05-02  Jim Meyering  <meyering@redhat.com>
20948
20949         avoid compilation error on FreeBSD 6
20950         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
20951
20952 2008-05-01  Jim Meyering  <meyering@redhat.com>
20953
20954         useless-if-before-free: correct --help's exit status description
20955         * build-aux/useless-if-before-free (usage): Like grep, exit 0
20956         for one or more matches, etc.  Reported by Bruno Haible.
20957
20958         vc-list-files: make the stand-alone gnulib test work
20959         * modules/vc-list-files-tests (configure.ac):
20960         Define and AC_SUBST abs_aux_dir.
20961         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
20962         $(abs_top_srcdir) to each script and having each of them
20963         duplicate the work of setting PATH, set PATH here, using
20964         the new variable, abs_aux_dir instead.
20965         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
20966         * tests/test-vc-list-files-git.sh: Likewise.
20967         Reported by Bruno Haible.
20968
20969 2008-05-01  Bruno Haible  <bruno@clisp.org>
20970
20971         * lib/getndelim2.c (getndelim2): Fix newsize computation during
20972         reallocation. Rename 'done' to 'found_delimiter'.
20973
20974 2008-05-01  Jim Meyering  <meyering@redhat.com>
20975
20976         vc-list-files: accommodate /bin/sh like the one from Solaris 10
20977         * build-aux/vc-list-files: Use `...`, not $(...).
20978
20979 2008-04-30  Jim Meyering  <meyering@redhat.com>
20980
20981         add tests for vc-list-files
20982         * modules/vc-list-files-tests: New module.
20983         * tests/test-vc-list-files-cvs.sh: New file.
20984         * tests/test-vc-list-files-git.sh: New file.
20985
20986         avoid a warning from gcc
20987         * lib/getndelim2.c (IF_LINT): Define.
20988         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
20989
20990         vc-list-files: work properly with build-aux/cvsu, too
20991         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
20992         to all cvs-based clauses.
20993
20994         vc-list-files: work properly in the CVS+awk case, too
20995         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
20996
20997         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
20998         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
20999         take more than one file argument, so .  Add quotes, just in case $dir
21000         ever contains a shell meta-character.  Prompted by Soren Hansen in
21001         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21002
21003 2008-04-29  Eric Blake  <ebb9@byu.net>
21004
21005         Optimize getndelim2 to use block operations when possible.
21006         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21007         freadseek, and memchr2.
21008         * lib/getndelim2.c (getndelim2): Use them for block reads.
21009
21010 2008-04-29  Bruno Haible  <bruno@clisp.org>
21011
21012         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21013         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21014         * modules/inet_ntop (Depends-on): Add extensions.
21015         * modules/inet_pton (Depends-on): Likewise.
21016         Reported by Simon Josefsson.
21017
21018 2008-04-29  Jim Meyering  <meyering@redhat.com>
21019
21020         When the is more than one match in a block, match all of them.
21021         * build-aux/useless-if-before-free: Iterate through each block
21022         until there are no more matches.
21023
21024         Fix broken useless-if-before-free script.
21025         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21026         the expression to match cast of argument to free-like function.
21027
21028 2008-04-29  Eric Blake  <ebb9@byu.net>
21029
21030         Use new header.
21031         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21032
21033 2008-04-29  Jim Meyering  <meyering@redhat.com>
21034
21035         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21036         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21037         by gnulib to exist and to declare e.g., inet_ntop.
21038         Don't include "inet_ntop.h", now removed.
21039
21040         * m4/arpa_inet_h.m4: Remove trailing blanks.
21041
21042 2008-04-29  Eric Blake  <ebb9@byu.net>
21043
21044         Silence valgrind on safe reads beyond potential array bounds.
21045         * lib/rawmemchr.valgrind: New file.
21046         * lib/strchrnul.valgrind: Likewise.
21047         * modules/rawmemchr (Files): Distribute new file.
21048         * modules/strchrnul (Files): Likewise.
21049         Suggested by Bruno Haible.
21050
21051 2008-04-29  Bruno Haible  <bruno@clisp.org>
21052
21053         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21054         (inet_ntop, inet_pton): Change portability warning's wording.
21055         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21056         Invoke gl_CHECK_NEXT_HEADERS.
21057         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21058         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21059         set ARPA_INET_H.
21060         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21061         * modules/arpa_inet (Description): No longer only for systems that
21062         lack it.
21063         (Depends-on): Add include_next.
21064         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21065         HAVE_ARPA_INET_H.
21066
21067 2008-04-29  Jim Meyering  <meyering@redhat.com>
21068
21069         * modules/mkdir (License): Re-license as LGPLv2+.
21070
21071 2008-04-29  Bruno Haible  <bruno@clisp.org>
21072
21073         * modules/rawmemchr (Maintainer): Set to Eric.
21074         * modules/strchrnul (Maintainer): Likewise.
21075
21076 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21077
21078         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21079         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21080
21081         * modules/arpa_inet (arpa/inet.h): Use them.
21082
21083 2008-04-28  Eric Blake  <ebb9@byu.net>
21084
21085         Test getndelim2.
21086         * modules/getndelim2-tests: New file.
21087         * tests/test-getndelim2.c: Likewise.
21088         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21089         stream.
21090         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21091
21092         * MODULES.html.sh: Document new module.
21093
21094 2008-04-20  Bruno Haible  <bruno@clisp.org>
21095
21096         * lib/c-stack.c (die): Use raise.
21097         * modules/c-stack (Depends-on): Add raise.
21098
21099 2008-04-28  Bruno Haible  <bruno@clisp.org>
21100
21101         Expect rpmatch to be declared.
21102         * lib/yesno.c (rpmatch): Remove declaration.
21103
21104         Declare rpmatch.
21105         * lib/stdlib.in.h (rpmatch): New declaration.
21106         * lib/rpmatch.c: Include <stdlib.h> first.
21107         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21108         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21110         HAVE_RPMATCH.
21111         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21112         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21113         (Include): Set to <stdlib.h>.
21114         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21115         HAVE_RPMATCH.
21116         * NEWS: Document the change.
21117
21118 2008-04-28  Bruno Haible  <bruno@clisp.org>
21119
21120         Change rpmatch to use nl_langinfo when appropriate.
21121         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21122         (N_): New macro.
21123         (localized_pattern): New function/macro.
21124         (try): Remove match, nomatch arguments. Copy the pattern into safe
21125         memory before caching it.
21126         (rpmatch): Use localized_pattern. Add translator comments.
21127         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21128         Suggested by Eric Blake.
21129         * modules/rpmatch (Depends-on): Add stdbool.
21130
21131 2008-04-28  Eric Blake  <ebb9@byu.net>
21132
21133         Add rawmemchr module, matching glibc.
21134         * modules/string (Makefile.am): New indicator.
21135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21136         * lib/string.in.h (rawmemchr): Declare when appropriate.
21137         * modules/rawmemchr: New file.
21138         * m4/rawmemchr.m4: Likewise.
21139         * lib/rawmemchr.c: Likewise.
21140         * modules/rawmemchr-tests: Likewise.
21141         * tests/test-rawmemchr.c: Likewise.
21142         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21143         module.
21144         * modules/strchrnul (Depends-on): Add rawmemchr.
21145         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21146
21147         Whitespace cleanup.
21148         * tests/test-strchrnul.c: Reindent.
21149         * lib/strchrnul.c: Likewise.
21150
21151         Optimize and test strchrnul.
21152         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21153         * modules/strchrnul-tests: New file.
21154         * tests/test-strchrnul.c: Likewise.
21155
21156         Remove intprops dependency.
21157         * modules/memchr (Depends-on): Remove intprops.
21158         * modules/memrchr (Depends-on): Likewise.
21159         * modules/memchr2 (Depends-on): Likewise.
21160         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21161         * lib/memrchr.c (__memrchr): Likewise.
21162         * lib/memrchr2.c (memchr2): Likewise.
21163         Reported by Simon Josefsson.
21164
21165 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21166
21167         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21168         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21169
21170 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21171
21172         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21173
21174         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21175
21176         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21177
21178         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21179         declarations.
21180         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21181
21182         * m4/inet_pton.m4: Don't check for header files.
21183
21184         * m4/inet_ntop.m4: Don't check for header files.
21185
21186 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21187
21188         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21189         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21190         trigger for cygwin).
21191         Reported by Bruno Haible  <bruno@clisp.org>.
21192
21193 2008-04-28  Bruno Haible  <bruno@clisp.org>
21194
21195         * doc/posix-functions/strdup.texi: Mention mingw problem.
21196
21197 2008-04-27  Bruno Haible  <bruno@clisp.org>
21198
21199         * modules/stat-time-tests (Depends-on): Add sleep.
21200         * tests/test-stat-time.c (force_unlink): New function.
21201         (cleanup): Use it.
21202         (test_mtime): Remove the ctime related tests.
21203         (test_ctime): New function, containing the ctime related tests.
21204         (main): Call test_ctime, except on native Windows platforms.
21205
21206 2008-04-27  Bruno Haible  <bruno@clisp.org>
21207
21208         * lib/rpmatch.c (rpmatch): Add some comments.
21209         Reported by James Youngman <jay@gnu.org>.
21210
21211 2008-04-27  Bruno Haible  <bruno@clisp.org>
21212
21213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21214         quiet NaNs.
21215
21216 2008-04-27  Bruno Haible  <bruno@clisp.org>
21217
21218         Make test-yesno.sh work on mingw.
21219         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21220         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21221         (main): Set stdin to binary mode.
21222         * modules/yesno-tests (Depends-on): Add binary-io.
21223
21224 2008-04-27  Bruno Haible  <bruno@clisp.org>
21225
21226         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21227         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21228         argument that lie outside the IEEE 854 domain.
21229         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21230         (gl_ISFINITE): Use it.
21231         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21232
21233 2008-04-27  Bruno Haible  <bruno@clisp.org>
21234
21235         Allow local renaming in config.h.
21236         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21237
21238 2008-04-27  Bruno Haible  <bruno@clisp.org>
21239
21240         * lib/memchr.c (__memchr): Change type of 'i'.
21241         * lib/memchr2.c (memchr2): Likewise.
21242
21243 2008-04-26  Eric Blake  <ebb9@byu.net>
21244         and Bruno Haible  <bruno@clisp.org>
21245
21246         Optimize and test memrchr.
21247         * modules/memrchr (Depends-on): Add intprops.
21248         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21249         * modules/memrchr-tests: New file.
21250         * tests/test-memrchr.c: New file.
21251
21252 2008-04-26  Bruno Haible  <bruno@clisp.org>
21253
21254         Add tentative support for DragonFly BSD.
21255         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21256         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21257         fp.
21258         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21259         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21260         * lib/fpurge.c (fpurge): Likewise.
21261         * lib/freadable.c (freaadable): Likewise.
21262         * lib/freadahead.c (freadahead): Likewise.
21263         * lib/freading.c (freading): Likewise.
21264         * lib/freadptr.c (freadptr): Likewise.
21265         * lib/freadseek.c (freadptrinc): Likewise.
21266         * lib/fseeko.c (fseeko): Likewise.
21267         * lib/fseterr.c (fseterr): Likewise.
21268         * lib/fwritable.c (fwritable): Likewise.
21269         * lib/fwriting.c (fwriting): Likewise.
21270
21271 2008-04-26  Bruno Haible  <bruno@clisp.org>
21272
21273         * lib/stdio-impl.h: New file.
21274         * lib/fbufmode.c: Include stdio-impl.h.
21275         (fbufmode): Use fp_, remove redundant #defines.
21276         * lib/fflush.c: Include stdio-impl.h.
21277         (clear_ungetc_buffer): Remove redundant #defines.
21278         * lib/fpurge.c: Include stdio-impl.h.
21279         (fpurge): Remove redundant #defines.
21280         * lib/freadable.c: Include stdio-impl.h.
21281         (freadable): Remove redundant #defines.
21282         * lib/freadahead.c: Include stdio-impl.h.
21283         (freadahead): Remove redundant #defines.
21284         * lib/freading.c: Include stdio-impl.h.
21285         (freading): Remove redundant #defines.
21286         * lib/freadptr.c: Include stdio-impl.h.
21287         (freadptr): Remove redundant #defines.
21288         * lib/freadseek.c: Include stdio-impl.h.
21289         (freadptrinc): Remove redundant #defines.
21290         * lib/fseeko.c: Include stdio-impl.h.
21291         (rpl_fseeko): Remove redundant #defines.
21292         * lib/fseterr.c: Include stdio-impl.h.
21293         (fseterr): Remove redundant #defines.
21294         * lib/fwritable.c: Include stdio-impl.h.
21295         (fwritable: Remove redundant #defines.
21296         * lib/fwriting.c: Include stdio-impl.h.
21297         (fwriting): Remove redundant #defines.
21298         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21299         * modules/fflush (Files): Likewise.
21300         * modules/fpurge (Files): Likewise.
21301         * modules/freadable (Files): Likewise.
21302         * modules/freadahead (Files): Likewise.
21303         * modules/freading (Files): Likewise.
21304         * modules/freadptr (Files): Likewise.
21305         * modules/freadseek (Files): Likewise.
21306         * modules/fseeko (Files): Likewise.
21307         * modules/fseterr (Files): Likewise.
21308         * modules/fwritable (Files): Likewise.
21309         * modules/fwriting (Files): Likewise.
21310
21311 2008-04-26  Bruno Haible  <bruno@clisp.org>
21312
21313         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21314         restore_seek_optimization, update_fpos_cache): New functions, extracted
21315         from rpl_fflush.
21316         (rpl_fflush): Use them.
21317         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21318         (gl_REPLACE_FFLUSH): Use it.
21319
21320 2008-04-26  Bruno Haible  <bruno@clisp.org>
21321
21322         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21323         on Solaris.
21324         * tests/test-xstrtoimax.sh: Likewise.
21325         * tests/test-xstrtoumax.sh: Likewise.
21326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21327
21328 2008-04-26  Bruno Haible  <bruno@clisp.org>
21329
21330         * modules/memchr-tests: New file.
21331         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21332
21333 2008-04-26  Eric Blake  <ebb9@byu.net>
21334             Bruno Haible  <bruno@clisp.org>
21335
21336         * lib/memchr.c: Include intprops.h.
21337         (__memchr): Optimize parallel detection of matching bytes. Rename local
21338         variables. Add explanatory comments.
21339
21340 2008-04-26  Bruno Haible  <bruno@clisp.org>
21341
21342         Fix module 'memchr', broken since 2000-10-28.
21343         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21344
21345 2008-04-26  Bruno Haible  <bruno@clisp.org>
21346
21347         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21348         comments.
21349
21350 2008-04-25  Eric Blake  <ebb9@byu.net>
21351
21352         Use native fstatat on cygwin 1.7.0.
21353         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21354         first.
21355
21356 2008-04-23  Eric Blake  <ebb9@byu.net>
21357
21358         Improve memchr2 performance.
21359         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21360         NUL bytes.
21361         * modules/memchr2 (Depends-on): Use intprops.h.
21362
21363 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21364
21365         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21366         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21367         <blp@cs.stanford.edu>.
21368
21369 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21370
21371         * lib/arpa_inet.in.h: New file.
21372
21373         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21374         (Makefile.am): Sed in substitute header file.
21375
21376         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21377         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21378
21379         * modules/inet_ntop (configure.ac): Use
21380         gl_ARPA_INET_MODULE_INDICATOR.
21381
21382         * modules/inet_pton (configure.ac): Use
21383         gl_ARPA_INET_MODULE_INDICATOR.
21384
21385 2008-04-22  Jim Meyering  <meyering@redhat.com>
21386
21387         * modules/verify (License): Re-license as LGPLv2+.
21388
21389 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21390
21391         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21392         parameter to void* as per POSIX standard (MinGW uses char*).
21393
21394 2008-04-21  Bruno Haible  <bruno@clisp.org>
21395
21396         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21397         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21398         Define to replacements if REPLACE_ISWCNTRL is 1.
21399         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21400         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21401         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21402         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21403         what it fixes.
21404         * doc/posix-functions/iswalpha.texi: Likewise.
21405         * doc/posix-functions/iswblank.texi: Likewise.
21406         * doc/posix-functions/iswcntrl.texi: Likewise.
21407         * doc/posix-functions/iswdigit.texi: Likewise.
21408         * doc/posix-functions/iswgraph.texi: Likewise.
21409         * doc/posix-functions/iswlower.texi: Likewise.
21410         * doc/posix-functions/iswprint.texi: Likewise.
21411         * doc/posix-functions/iswpunct.texi: Likewise.
21412         * doc/posix-functions/iswspace.texi: Likewise.
21413         * doc/posix-functions/iswupper.texi: Likewise.
21414         * doc/posix-functions/iswxdigit.texi: Likewise.
21415         Reported by Alain Guibert.
21416
21417 2008-04-21  Bruno Haible  <bruno@clisp.org>
21418
21419         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21420         Patch by Alain Guibert.
21421
21422 2008-04-21  Bruno Haible  <bruno@clisp.org>
21423
21424         Fix test failures on mingw.
21425         * tests/test-xstrtol.c (print_no_progname): New function.
21426         (main): Install it in error_print_progname hook.
21427         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21428         * tests/test-xstrtoimax.sh: Likewise.
21429         * tests/test-xstrtoumax.sh: Likewise.
21430
21431 2008-04-21  Bruno Haible  <bruno@clisp.org>
21432
21433         Fix test failure on mingw.
21434         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21435
21436 2008-04-21  Bruno Haible  <bruno@clisp.org>
21437
21438         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21439         Actually assign a value.
21440
21441 2008-04-20  Bruno Haible  <bruno@clisp.org>
21442
21443         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21444         take 2.
21445         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21446         'canonicalize-lgpl' module is also used.
21447         * lib/canonicalize-lgpl.c: Undo last change.
21448         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21449
21450 2008-04-20  Bruno Haible  <bruno@clisp.org>
21451
21452         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21453         config.h. Provide _mkdir based fallback for mingw.
21454         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21455         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21456         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21457         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21458         rather than defining mkdir in config.h.
21459         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21460         (gl_SYS_STAT_H_DEFAULTS): New macro.
21461         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21462         HAVE_IO_H any more.
21463         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21464         HAVE_DECL_MKDIR and HAVE_IO_H.
21465
21466 2008-04-20  Bruno Haible  <bruno@clisp.org>
21467
21468         * lib/isapipe.c: Port to native Windows platforms.
21469
21470 2008-04-20  Bruno Haible  <bruno@clisp.org>
21471
21472         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21473
21474 2008-04-21  Eric Blake  <ebb9@byu.net>
21475
21476         Work around preprocessors that don't handle UINTMAX_MAX.
21477         * lib/memchr2.c (memchr2): Avoid embedded #if.
21478         Reported by Alain Guibert, fix suggested by Bruno Haible.
21479
21480 2008-04-21  Simon Josefsson  <simon@josefsson.org>
21481
21482         * doc/posix-functions/strftime.texi (strftime): Explain better
21483         Windows incompatibility.  Suggested by Micah Cowan
21484         <micah@cowan.name>.
21485
21486 2008-04-20  Bruno Haible  <bruno@clisp.org>
21487
21488         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21489         unistr/u8-mblen.
21490
21491 2008-04-20  Bruno Haible  <bruno@clisp.org>
21492
21493         Fix test failure on platforms with non-GNU iconv.
21494         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21495         (U_TO_U8): Use it, rather than u16_to_u8.
21496         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21497         units at the end of the input string.
21498         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21499
21500 2008-04-20  Bruno Haible  <bruno@clisp.org>
21501
21502         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21503         when the resulting length is 0.
21504         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21505
21506 2008-04-20  Bruno Haible  <bruno@clisp.org>
21507
21508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21509         works.
21510         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21511
21512 2008-04-20  Bruno Haible  <bruno@clisp.org>
21513
21514         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21515         * modules/tsearch-tests (configure.ac): Test for initstate function.
21516
21517 2008-04-20  Bruno Haible  <bruno@clisp.org>
21518
21519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21520         for nlink_t if missing.
21521         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21522
21523 2008-04-19  Bruno Haible  <bruno@clisp.org>
21524
21525         Work around snprintf bug on Linux libc5.
21526         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21528         gl_SNPRINTF_SIZE1.
21529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21530         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21531         that test failed.
21532         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21533         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21534         * modules/snprintf (Files): Add m4/printf.m4.
21535         * modules/vsnprintf (Files): Likewise.
21536         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21537         * doc/posix-functions/vsnprintf.texi: Likewise.
21538
21539 2008-04-19  Bruno Haible  <bruno@clisp.org>
21540
21541         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21542         from 0.0058 to less than 10^-7.
21543
21544 2008-04-19  Bruno Haible  <bruno@clisp.org>
21545
21546         Fix rounding when a precision is given.
21547         * lib/vasnprintf.c (is_borderline): New function.
21548         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21549         9...9x.
21550         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21551         %e, %g.
21552         * tests/test-vasprintf-posix.c (test_function): Likewise.
21553         * tests/test-snprintf-posix.h (test_function): Likewise.
21554         * tests/test-sprintf-posix.h (test_function): Likewise.
21555         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21556         * tests/test-printf-posix.h (test_function): Likewise.
21557         * tests/test-printf-posix.output: Update.
21558         Reported by John Darrington <john@darrington.wattle.id.au> via
21559         Ben Pfaff <blp@cs.stanford.edu>.
21560
21561 2008-04-18  Simon Josefsson  <simon@josefsson.org>
21562
21563         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21564         Suggested by Bruno Haible <bruno@clisp.org>.
21565
21566 2008-04-17  Bruno Haible  <bruno@clisp.org>
21567
21568         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21569         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21570         implementation.
21571         Patch by Bruce Merry <bmerry@gmail.com>.
21572
21573 2008-04-17  Simon Josefsson  <simon@josefsson.org>
21574
21575         * doc/posix-functions/strftime.texi (strftime): Mention that %e
21576         doesn't work under Windows.
21577
21578 2008-04-16  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21581         New macros.
21582         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21583         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21584         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21585         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21586         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21587         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21588         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21589         macros.
21590         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21591         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21592         Northern Sotho, Uighur.
21593
21594 2008-04-16  Bruno Haible  <bruno@clisp.org>
21595
21596         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21597         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21598         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21599         Reported by Daniel Bergström <daniel@octocode.com>.
21600
21601 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
21602             Bruno Haible  <bruno@clisp.org>
21603
21604         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21605         function.
21606         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21607         New functions, mostly extracted from gl_locale_name_default.
21608         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21609
21610 2008-04-16  Eric Blake  <ebb9@byu.net>
21611
21612         Adjust strtod detection to catch glibc 2.7 bug.
21613         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21614         Reported by John Gatewood Ham.
21615
21616 2008-04-16  Bruno Haible  <bruno@clisp.org>
21617
21618         Add tentative support for Linux libc5.
21619         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21620         * lib/fpurge.c (fpurge): Likewise.
21621         * lib/freadable.c (freadable): Likewise.
21622         * lib/freadahead.c (freadahead): Likewise.
21623         * lib/freading.c (freading): Likewise.
21624         * lib/freadptr.c (freadptr): Likewise.
21625         * lib/freadseek.c (freadptrinc): Likewise.
21626         * lib/fseeko.c (rpl_fseeko): Likewise.
21627         * lib/fseterr.c (fseterr): Likewise.
21628         * lib/fwritable.c (fwritable): Likewise.
21629         * lib/fwriting.c (fwriting): Likewise.
21630         Reported by Alain Guibert <alguibert+bts@free.fr>.
21631
21632 2008-04-15  Bruno Haible  <bruno@clisp.org>
21633
21634         * modules/mathl (configure.ac): Define module indicator.
21635
21636 2008-04-15  Bruno Haible  <bruno@clisp.org>
21637
21638         * lib/logl.c (logl): Remove unused variables.
21639
21640 2008-04-15  Bruno Haible  <bruno@clisp.org>
21641
21642         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21643         fails.
21644
21645 2008-04-15  Bruno Haible  <bruno@clisp.org>
21646
21647         * lib/trim.c (trim2): Fix argument of isspace() macro.
21648
21649 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
21650
21651         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21652         to 0.
21653         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21654
21655 2008-04-14  Bruno Haible  <bruno@clisp.org>
21656
21657         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21658         AC_LANG_PROGRAM argument.
21659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21660         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21662         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21663         * m4/math_h.m4 (gl_MATH_H): Likewise.
21664         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21665         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21666         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21667         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21668         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21669         * m4/regex.m4 (gl_REGEX): Likewise.
21670         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21671         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21673         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21674         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21675         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21677         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21678
21679 2008-04-14  Jim Meyering  <meyering@redhat.com>
21680
21681         test-strtod: fix typos: s/abs/fabs/
21682         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21683
21684 2008-04-13  Bruno Haible  <bruno@clisp.org>
21685
21686         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21687         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21688         module is also used and while not building the reloc-wrapper.
21689
21690 2008-04-13  Bruno Haible  <bruno@clisp.org>
21691
21692         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21693
21694 2008-04-13  Bruno Haible  <bruno@clisp.org>
21695
21696         Fix AIX compilation failure introduced on 2008-04-02.
21697         * tests/test-frexp.c (exp): Undefine before redefining.
21698         * tests/test-frexpl.c (exp): Likewise.
21699
21700 2008-04-13  Bruno Haible  <bruno@clisp.org>
21701
21702         Work around a HP-UX stdio bug.
21703         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21704         * tests/test-ftello.c (main): Likewise.
21705         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21706         * doc/posix-functions/ftello.texi: Likewise.
21707
21708 2008-04-13  Bruno Haible  <bruno@clisp.org>
21709
21710         Make test-signbit pass on HP-UX/hppa.
21711         * tests/test-signbit.c (minus_zerol): New variable.
21712         (test_signbitl): Use it.
21713
21714 2008-04-13  Bruno Haible  <bruno@clisp.org>
21715
21716         Make truncl work on OSF/1 4.0.
21717         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21718         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21719         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
21721         HAVE_DECL_TRUNCL.
21722         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
21723         HAVE_DECL_TRUNCL.
21724         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
21725
21726 2008-04-13  Bruno Haible  <bruno@clisp.org>
21727
21728         * lib/unictype.h: Remove trailing comma from enumeration definitions.
21729
21730 2008-04-13  Bruno Haible  <bruno@clisp.org>
21731
21732         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
21733         expression, so as to avoid HP-UX 11 cc compiler bug.
21734
21735 2008-04-13  Bruno Haible  <bruno@clisp.org>
21736
21737         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
21738
21739 2008-04-13  Bruno Haible  <bruno@clisp.org>
21740
21741         * lib/git-merge-changelog.c: Remove empty declaration outside of
21742         functions.
21743
21744 2008-04-13  Bruno Haible  <bruno@clisp.org>
21745
21746         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
21747
21748 2008-04-13  Bruno Haible  <bruno@clisp.org>
21749
21750         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
21751         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
21752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
21753         also if it exists but lacks definitions of the SHUT_* macros.
21754         * modules/sys_socket (Description): Update.
21755         Reported by Elbert Pol <e.pol@chello.nl>.
21756
21757 2008-04-13  Bruno Haible  <bruno@clisp.org>
21758
21759         * lib/localcharset.c (OS2): Don't redefine if already defined.
21760         Reported by Elbert Pol <e.pol@chello.nl>.
21761
21762 2008-04-13  Bruno Haible  <bruno@clisp.org>
21763
21764         * lib/binary-io.h [__EMX__]: Include <io.h>.
21765         Reported by Elbert Pol <e.pol@chello.nl>.
21766
21767 2008-04-12  Bruno Haible  <bruno@clisp.org>
21768
21769         * lib/fpucw.h: Enable the definitions also for x86_64.
21770         Needed for NetBSD/x86_64.
21771         Reported by Thomas Klausner <tk@giga.or.at>.
21772
21773 2008-04-12  Bruno Haible  <bruno@clisp.org>
21774
21775         * tests/test-strtod.c: Include isnand.h.
21776         (main): Use isnand instead of isnan.
21777         Reported by Jim Meyering.
21778
21779 2008-04-12  Bruno Haible  <bruno@clisp.org>
21780
21781         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
21782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21783
21784 2008-04-12  Jim Meyering  <meyering@redhat.com>
21785
21786         * m4/math_h.m4 (gl_MATH_H): Fix typos.
21787
21788 2008-04-12  Bruno Haible  <bruno@clisp.org>
21789
21790         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
21791         Reported by Elbert Pol <e.pol@chello.nl>.
21792
21793 2008-04-12  Eric Blake  <ebb9@byu.net>
21794
21795         Work around Solaris 10 math.h bug.
21796         * m4/math_h.m4 (gl_MATH_H): Check for bug.
21797         (gl_MATH_H_DEFAULTS): Set up default.
21798         * modules/math (Makefile.am): Replace new indicators.
21799         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
21800         * tests/test-math.c (main): Test this.
21801         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
21802         * doc/posix-headers/math.texi (math.h): Mention bug.
21803         Reported by Nelson H. F. Beebe and Jim Meyering.
21804
21805 2008-04-11  Bruno Haible  <bruno@clisp.org>
21806
21807         Adapt to future versions of Apple GCC.
21808         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
21809         Reported by Peter O'Gorman <peter@pogma.com>.
21810
21811 2008-04-11  Bruno Haible  <bruno@clisp.org>
21812
21813         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
21814
21815 2008-04-11  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
21818
21819         * modules/getaddrinfo-tests (Makefile.am): Define
21820         test_getaddrinfo_LDADD.
21821
21822 2008-04-11  Bruno Haible  <bruno@clisp.org>
21823
21824         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
21825         (init): Fix syntax error.
21826         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
21827         is declared.
21828
21829 2008-04-11  Bruno Haible  <bruno@clisp.org>
21830
21831         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
21832         * modules/glob (Depends-on): Add stdbool.
21833
21834 2008-04-11  Bruno Haible  <bruno@clisp.org>
21835
21836         * lib/trim.c: Include <string.h>.
21837
21838 2008-04-11  Eric Blake  <ebb9@byu.net>
21839
21840         Avoid compile failure on OS/2.
21841         * lib/regex_internal.h (internal_function): Disable optimization
21842         on OS/2 (__EMX__), where it caused compiler error.
21843         Reported by Elbert Pol.
21844
21845 2008-04-11  Bruno Haible  <bruno@clisp.org>
21846
21847         Flush the standard error stream before aborting. Needed on mingw.
21848         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
21849         * tests/test-array_list.c (ASSERT): Likewise.
21850         * tests/test-array_oset.c (ASSERT): Likewise.
21851         * tests/test-avltree_list.c (ASSERT): Likewise.
21852         * tests/test-avltree_oset.c (ASSERT): Likewise.
21853         * tests/test-avltreehash_list.c (ASSERT): Likewise.
21854         * tests/test-binary-io.c (ASSERT): Likewise.
21855         * tests/test-byteswap.c (ASSERT): Likewise.
21856         * tests/test-c-ctype.c (ASSERT): Likewise.
21857         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
21858         * tests/test-c-strcasestr.c (ASSERT): Likewise.
21859         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
21860         * tests/test-c-strstr.c (ASSERT): Likewise.
21861         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
21862         * tests/test-canonicalize.c (ASSERT): Likewise.
21863         * tests/test-carray_list.c (ASSERT): Likewise.
21864         * tests/test-ceilf1.c (ASSERT): Likewise.
21865         * tests/test-ceilf2.c (ASSERT): Likewise.
21866         * tests/test-ceill.c (ASSERT): Likewise.
21867         * tests/test-count-one-bits.c (ASSERT): Likewise.
21868         * tests/test-fbufmode.c (ASSERT): Likewise.
21869         * tests/test-fflush2.c (ASSERT): Likewise.
21870         * tests/test-floorf1.c (ASSERT): Likewise.
21871         * tests/test-floorf2.c (ASSERT): Likewise.
21872         * tests/test-floorl.c (ASSERT): Likewise.
21873         * tests/test-fopen.c (ASSERT): Likewise.
21874         * tests/test-fpending.c (ASSERT): Likewise.
21875         * tests/test-fprintf-posix.c (ASSERT): Likewise.
21876         * tests/test-fpurge.c (ASSERT): Likewise.
21877         * tests/test-freadable.c (ASSERT): Likewise.
21878         * tests/test-freadahead.c (ASSERT): Likewise.
21879         * tests/test-freading.c (ASSERT): Likewise.
21880         * tests/test-freadptr.c (ASSERT): Likewise.
21881         * tests/test-freadptr2.c (ASSERT): Likewise.
21882         * tests/test-freadseek.c (ASSERT): Likewise.
21883         * tests/test-freopen.c (ASSERT): Likewise.
21884         * tests/test-frexp.c (ASSERT): Likewise.
21885         * tests/test-frexpl.c (ASSERT): Likewise.
21886         * tests/test-fseek.c (ASSERT): Likewise.
21887         * tests/test-fseeko.c (ASSERT): Likewise.
21888         * tests/test-fstrcmp.c (ASSERT): Likewise.
21889         * tests/test-ftell.c (ASSERT): Likewise.
21890         * tests/test-ftello.c (ASSERT): Likewise.
21891         * tests/test-func.c (ASSERT): Likewise.
21892         * tests/test-fwritable.c (ASSERT): Likewise.
21893         * tests/test-fwriting.c (ASSERT): Likewise.
21894         * tests/test-getdelim.c (ASSERT): Likewise.
21895         * tests/test-getline.c (ASSERT): Likewise.
21896         * tests/test-i-ring.c (ASSERT): Likewise.
21897         * tests/test-iconv-utf.c (ASSERT): Likewise.
21898         * tests/test-iconv.c (ASSERT): Likewise.
21899         * tests/test-isfinite.c (ASSERT): Likewise.
21900         * tests/test-isnand.c (ASSERT): Likewise.
21901         * tests/test-isnanf.c (ASSERT): Likewise.
21902         * tests/test-isnanl.h (ASSERT): Likewise.
21903         * tests/test-ldexpl.c (ASSERT): Likewise.
21904         * tests/test-linked_list.c (ASSERT): Likewise.
21905         * tests/test-linkedhash_list.c (ASSERT): Likewise.
21906         * tests/test-localename.c (ASSERT): Likewise.
21907         * tests/test-lseek.c (ASSERT): Likewise.
21908         * tests/test-mbscasecmp.c (ASSERT): Likewise.
21909         * tests/test-mbscasestr1.c (ASSERT): Likewise.
21910         * tests/test-mbscasestr2.c (ASSERT): Likewise.
21911         * tests/test-mbscasestr3.c (ASSERT): Likewise.
21912         * tests/test-mbscasestr4.c (ASSERT): Likewise.
21913         * tests/test-mbschr.c (ASSERT): Likewise.
21914         * tests/test-mbscspn.c (ASSERT): Likewise.
21915         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
21916         * tests/test-mbspbrk.c (ASSERT): Likewise.
21917         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
21918         * tests/test-mbsrchr.c (ASSERT): Likewise.
21919         * tests/test-mbsspn.c (ASSERT): Likewise.
21920         * tests/test-mbsstr1.c (ASSERT): Likewise.
21921         * tests/test-mbsstr2.c (ASSERT): Likewise.
21922         * tests/test-mbsstr3.c (ASSERT): Likewise.
21923         * tests/test-memchr2.c (ASSERT): Likewise.
21924         * tests/test-memmem.c (ASSERT): Likewise.
21925         * tests/test-open.c (ASSERT): Likewise.
21926         * tests/test-printf-frexp.c (ASSERT): Likewise.
21927         * tests/test-printf-frexpl.c (ASSERT): Likewise.
21928         * tests/test-printf-posix.c (ASSERT): Likewise.
21929         * tests/test-quotearg.c (ASSERT): Likewise.
21930         * tests/test-rbtree_list.c (ASSERT): Likewise.
21931         * tests/test-rbtree_oset.c (ASSERT): Likewise.
21932         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
21933         * tests/test-round1.c (ASSERT): Likewise.
21934         * tests/test-roundf1.c (ASSERT): Likewise.
21935         * tests/test-roundl.c (ASSERT): Likewise.
21936         * tests/test-signbit.c (ASSERT): Likewise.
21937         * tests/test-sleep.c (ASSERT): Likewise.
21938         * tests/test-snprintf-posix.c (ASSERT): Likewise.
21939         * tests/test-snprintf.c (ASSERT): Likewise.
21940         * tests/test-sprintf-posix.c (ASSERT): Likewise.
21941         * tests/test-stat-time.c (ASSERT): Likewise.
21942         * tests/test-strcasestr.c (ASSERT): Likewise.
21943         * tests/test-strerror.c (ASSERT): Likewise.
21944         * tests/test-striconv.c (ASSERT): Likewise.
21945         * tests/test-striconveh.c (ASSERT): Likewise.
21946         * tests/test-striconveha.c (ASSERT): Likewise.
21947         * tests/test-strsignal.c (ASSERT): Likewise.
21948         * tests/test-strstr.c (ASSERT): Likewise.
21949         * tests/test-strtod.c (ASSERT): Likewise.
21950         * tests/test-trunc1.c (ASSERT): Likewise.
21951         * tests/test-trunc2.c (ASSERT): Likewise.
21952         * tests/test-truncf1.c (ASSERT): Likewise.
21953         * tests/test-truncf2.c (ASSERT): Likewise.
21954         * tests/test-truncl.c (ASSERT): Likewise.
21955         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
21956         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
21957         * tests/test-vasnprintf.c (ASSERT): Likewise.
21958         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
21959         * tests/test-vasprintf.c (ASSERT): Likewise.
21960         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
21961         * tests/test-vprintf-posix.c (ASSERT): Likewise.
21962         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
21963         * tests/test-vsnprintf.c (ASSERT): Likewise.
21964         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
21965         * tests/test-wcwidth.c (ASSERT): Likewise.
21966         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
21967         * tests/test-xprintf-posix.c (ASSERT): Likewise.
21968         * tests/test-xvasprintf.c (ASSERT): Likewise.
21969         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
21970         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
21971         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
21972         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
21973         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
21974         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
21975         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
21976         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
21977         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
21978         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
21979         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
21980         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
21981         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
21982         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
21983         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
21984         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
21985         * tests/unictype/test-block_list.c (ASSERT): Likewise.
21986         * tests/unictype/test-block_of.c (ASSERT): Likewise.
21987         * tests/unictype/test-block_test.c (ASSERT): Likewise.
21988         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
21989         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
21990         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
21991         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
21992         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
21993         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
21994         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
21995         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
21996         * tests/unictype/test-combining.c (ASSERT): Likewise.
21997         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
21998         * tests/unictype/test-digit.c (ASSERT): Likewise.
21999         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22000         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22001         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22002         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22003         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22004         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22005         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22006         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22007         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22008         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22009         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22010         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22011         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22012         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22013         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22014         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22015         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22016         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22017         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22018         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22019         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22020         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22021         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22022         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22023         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22024         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22025         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22026         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22027         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22028         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22029         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22030         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22031         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22032         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22033         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22034         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22035         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22036         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22037         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22038         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22039         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22040         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22041         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22042         Reported by Eric Blake.
22043
22044 2008-04-11  Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/wchar.in.h: Tweak comment.
22047
22048 2008-04-11  Bruno Haible  <bruno@clisp.org>
22049
22050         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22051         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22052         gl_COMMON.
22053         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22054
22055 2008-04-11  Bruno Haible  <bruno@clisp.org>
22056
22057         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22058
22059 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22060
22061         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22062         of attempting to use non-existing /dev/*random.  Based on patch
22063         from Adam Strzelecki <ono@java.pl> in
22064         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22065
22066 2008-04-08  Bruno Haible  <bruno@clisp.org>
22067
22068         Add tentative support for emx+gcc.
22069         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22070         * lib/fpurge.c (fpurge): Likewise.
22071         * lib/freadable.c (freadable): Likewise.
22072         * lib/freadahead.c (freadahead): Likewise.
22073         * lib/freading.c (freading): Likewise.
22074         * lib/freadptr.c (freadptr): Likewise.
22075         * lib/freadseek.c (freadptrinc): Likewise.
22076         * lib/fseeko.c (rpl_fseeko): Likewise.
22077         * lib/fseterr.c (fseterr): Likewise.
22078         * lib/fwritable.c (fwritable): Likewise.
22079         * lib/fwriting.c (fwriting): Likewise.
22080         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22081
22082 2008-04-09  Eric Blake  <ebb9@byu.net>
22083
22084         Avoid some autoconf warnings.
22085         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22086         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22087         * m4/afs.m4 (gl_AFS): Likewise.
22088         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22089         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22091         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22092         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22093         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22094         (AC_CHECK_DECLS_ONCE): Likewise.
22095         Rename file...
22096         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22097         gnulib-tool requires autoconf 2.59 or better.
22098         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22099
22100 2008-04-08  Eric Blake  <ebb9@byu.net>
22101
22102         Use 'git describe --match' if present (added in git 1.5.5).
22103         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22104         if possible.
22105
22106 2008-04-08  Bruno Haible  <bruno@clisp.org>
22107
22108         Add tentative support for OpenServer.
22109         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22110         _ptr, _cnt.
22111         * lib/fpurge.c (fpurge): Likewise.
22112         * lib/freadable.c (freadable): Likewise.
22113         * lib/freadahead.c (freadahead): Likewise.
22114         * lib/freading.c (freading): Likewise.
22115         * lib/freadptr.c (freadptr): Likewise.
22116         * lib/freadseek.c (freadptrinc): Likewise.
22117         * lib/fseeko.c (rpl_fseeko): Likewise.
22118         * lib/fseterr.c (fseterr): Likewise.
22119         * lib/fwritable.c (fwritable): Likewise.
22120         * lib/fwriting.c (fwriting): Likewise.
22121         Reported by Roger Cornelius <rac@tenzing.org> and
22122         Brian K. White <brian@aljex.com>.
22123
22124 2008-04-06  Jim Meyering  <meyering@redhat.com>
22125
22126         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22127
22128 2008-04-06  Bruno Haible  <bruno@clisp.org>
22129
22130         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22131         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22132         * tests/test-printf-posix.sh: Likewise.
22133         * tests/test-vfprintf-posix.sh: Likewise.
22134         * tests/test-vprintf-posix.sh: Likewise.
22135         * tests/test-xprintf-posix.sh: Likewise.
22136
22137 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22138
22139         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22140         hide error from 'ls', needed on OS/2.
22141         Report by Elbert Pol <elbert.pol@gmail.com>.
22142
22143 2008-04-04  Eric Blake  <ebb9@byu.net>
22144
22145         Make test-fseeko.c failures meaningful.
22146         * tests/test-fseeko.c: Print line number on failure.
22147         * tests/test-fseek.c: Likewise.
22148         Reported by Nelson H. F. Beebe.
22149
22150         Improve strtod bug detection check.
22151         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22152         required for Solaris 10.
22153         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22154
22155 2008-04-04  Bruno Haible  <bruno@clisp.org>
22156
22157         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22158         by m4/setenv.m4.
22159
22160 2008-04-03  Eric Blake  <ebb9@byu.net>
22161
22162         Ensure sane .version contents.
22163         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22164         version string.
22165         * build-aux/git-version-gen: Improve documentation.
22166
22167         Make GNU make output nicer.
22168         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22169         MAKECMDGOALS to enforce message for all command line targets.  Set
22170         srcdir for use in maint.mk.
22171
22172         Another maintainer tweak.
22173         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22174         a target that regenerates version.
22175
22176 2008-04-03  Jim Meyering  <meyering@redhat.com>
22177
22178         vc-list-files: don't cause coreutils "make po-check" failure
22179         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22180
22181 2008-04-03  Eric Blake  <ebb9@byu.net>
22182
22183         Allow VPATH usage of vc-list-files.
22184         * build-aux/vc-list-files (scriptversion): Add timestamp.
22185         (options): Add --help, --version, -C.
22186         (CVS): Support installed cvsu.
22187
22188 2008-04-02  Bruno Haible  <bruno@clisp.org>
22189
22190         Avoid some "statement with no effect" warnings from gcc.
22191         * tests/test-wctype.c (main): Explicitly ignore unused values.
22192         Reported by Jim Meyering.
22193
22194 2008-04-02  Jim Meyering  <meyering@redhat.com>
22195
22196         Avoid some warnings from "gcc -Wshadow".
22197         * tests/test-frexp.c (exp): Define to a different identifier.
22198         * tests/test-frexpl.c (exp): Likewise.
22199
22200 2008-04-03  Jim Meyering  <meyering@redhat.com>
22201
22202         bootstrap: remove dangling *.[ch] symlinks from lib
22203         * build-aux/bootstrap [dangling symlink removal]: Move find's
22204         -depth option to precede all others, to avoid a warning.
22205         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22206
22207 2008-04-02  Bruno Haible  <bruno@clisp.org>
22208
22209         Avoid some warnings from "gcc -Wshadow".
22210         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22211         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22212         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22213         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22214         Reported by Jim Meyering.
22215
22216 2008-04-01  Bruno Haible  <bruno@clisp.org>
22217
22218         Fix test to work on IRIX 6.5 with cc.
22219         * tests/test-math.c (numeric_equal): New function.
22220         (main): Use it.
22221
22222 2008-04-01  Bruno Haible  <bruno@clisp.org>
22223
22224         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22225
22226 2008-04-01  Bruno Haible  <bruno@clisp.org>
22227
22228         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22229         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22230         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22231         (Depends-on): Remove math.
22232
22233         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22234         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22235         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22236         (Depends-on): Remove math.
22237
22238         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22239         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22240         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22241         (Depends-on): Remove math.
22242         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22243         (Depends-on): Remove math.
22244
22245         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22246         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22247         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22248         (Depends-on): Remove math.
22249         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22250         (Depends-on): Remove math.
22251
22252         * tests/test-round1.c: Include nan.h.
22253         (main): Use NaNd instead of NAN.
22254         * modules/round-tests (Files): Add tests/nan.h.
22255
22256         * tests/test-trunc1.c: Include nan.h.
22257         (main): Use NaNd instead of NAN.
22258         * modules/trunc-tests (Files): Add tests/nan.h.
22259
22260         * tests/test-roundf1.c: Include nan.h.
22261         (main): Use NaNf instead of NAN.
22262         * modules/roundf-tests (Files): Add tests/nan.h.
22263
22264         * tests/test-truncf1.c: Include nan.h.
22265         (main): Use NaNf instead of NAN.
22266         * modules/truncf-tests (Files): Add tests/nan.h.
22267
22268         * tests/test-ceilf1.c: Include nan.h.
22269         (main): Use NaNf instead of NAN.
22270         * modules/ceilf-tests (Files): Add tests/nan.h.
22271
22272         * tests/test-floorf1.c: Include nan.h.
22273         (main): Use NaNf instead of NAN.
22274         * modules/floorf-tests (Files): Add tests/nan.h.
22275
22276         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22277         (main): Use NaNf instead of NAN.
22278         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22279
22280         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22281         (main): Use NaNd instead of NAN.
22282         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22283
22284         * tests/test-frexp.c: Include nan.h.
22285         (main): Use NaNd instead of NAN.
22286         * modules/frexp-tests (Files): Add tests/nan.h.
22287
22288         * lib/isnan.c: Don't include <math.h>.
22289         (FUNC): Don't use NAN macro.
22290         * modules/isnand-nolibm (Depends-on): Remove math.
22291         * modules/isnanf-nolibm (Depends-on): Remove math.
22292         * modules/isnanl (Depends-on): Remove math.
22293         * modules/isnanl-nolibm (Depends-on): Remove math.
22294
22295         * tests/nan.h: New file.
22296
22297 2008-04-01  Eric Blake  <ebb9@byu.net>
22298
22299         Fix typos.
22300         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22301         values to be the right type.
22302
22303         For now, cater to gnulib strtod inaccuracies.
22304         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22305         fractional results.  While not as nice from a QoI perspective, it
22306         is a quicker patch than correctly implementing decimal to binary
22307         rounding.
22308
22309 2008-03-31  Eric Blake  <ebb9@byu.net>
22310
22311         Guarantee a definition of NAN.
22312         * lib/math.in.h (NAN): Define if missing.
22313         * tests/test-math.c (main): Test it.
22314         * doc/posix-headers/math.texi (math.h): Document this.
22315         * lib/isnan.c (rpl_isnand): Use it.
22316         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22317         * tests/test-floorf1.c (NaN): Likewise.
22318         * tests/test-frexp.c (NaN): Likewise.
22319         * tests/test-isnand.c (NaN): Likewise.
22320         * tests/test-isnanf.c (NaN): Likewise.
22321         * tests/test-round1.c (NaN): Likewise.
22322         * tests/test-roundf1.c (NaN): Likewise.
22323         * tests/test-snprintf-posix.h (NaN): Likewise.
22324         * tests/test-sprintf-posix.h (NaN): Likewise.
22325         * tests/test-trunc1.c (NaN): Likewise.
22326         * tests/test-truncf1.c (NaN): Likewise.
22327         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22328         * tests/test-vasprintf-posix.c (NaN): Likewise.
22329         * modules/isnand-nolibm (Depends-on): Add math.
22330         * modules/isnanf-nolibm (Depends-on): Likewise.
22331         * modules/isnanl (Depends-on): Likewise.
22332         * modules/isnanl-nolibm (Depends-on): Likewise.
22333         * modules/snprintf-posix-tests (Depends-on): Likewise.
22334         * modules/sprintf-posix-tests (Depends-on): Likewise.
22335         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22336         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22337         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22338         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22339
22340 2008-03-31  Bruno Haible  <bruno@clisp.org>
22341
22342         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22343         * doc/posix-functions/strtod.texi: Likewise.
22344
22345 2008-03-31  Bruno Haible  <bruno@clisp.org>
22346
22347         * tests/test-strtod.c (main): Don't use C99 syntax.
22348
22349 2008-03-31  Bruno Haible  <bruno@clisp.org>
22350
22351         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22352         Reported by Eric Blake.
22353
22354 2008-03-31  Jim Meyering  <meyering@redhat.com>
22355
22356         Don't compare actual signbit return values.
22357         * tests/test-strtod.c (main): Rather, compare only their
22358         zero/non-zero nature.
22359
22360 2008-03-31  Eric Blake  <ebb9@byu.net>
22361
22362         More strtod documentation.
22363         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22364         failures as distinct bugs.
22365
22366 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22367
22368         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22369         Problem reported by Erik Benada in
22370         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22371
22372 2008-03-30  Bruno Haible  <bruno@clisp.org>
22373
22374         * tests/test-strtod.c: Add comments about which assertion fails on which
22375         platform.
22376         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22377
22378 2008-03-30  Eric Blake  <ebb9@byu.net>
22379
22380         Test signbit behavior on zeros.
22381         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22382         (test_signbitd, test_signbitl): Likewise.
22383
22384         More strtod touchups.
22385         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22386         sign of negative underflow, for now.  Use .5, not .1.
22387         * doc/posix-functions/strtod.texi (strtod): Mention these
22388         limitations.
22389         Reported by Jim Meyering.
22390
22391 2008-03-30  Bruno Haible  <bruno@clisp.org>
22392
22393         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22394         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22395
22396 2008-03-30  Bruno Haible  <bruno@clisp.org>
22397
22398         Avoid failure when attempting to return empty iconv results on some
22399         platforms.
22400         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22401         allocation, don't report ENOMEM when the resulting string is empty.
22402
22403 2008-03-30  Bruno Haible  <bruno@clisp.org>
22404
22405         Fix buffer overrun.
22406         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22407         Don't consider the width for tmp_length. Check count against tmp_length
22408         before doing the padding. Ensure enough allocation during padding.
22409
22410 2008-03-30  Eric Blake  <ebb9@byu.net>
22411
22412         strtod touchups.
22413         * lib/strtod.c (strtod): Avoid compiler warnings.
22414         Reported by Jim Meyering.
22415
22416 2008-03-30  Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22419         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22420         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22421         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22422         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22423         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22424         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22425         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22426
22427         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22428         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22429         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22430         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22431         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22432         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22433         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22434         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22435
22436         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22437         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22438         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22439         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22440         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22441         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22442         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22443         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22444
22445         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22446         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22447
22448         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22449         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22450
22451         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22452         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22453
22454         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22456         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22457
22458         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22460         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22461
22462         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22464         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22465
22466         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22468         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22469
22470         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22471         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22473         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22474         (Depends-on): Add EOVERFLOW.
22475         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22476         (Depends-on): Add EOVERFLOW.
22477         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22478         (Depends-on): Add EOVERFLOW.
22479         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22480         (Depends-on): Add EOVERFLOW.
22481         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22482         (Depends-on): Add EOVERFLOW.
22483         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22484         (Depends-on): Add EOVERFLOW.
22485         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22486         (Depends-on): Add EOVERFLOW.
22487         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22488         (Depends-on): Add EOVERFLOW.
22489
22490         * lib/sprintf.c (EOVERFLOW): Remove fallback.
22491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22492         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22493
22494         * lib/snprintf.c (EOVERFLOW): Remove fallback.
22495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22496         * modules/snprintf (Depends-on): Add EOVERFLOW.
22497
22498         * lib/poll.c (EOVERFLOW): Remove fallback.
22499         * modules/poll (Depends-on): Add EOVERFLOW.
22500
22501         * lib/getugroups.c (EOVERFLOW): Remove fallback.
22502         * modules/getugroups (Depends-on): Add EOVERFLOW.
22503
22504         * lib/getdelim.c (EOVERFLOW): Remove fallback.
22505         * modules/getdelim (Depends-on): Add EOVERFLOW.
22506
22507         * lib/ftell.c (EOVERFLOW): Remove fallback.
22508         * modules/ftell (Depends-on): Add EOVERFLOW.
22509
22510         * lib/fprintf.c (EOVERFLOW): Remove fallback.
22511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22512         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22513
22514         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22515
22516         * modules/EOVERFLOW-tests: New file.
22517         * tests/test-EOVERFLOW.c: New file.
22518
22519         * modules/EOVERFLOW: New file.
22520         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22521
22522 2008-03-30  Bruno Haible  <bruno@clisp.org>
22523
22524         Fix bug introduced on 2007-06-10.
22525         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22526         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22527
22528 2008-03-30  Bruno Haible  <bruno@clisp.org>
22529
22530         Improve freadseek's efficiency after ungetc.
22531         * lib/freadseek.c: Include freadahead.h.
22532         (freadptrinc): New function, extracted from freadseek.
22533         (freadseek): Use it in a loop. Use freadahead to determine the number
22534         of loop iterations.
22535         * modules/freadseek (Depends-on): Add freadahead.
22536         (configure.ac): Require AC_C_INLINE.
22537
22538 2008-03-30  Bruno Haible  <bruno@clisp.org>
22539
22540         * lib/freadseek.c (freadseek): Don't ignore the return value of
22541         freadptr.
22542
22543 2008-03-29  Eric Blake  <ebb9@byu.net>
22544
22545         Add hex float support.
22546         * modules/strtod (Depends-on): Add c-ctype.
22547         (Link): Mention POW_LIB.
22548         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
22549         whitespace between 'e' and exponent.
22550         * tests/test-strtod.c (main): Enable hex float tests.
22551         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22552         now provides.
22553
22554         Document various strtod bugs, with some fixes.
22555         * doc/posix-functions/strtod.texi (strtod): Document bugs with
22556         "-0x", "inf", "nan", and hex constants.
22557         * doc/posix-functions/atof.texi (atof): Likewise.
22558         * modules/stdlib (Makefile.am): Support strtod.
22559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22560         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22561         detect additional strtod bugs.
22562         * lib/stdlib.in.h (rpl_strtod): Add declarations.
22563         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
22564         bool where appropriate.  Parse 'inf' and 'nan'.
22565         * tests/test-strtod.c: New file.
22566         * modules/strtod (Depends-on): Add stdbool, stdlib.
22567         (configure.ac): Turn on module indicator.
22568         * modules/strtod-tests: New module.
22569
22570 2008-03-29  Eric Blake  <ebb9@byu.net>
22571
22572         Fix ftell on mingw.
22573         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22574         * modules/ftell-tests (Depends-on): Add binary-io.
22575         * modules/ftello-tests (Depends-on): Likewise.
22576         * tests/test-ftell.c (main): Enhance test to cover behavior after
22577         ungetc.  Enforce binary mode.
22578         * tests/test-ftello.c (main): Likewise.
22579
22580         Pass test-freadseek on cygwin.
22581         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22582         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22583         ungetc buffer.
22584
22585         * tests/test-fflush2.c (main): Fix typo.
22586
22587 2008-03-29  Bruno Haible  <bruno@clisp.org>
22588
22589         * tests/test-fflush2.c (main): Temporarily disable the contents of
22590         this test.
22591         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22592         Reported by Eric Blake.
22593
22594 2008-03-28  Simon Josefsson  <simon@josefsson.org>
22595
22596         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22597         (GC_SHA224_DIGEST_SIZE): Add.
22598
22599         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22600         (gc_hash_digest_length): Likewise.
22601         (gc_hash_buffer): Likewise.
22602
22603 2008-03-25  Bruno Haible  <bruno@clisp.org>
22604
22605         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22606         detail which gettext release to use.
22607         Reported by Simon Josefsson.
22608
22609 2008-03-26  Jim Meyering  <meyering@redhat.com>
22610
22611         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22612         * modules/gnumakefile (clean-GNUmakefile): Also, use
22613         test ... && ... || : syntax rather than if-then ... fi.
22614
22615         gnumakefile: Don't double-quote-expand $(VPATH) value.
22616         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22617
22618 2008-03-24  Eric Blake  <ebb9@byu.net>
22619
22620         Alter GNUmakefile to install into top directory.
22621         * modules/maintainer-makefile: Split, and add dependency...
22622         * modules/gnumakefile: to this new module.
22623         * build-aux/GNUmakefile: Move...
22624         * top/GNUmakefile: ...here.
22625         * build-aux/maint.mk: Move...
22626         * top/maint.mk: ...here.
22627         * MODULES.html.sh (Support for maintaining...): Document new
22628         module.
22629
22630 2008-03-23  Bruno Haible  <bruno@clisp.org>
22631
22632         * gnulib-tool: New options --vc-files, --no-vc-files.
22633         (func_usage): Document them.
22634         (vc_files): New variable.
22635         (func_import): Consider vc_files.
22636         (func_create_testdir): Set vc_files to empty.
22637         Suggested by Jim Meyering and Karl Berry.
22638
22639 2008-03-23  Bruno Haible  <bruno@clisp.org>
22640
22641         Fix regex compilation error on HP-UX 11.
22642         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22643         * modules/regex (Files): Add m4/mbstate_t.m4.
22644         Reported by Ton Voon <ton.voon@altinity.com>.
22645
22646 2008-03-23  Bruno Haible  <bruno@clisp.org>
22647
22648         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22649
22650 2008-03-23  Eric Blake  <ebb9@byu.net>
22651             Bruno Haible  <bruno@clisp.org>
22652
22653         Install files from top/ in the destination directory.
22654         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22655         augmentation also for the files from top/.
22656         (func_import, func_create_testdir): Rewrite file names:
22657         top/filename -> filename.
22658
22659 2008-03-23  Bruno Haible  <bruno@clisp.org>
22660
22661         Tweak "gnulib --version" output.
22662         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22663
22664 2008-03-23  Bruno Haible  <bruno@clisp.org>
22665
22666         Tweak "gnulib --version" output.
22667         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22668         rather than contents of ChangeLog, when possible.
22669
22670 2008-03-21  Eric Blake  <ebb9@byu.net>
22671
22672         More --version tweaks.
22673         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
22674         date of last ChangeLog entry.
22675
22676 2008-03-21  Jim Meyering  <meyering@redhat.com>
22677
22678         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22679
22680 2008-03-20  Eric Blake  <ebb9@byu.net>
22681
22682         VPATH fix.
22683         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22684
22685 2008-03-20  Simon Josefsson  <simon@josefsson.org>
22686
22687         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
22688         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
22689
22690 2008-03-20  Eric Blake  <ebb9@byu.net>
22691
22692         Sync GNUmakefile with coreutils.
22693         * build-aux/GNUmakefile (have-Makefile): Rename...
22694         (_have-Makefile): ...to this, for namespace consideration.
22695         (GNUmakefile.cfg): Include, if present.
22696         (_autoreconf): Define a default.
22697         (_is-dist-target): New rule for rebuilds to pick up intra-release
22698         version.
22699         (maint-cfg.mk): Rename...
22700         (cfg.mk): ...to this.
22701
22702 2008-03-18  Jim Meyering  <meyering@redhat.com>
22703
22704         New script and module: mktempd
22705         * MODULES.html.sh (maint+release support): Add mktempd.
22706         * build-aux/mktempd: New file.
22707         * modules/mktempd: New file.
22708
22709 2008-03-15  Jim Meyering  <meyering@redhat.com>
22710
22711         Undo last change.
22712         * lib/sha1.c, lib/md5.c: 63 != ~63.
22713         Reported by Andreas Schwab.
22714
22715         sha1.c, md5.c: Hoist a redundant expression.
22716         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22717         "ctx->buflen" only once, before calling *_process_block.
22718         * lib/md5.c (md5_process_bytes): Likewise.
22719
22720 2008-03-14  Eric Blake  <ebb9@byu.net>
22721
22722         Bump copyright year in files generated by gnulib-tool.
22723         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
22724         gnulib-tool, rather than hard-coding it.
22725
22726         Fix 'gnulib-tool --version' output to work with git.
22727         * gnulib-tool (func_gnulib_dir): New function, extracted from...
22728         (startup): ...here.
22729         (func_version): Use it to invoke git-version-gen, rather than
22730         relying on CVS keyword expansion.  Modernize wording.
22731         (cvsdatestamp, last_checkin_date, version): Kill unused
22732         variables.
22733
22734 2008-03-12  Jim Meyering  <meyering@redhat.com>
22735
22736         Recognize optional cast of the argument to free.
22737         * build-aux/useless-if-before-free: Update regexps.
22738
22739         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
22740
22741 2008-03-11  Bruno Haible  <bruno@clisp.org>
22742
22743         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
22744         by a single package.
22745         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
22746         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
22747         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
22748         Reported by Sam Steingold <sds@gnu.org>.
22749
22750 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22751
22752         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
22753         repositories.
22754
22755 2008-03-11  Bruno Haible  <bruno@clisp.org>
22756
22757         Avoid conflicts between local macro definitions.
22758         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22759         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
22760
22761 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
22762             Bruno Haible  <bruno@clisp.org>
22763
22764         Make va_copy work with some version of xlc on AIX 5.1.
22765         * lib/stdarg.in.h: New file.
22766         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
22767         On AIX, use a <stdarg.h> file substitute.
22768         * modules/stdarg (Files): Add lib/stdarg.in.h.
22769         (Depends-on): Add include_next.
22770         (Makefile.am): Build a stdarg.h substitute if requested.
22771         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
22772
22773 2008-03-10  Bruno Haible  <bruno@clisp.org>
22774
22775         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
22776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22777         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
22778
22779 2008-03-10  Bruno Haible  <bruno@clisp.org>
22780
22781         * modules/stdlib (Depends-on): Add include_next, remove
22782         absolute-header.
22783
22784 2008-03-09  Bruno Haible  <bruno@clisp.org>
22785
22786         * lib/freadahead.h (freadahead): Document more precisely.
22787         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
22788         the sum of both buffer sizes.
22789         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
22790         * NEWS: Document the change.
22791
22792 2008-03-09  Bruno Haible  <bruno@clisp.org>
22793
22794         Extend freadptr to return also the buffer size.
22795         * lib/freadptr.h (freadptr): Add sizep argument.
22796         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
22797         (freadptr): Add sizep argument. Determine buffer size like freadahead
22798         does.
22799         * tests/test-freadptr.c: Don't include freadahead.h.
22800         (main): Adapt for new calling convention of freadptr.
22801         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
22802         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
22803         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
22804         tests/test-freadptr2.sh.
22805         (Depends): Remove freadahead.
22806         (TESTS): Add test-freadptr2.sh.
22807         (check_PROGRAMS): Add test-freadptr2.
22808
22809 2008-03-09  Bruno Haible  <bruno@clisp.org>
22810
22811         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
22812         Report and solution by Simon Josefsson.
22813
22814 2008-03-06  Bruno Haible  <bruno@clisp.org>
22815
22816         Make fflush after ungetc work on BSD platforms.
22817         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
22818         * tests/test-fflush2.c: New file.
22819         * tests/test-fflush2.sh: New file.
22820         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
22821         tests/test-fflush2.c.
22822         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
22823         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
22824
22825 2008-03-06  Eric Blake  <ebb9@byu.net>
22826
22827         Likewise for ftello.
22828         * modules/ftello (Dependencies): Add extensions.
22829         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
22830
22831 2008-03-06  Bruno Haible  <bruno@clisp.org>
22832
22833         * modules/fseeko (Dependencies): Add extensions.
22834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
22835         Needed on glibc systems.
22836
22837 2008-03-06  Bruno Haible  <bruno@clisp.org>
22838
22839         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
22840         email address.
22841         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22842
22843 2008-03-06  Bruno Haible  <bruno@clisp.org>
22844
22845         * users.txt: Add libgnupdf.
22846
22847 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22848
22849         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
22850         (Header File Substitutes, Function Substitutes,
22851         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
22852         (Build robot for gnulib): Fix typo.
22853
22854 2008-03-06  Bruno Haible  <bruno@clisp.org>
22855
22856         * doc/gnulib-tool.texi (VCS Issues): Small updates.
22857         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22858
22859 2008-03-06  Bruno Haible  <bruno@clisp.org>
22860
22861         * doc/func.texi: New file, extracted from doc/gnulib.texi.
22862         * doc/gnulib.texi: Include it.
22863
22864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22865
22866         * modules/func (License): Change license to unlimited; there was
22867         no LGPL parts in the module anyway.
22868
22869 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22870
22871         * modules/__func__: Renamed to modules/func.
22872         * modules/__func__-tests: Renamed to modules/func-tests.
22873         * tests/test-__func__.c: Renamed to tests/test-func.c.
22874         * m4/__func__.m4: Renamed to m4/func.m4.
22875         * doc/gnulib.texi (__func__): Section renamed to func.
22876         Suggested by Eric Blake <ebb9@byu.net>.
22877
22878 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22879
22880         * doc/gnulib.texi (__func__): Use C99 terminology when talking
22881         about __func__.  Make example self-contained.  Suggested by Eric
22882         Blake <ebb9@byu.net>.
22883
22884         * tests/test-__func__.c (main): Avoid extraneous () around __func.
22885         Suggested by Eric Blake <ebb9@byu.net>.
22886
22887 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22888
22889         * modules/__func__: New file.
22890         * modules/__func__-tests: New file.
22891         * tests/test-__func__.c: New file.
22892         * m4/__func__.m4: New file.
22893         * doc/gnulib.texi (__func__): Document __func__ module.
22894
22895 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22896
22897         * modules/byteswap (License): Re-license as LGPLv2+.
22898
22899 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22900
22901         * doc/Makefile: Add pdf target.
22902
22903 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22904
22905         * modules/inline (License): Use 'unlimited', since there are only
22906         *.m4 files in this module.
22907
22908 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
22909             Bruno Haible  <bruno@clisp.org>
22910
22911         Add support for HP C 7.1 on OpenVMS 8.3.
22912         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
22913
22914 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
22915
22916         Update VMS specifics.
22917         * lib/getopt.c [VMS]: Remove include of unixlib.h.
22918
22919 2008-03-02  Jim Meyering  <meyering@redhat.com>
22920
22921         Remove the last dependency on the "free" module.
22922         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
22923         Reported by Bob Proulx.
22924
22925         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
22926
22927         Remove useless "if" tests before free.  Deprecate "free" module.
22928         * doc/posix-functions/free.texi: Mention that this
22929         module is no longer useful.
22930         * modules/free (Notice): Say this module is obsolete.
22931         * modules/readutmp (Depends-on): Remove free.
22932         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
22933         * lib/putenv.c (putenv): Likewise.
22934         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
22935         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
22936         * tests/test-c-strcasestr.c (main): Likewise.
22937         * tests/test-c-strstr.c (main): Likewise.
22938         * tests/test-mbscasestr1.c (main): Likewise.
22939         * tests/test-mbscasestr2.c (main): Likewise.
22940         * tests/test-mbsstr1.c (main): Likewise.
22941         * tests/test-mbsstr2.c (main): Likewise.
22942         * tests/test-memmem.c (main): Likewise.
22943         * tests/test-strcasestr.c (main): Likewise.
22944         * tests/test-striconv.c (main): Likewise.
22945         * tests/test-striconveh.c (main): Likewise.
22946         * tests/test-striconveha.c (main): Likewise.
22947         * tests/test-strstr.c (main): Likewise.
22948
22949         * build-aux/git-version-gen: Adjust a comment and the Usage string.
22950
22951         bootstrap: sync from coreutils again
22952         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
22953
22954 2008-03-01  Jim Meyering  <meyering@redhat.com>
22955
22956         bootstrap: sync from coreutils
22957         * build-aux/bootstrap (update_po_files): Copy a .po file into place
22958         also when the target doesn't exist.
22959
22960 2008-03-01  Eric Blake  <ebb9@byu.net>
22961
22962         Fix bugs in last patch.
22963         * lib/memchr2.c (memchr2): Fix typo.
22964         * tests/test-memchr2.c: Test previous bug, and don't use GNU
22965         extension.
22966         Reported by Bruce Korb.
22967
22968         New module 'memchr2'.
22969         * modules/memchr2: New file.
22970         * modules/memchr2-tests: Likewise.
22971         * lib/memchr2.h: Likewise.
22972         * lib/memchr2.c: Likewise, based on memchr.c.
22973         * tests/test-memchr2.c: New test.
22974         * MODULES.html.sh (String handling): Add memchr2.
22975
22976 2008-02-29  Bruno Haible  <bruno@clisp.org>
22977
22978         * modules/freadseek-tests: New file.
22979         * tests/test-freadseek.sh: New file.
22980         * tests/test-freadseek.c: New file.
22981
22982         New module 'freadseek'.
22983         * modules/freadseek: New file.
22984         * lib/freadseek.h: New file.
22985         * lib/freadseek.c: New file.
22986         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
22987
22988 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
22989
22990         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
22991         wydawca.
22992
22993         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
22994         program_invocation_name and program_invocation_short_name are
22995         present.
22996
22997 2008-02-28  Bruno Haible  <bruno@clisp.org>
22998
22999         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23000         * tests/test-freadptr.sh: Also test non-seekable stdin.
23001
23002 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23003
23004         * build-aux/bootstrap (source_base, m4_base)
23005         (doc_base, tests_base): New variables.
23006         (gnulib_tool_options): Do not hardcode base directories, use
23007         the above variables instead.
23008
23009 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23010
23011         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23012
23013 2008-02-28  Bruno Haible  <bruno@clisp.org>
23014
23015         * modules/freadptr-tests: New file.
23016         * tests/test-freadptr.sh: New file.
23017         * tests/test-freadptr.c: New file.
23018
23019         New module 'freadptr'.
23020         * modules/freadptr: New file.
23021         * lib/freadptr.h: New file.
23022         * lib/freadptr.c: New file.
23023         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23024
23025 2008-02-26  Karl Berry  <karl@freefriends.org>
23026
23027         Sync from Libtool:
23028         * libltdl/argz.c (argz_add, argz_count): New functions.
23029         * libltdl/argz.in.h: Declare them.
23030         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23031
23032 2008-02-22  Bruno Haible  <bruno@clisp.org>
23033
23034         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23035         is a pointer type.  Needed for HP-UX 10.
23036         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23037         * doc/posix-functions/gmtime_r.texi: Likewise.
23038         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23039
23040 2008-02-24  Bruno Haible  <bruno@clisp.org>
23041
23042         * modules/environ-tests: New file.
23043         * tests/test-environ.c: New file.
23044
23045         New module 'environ'.
23046         * modules/environ: New file.
23047         * lib/unistd.in.h (environ): New declaration.
23048         * m4/environ.m4: New file.
23049         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23050         after use.
23051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23052         HAVE_DECL_ENVIRON.
23053         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23054         HAVE_DECL_ENVIRON.
23055         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23056         wrong claim that 'environ' is missing on some systems.
23057         * modules/execute (Depends-on): Add environ.
23058         * lib/execute.c (environ): Remove fallback declaration.
23059         * modules/pipe (Depends-on): Add environ.
23060         * lib/pipe.c (environ): Remove fallback declaration.
23061         * modules/setenv (Depends-on): Add environ.
23062         * lib/setenv.c (environ): Remove fallback declaration.
23063         * modules/unsetenv (Depends-on): Add environ.
23064         * lib/unsetenv.c (environ): Remove fallback declaration.
23065         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23066         m4/environ.m4.
23067         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23068         (gl_PREREQ_UNSETENV): Likewise.
23069
23070 2008-02-24  Bruno Haible  <bruno@clisp.org>
23071
23072         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23073
23074 2008-02-20  Bob Proulx  <bob@proulx.com>
23075
23076         Enable use of older two part flavor 'git describe'.
23077         * build-aux/git-version-gen: If using the older two part flavor of
23078         git version then recreate the third part now present in the
23079         newer three part flavor of git describe.
23080
23081 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23082
23083         * lib/fts.c (fts_build): Typo correction to comment.
23084
23085 2008-02-17  Bruno Haible  <bruno@clisp.org>
23086
23087         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23088         generating no-op conflicts.
23089
23090 2008-02-17  Bruno Haible  <bruno@clisp.org>
23091
23092         Speed up by 10%.
23093         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23094         result_entries, rather than an index-based loop.
23095
23096 2008-02-17  Bruno Haible  <bruno@clisp.org>
23097
23098         Speed up by 25%.
23099         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23100         'hashcode_cached'.
23101         (entry_create): New function.
23102         (entry_hashcode): Use the cached hashcode if possible.
23103         (read_changelog_file, try_split_merged_entry): Use entry_create.
23104
23105 2008-02-17  Bruno Haible  <bruno@clisp.org>
23106
23107         Speed up from O(n^2) to O(n) for long ChangeLog files.
23108         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23109         (read_changelog_file): Change implementation of entries_reversed list
23110         to rbtreehash.
23111         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23112
23113 2008-02-17  Bruno Haible  <bruno@clisp.org>
23114
23115         New option --split-merged-entry.
23116         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23117         (find_paragraph_end, try_split_merged_entry): New functions.
23118         (long_options): Add option --split-merged-entry.
23119         (usage): Document option --split-merged-entry.
23120         (main): Implement option --split-merged-entry.
23121         Reported by Eric Blake.
23122
23123 2008-02-17  Bruno Haible  <bruno@clisp.org>
23124
23125         * lib/git-merge-changelog.c: Include c-strstr.h.
23126         (main): Support the "git pull --rebase" situation.
23127         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23128         Reported by Eric Blake.
23129
23130 2008-02-16  Eric Blake  <ebb9@byu.net>
23131
23132         Avoid doubling \ in common case of "c-maybe" quoting style.
23133         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23134         eliding outer quotes.
23135         * lib/quotearg.h: Document this.
23136         * tests/test-quotearg.c (result_strings, inputs, results_g)
23137         (flag_results, locale_results): Test it by adding a new string to
23138         each test group.
23139         (compare_strings): Test new string.
23140
23141 2008-02-13  Eric Blake  <ebb9@byu.net>
23142
23143         Avoid trigraph quoting in default output.
23144         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23145         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23146         unless explicitly requested.
23147         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23148
23149 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23150
23151         Don't rely on signed integer overflowing to negative value.
23152         * lib/getugroups.c (getugroups): Include <limits.h>.
23153         Instead, compare against INT_MAX, and increment only if the test passes.
23154
23155 2008-02-13  Jim Meyering  <meyering@redhat.com>
23156         and Eric Blake  <ebb9@byu.net>
23157
23158         Avoid shadowing warning and compile errors on Linux.
23159         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23160         forwarding macros on Linux.
23161         (dcgettext): Define a stub, for Linux.
23162         (results_g, main): Avoid warnings.
23163
23164 2008-02-12  Eric Blake  <ebb9@byu.net>
23165
23166         Silence warning in last patch.
23167         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23168
23169         Quotearg part 4: add tests, fix c-maybe colon quoting.
23170         * lib/quotearg.h: Improve documentation.
23171         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23172         escapes when adding outer quotes.  When quoting trigraphs, use
23173         valid C notation.  When quoting NUL, omit extra characters if next
23174         character is not digit.  Alter prototype.
23175         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23176         callers.
23177         * modules/quotearg-tests: New module.
23178         * tests/test-quotearg.c: New test.
23179
23180 2008-02-07  Eric Blake  <ebb9@byu.net>
23181
23182         Quotearg part 3: add flag to control outer quote elision.
23183         * lib/quotearg.h (c_maybe_quoting_style): New style.
23184         (enum quoting_flags): Better documentation of flags.
23185         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23186         c-maybe style.
23187         (quotearg_buffer_restyled): Handle new flag to elide outer
23188         quotes.
23189
23190         Quotearg part 2: add flag that can control NUL elision.
23191         * lib/quotearg.h (set_quoting_flags): New prototype.
23192         * lib/quotearg.c (struct quoting_options): Add flag field.
23193         (set_quoting_flags): New function.
23194         (quotearg_buffer_restyled): Add flags parameter.
23195         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23196         (quotearg_n_options): Set the flag, since length cannot be
23197         returned.
23198         (quoting_options_from_style): Default flags correctly.
23199
23200         Quotearg part 1: more wrappers, restore quotearg_char state.
23201         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23202         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23203         (quotearg_colon_mem): New wrappers.
23204         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23205         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23206         functions.
23207         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23208         (quotearg_colon_mem): New functions.
23209
23210 2008-02-11  Bruno Haible  <bruno@clisp.org>
23211
23212         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23213         library in the current directory: it does not work with parallel make.
23214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23215
23216 2008-02-11  Bruno Haible  <bruno@clisp.org>
23217
23218         * .gitattributes: New file.
23219
23220 2008-02-11  Jim Meyering  <meyering@redhat.com>
23221
23222         useless-if-before-free: Fix reversed exit values.
23223         * build-aux/useless-if-before-free: Use correct values
23224         for EXIT_MATCH and EXIT_NO_MATCH.
23225
23226         * build-aux/useless-if-before-free: Close stdout carefully.
23227
23228 2008-02-10  Bruno Haible  <bruno@clisp.org>
23229
23230         New module 'git-merge-changelog'.
23231         * modules/git-merge-changelog: New file.
23232         * lib/git-merge-changelog.c: New file.
23233
23234 2008-02-10  Jim Meyering  <meyering@redhat.com>
23235
23236         useless-if-before-free: New option: --list (-l).
23237
23238         useless-if-before-free: Don't exit immediately upon open failure.
23239         * build-aux/useless-if-before-free: Exit 2 for errors.
23240         Upon failure to open a file, don't exit immediately.
23241         Rather, just warn and continue with any remaining files.
23242
23243 2008-02-10  Bruno Haible  <bruno@clisp.org>
23244
23245         New abstract list operation 'node_set_value'.
23246         * lib/gl_list.h (gl_list_node_set_value): New function.
23247         (struct gl_list_implementation): New field node_set_value.
23248         * lib/gl_list.c (gl_list_node_set_value): New function.
23249         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23250         (gl_array_list_implementation): Update.
23251         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23252         (gl_carray_list_implementation): Update.
23253         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23254         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23255         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23256         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23257         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23258         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23259         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23260         Update.
23261         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23262         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23263         (gl_sublist_list_implementation): Update.
23264
23265 2008-02-10  Bruno Haible  <bruno@clisp.org>
23266
23267         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23268         Needed when ELEMENT is #defined to 'some_type *'.
23269
23270 2008-02-10  Jim Meyering  <meyering@redhat.com>
23271
23272         New script and module: useless-if-before-free
23273         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23274         * build-aux/useless-if-before-free: New file.
23275         * modules/useless-if-before-free: New file.
23276
23277         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23278
23279         xstrtol_error: Fix typo.
23280         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23281         s/exit_failure/exit_status/.
23282
23283 2008-02-09  Jim Meyering  <meyering@redhat.com>
23284
23285         New script and module: gitlog-to-changelog
23286         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23287         * modules/gitlog-to-changelog: New file.
23288         * build-aux/gitlog-to-changelog: New file.
23289
23290 2008-02-08  Jim Meyering  <meyering@redhat.com>
23291
23292         Avoid two "parameter unused" warnings.
23293         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23294         Mark "st" as used.
23295
23296         Use "git COMMAND", not "git-COMMAND".
23297         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23298         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23299         * build-aux/git-version-gen: Use "git status", not "git-status".
23300
23301 2008-02-07  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23304         Avoids a crash on Windows Vista.
23305         Reported by Adam Strzelecki <ono@java.pl> via
23306         Simon Josefsson <simon@josefsson.org>.
23307
23308 2008-02-06  Bruno Haible  <bruno@clisp.org>
23309
23310         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23311         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23312         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23314         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23316         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23317         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23325         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23326         left-adjust flag.
23327         * tests/test-snprintf-posix.h (test_function): Likewise.
23328         * tests/test-sprintf-posix.h (test_function): Likewise.
23329         * tests/test-vasprintf-posix.c (test_function): Likewise.
23330         * doc/posix-functions/fprintf.texi: Update.
23331         * doc/posix-functions/printf.texi: Update.
23332         * doc/posix-functions/snprintf.texi: Update.
23333         * doc/posix-functions/sprintf.texi: Update.
23334         * doc/posix-functions/vfprintf.texi: Update.
23335         * doc/posix-functions/vprintf.texi: Update.
23336         * doc/posix-functions/vsnprintf.texi: Update.
23337         * doc/posix-functions/vsprintf.texi: Update.
23338         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23339
23340 2008-02-06  Bruno Haible  <bruno@clisp.org>
23341
23342         Fix bug introduced on 2008-01-26.
23343         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23344
23345 2008-02-06  Bruno Haible  <bruno@clisp.org>
23346
23347         Fix bug introduced on 2007-06-10.
23348         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23349         !NEED_PRINTF_FLAG_ZERO.
23350
23351 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23352
23353         getloadavg: use libperfstat on AIX5
23354         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23355
23356 2008-02-03  Bruno Haible  <bruno@clisp.org>
23357
23358         * lib/diffseq.h: Add comments about required #includes.
23359         Reported by Michael Biggs <gnulib@doubleplum.net>.
23360
23361 2008-02-01  Bruno Haible  <bruno@clisp.org>
23362
23363         * users.txt: Add gnuit.
23364
23365 2008-01-31  Bruno Haible  <bruno@clisp.org>
23366
23367         * lib/md4.c (set_uint32): Mark as inline.
23368         * lib/md5.c (set_uint32): Likewise.
23369         * lib/sha1.c (set_uint32): Likewise.
23370         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23371         * m4/md5.m4 (gl_MD5): Likewise.
23372         * m4/sha1.m4 (gl_SHA1): Likewise.
23373
23374 2008-01-31  Jim Meyering  <meyering@redhat.com>
23375
23376         Use "sizeof VAR", rather than a literal "4".
23377         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23378         * lib/md4.c (md4_read_ctx): Likewise.
23379         * lib/sha1.c (sha1_read_ctx): Likewise.
23380
23381 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23382
23383         * tests/test-sha1.c: New file, based on test-md5.c.
23384
23385         * modules/crypto/sha1-tests: New file.
23386
23387 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23388
23389         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23390
23391 2008-01-31  Jim Meyering  <meyering@redhat.com>
23392
23393         Prefer "sizeof v" over the equivalent "4".
23394         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23395         * lib/md5.c (set_uint32): Likewise.
23396         * lib/sha1.c (set_uint32): Likewise.
23397
23398 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23399
23400         * lib/sha1.c (set_uint32): Mark function as static.
23401
23402 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23403
23404         md2: clarify comments to say that alignment is not required.
23405         * lib/md2.h: Remove warning about alignment in comment.
23406         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23407         never been required.
23408
23409 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23410
23411         md4: adapt alignment constraint fix from sha1.
23412         * lib/md4.c (set_uint32): New function, from sha1.c
23413         (md4_read_ctx): Use it.
23414         (md4_finish_ctx): Doc fix.
23415         * lib/md4.h: Doc fix.
23416
23417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23418
23419         md5: adapt alignment constraint fix from sha1.
23420         * lib/md5.c (set_uint32): New function, from sha1.c
23421         (md5_read_ctx): Use it.
23422         (md5_finish_ctx): Doc fix.
23423         * lib/md5.h: Doc fix.
23424
23425 2008-01-30  Peter Palfrader  <weasel@debian.org>
23426
23427         sha1: remove the result buffer alignment constraint
23428         * lib/sha1.c (set_uint32): New function.
23429         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23430         constraint.
23431         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23432         * lib/sha1.h: Likewise.
23433
23434 2008-01-30  Andreas Schwab  <schwab@suse.de>
23435             Bruno Haible  <bruno@clisp.org>
23436
23437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23438         correct definition of LDBL_MIN_EXP.
23439
23440 2008-01-30  Karl Berry  <karl@gnu.org>
23441
23442         * config/srclist-update: try to preserve x bit on updates.
23443         * config/srclistvars.sh: update for karl.
23444
23445 2008-01-29  Jim Meyering  <meyering@redhat.com>
23446
23447         vasnprintf.c: Avoid warning about unused label
23448         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23449         "overflow" label definition and associated code with the
23450         same cpp condition that guards the sole use of that label.
23451
23452 2008-01-26  Bruno Haible  <bruno@clisp.org>
23453
23454         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23455         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23456         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23457         * lib/isnanl-nolibm.h (isnanl): Likewise.
23458         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23459
23460 2008-01-26  Bruno Haible  <bruno@clisp.org>
23461
23462         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23463         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23464
23465 2008-01-26  Bruno Haible  <bruno@clisp.org>
23466
23467         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23468         GCC >= 4.0 built-in.
23469         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23470
23471 2008-01-26  Bruno Haible  <bruno@clisp.org>
23472
23473         Rename isnan, applicable to 'double' only, to isnand.
23474         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23475         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23476         (configure.ac): Update.
23477         (Include): Replace "isnan.h" with "isnand.h".
23478         * m4/isnand.m4: Renamed from m4/isnan.m4.
23479         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23480         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23481         instead of isnan.c.
23482         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23483         instead of HAVE_ISNAN_IN_LIBC.
23484         (isnand): Renamed from isnan.
23485         * lib/isnand.c: New file.
23486         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23487         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23488         (Makefile.am): Update.
23489         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23490         Include isnand.h instead of isnan.h.
23491         (main): Test isnand instead of isnan.
23492         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23493         isnan-nolibm.
23494         * modules/frexp (Depends-on): Likewise.
23495         * modules/frexp-tests (Depends-on): Likewise.
23496         * modules/frexp-nolibm (Depends-on): Likewise.
23497         * modules/frexp-nolibm-tests (Depends-on): Likewise.
23498         * modules/isfinite (Depends-on): Likewise.
23499         * modules/round-tests (Depends-on): Likewise.
23500         * modules/signbit (Depends-on): Likewise.
23501         * modules/signbit-tests (Depends-on): Likewise.
23502         * modules/snprintf-posix (Depends-on): Likewise.
23503         * modules/sprintf-posix (Depends-on): Likewise.
23504         * modules/trunc-tests (Depends-on): Likewise.
23505         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23506         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23507         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23508         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23509         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23510         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23511         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23512         * modules/vasnprintf-posix (Depends-on): Likewise.
23513         * modules/vasprintf-posix (Depends-on): Likewise.
23514         * modules/vfprintf-posix (Depends-on): Likewise.
23515         * modules/vsnprintf-posix (Depends-on): Likewise.
23516         * modules/vsprintf-posix (Depends-on): Likewise.
23517         * lib/frexp.c: Include isnand.h instead of isnan.h.
23518         (ISNAN): Set to isnand instead of isnan.
23519         * lib/isfinite.c: Include isnand.h instead of isnan.h.
23520         (gl_isfinited): Use isnand instead of isnan.
23521         * lib/signbitd.c: Include isnand.h instead of isnan.h.
23522         (gl_signbitd): Use isnand instead of isnan.
23523         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23524         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23525         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23526         (main): Use isnand instead of isnan.
23527         * tests/test-round1.c: Include isnand.h.
23528         (main): Use isnand instead of isnan.
23529         * tests/test-round2.c: Include isnand.h instead of isnan.h.
23530         (ISNAN): Set to isnand instead of isnan.
23531         * tests/test-trunc1.c: Include isnand.h.
23532         (main): Use isnand instead of isnan.
23533         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23534         (equal): Use isnand instead of isnan.
23535         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23536         isnand-nolibm.
23537         * NEWS: Mention the change.
23538
23539 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23540             Bruno Haible  <bruno@clisp.org>
23541
23542         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23543         the GCC builtins for signbits are present and set
23544         REPLACE_SIGNBIT_USING_GCC if so.
23545         * lib/math.in.h (signbit): Define using GCC builtins if
23546         REPLACE_SIGNBIT_USING_GCC is set.
23547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23548         REPLACE_SIGNBIT_USING_GCC.
23549         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23550
23551 2008-01-25  Jim Meyering  <meyering@redhat.com>
23552
23553         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
23554         * lib/poll.c: Include <config.h>, not "config.h".
23555         * tests/test-getaddrinfo.c: Likewise.
23556
23557 2008-01-25  Simon Josefsson  <simon@josefsson.org>
23558
23559         * modules/sockets-tests: New file.
23560
23561 2008-01-24  Simon Josefsson  <simon@josefsson.org>
23562
23563         * modules/sockets: New module, can be used to call WSA_Startup and
23564         WSA_Cleanup when needed.
23565
23566         * lib/sockets.h, lib/sockets.c: New files.
23567
23568         * m4/sockets.m4: New file.
23569
23570         * tests/test-sockets.c: New file.
23571
23572 2008-01-19  Bruno Haible  <bruno@clisp.org>
23573
23574         * doc/posix-headers: Renamed from doc/headers.
23575         * doc/posix-functions: Renamed from doc/functions.
23576         * doc/gnulib.texi: Update.
23577
23578 2008-01-19  Bruno Haible  <bruno@clisp.org>
23579
23580         * doc/glibc-functions/strcasestr.texi: Include contents of
23581         doc/functions/strcasestr.texi, fixing the list of platforms.
23582         * doc/functions/strcasestr.texi: Remove file.
23583
23584 2008-01-19  Bruno Haible  <bruno@clisp.org>
23585
23586         * doc/glibc-functions/memmem.texi: Include contents of
23587         doc/functions/memmem.texi.
23588         * doc/functions/memmem.texi: Remove file.
23589
23590 2008-01-18  Bruno Haible  <bruno@clisp.org>
23591
23592         * doc/glibc-functions/*.texi: New files.
23593         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23594         to use the new files.
23595
23596 2008-01-17  Bruno Haible  <bruno@clisp.org>
23597
23598         * tests/test-gethostname.c (main): Fix printf statement.
23599
23600 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23601
23602         * modules/gethostname-tests: New file.
23603
23604         * tests/test-gethostname.c: New file.
23605
23606 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23607
23608         * lib/gethostname.c: Include string.h unconditionally, strncpy is
23609         used by the UNAME case.  Reported by Bruno Haible
23610         <bruno@clisp.org>.
23611
23612 2008-01-17  Eric Blake  <ebb9@byu.net>
23613
23614         Convert c-strcasestr to be more efficient.
23615         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23616         (Depends-on): Add c-strcase, remove malloca, strnlen.
23617         * tests/test-c-strcasestr.c (main): Enhance test.
23618         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23619
23620 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23621
23622         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23623         Use it in creating po/Makevars.
23624
23625 2008-01-15  Simon Josefsson  <simon@josefsson.org>
23626
23627         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23628         Applications that requires it should initialize libgcrypt
23629         manually.
23630
23631 2008-01-16  Simon Josefsson  <simon@josefsson.org>
23632
23633         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23634
23635 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23636
23637         Fix problem with getdate on mingw32 reported by Simon Josefsson
23638         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23639         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23640         tzname", when deciding whether to declare tzname.
23641         * lib/strftime.c (tzname): Likewise.
23642
23643 2008-01-15  Bruno Haible  <bruno@clisp.org>
23644
23645         Work around a MacOS X 10.5 bug in frexpl().
23646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23647         * doc/functions/frexpl.texi: Document the bug.
23648         Reported by Elias Pipping <pipping@gentoo.org>.
23649
23650 2008-01-14  Eric Blake  <ebb9@byu.net>
23651
23652         Touch up previous patch.
23653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23654         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23655
23656         Convert strcasestr module to use Two-Way algorithm.
23657         * modules/strcasestr-simple: New module, based on the old
23658         strcasestr, but with Two-Way rather than KMP.
23659         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23660         * lib/string.in.h (rpl_strcasestr): Declare.
23661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23662         performance.
23663         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23664         * modules/string (Makefile.am): Support strcasestr.
23665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23666         * modules/strcasestr-tests (Depends-on): Check for alarm.
23667         * tests/test-strcasestr.c: Augment test.
23668         * lib/str-two-way.h: Clean up stray macro.
23669         * NEWS: Document new module.
23670         * MODULES.html.sh (string handling): Likewise.
23671         * doc/functions/strcasestr.texi: New file.
23672         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
23673         here, since it is not a POSIX function.
23674
23675 2008-01-14  Colin Watson  <cjwatson@debian.org>
23676             Bruno Haible  <bruno@clisp.org>
23677
23678         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23679         works fine; if not, set REPLACE_STRSIGNAL.
23680         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23682         REPLACE_STRSIGNAL.
23683         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23684         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23685         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23686
23687 2008-01-14  Bruno Haible  <bruno@clisp.org>
23688
23689         * modules/strsignal (Include): Change to <string.h>.
23690
23691 2008-01-14  Colin Watson  <cjwatson@debian.org>
23692
23693         * modules/argp (Notice): Add a notice recommending to change
23694         XGETTEXT_OPTIONS.
23695         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23696
23697 2008-01-13  Colin Watson  <cjwatson@debian.org>
23698
23699         * modules/strsignal-tests: New file.
23700         * tests/test-strsignal.c: New file.
23701
23702         * lib/strsignal.c: New file, from glibc with modifications.
23703         * lib/siglist.h: New file, from glibc with modifications.
23704         * lib/string.in.h (strsignal): New declaration.
23705         * m4/strsignal.m4: New file.
23706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23707         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23708         * modules/strsignal: New file.
23709         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23710         HAVE_DECL_STRSIGNAL.
23711
23712 2008-01-13  Bruno Haible  <bruno@clisp.org>
23713
23714         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23715         locale encoding is not ASCII. Needed for OpenBSD 4.0.
23716         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23717         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23718
23719 2008-01-13  Bruno Haible  <bruno@clisp.org>
23720
23721         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
23722         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
23723         * lib/argp.h (__attribute__): Likewise.
23724         * lib/c-stack.c (__attribute__): Likewise.
23725         * lib/error.h (__attribute__): Likewise.
23726         * lib/fts.c (__attribute__): Likewise.
23727         * lib/openat.h (__attribute__): Likewise.
23728         * lib/stdio.in.h (__attribute__): Likewise.
23729         * lib/string.in.h (__attribute__): Likewise.
23730         * lib/utimens.c (__attribute__): Likewise.
23731         * lib/vasnprintf.h (__attribute__): Likewise.
23732         * lib/xalloc.h (__attribute__): Likewise.
23733         * lib/xprintf.h (__attribute__): Likewise.
23734         * lib/xstrtol.h (__attribute__): Likewise.
23735         * lib/xvasprintf.h (__attribute__): Likewise.
23736
23737 2008-01-12  Bruno Haible  <bruno@clisp.org>
23738
23739         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
23740         * doc/glibc-headers/a.out.texi: New file.
23741         * doc/glibc-headers/aliases.texi: New file.
23742         * doc/glibc-headers/alloca.texi: New file.
23743         * doc/glibc-headers/ar.texi: New file.
23744         * doc/glibc-headers/argp.texi: New file.
23745         * doc/glibc-headers/argz.texi: New file.
23746         * doc/glibc-headers/byteswap.texi: New file.
23747         * doc/glibc-headers/crypt.texi: New file.
23748         * doc/glibc-headers/endian.texi: New file.
23749         * doc/glibc-headers/envz.texi: New file.
23750         * doc/glibc-headers/err.texi: New file.
23751         * doc/glibc-headers/error.texi: New file.
23752         * doc/glibc-headers/execinfo.texi: New file.
23753         * doc/glibc-headers/fpu_control.texi: New file.
23754         * doc/glibc-headers/fstab.texi: New file.
23755         * doc/glibc-headers/fts.texi: New file.
23756         * doc/glibc-headers/getopt.texi: New file.
23757         * doc/glibc-headers/ieee754.texi: New file.
23758         * doc/glibc-headers/ifaddrs.texi: New file.
23759         * doc/glibc-headers/libintl.texi: New file.
23760         * doc/glibc-headers/mcheck.texi: New file.
23761         * doc/glibc-headers/mntent.texi: New file.
23762         * doc/glibc-headers/obstack.texi: New file.
23763         * doc/glibc-headers/paths.texi: New file.
23764         * doc/glibc-headers/printf.texi: New file.
23765         * doc/glibc-headers/pty.texi: New file.
23766         * doc/glibc-headers/resolv.texi: New file.
23767         * doc/glibc-headers/shadow.texi: New file.
23768         * doc/glibc-headers/sysexits.texi: New file.
23769         * doc/glibc-headers/ttyent.texi: New file.
23770
23771 2008-01-12  Jim Meyering  <meyering@redhat.com>
23772
23773         announce-gen: emit Gnulib's git-based version string.
23774         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
23775         New option --gnulib-version=V, where V is expected to be
23776         the output of running git describe in the gnulib directory.
23777         (get_tool_versions): Request feedback on xdelta.  I suspect it's
23778         not useful, and plan to stop publishing an xdelta file with each
23779         coreutils release.
23780
23781         * build-aux/announce-gen: Also check for lzma-compressed files.
23782
23783 2008-01-11  Bruno Haible  <bruno@clisp.org>
23784
23785         * tests/test-memmem.c (main): Increase maximum allowed time.
23786         * tests/test-strstr.c (main): Likewise.
23787
23788 2008-01-11  Bruno Haible  <bruno@clisp.org>
23789
23790         * doc/functions/memmem.texi: Add more precisions about platforms.
23791         * doc/functions/strstr.texi: Likewise.
23792
23793 2008-01-10  Eric Blake  <ebb9@byu.net>
23794
23795         * m4/strstr.m4: Delete cruft from copy-n-paste.
23796         Reported by Bruno Haible.
23797
23798 2008-01-10  Bruno Haible  <bruno@clisp.org>
23799
23800         Make c-strstr rely on strstr.
23801         * lib/c-strstr.c: Don't include str-kmp.h.
23802         (c_strstr): Define in terms of strstr.
23803         * modules/c-strstr (Files): Remove lib/str-kmp.h.
23804         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
23805
23806 2008-01-10  Bruno Haible  <bruno@clisp.org>
23807
23808         * doc/gnulib.texi (String Functions in C Locale): New section.
23809         * doc/c-ctype.texi: New file.
23810         * doc/c-strcase.texi: New file.
23811         * doc/c-strcaseeq.texi: New file.
23812         * doc/c-strcasestr.texi: New file.
23813         * doc/c-strstr.texi: New file.
23814         * doc/c-strtod.texi: New file.
23815         * doc/c-strtold.texi: New file.
23816
23817 2008-01-10  Eric Blake  <ebb9@byu.net>
23818
23819         * lib/relocatable.h: Fix a comment.
23820
23821 2008-01-10  Eric Blake  <ebb9@byu.net>
23822
23823         Share two-way algorithm.
23824         * lib/str-two-way.h: New file, merged from...
23825         * lib/memmem.c: ...here...
23826         * lib/strstr.c: ...and here.
23827         * modules/memmem (Files): Use it.
23828         * modules/strstr (Files): Likewise.
23829
23830         Avoid quadratic strstr implementations.
23831         * lib/strstr.c: New file.
23832         * m4/strstr.m4: Likewise.
23833         * modules/strstr: Likewise.
23834         * modules/strstr-tests: Likewise.
23835         * tests/test-strstr.c: Likewise.
23836         * lib/string.in.h (rpl_strstr): Declare.
23837         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
23838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
23839         * modules/string (Makefile.am): Likewise.
23840         * MODULES.html.sh (string handling): Mention new module.
23841         * doc/functions/strstr.texi (strstr): Document the bug.
23842
23843 2008-01-10  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/relocatable.h (relocate): State whether result is freshly
23846         allocated or not.
23847         * lib/relocatable.c (relocate): Return a freshly allocated string
23848         instead of a pointer to a privately held string.
23849         Reported by Sylvain Beucler <beuc@gnu.org>.
23850
23851 2008-01-10  Colin Watson  <cjwatson@debian.org>
23852
23853         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
23854         s/S_ISNLK/S_ISLNK/.
23855
23856 2008-01-09  Bruno Haible  <bruno@clisp.org>
23857
23858         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
23859         and other files.
23860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
23861         if it's only a guess.
23862         * modules/memmem: Simplify by depending on memmem-simple.
23863
23864 2008-01-09  Bruno Haible  <bruno@clisp.org>
23865
23866         Work around OpenBSD 4.0 tdelete() bug.
23867         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
23868         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
23869         macros and don't redefine the enum values.
23870         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
23871         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
23872         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
23873
23874 2008-01-09  Bruno Haible  <bruno@clisp.org>
23875
23876         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
23877         (main): Don't perform the tests if setlocale did not install a UTF-8
23878         locale. Needed on OpenBSD 4.0.
23879         * modules/wcwidth-tests (Depends-on): Add localcharset.
23880
23881 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23882
23883         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
23884         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
23885         * NEWS: announce this.
23886         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
23887
23888 2008-01-09  Simon Josefsson  <simon@josefsson.org>
23889         and Eric Blake  <ebb9@byu.net>
23890
23891         Add memmem-simple module.
23892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
23893         (gl_FUNC_MEMMEM): Separate performance from presence checks.
23894         * modules/memmem-simple: New file.
23895         * modules/memmem (Description): Tweak.
23896         * MODULES.html.sh (string handling): Mention new module.
23897         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
23898         addressed by memmem-simple.
23899         * NEWS: Document the difference.
23900
23901 2008-01-09  Eric Blake  <ebb9@byu.net>
23902
23903         Give gcc some memmem optimization hints.
23904         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
23905         (strcasestr): Declare as pure.
23906         * modules/memmem (Maintainer): Claim my implementation.
23907
23908 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23909
23910         Support AIX 6.1 and higher.
23911         * build-aux/config.libpath: Likewise.
23912         * build-aux/config.rpath: Likewise.
23913
23914 2008-01-08  Jim Meyering  <meyering@redhat.com>
23915             Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
23918         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
23919         Reported by Peter Fales in
23920         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
23921
23922 2008-01-08  Bruno Haible  <bruno@clisp.org>
23923
23924         * modules/unictype/category-of (Depends-on): Add
23925         unictype/category-none.
23926         * modules/unictype/category-and-tests (Depends-on): Add
23927         unictype/category-{L,N,Lu,Nd}.
23928         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
23929         * modules/unictype/category-or-tests (Depends-on): Add
23930         unictype/category-{L,N}.
23931         * modules/unictype/category-name-tests (Depends-on): Add
23932         unictype/category-{Z,Nl}.
23933         Reported by Simon Josefsson.
23934
23935 2008-01-08  Bruno Haible  <bruno@clisp.org>
23936
23937         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
23938         convention better.
23939         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
23940         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
23941         Reported by Peter Miller <millerp@canb.auug.org.au>.
23942
23943 2008-01-08  Eric Blake  <ebb9@byu.net>
23944
23945         Rewrite memmem to guarantee linear complexity without malloc.
23946         * lib/memmem.c (memmem): Use Two-Way rather than
23947         Knuth-Morris-Pratt, to allow O(1) space usage.
23948         (critical_factorization, two_way_short_needle)
23949         (two_way_long_needle): New functions.
23950         (knuth_morris_pratt): Delete.
23951         * modules/memmem (Depends-on): No longer need malloca or stdbool.
23952         Add stdint.
23953         * tests/test-memmem.c (main): Add tests for periodic needle and
23954         sublinear performance.
23955         * doc/functions/memmem.texi (memmem): Document other deficiencies
23956         in cygwin and older glibc.
23957
23958 2008-01-08  Bruno Haible  <bruno@clisp.org>
23959
23960         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
23961         augmentation.
23962
23963 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
23964
23965         Add a configure time option: --disable-acl.
23966         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
23967         AC_ARG_ENABLE(acl).
23968
23969 2008-01-06  Simon Josefsson  <simon@josefsson.org>
23970
23971         * tests/test-localename.c: Don't include obsolete "setenv.h".
23972
23973         * modules/localename-tests (Depends-on): Need unsetenv.
23974
23975 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23976
23977         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
23978
23979 2008-01-06  Colin Watson  <cjwatson@debian.org>
23980
23981         * users.txt: Add man-db.
23982
23983 2008-01-07  Bruno Haible  <bruno@clisp.org>
23984
23985         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
23986         previous section name.
23987
23988 2008-01-07  Bruno Haible  <bruno@clisp.org>
23989
23990         * lib/progname.c (set_program_name): Don't strip off a leading
23991         "lt-" prefix outside a .libs directory.
23992         Suggested by Paul Eggert.
23993
23994 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
23995             Bruno Haible  <bruno@clisp.org>
23996
23997         Improve memory cleanup in 'relocatable' module.
23998         * lib/relocatable.h (compute_curr_prefix): Change return type to
23999         'char *'.
24000         * lib/relocatable.c (compute_curr_prefix): Change return type to
24001         'char *'. Free curr_installdir after use.
24002         (relocate): Free curr_prefix_better after use.
24003         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24004
24005 2008-01-01  Bruno Haible  <bruno@clisp.org>
24006
24007         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24008         failure on older glibc systems.
24009         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24010
24011 2008-01-05  Eric Blake  <ebb9@byu.net>
24012
24013         Avoid quadratic system memmem.
24014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24015         Reported by Ralf Wildenhues.
24016
24017         Fix memmem test for mingw.
24018         * modules/memmem-tests (configure.ac): Check for alarm.
24019         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24020         it.
24021         * doc/functions/memmem.texi: New file.
24022         * doc/gnulib.texi (Function Substitutes): Add memmem.
24023         Reported by Bruno Haible.
24024
24025 2008-01-04  Bruno Haible  <bruno@clisp.org>
24026
24027         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24028         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24029         gl_HEADER_STRING_H_DEFAULTS.
24030
24031 2008-01-04  Eric Blake  <ebb9@byu.net>
24032
24033         Shorten duration of memmem test.
24034         * tests/test-memmem.c (main): Use alarm to declare failure if test
24035         is taking too long.
24036         Reported by Ralf Wildenhues.
24037
24038 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24039
24040         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24041         string, needed by strerror.
24042
24043 2008-01-03  Colin Watson  <cjwatson@debian.org>
24044             Bruno Haible  <bruno@clisp.org>
24045
24046         * doc/gnulib-tool.texi (Localization): New section.
24047
24048 2008-01-02  Bruno Haible  <bruno@clisp.org>
24049
24050         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24051         variables to 'unsigned char *' type.
24052         Reported by Paul Eggert.
24053
24054 2008-01-02  Jim Meyering  <jim@meyering.net>
24055
24056         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24057
24058 2007-12-31  Jim Meyering  <jim@meyering.net>
24059
24060         Avoid use of private FTS type name.
24061         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24062
24063 2007-12-30  Karl Berry  <karl@gnu.org>
24064
24065         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24066         work around defect in Texinfo and/or the standalone Info browser.
24067
24068 2007-12-30  Bruno Haible  <bruno@clisp.org>
24069
24070         Unify 5 copies of the KMP code.
24071         * lib/str-kmp.h: New file.
24072         * lib/c-strcasestr.c: Include str-kmp.h.
24073         (knuth_morris_pratt): Remove function.
24074         (c_strcasestr): Update.
24075         * lib/c-strstr.c: Include str-kmp.h.
24076         (knuth_morris_pratt): Remove function.
24077         (c_strcasestr): Update.
24078         * lib/mbscasestr.c: Include str-kmp.h.
24079         (knuth_morris_pratt_unibyte): Remove function.
24080         * lib/mbsstr.c: Include str-kmp.h.
24081         (knuth_morris_pratt_unibyte): Remove function.
24082         * lib/strcasestr.c: Include str-kmp.h.
24083         (knuth_morris_pratt): Remove function.
24084         (strcasestr): Update.
24085         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24086         * modules/c-strstr (Files): Likewise.
24087         * modules/mbscasestr (Files): Likewise.
24088         * modules/mbsstr (Files): Likewise.
24089         * modules/strcasestr (Files): Likewise.
24090         Suggested by Paul Eggert.
24091
24092 2007-12-30  Bruno Haible  <bruno@clisp.org>
24093
24094         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24095         defined.
24096
24097 2007-12-30  Bruno Haible  <bruno@clisp.org>
24098
24099         * lib/xmalloca.h: Include xalloc.h.
24100         (xnmalloca): New macro.
24101
24102 2007-12-30  Bruno Haible  <bruno@clisp.org>
24103
24104         * lib/malloca.h (nmalloca): New macro.
24105         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24106         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24107         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24108         knuth_morris_pratt_multibyte): Likewise.
24109         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24110         knuth_morris_pratt_multibyte): Likewise.
24111         * lib/memmem.c (knuth_morris_pratt): Likewise.
24112         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24113
24114 2007-12-25  Bruno Haible  <bruno@clisp.org>
24115
24116         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24117         * lib/glob.c: Don't include openat.h.
24118         (link_exists2_p): Add back the code that deals with the
24119         !GLOB_ALTDIRFUNC case.
24120         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24121         let it do the filename concatenation.
24122         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24123         * modules/glob (Depends-on): Remove openat.
24124
24125 2007-12-31  Bruno Haible  <bruno@clisp.org>
24126
24127         * modules/dirfd (License): Change to LGPLv2+.
24128         Approved by Jim Meyering.
24129
24130 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24131
24132         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24133         when multiplying M by sizeof (size_t).
24134
24135 2007-12-10  Martin Lambers  <marlam@marlam.de>
24136
24137         Override getpagesize on mingw.
24138         * lib/getpagesize.c: New file.
24139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24140         * modules/getpagesize (Files): Add lib/getpagesize.c.
24141         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24143         REPLACE_GETPAGESIZE.
24144         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24145
24146 2007-12-25  Bruno Haible  <bruno@clisp.org>
24147
24148         * modules/localcharset (Notice): New field.
24149         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24150         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24151
24152 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24153             Bruno Haible  <bruno@clisp.org>
24154
24155         Avoid using the syntax symbol() in formatted documentation.
24156         * MODULES.html.sh (func_module): When replacing symbol() with a
24157         hyperlink, remove the parentheses. Show an error if some remain.
24158         Recognize and render the '...' syntax.
24159         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24160         Rework. Add paragraph about GCC's inlining.
24161         * doc/alloca.texi: Likewise.
24162         * doc/error.texi: Remove parentheses from symbol reference.
24163         * doc/gnulib-intro.texi: Likewise.
24164         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24165         * modules/fnmatch (Description): Reword to say "the ... function".
24166         * modules/full-read (Description): Likewise.
24167         * modules/full-write (Description): Likewise.
24168         * modules/safe-read (Description): Likewise.
24169         * modules/safe-write (Description): Likewise.
24170         * modules/strchrnul (Description): Likewise.
24171         * modules/trim (Description): Likewise.
24172         * modules/error (Description): Remove parentheses from symbol
24173         references.
24174         * modules/verror (Description): Likewise.
24175         Reported by Karl Berry.
24176
24177 2007-12-25  Bruno Haible  <bruno@clisp.org>
24178
24179         Fixup after 2007-10-16 commit.
24180         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24181
24182 2007-12-24  Bruno Haible  <bruno@clisp.org>
24183
24184         Make --enable-relocatable work with DESTDIR.
24185         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24186         to compute installdir from destprog.
24187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24188         also set the RELOC_DESTDIR variable.
24189         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24190
24191 2007-12-24  Bruno Haible  <bruno@clisp.org>
24192
24193         Fix link error due to xalloc_die().
24194         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24195         of xreadlink.
24196         * lib/relocwrapper.c: Update comments.
24197         * build-aux/install-reloc: Remove xreadlink.c from file list.
24198         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24199         xreadlink.c.
24200         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24201
24202 2007-12-24  Bruno Haible  <bruno@clisp.org>
24203
24204         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24205         * lib/setenv.h: Remove file.
24206         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24207         lib/setenv.h.
24208         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24209         (Depends-on): Add stdlib.
24210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24211         gl_FUNC_UNSETENV.
24212         (Include): Replace setenv.h with <stdlib.h>.
24213         * modules/unsetenv: New file.
24214         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24215         * lib/unsetenv.c: Include <stdlib.h> first.
24216         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24217         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24218         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24219         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24220         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24221         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24223         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24224         * doc/functions/unsetenv.texi: Update.
24225         * modules/xsetenv (Depends-on): Add unsetenv.
24226         * modules/getdate (Depends-on): Likewise.
24227         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24228         * lib/xsetenv.c: Don't include setenv.h.
24229         * lib/getdate.y: Likewise.
24230         * lib/relocwrapper.c: Likewise.
24231         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24232         (Depends-on): Add stdlib.
24233         * NEWS: Mention the changes.
24234         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24235
24236 2007-12-23  Bruno Haible  <bruno@clisp.org>
24237
24238         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24239         indentation.
24240
24241 2007-12-23  Bruno Haible  <bruno@clisp.org>
24242
24243         * lib/c-strcasestr.c: Add more comments.
24244         * lib/c-strstr.c: Likewise.
24245         * lib/mbscasestr.c: Likewise.
24246         * lib/mbsstr.c: Likewise.
24247         * lib/strcasestr.c: Likewise.
24248         * lib/memmem.c: Likewise.
24249
24250 2007-12-23  Bruno Haible  <bruno@clisp.org>
24251
24252         * tests/test-memmem.c: Include <string.h> first.
24253
24254 2007-12-22  Bruno Haible  <bruno@clisp.org>
24255
24256         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24257         the contents of $testsbase.
24258         Reported by Ralf Wildenhues.
24259
24260 2007-12-22  Bruno Haible  <bruno@clisp.org>
24261
24262         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24263         two variables local_ldadd_before, local_ldadd_last.
24264
24265 2007-12-20  Eric Blake  <ebb9@byu.net>
24266
24267         Work around circular library issue when cross-compiling.
24268         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24269         that progname.o does not need to pull in rpl_memcmp.
24270
24271 2007-12-19  Eric Blake  <ebb9@byu.net>
24272
24273         Fix memmem to avoid O(n^2) worst-case complexity.
24274         * lib/memmem.c (knuth_morris_pratt): New function.
24275         (memmem): Use it if first few naive iterations fail.
24276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24277         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24278         * modules/memchr (License): Likewise.
24279         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24280         malloca.
24281         * tests/test-memmem.c: Rewrite, borrowing ideas from
24282         test-mbsstr1.c; the old version wouldn't even compile!
24283         * modules/memmem-tests: New file.
24284         * lib/string.in.h (rpl_memmem): Add declaration.
24285         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24287         REPLACE_MEMMEM.
24288
24289 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24290
24291         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24292         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24293         before any system include files, and undef after them all.  This
24294         should fix a problem on VMS reported by John E. Malmberg in
24295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24296
24297 2007-12-17  Eric Blake  <ebb9@byu.net>
24298
24299         Revert addition of verify, for BSD/OS.
24300         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24301         can't handle large files, for the sake of obsolete platforms.
24302         * modules/fseeko (Depends-on): Remove verify.
24303         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24304         * doc/functions/ftello.texi (ftello): Likewise.
24305         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24306         Reported by Larry Jones.
24307
24308 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24309
24310         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24311         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24312
24313 2007-12-17  Jim Meyering  <meyering@redhat.com>
24314
24315         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24316         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24317         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24318         * modules/getcwd (Depends-on): Add openat.
24319         Reported by Petr Salinger.
24320
24321 2007-12-17  Bruno Haible  <bruno@clisp.org>
24322
24323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24324         avoid a segmentation fault of the configure test on x86_64 systems.
24325
24326 2007-12-15  Jim Meyering  <meyering@redhat.com>
24327
24328         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24329
24330 2007-12-13  Eric Blake  <ebb9@byu.net>
24331
24332         Another fseek test.
24333         * tests/test-fseek.c (main): Also test ungetc handling.
24334         * tests/test-fseeko.c (main): Likewise.
24335         * modules/fseeko (Depends-on): Add verify.
24336         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24337         large.
24338         Reported by Larry Jones.
24339
24340         Fix fseeko on mingw.
24341         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24342         seek.
24343
24344         Beef up fseek tests.
24345         * tests/test-fseek.c (main): Also test eof handling.
24346         * tests/test-fseeko.c (main): Likewise.
24347         Reported by Larry Jones.
24348
24349 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24350
24351         Fix fseeko on BSD-based platforms.
24352         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24353         successful seek.
24354
24355 2007-12-12  Eric Blake  <ebb9@byu.net>
24356
24357         Allow circular dependency of separate libtests.a
24358         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24359         when use_libtests.
24360
24361 2007-12-11  Eric Blake  <ebb9@byu.net>
24362
24363         Fix bug with -0.0L in previous patch.
24364         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24365         * tests/test-isnan.c (main): Also test on zeroes.
24366         * tests/test-isnanf.c (main): Likewise.
24367         * tests/test-isnanl.h (main): Likewise.
24368
24369         Detect pseudo-denormals on x86 even when cross-compiling.
24370         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24371         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24372         invalid bit patterns that happen to satisfy ==.
24373
24374         Avoid link failures with separate libtests.a.
24375         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24376         last, to satisfy circular dependencies.
24377
24378 2007-12-11  Eric Blake  <ebb9@byu.net>
24379         and Bruno Haible  <bruno@clisp.org>
24380
24381         Fix OpenBSD 4.0 <float.h> handling of long double.
24382         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24383         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24384         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24385
24386 2007-12-11  Jim Meyering  <meyering@redhat.com>
24387
24388         * users.txt: Add libvirt.
24389
24390         Support versions of autoconf prior to 2.59c.
24391         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24392         if it is not already defined.
24393
24394 2007-12-09  Bruno Haible  <bruno@clisp.org>
24395
24396         Let 'gnulib-tool --import' collect sources needed for the tests in
24397         tests/ rather than in lib/.
24398         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24399         argument. If true, add rules to generate libtests.a, and put libtests.a
24400         into $(LDADD). Consider source files in subdirectories and set
24401         uses_subdirs.
24402         (func_emit_initmacro_start, func_emit_initmacro_end,
24403         func_emit_initmacro_done): Pass all arguments explicitly.
24404         (func_import): Determine two module lists main_modules,
24405         testsrelated_modules. Determine use_libtests. Determine two variables
24406         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24407         instead of just sed_transform_lib_file. Determine two variables
24408         main_files and testsrelated_files. Compute 'files' as the union of
24409         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24410         func_add_or_update. In the generated gnulib-comp.m4, collect the
24411         object files for tests/ in different variables than those for lib/.
24412         Substitute LIBTESTS_LIBDEPS.
24413         (func_create_testdir): Combine the uses_subdirs results from
24414         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24415
24416 2007-12-09  Bruno Haible  <bruno@clisp.org>
24417
24418         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24419         the build-aux directory.
24420
24421 2007-12-09  Bruno Haible  <bruno@clisp.org>
24422
24423         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24424         introduced on 2006-09-09.
24425
24426 2007-12-07  Jim Meyering  <meyering@redhat.com>
24427
24428         Let these macros work also with autoconf-2.59.
24429         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24430         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24432
24433 2007-12-06  Jim Meyering  <meyering@redhat.com>
24434
24435         Avoid a configure-time syntax error in gl_FUNC_ACL.
24436         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24437         function in each branch, before testing the cache variable.
24438
24439 2007-12-04  Eric Blake  <ebb9@byu.net>
24440
24441         Make scripts executable.
24442         * build-aux/config.guess: Add execute permissions.
24443         * build-aux/config.sub: Likewise.
24444         * build-aux/gendocs.sh: Likewise.
24445
24446         Fix frexp on mingw.
24447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24448         cross-compiling.
24449         * doc/functions/frexp.texi (frexp): Document the bug.
24450
24451         Make cygwin fseeko check more reliable.
24452         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24453         version numbers, rather than unrelated feature check.
24454         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24455         * doc/functions/ftello.texi (ftello): Likewise.
24456         Reported by Bruno Haible.
24457
24458         * m4/strerror.m4: Bump version number.
24459
24460 2007-12-03  Bruno Haible  <bruno@clisp.org>
24461
24462         * doc/functions/mprotect.texi: Mention the mingw problem.
24463
24464 2007-12-03  Eric Blake  <ebb9@byu.net>
24465
24466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24467         REPLACE_STRERROR is initialized before this macro.
24468
24469 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
24472         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24473         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
24474         put -lsec in even for programs other than 'ls'.  This fixes a problem
24475         for gettext reported by Bruno Haible in
24476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24477         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24478         Add support for Solaris 10.  This isn't efficient, but should get the
24479         job done for now.
24480
24481 2007-12-03  James Youngman  <jay@gnu.org>
24482
24483         * doc/regexprops-generic.texi: change "an close-group" to "a
24484         close-group" and "illegal" to "not allowed".
24485
24486 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24487
24488         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24489         pr_byname.h. Needed for the rare case when the maintainer has done
24490         "make maintainer-clean" in the source directory and then attempts a
24491         build outside the source directory.
24492         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24493         scripts_byname.h.
24494
24495 2007-12-02  Martin Lambers <marlam@marlam.de>
24496             Bruno Haible  <bruno@clisp.org>
24497
24498         * lib/getpagesize.h: Remove file.
24499         * lib/unistd.in.h: Include declaration of getpagesize here.
24500         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24501         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24502         HAVE_SYS_PARAM_H.
24503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24504         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24505         * modules/getpagesize (Files): Remove lib/getpagesize.h.
24506         (Depends-on): Add unistd.
24507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24508         (Include): Use <unistd.h> instead of getpagesize.h.
24509         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24510         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24511         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24512         gl_GETPAGESIZE invocation, already handled by module dependency.
24513         * lib/pagealign_alloc.c: Don't include getpagesize.h.
24514
24515 2007-12-02  Bruno Haible  <bruno@clisp.org>
24516
24517         * modules/strings-tests: New file.
24518         * tests/test-strings.c: New file.
24519
24520         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24521         * lib/strings.in.h: New file.
24522         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24523         * m4/strings_h.m4: New file.
24524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24525         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24526         * modules/strings: New file.
24527         * modules/string (Makefile.am): Update.
24528         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24529         Reported by Karl Berry.
24530
24531 2007-12-01  Eric Blake  <ebb9@byu.net>
24532
24533         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24534         accomodate fix in cygwin 1.5.25.
24535
24536 2007-12-01  Jim Meyering  <meyering@redhat.com>
24537
24538         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24539         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24540         that would inhibit utf8-optimization of a regexp containing line-
24541         or buffer-anchors, e.g., `^', `$'.
24542
24543 2007-11-30  Bruno Haible  <bruno@clisp.org>
24544
24545         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24546         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24547         glthread_recursive_lock_init.
24548         * lib/lock.c (glthread_recursive_lock_init)
24549         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24550         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24551
24552 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24553
24554         New function qset_acl, like set_acl but with syscall semantics.
24555         * lib/acl.h (qset_acl): New decl.
24556         * lib/acl.c (qset_acl): New function.
24557         (set_acl): Use new function.  Use more-consistent diagnostics.
24558
24559 2007-11-28  Jim Meyering  <meyering@redhat.com>
24560
24561         * modules/physmem (License): Change from GPL to LGPLv2+.
24562
24563 2007-11-26  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/vasnprintf.c (decode_long_double): Don't abort if the
24566         'long double' type has excess precision.
24567         Reported by Jim Meyering in
24568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24569
24570 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24571
24572         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24573         Sync from <http://gnu.org/licenses>.
24574         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24575         with license text from same location.
24576         * doc/maintain.texi, doc/standards.texi:  Sync from
24577         <http://savannah.gnu.org/projects/gnustandards>.
24578
24579 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
24580         and Jim Meyering  <meyering@redhat.com>
24581
24582         Adjust getdate' grammar to accept a slightly more regular language.
24583         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24584         Before, the former was rejected.
24585         * lib/getdate.y (digits_to_date_time): New function, factored
24586         out of ...
24587         (number): ...here.  Just call digits_to_date_time.
24588         (hybrid): New non-terminal to handle an <unsigned number,
24589         signed relative offset> sequence consistently.
24590
24591 2007-11-18  Jim Meyering  <meyering@redhat.com>
24592
24593         Pull my changes from coreutils:
24594         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24595         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24596         use of $gnulib_tool_option_extras, so that it's separated from the
24597         preceding argument.
24598
24599         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24600         * build-aux/bootstrap (cp_mark_as_generated): Create any required
24601         parent destination directories before copying a file into place.
24602
24603 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24604
24605         bootstrap: work also with 4-argument variant of AC_INIT
24606         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24607
24608 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24609
24610         Port test-getaddrinfo to Solaris.
24611         Problem reported by Bruno Haible in
24612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24613         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24614         explanation of setting 'hints'.
24615         Don't reject an implementation merely because it returns EAI_SERVICE.
24616         (EAI_SERVICE): Define to 0 if not defined.
24617
24618 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24619
24620         The license of gnu-make and posix-shell is now "GPLed build tool".
24621         * modules/gnu-make (License): Likewise.
24622         * modules/posix-shell (License): Likewise.
24623
24624         New module posix-shell, for determining a POSIX shell
24625         or perhaps something that is close enough to a POSIX shell.
24626         * m4/posix-shell.m4: New file.
24627         * modules/posix-shell: New file.
24628
24629         * MODULES.html.sh: Mention new module.
24630
24631         New module gnu-make, for determining whether we're using GNU Make.
24632         * m4/gnu-make.m4: New file.
24633         * modules/gnu-make: New file.
24634         * MODULES.html.sh: Mention new module.
24635
24636 2007-11-14  Jim Meyering  <meyering@redhat.com>
24637
24638         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24639         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24640         use this macro to create a function _definition_.
24641         Remove useless "#undef ARGMATCH_DIE".
24642
24643 2007-11-14  Bruno Haible  <bruno@clisp.org>
24644
24645         * lib/config.charset: Update for OpenBSD 4.1.
24646         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24647
24648 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24649
24650         Document 64-bit #if problems in stdint.texi.
24651         * doc/headers/stdint.texi (stdint.h): Mention problems with
24652         64-bit-#if, and how to work around them.
24653
24654         Don't insist on 'long long int' support in the preprocessor.  It
24655         breaks too many things.  For example, PRIdMAX still uses a 'long
24656         long int' format with the latest Sun compiler, even though
24657         HAVE_LONG_LONG_INT isn't defined due to that compiler's
24658         preprocessor problem.  This causes the latest coreutils to dump
24659         core on Solaris 10 sparc with the Sun C compiler.
24660         Instead, fix the 2007-10-16 problem in a different way, by evaluating
24661         the troublesome expressions at configure-time, not at #if-time.
24662         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24663         preprocessor.
24664         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24665         compile-time C checks, done at 'configure'-time.
24666         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24667         * modules/inttypes (Makefile): Substitute the new symbols that
24668         gl_INTTYPES_H now generates.
24669         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24670
24671 2007-11-12  Bruno Haible  <bruno@clisp.org>
24672
24673         Tests for Unicode character classification functions.
24674
24675         * modules/unictype/bidicategory-byname-tests: New file.
24676         * modules/unictype/bidicategory-name-tests: New file.
24677         * modules/unictype/bidicategory-of-tests: New file.
24678         * modules/unictype/bidicategory-test-tests: New file.
24679         * modules/unictype/block-list-tests: New file.
24680         * modules/unictype/block-of-tests: New file.
24681         * modules/unictype/block-test-tests: New file.
24682         * modules/unictype/category-C-tests: New file.
24683         * modules/unictype/category-Cc-tests: New file.
24684         * modules/unictype/category-Cf-tests: New file.
24685         * modules/unictype/category-Cn-tests: New file.
24686         * modules/unictype/category-Co-tests: New file.
24687         * modules/unictype/category-Cs-tests: New file.
24688         * modules/unictype/category-L-tests: New file.
24689         * modules/unictype/category-Ll-tests: New file.
24690         * modules/unictype/category-Lm-tests: New file.
24691         * modules/unictype/category-Lo-tests: New file.
24692         * modules/unictype/category-Lt-tests: New file.
24693         * modules/unictype/category-Lu-tests: New file.
24694         * modules/unictype/category-M-tests: New file.
24695         * modules/unictype/category-Mc-tests: New file.
24696         * modules/unictype/category-Me-tests: New file.
24697         * modules/unictype/category-Mn-tests: New file.
24698         * modules/unictype/category-N-tests: New file.
24699         * modules/unictype/category-Nd-tests: New file.
24700         * modules/unictype/category-Nl-tests: New file.
24701         * modules/unictype/category-No-tests: New file.
24702         * modules/unictype/category-P-tests: New file.
24703         * modules/unictype/category-Pc-tests: New file.
24704         * modules/unictype/category-Pd-tests: New file.
24705         * modules/unictype/category-Pe-tests: New file.
24706         * modules/unictype/category-Pf-tests: New file.
24707         * modules/unictype/category-Pi-tests: New file.
24708         * modules/unictype/category-Po-tests: New file.
24709         * modules/unictype/category-Ps-tests: New file.
24710         * modules/unictype/category-S-tests: New file.
24711         * modules/unictype/category-Sc-tests: New file.
24712         * modules/unictype/category-Sk-tests: New file.
24713         * modules/unictype/category-Sm-tests: New file.
24714         * modules/unictype/category-So-tests: New file.
24715         * modules/unictype/category-Z-tests: New file.
24716         * modules/unictype/category-Zl-tests: New file.
24717         * modules/unictype/category-Zp-tests: New file.
24718         * modules/unictype/category-Zs-tests: New file.
24719         * modules/unictype/category-and-not-tests: New file.
24720         * modules/unictype/category-and-tests: New file.
24721         * modules/unictype/category-byname-tests: New file.
24722         * modules/unictype/category-name-tests: New file.
24723         * modules/unictype/category-none-tests: New file.
24724         * modules/unictype/category-of-tests: New file.
24725         * modules/unictype/category-or-tests: New file.
24726         * modules/unictype/category-test-withtable-tests: New file.
24727         * modules/unictype/combining-class-tests: New file.
24728         * modules/unictype/ctype-alnum-tests: New file.
24729         * modules/unictype/ctype-alpha-tests: New file.
24730         * modules/unictype/ctype-blank-tests: New file.
24731         * modules/unictype/ctype-cntrl-tests: New file.
24732         * modules/unictype/ctype-digit-tests: New file.
24733         * modules/unictype/ctype-graph-tests: New file.
24734         * modules/unictype/ctype-lower-tests: New file.
24735         * modules/unictype/ctype-print-tests: New file.
24736         * modules/unictype/ctype-punct-tests: New file.
24737         * modules/unictype/ctype-space-tests: New file.
24738         * modules/unictype/ctype-upper-tests: New file.
24739         * modules/unictype/ctype-xdigit-tests: New file.
24740         * modules/unictype/decimal-digit-tests: New file.
24741         * modules/unictype/digit-tests: New file.
24742         * modules/unictype/mirror-tests: New file.
24743         * modules/unictype/numeric-tests: New file.
24744         * modules/unictype/property-alphabetic-tests: New file.
24745         * modules/unictype/property-ascii-hex-digit-tests: New file.
24746         * modules/unictype/property-bidi-arabic-digit-tests: New file.
24747         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
24748         * modules/unictype/property-bidi-block-separator-tests: New file.
24749         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
24750         * modules/unictype/property-bidi-common-separator-tests: New file.
24751         * modules/unictype/property-bidi-control-tests: New file.
24752         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
24753         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
24754         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
24755         * modules/unictype/property-bidi-european-digit-tests: New file.
24756         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
24757         * modules/unictype/property-bidi-left-to-right-tests: New file.
24758         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
24759         * modules/unictype/property-bidi-other-neutral-tests: New file.
24760         * modules/unictype/property-bidi-pdf-tests: New file.
24761         * modules/unictype/property-bidi-segment-separator-tests: New file.
24762         * modules/unictype/property-bidi-whitespace-tests: New file.
24763         * modules/unictype/property-byname-tests: New file.
24764         * modules/unictype/property-combining-tests: New file.
24765         * modules/unictype/property-composite-tests: New file.
24766         * modules/unictype/property-currency-symbol-tests: New file.
24767         * modules/unictype/property-dash-tests: New file.
24768         * modules/unictype/property-decimal-digit-tests: New file.
24769         * modules/unictype/property-default-ignorable-code-point-tests: New file.
24770         * modules/unictype/property-deprecated-tests: New file.
24771         * modules/unictype/property-diacritic-tests: New file.
24772         * modules/unictype/property-extender-tests: New file.
24773         * modules/unictype/property-format-control-tests: New file.
24774         * modules/unictype/property-grapheme-base-tests: New file.
24775         * modules/unictype/property-grapheme-extend-tests: New file.
24776         * modules/unictype/property-grapheme-link-tests: New file.
24777         * modules/unictype/property-hex-digit-tests: New file.
24778         * modules/unictype/property-hyphen-tests: New file.
24779         * modules/unictype/property-id-continue-tests: New file.
24780         * modules/unictype/property-id-start-tests: New file.
24781         * modules/unictype/property-ideographic-tests: New file.
24782         * modules/unictype/property-ids-binary-operator-tests: New file.
24783         * modules/unictype/property-ids-trinary-operator-tests: New file.
24784         * modules/unictype/property-ignorable-control-tests: New file.
24785         * modules/unictype/property-iso-control-tests: New file.
24786         * modules/unictype/property-join-control-tests: New file.
24787         * modules/unictype/property-left-of-pair-tests: New file.
24788         * modules/unictype/property-line-separator-tests: New file.
24789         * modules/unictype/property-logical-order-exception-tests: New file.
24790         * modules/unictype/property-lowercase-tests: New file.
24791         * modules/unictype/property-math-tests: New file.
24792         * modules/unictype/property-non-break-tests: New file.
24793         * modules/unictype/property-not-a-character-tests: New file.
24794         * modules/unictype/property-numeric-tests: New file.
24795         * modules/unictype/property-other-alphabetic-tests: New file.
24796         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
24797         * modules/unictype/property-other-grapheme-extend-tests: New file.
24798         * modules/unictype/property-other-id-continue-tests: New file.
24799         * modules/unictype/property-other-id-start-tests: New file.
24800         * modules/unictype/property-other-lowercase-tests: New file.
24801         * modules/unictype/property-other-math-tests: New file.
24802         * modules/unictype/property-other-uppercase-tests: New file.
24803         * modules/unictype/property-paired-punctuation-tests: New file.
24804         * modules/unictype/property-paragraph-separator-tests: New file.
24805         * modules/unictype/property-pattern-syntax-tests: New file.
24806         * modules/unictype/property-pattern-white-space-tests: New file.
24807         * modules/unictype/property-private-use-tests: New file.
24808         * modules/unictype/property-punctuation-tests: New file.
24809         * modules/unictype/property-quotation-mark-tests: New file.
24810         * modules/unictype/property-radical-tests: New file.
24811         * modules/unictype/property-sentence-terminal-tests: New file.
24812         * modules/unictype/property-soft-dotted-tests: New file.
24813         * modules/unictype/property-space-tests: New file.
24814         * modules/unictype/property-terminal-punctuation-tests: New file.
24815         * modules/unictype/property-test-tests: New file.
24816         * modules/unictype/property-titlecase-tests: New file.
24817         * modules/unictype/property-unassigned-code-value-tests: New file.
24818         * modules/unictype/property-unified-ideograph-tests: New file.
24819         * modules/unictype/property-uppercase-tests: New file.
24820         * modules/unictype/property-variation-selector-tests: New file.
24821         * modules/unictype/property-white-space-tests: New file.
24822         * modules/unictype/property-xid-continue-tests: New file.
24823         * modules/unictype/property-xid-start-tests: New file.
24824         * modules/unictype/property-zero-width-tests: New file.
24825         * modules/unictype/scripts-tests: New file.
24826         * modules/unictype/syntax-c-ident-tests: New file.
24827         * modules/unictype/syntax-c-whitespace-tests: New file.
24828         * modules/unictype/syntax-java-ident-tests: New file.
24829         * modules/unictype/syntax-java-whitespace-tests: New file.
24830         * tests/unictype/test-bidi_byname.c: New file.
24831         * tests/unictype/test-bidi_name.c: New file.
24832         * tests/unictype/test-bidi_of.c: New file.
24833         * tests/unictype/test-bidi_test.c: New file.
24834         * tests/unictype/test-block_list.c: New file.
24835         * tests/unictype/test-block_of.c: New file.
24836         * tests/unictype/test-block_test.c: New file.
24837         * tests/unictype/test-categ_and.c: New file.
24838         * tests/unictype/test-categ_and_not.c: New file.
24839         * tests/unictype/test-categ_byname.c: New file.
24840         * tests/unictype/test-categ_name.c: New file.
24841         * tests/unictype/test-categ_none.c: New file.
24842         * tests/unictype/test-categ_of.c: New file.
24843         * tests/unictype/test-categ_or.c: New file.
24844         * tests/unictype/test-categ_test_withtable.c: New file.
24845         * tests/unictype/test-combining.c: New file.
24846         * tests/unictype/test-decdigit.c: New file.
24847         * tests/unictype/test-digit.c: New file.
24848         * tests/unictype/test-mirror.c: New file.
24849         * tests/unictype/test-numeric.c: New file.
24850         * tests/unictype/test-pr_byname.c: New file.
24851         * tests/unictype/test-pr_test.c: New file.
24852         * tests/unictype/test-predicate-part1.h: New file.
24853         * tests/unictype/test-predicate-part2.h: New file.
24854         * tests/unictype/test-scripts.c: New file.
24855         * tests/unictype/test-sy_c_ident.c: New file.
24856         * tests/unictype/test-sy_java_ident.c: New file.
24857
24858         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
24859         for Unicode 5.0.0.
24860         * tests/unictype/test-categ_Cc.c: Likewise.
24861         * tests/unictype/test-categ_Cf.c: Likewise.
24862         * tests/unictype/test-categ_Cn.c: Likewise.
24863         * tests/unictype/test-categ_Co.c: Likewise.
24864         * tests/unictype/test-categ_Cs.c: Likewise.
24865         * tests/unictype/test-categ_L.c: Likewise.
24866         * tests/unictype/test-categ_Ll.c: Likewise.
24867         * tests/unictype/test-categ_Lm.c: Likewise.
24868         * tests/unictype/test-categ_Lo.c: Likewise.
24869         * tests/unictype/test-categ_Lt.c: Likewise.
24870         * tests/unictype/test-categ_Lu.c: Likewise.
24871         * tests/unictype/test-categ_M.c: Likewise.
24872         * tests/unictype/test-categ_Mc.c: Likewise.
24873         * tests/unictype/test-categ_Me.c: Likewise.
24874         * tests/unictype/test-categ_Mn.c: Likewise.
24875         * tests/unictype/test-categ_N.c: Likewise.
24876         * tests/unictype/test-categ_Nd.c: Likewise.
24877         * tests/unictype/test-categ_Nl.c: Likewise.
24878         * tests/unictype/test-categ_No.c: Likewise.
24879         * tests/unictype/test-categ_P.c: Likewise.
24880         * tests/unictype/test-categ_Pc.c: Likewise.
24881         * tests/unictype/test-categ_Pd.c: Likewise.
24882         * tests/unictype/test-categ_Pe.c: Likewise.
24883         * tests/unictype/test-categ_Pf.c: Likewise.
24884         * tests/unictype/test-categ_Pi.c: Likewise.
24885         * tests/unictype/test-categ_Po.c: Likewise.
24886         * tests/unictype/test-categ_Ps.c: Likewise.
24887         * tests/unictype/test-categ_S.c: Likewise.
24888         * tests/unictype/test-categ_Sc.c: Likewise.
24889         * tests/unictype/test-categ_Sk.c: Likewise.
24890         * tests/unictype/test-categ_Sm.c: Likewise.
24891         * tests/unictype/test-categ_So.c: Likewise.
24892         * tests/unictype/test-categ_Z.c: Likewise.
24893         * tests/unictype/test-categ_Zl.c: Likewise.
24894         * tests/unictype/test-categ_Zp.c: Likewise.
24895         * tests/unictype/test-categ_Zs.c: Likewise.
24896         * tests/unictype/test-ctype_alnum.c: Likewise.
24897         * tests/unictype/test-ctype_alpha.c: Likewise.
24898         * tests/unictype/test-ctype_blank.c: Likewise.
24899         * tests/unictype/test-ctype_cntrl.c: Likewise.
24900         * tests/unictype/test-ctype_digit.c: Likewise.
24901         * tests/unictype/test-ctype_graph.c: Likewise.
24902         * tests/unictype/test-ctype_lower.c: Likewise.
24903         * tests/unictype/test-ctype_print.c: Likewise.
24904         * tests/unictype/test-ctype_punct.c: Likewise.
24905         * tests/unictype/test-ctype_space.c: Likewise.
24906         * tests/unictype/test-ctype_upper.c: Likewise.
24907         * tests/unictype/test-ctype_xdigit.c: Likewise.
24908         * tests/unictype/test-decdigit.h: Likewise.
24909         * tests/unictype/test-digit.h: Likewise.
24910         * tests/unictype/test-numeric.h: Likewise.
24911         * tests/unictype/test-pr_alphabetic.c: Likewise.
24912         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
24913         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24914         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24915         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
24916         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24917         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
24918         * tests/unictype/test-pr_bidi_control.c: Likewise.
24919         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
24920         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
24921         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24922         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24923         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24924         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24925         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24926         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24927         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
24928         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
24929         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
24930         * tests/unictype/test-pr_combining.c: Likewise.
24931         * tests/unictype/test-pr_composite.c: Likewise.
24932         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24933         * tests/unictype/test-pr_dash.c: Likewise.
24934         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24935         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
24936         * tests/unictype/test-pr_deprecated.c: Likewise.
24937         * tests/unictype/test-pr_diacritic.c: Likewise.
24938         * tests/unictype/test-pr_extender.c: Likewise.
24939         * tests/unictype/test-pr_format_control.c: Likewise.
24940         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24941         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24942         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24943         * tests/unictype/test-pr_hex_digit.c: Likewise.
24944         * tests/unictype/test-pr_hyphen.c: Likewise.
24945         * tests/unictype/test-pr_id_continue.c: Likewise.
24946         * tests/unictype/test-pr_id_start.c: Likewise.
24947         * tests/unictype/test-pr_ideographic.c: Likewise.
24948         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
24949         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
24950         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24951         * tests/unictype/test-pr_iso_control.c: Likewise.
24952         * tests/unictype/test-pr_join_control.c: Likewise.
24953         * tests/unictype/test-pr_left_of_pair.c: Likewise.
24954         * tests/unictype/test-pr_line_separator.c: Likewise.
24955         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24956         * tests/unictype/test-pr_lowercase.c: Likewise.
24957         * tests/unictype/test-pr_math.c: Likewise.
24958         * tests/unictype/test-pr_non_break.c: Likewise.
24959         * tests/unictype/test-pr_not_a_character.c: Likewise.
24960         * tests/unictype/test-pr_numeric.c: Likewise.
24961         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24962         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
24963         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
24964         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24965         * tests/unictype/test-pr_other_id_start.c: Likewise.
24966         * tests/unictype/test-pr_other_lowercase.c: Likewise.
24967         * tests/unictype/test-pr_other_math.c: Likewise.
24968         * tests/unictype/test-pr_other_uppercase.c: Likewise.
24969         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
24970         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
24971         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
24972         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
24973         * tests/unictype/test-pr_private_use.c: Likewise.
24974         * tests/unictype/test-pr_punctuation.c: Likewise.
24975         * tests/unictype/test-pr_quotation_mark.c: Likewise.
24976         * tests/unictype/test-pr_radical.c: Likewise.
24977         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24978         * tests/unictype/test-pr_soft_dotted.c: Likewise.
24979         * tests/unictype/test-pr_space.c: Likewise.
24980         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24981         * tests/unictype/test-pr_titlecase.c: Likewise.
24982         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24983         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24984         * tests/unictype/test-pr_uppercase.c: Likewise.
24985         * tests/unictype/test-pr_variation_selector.c: Likewise.
24986         * tests/unictype/test-pr_white_space.c: Likewise.
24987         * tests/unictype/test-pr_xid_continue.c: Likewise.
24988         * tests/unictype/test-pr_xid_start.c: Likewise.
24989         * tests/unictype/test-pr_zero_width.c: Likewise.
24990         * tests/unictype/test-sy_c_whitespace.c: Likewise.
24991         * tests/unictype/test-sy_java_whitespace.c: Likewise.
24992
24993 2007-11-12  Bruno Haible  <bruno@clisp.org>
24994
24995         Unicode character classification functions.
24996         * lib/unictype.h: New file.
24997         * modules/unictype/base: New file.
24998         * modules/unictype/category-L: New file.
24999         * modules/unictype/category-Lu: New file.
25000         * modules/unictype/category-Ll: New file.
25001         * modules/unictype/category-Lt: New file.
25002         * modules/unictype/category-Lm: New file.
25003         * modules/unictype/category-Lo: New file.
25004         * modules/unictype/category-M: New file.
25005         * modules/unictype/category-Mn: New file.
25006         * modules/unictype/category-Mc: New file.
25007         * modules/unictype/category-Me: New file.
25008         * modules/unictype/category-N: New file.
25009         * modules/unictype/category-Nd: New file.
25010         * modules/unictype/category-Nl: New file.
25011         * modules/unictype/category-No: New file.
25012         * modules/unictype/category-P: New file.
25013         * modules/unictype/category-Pc: New file.
25014         * modules/unictype/category-Pd: New file.
25015         * modules/unictype/category-Ps: New file.
25016         * modules/unictype/category-Pe: New file.
25017         * modules/unictype/category-Pi: New file.
25018         * modules/unictype/category-Pf: New file.
25019         * modules/unictype/category-Po: New file.
25020         * modules/unictype/category-S: New file.
25021         * modules/unictype/category-Sm: New file.
25022         * modules/unictype/category-Sc: New file.
25023         * modules/unictype/category-Sk: New file.
25024         * modules/unictype/category-So: New file.
25025         * modules/unictype/category-Z: New file.
25026         * modules/unictype/category-Zs: New file.
25027         * modules/unictype/category-Zl: New file.
25028         * modules/unictype/category-Zp: New file.
25029         * modules/unictype/category-C: New file.
25030         * modules/unictype/category-Cc: New file.
25031         * modules/unictype/category-Cf: New file.
25032         * modules/unictype/category-Cs: New file.
25033         * modules/unictype/category-Co: New file.
25034         * modules/unictype/category-Cn: New file.
25035         * modules/unictype/category-or: New file.
25036         * modules/unictype/category-of: New file.
25037         * modules/unictype/category-test: New file.
25038         * modules/unictype/category-test-withtable: New file.
25039         * modules/unictype/category-byname: New file.
25040         * modules/unictype/category-none: New file.
25041         * modules/unictype/category-and: New file.
25042         * modules/unictype/category-and-not: New file.
25043         * modules/unictype/category-name: New file.
25044         * modules/unictype/combining-class: New file.
25045         * modules/unictype/category-all: New file.
25046         * modules/unictype/bidicategory-all: New file.
25047         * modules/unictype/bidicategory-byname: New file.
25048         * modules/unictype/bidicategory-name: New file.
25049         * modules/unictype/bidicategory-of: New file.
25050         * modules/unictype/bidicategory-test: New file.
25051         * modules/unictype/decimal-digit: New file.
25052         * modules/unictype/digit: New file.
25053         * modules/unictype/numeric: New file.
25054         * modules/unictype/mirror: New file.
25055         * modules/unictype/property-white-space: New file.
25056         * modules/unictype/property-alphabetic: New file.
25057         * modules/unictype/property-other-alphabetic: New file.
25058         * modules/unictype/property-not-a-character: New file.
25059         * modules/unictype/property-default-ignorable-code-point: New file.
25060         * modules/unictype/property-other-default-ignorable-code-point: New
25061         file.
25062         * modules/unictype/property-deprecated: New file.
25063         * modules/unictype/property-logical-order-exception: New file.
25064         * modules/unictype/property-variation-selector: New file.
25065         * modules/unictype/property-private-use: New file.
25066         * modules/unictype/property-unassigned-code-value: New file.
25067         * modules/unictype/property-uppercase: New file.
25068         * modules/unictype/property-other-uppercase: New file.
25069         * modules/unictype/property-lowercase: New file.
25070         * modules/unictype/property-other-lowercase: New file.
25071         * modules/unictype/property-titlecase: New file.
25072         * modules/unictype/property-soft-dotted: New file.
25073         * modules/unictype/property-id-start: New file.
25074         * modules/unictype/property-other-id-start: New file.
25075         * modules/unictype/property-id-continue: New file.
25076         * modules/unictype/property-other-id-continue: New file.
25077         * modules/unictype/property-xid-start: New file.
25078         * modules/unictype/property-xid-continue: New file.
25079         * modules/unictype/property-pattern-white-space: New file.
25080         * modules/unictype/property-pattern-syntax: New file.
25081         * modules/unictype/property-join-control: New file.
25082         * modules/unictype/property-grapheme-base: New file.
25083         * modules/unictype/property-grapheme-extend: New file.
25084         * modules/unictype/property-other-grapheme-extend: New file.
25085         * modules/unictype/property-grapheme-link: New file.
25086         * modules/unictype/property-bidi-control: New file.
25087         * modules/unictype/property-bidi-left-to-right: New file.
25088         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25089         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25090         * modules/unictype/property-bidi-european-digit: New file.
25091         * modules/unictype/property-bidi-eur-num-separator: New file.
25092         * modules/unictype/property-bidi-eur-num-terminator: New file.
25093         * modules/unictype/property-bidi-arabic-digit: New file.
25094         * modules/unictype/property-bidi-common-separator: New file.
25095         * modules/unictype/property-bidi-block-separator: New file.
25096         * modules/unictype/property-bidi-segment-separator: New file.
25097         * modules/unictype/property-bidi-whitespace: New file.
25098         * modules/unictype/property-bidi-non-spacing-mark: New file.
25099         * modules/unictype/property-bidi-boundary-neutral: New file.
25100         * modules/unictype/property-bidi-pdf: New file.
25101         * modules/unictype/property-bidi-embedding-or-override: New file.
25102         * modules/unictype/property-bidi-other-neutral: New file.
25103         * modules/unictype/property-hex-digit: New file.
25104         * modules/unictype/property-ascii-hex-digit: New file.
25105         * modules/unictype/property-ideographic: New file.
25106         * modules/unictype/property-unified-ideograph: New file.
25107         * modules/unictype/property-radical: New file.
25108         * modules/unictype/property-ids-binary-operator: New file.
25109         * modules/unictype/property-ids-trinary-operator: New file.
25110         * modules/unictype/property-zero-width: New file.
25111         * modules/unictype/property-space: New file.
25112         * modules/unictype/property-non-break: New file.
25113         * modules/unictype/property-iso-control: New file.
25114         * modules/unictype/property-format-control: New file.
25115         * modules/unictype/property-dash: New file.
25116         * modules/unictype/property-hyphen: New file.
25117         * modules/unictype/property-punctuation: New file.
25118         * modules/unictype/property-line-separator: New file.
25119         * modules/unictype/property-paragraph-separator: New file.
25120         * modules/unictype/property-quotation-mark: New file.
25121         * modules/unictype/property-sentence-terminal: New file.
25122         * modules/unictype/property-terminal-punctuation: New file.
25123         * modules/unictype/property-currency-symbol: New file.
25124         * modules/unictype/property-math: New file.
25125         * modules/unictype/property-other-math: New file.
25126         * modules/unictype/property-paired-punctuation: New file.
25127         * modules/unictype/property-left-of-pair: New file.
25128         * modules/unictype/property-combining: New file.
25129         * modules/unictype/property-composite: New file.
25130         * modules/unictype/property-decimal-digit: New file.
25131         * modules/unictype/property-numeric: New file.
25132         * modules/unictype/property-diacritic: New file.
25133         * modules/unictype/property-extender: New file.
25134         * modules/unictype/property-ignorable-control: New file.
25135         * modules/unictype/property-test: New file.
25136         * modules/unictype/property-byname: New file.
25137         * modules/unictype/property-all: New file.
25138         * modules/unictype/scripts: New file.
25139         * modules/unictype/scripts-all: New file.
25140         * modules/unictype/block-of: New file.
25141         * modules/unictype/block-test: New file.
25142         * modules/unictype/block-list: New file.
25143         * modules/unictype/block-all: New file.
25144         * modules/unictype/syntax-c-whitespace: New file.
25145         * modules/unictype/syntax-java-whitespace: New file.
25146         * modules/unictype/syntax-c-ident: New file.
25147         * modules/unictype/syntax-java-ident: New file.
25148         * modules/unictype/ctype-alnum: New file.
25149         * modules/unictype/ctype-alpha: New file.
25150         * modules/unictype/ctype-cntrl: New file.
25151         * modules/unictype/ctype-digit: New file.
25152         * modules/unictype/ctype-graph: New file.
25153         * modules/unictype/ctype-lower: New file.
25154         * modules/unictype/ctype-print: New file.
25155         * modules/unictype/ctype-punct: New file.
25156         * modules/unictype/ctype-space: New file.
25157         * modules/unictype/ctype-upper: New file.
25158         * modules/unictype/ctype-xdigit: New file.
25159         * modules/unictype/ctype-blank: New file.
25160         * lib/unictype/bidi_byname.c: New file.
25161         * lib/unictype/bidi_name.c: New file.
25162         * lib/unictype/bidi_of.c: New file.
25163         * lib/unictype/bidi_test.c: New file.
25164         * lib/unictype/bitmap.h: New file.
25165         * lib/unictype/block_test.c: New file.
25166         * lib/unictype/blocks.c: New file.
25167         * lib/unictype/categ_C.c: New file.
25168         * lib/unictype/categ_Cc.c: New file.
25169         * lib/unictype/categ_Cf.c: New file.
25170         * lib/unictype/categ_Cn.c: New file.
25171         * lib/unictype/categ_Co.c: New file.
25172         * lib/unictype/categ_Cs.c: New file.
25173         * lib/unictype/categ_L.c: New file.
25174         * lib/unictype/categ_Ll.c: New file.
25175         * lib/unictype/categ_Lm.c: New file.
25176         * lib/unictype/categ_Lo.c: New file.
25177         * lib/unictype/categ_Lt.c: New file.
25178         * lib/unictype/categ_Lu.c: New file.
25179         * lib/unictype/categ_M.c: New file.
25180         * lib/unictype/categ_Mc.c: New file.
25181         * lib/unictype/categ_Me.c: New file.
25182         * lib/unictype/categ_Mn.c: New file.
25183         * lib/unictype/categ_N.c: New file.
25184         * lib/unictype/categ_Nd.c: New file.
25185         * lib/unictype/categ_Nl.c: New file.
25186         * lib/unictype/categ_No.c: New file.
25187         * lib/unictype/categ_P.c: New file.
25188         * lib/unictype/categ_Pc.c: New file.
25189         * lib/unictype/categ_Pd.c: New file.
25190         * lib/unictype/categ_Pe.c: New file.
25191         * lib/unictype/categ_Pf.c: New file.
25192         * lib/unictype/categ_Pi.c: New file.
25193         * lib/unictype/categ_Po.c: New file.
25194         * lib/unictype/categ_Ps.c: New file.
25195         * lib/unictype/categ_S.c: New file.
25196         * lib/unictype/categ_Sc.c: New file.
25197         * lib/unictype/categ_Sk.c: New file.
25198         * lib/unictype/categ_Sm.c: New file.
25199         * lib/unictype/categ_So.c: New file.
25200         * lib/unictype/categ_Z.c: New file.
25201         * lib/unictype/categ_Zl.c: New file.
25202         * lib/unictype/categ_Zp.c: New file.
25203         * lib/unictype/categ_Zs.c: New file.
25204         * lib/unictype/categ_and.c: New file.
25205         * lib/unictype/categ_and_not.c: New file.
25206         * lib/unictype/categ_byname.c: New file.
25207         * lib/unictype/categ_name.c: New file.
25208         * lib/unictype/categ_none.c: New file.
25209         * lib/unictype/categ_of.c: New file.
25210         * lib/unictype/categ_or.c: New file.
25211         * lib/unictype/categ_test.c: New file.
25212         * lib/unictype/combining.c: New file.
25213         * lib/unictype/ctype_alnum.c: New file.
25214         * lib/unictype/ctype_alpha.c: New file.
25215         * lib/unictype/ctype_blank.c: New file.
25216         * lib/unictype/ctype_cntrl.c: New file.
25217         * lib/unictype/ctype_digit.c: New file.
25218         * lib/unictype/ctype_graph.c: New file.
25219         * lib/unictype/ctype_lower.c: New file.
25220         * lib/unictype/ctype_print.c: New file.
25221         * lib/unictype/ctype_punct.c: New file.
25222         * lib/unictype/ctype_space.c: New file.
25223         * lib/unictype/ctype_upper.c: New file.
25224         * lib/unictype/ctype_xdigit.c: New file.
25225         * lib/unictype/decdigit.c: New file.
25226         * lib/unictype/digit.c: New file.
25227         * lib/unictype/identsyntaxmap.h: New file.
25228         * lib/unictype/mirror.c: New file.
25229         * lib/unictype/numeric.c: New file.
25230         * lib/unictype/pr_alphabetic.c: New file.
25231         * lib/unictype/pr_ascii_hex_digit.c: New file.
25232         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25233         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25234         * lib/unictype/pr_bidi_block_separator.c: New file.
25235         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25236         * lib/unictype/pr_bidi_common_separator.c: New file.
25237         * lib/unictype/pr_bidi_control.c: New file.
25238         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25239         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25240         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25241         * lib/unictype/pr_bidi_european_digit.c: New file.
25242         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25243         * lib/unictype/pr_bidi_left_to_right.c: New file.
25244         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25245         * lib/unictype/pr_bidi_other_neutral.c: New file.
25246         * lib/unictype/pr_bidi_pdf.c: New file.
25247         * lib/unictype/pr_bidi_segment_separator.c: New file.
25248         * lib/unictype/pr_bidi_whitespace.c: New file.
25249         * lib/unictype/pr_byname.c: New file.
25250         * lib/unictype/pr_byname.gperf: New file.
25251         * lib/unictype/pr_combining.c: New file.
25252         * lib/unictype/pr_composite.c: New file.
25253         * lib/unictype/pr_currency_symbol.c: New file.
25254         * lib/unictype/pr_dash.c: New file.
25255         * lib/unictype/pr_decimal_digit.c: New file.
25256         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25257         * lib/unictype/pr_deprecated.c: New file.
25258         * lib/unictype/pr_diacritic.c: New file.
25259         * lib/unictype/pr_extender.c: New file.
25260         * lib/unictype/pr_format_control.c: New file.
25261         * lib/unictype/pr_grapheme_base.c: New file.
25262         * lib/unictype/pr_grapheme_extend.c: New file.
25263         * lib/unictype/pr_grapheme_link.c: New file.
25264         * lib/unictype/pr_hex_digit.c: New file.
25265         * lib/unictype/pr_hyphen.c: New file.
25266         * lib/unictype/pr_id_continue.c: New file.
25267         * lib/unictype/pr_id_start.c: New file.
25268         * lib/unictype/pr_ideographic.c: New file.
25269         * lib/unictype/pr_ids_binary_operator.c: New file.
25270         * lib/unictype/pr_ids_trinary_operator.c: New file.
25271         * lib/unictype/pr_ignorable_control.c: New file.
25272         * lib/unictype/pr_iso_control.c: New file.
25273         * lib/unictype/pr_join_control.c: New file.
25274         * lib/unictype/pr_left_of_pair.c: New file.
25275         * lib/unictype/pr_line_separator.c: New file.
25276         * lib/unictype/pr_logical_order_exception.c: New file.
25277         * lib/unictype/pr_lowercase.c: New file.
25278         * lib/unictype/pr_math.c: New file.
25279         * lib/unictype/pr_non_break.c: New file.
25280         * lib/unictype/pr_not_a_character.c: New file.
25281         * lib/unictype/pr_numeric.c: New file.
25282         * lib/unictype/pr_other_alphabetic.c: New file.
25283         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25284         * lib/unictype/pr_other_grapheme_extend.c: New file.
25285         * lib/unictype/pr_other_id_continue.c: New file.
25286         * lib/unictype/pr_other_id_start.c: New file.
25287         * lib/unictype/pr_other_lowercase.c: New file.
25288         * lib/unictype/pr_other_math.c: New file.
25289         * lib/unictype/pr_other_uppercase.c: New file.
25290         * lib/unictype/pr_paired_punctuation.c: New file.
25291         * lib/unictype/pr_paragraph_separator.c: New file.
25292         * lib/unictype/pr_pattern_syntax.c: New file.
25293         * lib/unictype/pr_pattern_white_space.c: New file.
25294         * lib/unictype/pr_private_use.c: New file.
25295         * lib/unictype/pr_punctuation.c: New file.
25296         * lib/unictype/pr_quotation_mark.c: New file.
25297         * lib/unictype/pr_radical.c: New file.
25298         * lib/unictype/pr_sentence_terminal.c: New file.
25299         * lib/unictype/pr_soft_dotted.c: New file.
25300         * lib/unictype/pr_space.c: New file.
25301         * lib/unictype/pr_terminal_punctuation.c: New file.
25302         * lib/unictype/pr_test.c: New file.
25303         * lib/unictype/pr_titlecase.c: New file.
25304         * lib/unictype/pr_unassigned_code_value.c: New file.
25305         * lib/unictype/pr_unified_ideograph.c: New file.
25306         * lib/unictype/pr_uppercase.c: New file.
25307         * lib/unictype/pr_variation_selector.c: New file.
25308         * lib/unictype/pr_white_space.c: New file.
25309         * lib/unictype/pr_xid_continue.c: New file.
25310         * lib/unictype/pr_xid_start.c: New file.
25311         * lib/unictype/pr_zero_width.c: New file.
25312         * lib/unictype/scripts.c: New file.
25313         * lib/unictype/sy_c_ident.c: New file.
25314         * lib/unictype/sy_c_whitespace.c: New file.
25315         * lib/unictype/sy_java_ident.c: New file.
25316         * lib/unictype/sy_java_whitespace.c: New file.
25317
25318         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25319         Unicode 5.0.0.
25320         * lib/unictype/blocks.h: Likewise.
25321         * lib/unictype/categ_C.h: Likewise.
25322         * lib/unictype/categ_Cc.h: Likewise.
25323         * lib/unictype/categ_Cf.h: Likewise.
25324         * lib/unictype/categ_Cn.h: Likewise.
25325         * lib/unictype/categ_Co.h: Likewise.
25326         * lib/unictype/categ_Cs.h: Likewise.
25327         * lib/unictype/categ_L.h: Likewise.
25328         * lib/unictype/categ_Ll.h: Likewise.
25329         * lib/unictype/categ_Lm.h: Likewise.
25330         * lib/unictype/categ_Lo.h: Likewise.
25331         * lib/unictype/categ_Lt.h: Likewise.
25332         * lib/unictype/categ_Lu.h: Likewise.
25333         * lib/unictype/categ_M.h: Likewise.
25334         * lib/unictype/categ_Mc.h: Likewise.
25335         * lib/unictype/categ_Me.h: Likewise.
25336         * lib/unictype/categ_Mn.h: Likewise.
25337         * lib/unictype/categ_N.h: Likewise.
25338         * lib/unictype/categ_Nd.h: Likewise.
25339         * lib/unictype/categ_Nl.h: Likewise.
25340         * lib/unictype/categ_No.h: Likewise.
25341         * lib/unictype/categ_P.h: Likewise.
25342         * lib/unictype/categ_Pc.h: Likewise.
25343         * lib/unictype/categ_Pd.h: Likewise.
25344         * lib/unictype/categ_Pe.h: Likewise.
25345         * lib/unictype/categ_Pf.h: Likewise.
25346         * lib/unictype/categ_Pi.h: Likewise.
25347         * lib/unictype/categ_Po.h: Likewise.
25348         * lib/unictype/categ_Ps.h: Likewise.
25349         * lib/unictype/categ_S.h: Likewise.
25350         * lib/unictype/categ_Sc.h: Likewise.
25351         * lib/unictype/categ_Sk.h: Likewise.
25352         * lib/unictype/categ_Sm.h: Likewise.
25353         * lib/unictype/categ_So.h: Likewise.
25354         * lib/unictype/categ_Z.h: Likewise.
25355         * lib/unictype/categ_Zl.h: Likewise.
25356         * lib/unictype/categ_Zp.h: Likewise.
25357         * lib/unictype/categ_Zs.h: Likewise.
25358         * lib/unictype/categ_of.h: Likewise.
25359         * lib/unictype/combining.h: Likewise.
25360         * lib/unictype/ctype_alnum.h: Likewise.
25361         * lib/unictype/ctype_alpha.h: Likewise.
25362         * lib/unictype/ctype_blank.h: Likewise.
25363         * lib/unictype/ctype_cntrl.h: Likewise.
25364         * lib/unictype/ctype_digit.h: Likewise.
25365         * lib/unictype/ctype_graph.h: Likewise.
25366         * lib/unictype/ctype_lower.h: Likewise.
25367         * lib/unictype/ctype_print.h: Likewise.
25368         * lib/unictype/ctype_punct.h: Likewise.
25369         * lib/unictype/ctype_space.h: Likewise.
25370         * lib/unictype/ctype_upper.h: Likewise.
25371         * lib/unictype/ctype_xdigit.h: Likewise.
25372         * lib/unictype/decdigit.h: Likewise.
25373         * lib/unictype/digit.h: Likewise.
25374         * lib/unictype/mirror.h: Likewise.
25375         * lib/unictype/numeric.h: Likewise.
25376         * lib/unictype/pr_alphabetic.h: Likewise.
25377         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25378         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25379         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25380         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25381         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25382         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25383         * lib/unictype/pr_bidi_control.h: Likewise.
25384         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25385         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25386         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25387         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25388         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25389         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25390         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25391         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25392         * lib/unictype/pr_bidi_pdf.h: Likewise.
25393         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25394         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25395         * lib/unictype/pr_combining.h: Likewise.
25396         * lib/unictype/pr_composite.h: Likewise.
25397         * lib/unictype/pr_currency_symbol.h: Likewise.
25398         * lib/unictype/pr_dash.h: Likewise.
25399         * lib/unictype/pr_decimal_digit.h: Likewise.
25400         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25401         * lib/unictype/pr_deprecated.h: Likewise.
25402         * lib/unictype/pr_diacritic.h: Likewise.
25403         * lib/unictype/pr_extender.h: Likewise.
25404         * lib/unictype/pr_format_control.h: Likewise.
25405         * lib/unictype/pr_grapheme_base.h: Likewise.
25406         * lib/unictype/pr_grapheme_extend.h: Likewise.
25407         * lib/unictype/pr_grapheme_link.h: Likewise.
25408         * lib/unictype/pr_hex_digit.h: Likewise.
25409         * lib/unictype/pr_hyphen.h: Likewise.
25410         * lib/unictype/pr_id_continue.h: Likewise.
25411         * lib/unictype/pr_id_start.h: Likewise.
25412         * lib/unictype/pr_ideographic.h: Likewise.
25413         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25414         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25415         * lib/unictype/pr_ignorable_control.h: Likewise.
25416         * lib/unictype/pr_iso_control.h: Likewise.
25417         * lib/unictype/pr_join_control.h: Likewise.
25418         * lib/unictype/pr_left_of_pair.h: Likewise.
25419         * lib/unictype/pr_line_separator.h: Likewise.
25420         * lib/unictype/pr_logical_order_exception.h: Likewise.
25421         * lib/unictype/pr_lowercase.h: Likewise.
25422         * lib/unictype/pr_math.h: Likewise.
25423         * lib/unictype/pr_non_break.h: Likewise.
25424         * lib/unictype/pr_not_a_character.h: Likewise.
25425         * lib/unictype/pr_numeric.h: Likewise.
25426         * lib/unictype/pr_other_alphabetic.h: Likewise.
25427         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25428         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25429         * lib/unictype/pr_other_id_continue.h: Likewise.
25430         * lib/unictype/pr_other_id_start.h: Likewise.
25431         * lib/unictype/pr_other_lowercase.h: Likewise.
25432         * lib/unictype/pr_other_math.h: Likewise.
25433         * lib/unictype/pr_other_uppercase.h: Likewise.
25434         * lib/unictype/pr_paired_punctuation.h: Likewise.
25435         * lib/unictype/pr_paragraph_separator.h: Likewise.
25436         * lib/unictype/pr_pattern_syntax.h: Likewise.
25437         * lib/unictype/pr_pattern_white_space.h: Likewise.
25438         * lib/unictype/pr_private_use.h: Likewise.
25439         * lib/unictype/pr_punctuation.h: Likewise.
25440         * lib/unictype/pr_quotation_mark.h: Likewise.
25441         * lib/unictype/pr_radical.h: Likewise.
25442         * lib/unictype/pr_sentence_terminal.h: Likewise.
25443         * lib/unictype/pr_soft_dotted.h: Likewise.
25444         * lib/unictype/pr_space.h: Likewise.
25445         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25446         * lib/unictype/pr_titlecase.h: Likewise.
25447         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25448         * lib/unictype/pr_unified_ideograph.h: Likewise.
25449         * lib/unictype/pr_uppercase.h: Likewise.
25450         * lib/unictype/pr_variation_selector.h: Likewise.
25451         * lib/unictype/pr_white_space.h: Likewise.
25452         * lib/unictype/pr_xid_continue.h: Likewise.
25453         * lib/unictype/pr_xid_start.h: Likewise.
25454         * lib/unictype/pr_zero_width.h: Likewise.
25455         * lib/unictype/scripts.h: Likewise.
25456         * lib/unictype/scripts_byname.gperf: Likewise.
25457         * lib/unictype/sy_c_ident.h: Likewise.
25458         * lib/unictype/sy_c_whitespace.h: Likewise.
25459         * lib/unictype/sy_java_ident.h: Likewise.
25460         * lib/unictype/sy_java_whitespace.h: Likewise.
25461
25462         * lib/unictype/Makefile: New file.
25463         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25464         glibc.
25465         * lib/unictype/3level.h: New file, copied from glibc.
25466         * lib/unictype/3levelbit.h: New file.
25467
25468 2007-11-11  Bruno Haible  <bruno@clisp.org>
25469
25470         * modules/gperf: New file.
25471         * modules/iconv_open (Depends-on): Add it.
25472         (Makefile.am): Remove the GPERF definition.
25473
25474 2007-11-11  Bruno Haible  <bruno@clisp.org>
25475
25476         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25477         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25478
25479 2007-11-11  Bruno Haible  <bruno@clisp.org>
25480
25481         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25482         (usage): Remove function.
25483
25484 2007-11-11  Bruno Haible  <bruno@clisp.org>
25485
25486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25487         gl_FUNC_CEILF_LIBS.
25488         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25489         gl_FUNC_CEIL_LIBS.
25490         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25491         gl_FUNC_CEILL_LIBS.
25492         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25493         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25494         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25495
25496 2007-11-11  Bruno Haible  <bruno@clisp.org>
25497
25498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25499         roundf were declared but do not exist on functions.
25500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25501         roundl were declared but do not exist on functions.
25502         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25503         HAVE_FLOORL_AND_CEILL, respectively.
25504         Needed for Sun C on Solaris 10.
25505
25506 2007-11-11  Bruno Haible  <bruno@clisp.org>
25507
25508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25509         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25510         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25511         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25513         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25514         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25515         HAVE_DECL_ROUNDF.
25516         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25517         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25519         of HAVE_DECL_ROUND*.
25520         * modules/math (Makefile.am): Update.
25521
25522 2007-11-10  Bruno Haible  <bruno@clisp.org>
25523
25524         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25525         ptrdiff_t as m4/intl.m4.
25526
25527 2007-11-10  Jim Meyering  <meyering@redhat.com>
25528
25529         Avoid link failure for the argmatch test.
25530         * tests/test-argmatch.c (usage): Define function to avoid a link
25531         failure: argmatch_die requires a usage function.
25532
25533 2007-11-09  Bruno Haible  <bruno@clisp.org>
25534
25535         * doc/functions/snprintf.texi: Mention BeOS deficiency.
25536         * doc/functions/vsnprintf.texi: Likewise.
25537         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25538         with a size argument < 2.
25539
25540 2007-11-09  Bruno Haible  <bruno@clisp.org>
25541
25542         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25543         buffer. Fixes an inefficiency introduced on 2007-11-03.
25544
25545 2007-11-09  Bruno Haible  <bruno@clisp.org>
25546
25547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25548         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25549
25550 2007-11-08  Jim Meyering  <meyering@redhat.com>
25551
25552         Change cache variable name prefix "jm_" to "gl_" everywhere.
25553         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25554         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25555         * m4/uptime.m4: s/gl_/jm_/
25556
25557 2007-11-07  Bruno Haible  <bruno@clisp.org>
25558
25559         Update to GNU gettext 0.17.
25560         * m4/intl.m4: Update to GNU gettext 0.17.
25561         * m4/po.m4: Likewise.
25562         * modules/gettext (Files): Remove m4/ulonglong.m4.
25563         (configure.ac): Require gettext infrastructure from version 0.17.
25564
25565 2007-11-06  Bruno Haible  <bruno@clisp.org>
25566
25567         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25568         symbolic values are not defined in a public header.
25569         * lib/freadable.c (freadable) [QNX]: Likewise.
25570         * lib/freadahead.c (freadahead) [QNX]: Likewise.
25571         * lib/freading.c (freading) [QNX]: Likewise.
25572         * lib/fseterr.c (fseterr) [QNX]: Likewise.
25573         * lib/fwritable.c (fwritable) [QNX]: Likewise.
25574         * lib/fwriting.c (fwriting) [QNX]: Likewise.
25575         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25576         Reported by Alain Magloire.
25577
25578         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25579
25580 2007-11-05  Bruno Haible  <bruno@clisp.org>
25581
25582         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25583         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25584         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25585         Reported by Eric Blake.
25586
25587 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25588             Bruno Haible  <bruno@clisp.org>
25589
25590         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25591         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25592         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25593         (malloc): Undefine also before including <stdlib.h>.
25594         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25595         Needed on OSF/1 4.0.
25596
25597 2007-11-05  Jim Meyering  <meyering@redhat.com>
25598
25599         git-version-gen: sync from coreutils.
25600         * build-aux/git-version-gen: Add comments.
25601         Change the first '-' to '.' in the snapshot version string,
25602         e.g., 6.9-377-08144 -> 6.9.377-08144
25603         Remove first parameter.
25604         Don't declare a version "-dirty" merely because a time
25605         stamp has changed.
25606
25607 2007-11-04  Bruno Haible  <bruno@clisp.org>
25608
25609         * lib/lock.h: Protect all macro definitions containing an 'if'
25610         statement through a "do { ... } while (0)".
25611         * lib/tls.h: Likewise.
25612
25613 2007-11-04  Bruno Haible  <bruno@clisp.org>
25614
25615         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25616
25617 2007-11-04  Bruno Haible  <bruno@clisp.org>
25618
25619         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25620         * modules/fprintf-posix (Depends-on): Add nocrash.
25621         * modules/snprintf-posix (Depends-on): Likewise.
25622         * modules/sprintf-posix (Depends-on): Likewise.
25623         * modules/vasnprintf-posix (Depends-on): Likewise.
25624         * modules/vasprintf-posix (Depends-on): Likewise.
25625         * modules/vfprintf-posix (Depends-on): Likewise.
25626         * modules/vsnprintf-posix (Depends-on): Likewise.
25627         * modules/vsprintf-posix (Depends-on): Likewise.
25628         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25635
25636 2007-11-04  Bruno Haible  <bruno@clisp.org>
25637
25638         * modules/nocrash: New file.
25639         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25640         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25641
25642 2007-11-04  Bruno Haible  <bruno@clisp.org>
25643
25644         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25645         precision handling.
25646         * tests/test-vasprintf-posix.c (test_function): Likewise.
25647         * tests/test-snprintf-posix.h (test_function): Likewise.
25648         * tests/test-sprintf-posix.h (test_function): Likewise.
25649
25650         Fix *printf behaviour for large precisions on mingw and BeOS.
25651         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25652         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25654         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25656         gl_PRINTF_PRECISION and test its result. Invoke
25657         gl_PREREQ_VASNPRINTF_PRECISION.
25658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25659         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25665         * doc/functions/fprintf.texi: Update.
25666         * doc/functions/printf.texi: Update.
25667         * doc/functions/snprintf.texi: Update.
25668         * doc/functions/sprintf.texi: Update.
25669         * doc/functions/vfprintf.texi: Update.
25670         * doc/functions/vprintf.texi: Update.
25671         * doc/functions/vsnprintf.texi: Update.
25672         * doc/functions/vsprintf.texi: Update.
25673
25674 2007-11-04  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25677
25678 2007-11-04  Bruno Haible  <bruno@clisp.org>
25679
25680         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25681         Reported by Sylvain Beucler <beuc@gnu.org>.
25682
25683 2007-11-03  Bruno Haible  <bruno@clisp.org>
25684
25685         * tests/test-fprintf-posix2.sh: New file.
25686         * tests/test-fprintf-posix2.c: New file.
25687         * modules/fprintf-posix-tests (Files): Add them.
25688         (TESTS): Add test-fprintf-posix2.sh.
25689         (configure.ac): Check for getrlimit and setrlimit.
25690         (check_PROGRAMS): Add test-fprintf-posix2.
25691
25692         * tests/test-printf-posix2.sh: New file.
25693         * tests/test-printf-posix2.c: New file.
25694         * modules/printf-posix-tests (Files): Add them.
25695         (TESTS): Add test-printf-posix2.sh.
25696         (configure.ac): Check for getrlimit and setrlimit.
25697         (check_PROGRAMS): Add test-printf-posix2.
25698
25699         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25700         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25701         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25702         (decode_double): New function, copied from decode_long_double.
25703         (scale10_round_decimal_decoded): New function, extracted from
25704         scale10_round_decimal_long_double.
25705         (scale10_round_decimal_long_double): Use it.
25706         (scale10_round_decimal_double): New function.
25707         (floorlog10): New function.
25708         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25710         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25712         gl_PRINTF_ENOMEM and test its result. Invoke
25713         gl_PREREQ_VASNPRINTF_ENOMEM.
25714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25721         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
25722         * modules/snprintf-posix (Depends-on): Likewise.
25723         * modules/sprintf-posix (Depends-on): Likewise.
25724         * modules/vasnprintf-posix (Depends-on): Likewise.
25725         * modules/vasprintf-posix (Depends-on): Likewise.
25726         * modules/vfprintf-posix (Depends-on): Likewise.
25727         * modules/vsnprintf-posix (Depends-on): Likewise.
25728         * modules/vsprintf-posix (Depends-on): Likewise.
25729         * doc/functions/fprintf.texi: Update.
25730         * doc/functions/printf.texi: Update.
25731         * doc/functions/snprintf.texi: Update.
25732         * doc/functions/sprintf.texi: Update.
25733         * doc/functions/vfprintf.texi: Update.
25734         * doc/functions/vprintf.texi: Update.
25735         * doc/functions/vsnprintf.texi: Update.
25736         * doc/functions/vsprintf.texi: Update.
25737
25738 2007-11-03  Bruno Haible  <bruno@clisp.org>
25739
25740         * modules/frexp-nolibm-tests: New file.
25741
25742         * modules/frexp-nolibm: New file.
25743         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
25744
25745 2007-11-03  Bruno Haible  <bruno@clisp.org>
25746
25747         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
25748         value is C99 compliant.
25749         Needed for OSF/1 5.1.
25750
25751 2007-11-03  Bruno Haible  <bruno@clisp.org>
25752
25753         Fix out-of-memory handling of vasnprintf.
25754         * lib/printf-parse.c: Include <errno.h>.
25755         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
25756         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
25757         is already set.
25758
25759 2007-11-02  Eric Blake  <ebb9@byu.net>
25760
25761         Fix tests on cygwin.
25762         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
25763
25764 2007-11-01  Bruno Haible  <bruno@clisp.org>
25765
25766         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
25767         warning.
25768         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
25769         needed for POSIX compatibility.
25770
25771 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25772
25773         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
25774         for compatibility with GNU.
25775
25776 2007-11-01  Bruno Haible  <bruno@clisp.org>
25777
25778         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
25779         (putenv): Renamed from rpl_putenv. Change argument type from
25780         'const char *' to 'char *'.
25781         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
25782         of defining putenv in config.h, just set REPLACE_PUTENV.
25783         * modules/putenv (Depends-on): Add stdlib.
25784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25785         (Include): Use <stdlib.h>.
25786         * lib/stdlib.in.h (putenv): New declaration.
25787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
25788         REPLACE_PUTENV.
25789         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
25790         REPLACE_PUTENV.
25791         Needed for MacOS X 10.5.0.
25792         Reported by Peter O'Gorman <peter@pogma.com>.
25793
25794 2007-11-01  Jim Meyering  <meyering@redhat.com>
25795
25796         Treat an empty date string exactly like "0".
25797         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
25798         if the remaining date string (to be parsed) is empty, use "0".
25799         Reported by Mischa Molhoek and discussed in this thread:
25800         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
25801
25802 2007-10-31  Bruno Haible  <bruno@clisp.org>
25803
25804         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
25805         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
25806         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
25807         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
25808         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
25809         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
25810
25811 2007-10-31  Bruno Haible  <bruno@clisp.org>
25812
25813         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
25814         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
25815         (AC_TYPE_LONG_LONG_INT): Use it.
25816         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
25817         it as well.
25818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
25819         to m4/longlong.m4.
25820         * modules/stdint (Files): Remove m4/ulonglong.m4.
25821         * modules/strtoull (Files): Use m4/longlong.m4 instead of
25822         m4/ulonglong.m4.
25823         * modules/strtoumax (Files): Likewise.
25824
25825 2007-10-30  Bruno Haible  <bruno@clisp.org>
25826
25827         * modules/xvasprintf-posix: New file.
25828         Suggested by Eric Blake.
25829
25830 2007-10-30  Bruno Haible  <bruno@clisp.org>
25831
25832         * modules/xprintf-posix-tests: New file.
25833         * tests/test-xprintf-posix.sh: New file.
25834         * tests/test-xprintf-posix.c: New file.
25835         * tests/test-xfprintf-posix.c: New file.
25836
25837         * modules/xprintf-posix: New file.
25838
25839 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25840
25841         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
25842         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
25843         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
25844
25845 2007-10-29  Bruno Haible  <bruno@clisp.org>
25846
25847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
25848         contain the special marker '_cv_'.
25849         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25850         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25851         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25852         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25853         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25854         Reported by Ralf Wildenhues.
25855
25856 2007-10-29  Bruno Haible  <bruno@clisp.org>
25857
25858         * gnulib-tool (func_import): When --lgpl is not specified, set
25859         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
25860         GPLv3.
25861         Reported by Simon Josefsson.
25862
25863 2007-10-28  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
25866         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
25867         HAVE_DECL_ISFINITE.
25868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
25869         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
25870         HAVE_DECL_ISFINITE.
25871
25872 2007-10-28  Bruno Haible  <bruno@clisp.org>
25873
25874         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
25875         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
25876
25877 2007-10-28  Bruno Haible  <bruno@clisp.org>
25878
25879         Fix link errors with Sun C 5.0 on Solaris 10.
25880         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
25881         function is declared but not present in the compiler's libm.
25882         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25883         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
25884         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
25885         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
25886         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
25887         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
25888         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
25889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
25890         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
25891         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
25892         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
25893         HAVE_DECL_FLOORL.
25894
25895 2007-10-28  Bruno Haible  <bruno@clisp.org>
25896
25897         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
25898         gl_FUNC_FLOORL. Cache the result.
25899         (gl_FUNC_FLOORL): Use it.
25900         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
25901         gl_FUNC_CEILL. Cache the result.
25902         (gl_FUNC_CEILL): Use it.
25903
25904         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
25905         gl_FUNC_FLOOR. Cache the result.
25906         (gl_FUNC_FLOOR): Use it.
25907         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
25908         gl_FUNC_CEIL. Cache the result.
25909         (gl_FUNC_CEIL): Use it.
25910
25911         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
25912         gl_FUNC_FLOORF. Cache the result.
25913         (gl_FUNC_FLOORF): Use it.
25914         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
25915         gl_FUNC_CEILF. Cache the result.
25916         (gl_FUNC_CEILF): Use it.
25917
25918 2007-10-28  Bruno Haible  <bruno@clisp.org>
25919
25920         * gnulib-tool: Allow specifying the LGPL version number through
25921         --lgpl=2 or --lgpl=3.
25922         (func_usage): Document --lgpl with argument.
25923         Handle --lgpl=... arguments.
25924         (func_import): Recognize also gl_LGPL calls with an argument. When
25925         --lgpl=2 is used and the module's license is just LGPL, report an
25926         error. Set sed_transform_lib_file according to the lgpl variable. In
25927         the generated files, use --lgpl or gl_LGPL invocations with argument,
25928         if necessary.
25929         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
25930         an LGPv2+ license.
25931         * doc/gnulib-tool.texi (Modified imports): Update explanation of
25932         gl_LGPL macro.
25933
25934 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25935             Bruno Haible  <bruno@clisp.org>
25936
25937         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
25938         (u16_uctomb_aux): Likewise.
25939         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
25940         !HAVE_INLINE.
25941         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
25942
25943 2007-10-28  Bruno Haible  <bruno@clisp.org>
25944
25945         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
25946         Invoke AM_GETTEXT_OPTION if it exists.
25947         * modules/vasprintf: Likewise.
25948         * modules/verror: Likewise.
25949         * modules/xprintf: Likewise.
25950         * modules/xvasprintf: Likewise.
25951
25952 2007-10-27  Ben Pfaff  <blp@gnu.org>
25953
25954         * lib/math.in.h: Define isfinite macro and prototypes for
25955         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
25956         implementations.
25957         * m4/math_h.m4: New substitutions for isfinite module.
25958         * lib/isfinite.c: New file.
25959         * m4/isfinite.m4: New file.
25960         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
25961         * modules/isfinite: New file.
25962         * modules/isfinite-tests: New file.
25963         * tests/tests-isfinite.c: New file.
25964         * doc/functions/isfinite.texi: Mention isfinite module.
25965         * MODULES.html.sh: Mention new module.
25966
25967 2007-10-27  Ben Pfaff  <blp@gnu.org>
25968
25969         Ralf Wildenhues reported that Tru64 4.0D declares the round
25970         functions but does not have definitions.
25971         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
25972         cannot be found in any library, set the output variable to
25973         "missing" instead of "".
25974         * m4/round.m4: Also use our substitute if we cannot find round in
25975         any library, even if it is declared.
25976         * m4/roundf.m4: Likewise for roundf.
25977         * m4/roundl.m4: Likewise for roundl.
25978         * lib/math.in.h: Undefine roundf, round, roundl before defining
25979         their replacements, to allow for hypothetical systems where these
25980         may be defined as macros but not available in libraries.
25981
25982 2007-10-27  Bruno Haible  <bruno@clisp.org>
25983
25984         * doc/gnulib.texi: Invoke @firstparagraphindent.
25985         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
25986         changes in gnulib.
25987         (Source changes): New section.
25988
25989 2007-10-26  Bruno Haible  <bruno@clisp.org>
25990
25991         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
25992         borrowed from autoconf.
25993
25994 2007-10-26  Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
25997         strerror returned the empty string. Needed on HP-UX 11.00.
25998
25999 2007-10-24  Micah Cowan  <micah@cowan.name>
26000
26001         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26002         * build-aux/bootstrap: Remove support for now-unnecessary option,
26003         --cvs-user, and envvars CVS_USER, CVS_RSH.
26004
26005 2007-10-24  Jim Meyering  <meyering@redhat.com>
26006
26007         Avoid diagnostics from sha1sum when there is no cached checksum.
26008         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26009         if the po.s1 file hasn't been created yet.
26010
26011         * build-aux/bootstrap: Sync from coreutils:
26012         2007-10-24  Jim Meyering  <meyering@redhat.com>
26013         Get gnulib from the git repository, not from an obsolete cvs one.
26014         * build-aux/bootstrap: Suggestion from Micah Cowan.
26015         2007-10-04  Jim Meyering  <jim@meyering.net>
26016         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26017         (update_po_files): Work also when there are no .po files in po/.
26018
26019 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26020
26021         * README: Append ".git" to git and cg examples.
26022         Problem reported by Benoit Sigoure.
26023
26024 2007-10-23  Micah Cowan  <micah@cowan.name>
26025
26026         * users.txt: Add wget.
26027
26028 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26029
26030         Fix linking of some unistdio tests on FreeBSD.
26031         * modules/unistdio/u16-vsnprintf-tests
26032         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26033         * modules/unistdio/u16-vsprintf-tests
26034         (test_u16_vsnprintf1_LDADD): Likewise.
26035         * modules/unistdio/u32-vsnprintf-tests
26036         (test_u32_vsnprintf1_LDADD): Likewise.
26037         * modules/unistdio/u32-vsprintf-tests
26038         (test_u32_vsprintf1_LDADD): Likewise.
26039         * modules/unistdio/u8-vsnprintf-tests
26040         (test_u8_vsnprintf1_LDADD): Likewise.
26041         * modules/unistdio/u8-vsprintf-tests
26042         (test_u8_vsprintf1_LDADD): Likewise.
26043         * modules/unistdio/ulc-vsnprintf-tests
26044         (test_ulc_vsnprintf1_LDADD): Likewise.
26045         * modules/unistdio/ulc-vsprintf-tests
26046         (test_ulc_vsprintf1_LDADD): Likewise.
26047
26048         Fix linking of some uniconv tests on FreeBSD.
26049         * modules/uniconv/u16-conv-from-enc-tests
26050         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26051         * modules/uniconv/u16-conv-to-enc-tests
26052         (test_u16_conv_to_enc_LDADD): Likewise.
26053         * modules/uniconv/u16-strconv-from-enc-tests
26054         (test_u16_strconv_from_enc_LDADD): Likewise.
26055         * modules/uniconv/u16-strconv-to-enc-tests
26056         (test_u16_strconv_to_enc_LDADD): Likewise.
26057         * modules/uniconv/u32-conv-from-enc-tests
26058         (test_u32_conv_from_enc_LDADD): Likewise.
26059         * modules/uniconv/u32-conv-to-enc-tests
26060         (test_u32_conv_to_enc_LDADD): Likewise.
26061         * modules/uniconv/u32-strconv-from-enc-tests
26062         (test_u32_strconv_from_enc_LDADD): Likewise.
26063         * modules/uniconv/u32-strconv-to-enc-tests
26064         (test_u32_strconv_to_enc_LDADD): Likewise.
26065         * modules/uniconv/u8-conv-from-enc-tests
26066         (test_u8_conv_from_enc_LDADD): Likewise.
26067         * modules/uniconv/u8-conv-to-enc-tests
26068         (test_u8_conv_to_enc_LDADD): Likewise.
26069         * modules/uniconv/u8-strconv-from-enc-tests
26070         (test_u8_strconv_from_enc_LDADD): Likewise.
26071         * modules/uniconv/u8-strconv-to-enc-tests
26072         (test_u8_strconv_to_enc_LDADD): Likewise.
26073
26074 2007-10-22  Bruno Haible  <bruno@clisp.org>
26075
26076         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26077         size.
26078
26079 2007-10-22  Eric Blake  <ebb9@byu.net>
26080
26081         Tweak x*printf documentation.
26082         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26083         variable name and comments.
26084         Suggested by Bruno Haible.
26085
26086 2007-10-22  Bruno Haible  <bruno@clisp.org>
26087
26088         * lib/acl.c (copy_acl): Fix file name in comment.
26089
26090 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         Fix Tru64 problem with stdbool.h.
26093         * lib/stdbool.in.h (false, true):
26094         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26095         Don't declare as an enum in this situation; it runs afoul of Tru64.
26096         Problem reported by Steven M. Schweda in
26097         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26098
26099 2007-10-22  Eric Blake  <ebb9@byu.net>
26100
26101         Also wrap vf?printf.
26102         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26103         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26104         (xvprintf, xvfprintf): New functions.
26105
26106 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26107
26108         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26109         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26110
26111         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26112         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26113
26114 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26117         by Bruno Haible.
26118
26119 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26120
26121         * lib/getloadavg.c
26122         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26123         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26124
26125         * tests/test-i-ring.c: Work for C89.
26126
26127 2007-10-22  Bruno Haible  <bruno@clisp.org>
26128
26129         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26130         -1u, in preprocessor expression, so that we don't test for the bug
26131         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26133
26134 2007-10-22  Eric Blake  <ebb9@byu.net>
26135
26136         * tests/test-yesno.sh: Silence stderr during test.
26137
26138 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26139
26140         * modules/crypto/gc-camellia: New file.
26141
26142         * m4/gc-camellia.m4: New file.
26143
26144         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26145
26146         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26147
26148 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26149
26150         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26151         --help to stdout.  Reported by sms@antinode.org (Steven
26152         M. Schweda).
26153
26154 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26155
26156         * users.txt: Fix link to libksba.
26157
26158 2007-10-21  Ben Pfaff  <blp@gnu.org>
26159
26160         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26161         round.c roundf implementation that depends on floorf and ceilf to
26162         be tested unconditionally.
26163
26164 2007-10-21  Ben Pfaff  <blp@gnu.org>
26165
26166         * m4/check-libm-func.m4: Removed.
26167         * m4/check-math-lib.m4: New file.
26168         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26169         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26170         definition and lack of AC_LIBOBJ([roundf]).
26171         * m4/roundl.m4: Ditto, and similarly for roundl.
26172         * modules/round: Reference new m4 file.
26173         * modules/roundf: Ditto.
26174         * modules/roundl: Ditto.
26175         * tests/test-round2.c (main): Use ROUND instead of round.
26176         Bug report from Bruno Haible.
26177
26178 2007-10-21  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26181         context.
26182
26183 2007-10-21  Bruno Haible  <bruno@clisp.org>
26184
26185         * tests/test-wcwidth.c (main): Allow negative result for some control
26186         characters.
26187
26188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26189         Needed on OSF/1 5.1.
26190
26191 2007-10-21  Bruno Haible  <bruno@clisp.org>
26192
26193         * tests/test-floorf1.c: Include isnanf.h.
26194         (main): Use isnanf() instead of isnan().
26195         * tests/test-ceilf1.c: Include isnanf.h.
26196         (main): Use isnanf() instead of isnan().
26197         * tests/test-truncf1.c: Include isnanf.h.
26198         (main): Use isnanf() instead of isnan().
26199         * tests/test-roundf1.c: Include isnanf.h.
26200         (main): Use isnanf() instead of isnan().
26201
26202 2007-10-21  Eric Blake  <ebb9@byu.net>
26203
26204         * users.txt: Update URL for m4.
26205
26206 2007-10-21  Bruno Haible  <bruno@clisp.org>
26207
26208         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26209
26210 2007-10-21  Bruno Haible  <bruno@clisp.org>
26211
26212         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26213         Git's management files if the CVS files are not present.
26214
26215 2007-10-20  Bruno Haible  <bruno@clisp.org>
26216
26217         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26218         gcc-3.4.x.
26219
26220 2007-10-20  Ben Pfaff  <blp@gnu.org>
26221
26222         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26223         implementations.
26224         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26225         * lib/round.c: New file.
26226         * lib/roundf.c: New file.
26227         * lib/roundl.c: New file.
26228         * m4/round.m4: New file.
26229         * m4/roundf.m4: New file.
26230         * m4/roundl.m4: New file.
26231         * m4/check-libm-func-m4: New file.
26232         * modules/math: Replace round, roundf, roundl related @VARS@ in
26233         math.in.h.
26234         * modules/round: New file.
26235         * modules/round-tests: New file.
26236         * modules/roundf: New file.
26237         * modules/roundf-tests: New file.
26238         * modules/roundl: New file.
26239         * modules/roundl-tests: New file.
26240         * tests/test-round1.c: New file.
26241         * tests/test-round2.c: New file.
26242         * tests/test-roundf1.c: New file.
26243         * tests/test-roundf2.c: New file.
26244         * tests/test-roundl.c: New file.
26245         * doc/functions/round.texi: Mention round module.
26246         * doc/functions/roundf.texi: Mention roundf module.
26247         * doc/functions/roundl.texi: Mention roundl module.
26248         * MODULES.html.sh: Mention new modules.
26249         Thanks to Bruno Haible for suggestions.
26250
26251 2007-10-20  Jim Meyering  <meyering@redhat.com>
26252
26253         * lib/xprintf.c: Include <config.h> unconditionally.
26254
26255         Change xprintf's license to GPL.
26256         * modules/xprintf (License): s/LGPL/GPL/, since this module
26257         depends on modules (exit and exitfail) which are GPL.
26258         Suggestion from Bruno Haible.
26259
26260         xprintf fixes.
26261         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26262         Use a clearer diagnostic.
26263         Patch from Bruno Haible.
26264
26265 2007-10-20  Bruno Haible  <bruno@clisp.org>
26266
26267         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26268         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26270
26271 2007-10-20  Bruno Haible  <bruno@clisp.org>
26272
26273         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26274         precision in the comparison result > x - 1 or similar.
26275         * tests/test-ceilf2.c (correct_result_p): Likewise.
26276         * tests/test-truncf2.c (correct_result_p): Likewise.
26277         * tests/test-trunc2.c (correct_result_p): Likewise.
26278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26279
26280 2007-10-20  Bruno Haible  <bruno@clisp.org>
26281
26282         * modules/ceil: New file.
26283         * m4/ceil.m4: New file.
26284         * doc/functions/ceil.texi: Mention the 'ceil' module.
26285
26286 2007-10-20  Bruno Haible  <bruno@clisp.org>
26287
26288         * modules/floor: New file.
26289         * m4/floor.m4: New file.
26290         * doc/functions/floor.texi: Mention the 'floor' module.
26291
26292 2007-10-20  Bruno Haible  <bruno@clisp.org>
26293
26294         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26295         of %a.
26296         * modules/floorf-tests (Depends-on): Likewise.
26297         * modules/truncf-tests (Depends-on): Likewise.
26298         * modules/trunc-tests (Depends-on): Likewise.
26299         Reported by Ben Pfaff.
26300
26301 2007-10-19  Jim Meyering  <meyering@redhat.com>
26302
26303         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26304         Don't bother testing specific errno values.  Just test ferror.
26305
26306         New module: xprintf
26307         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26308
26309 2007-10-19  Bruno Haible  <bruno@clisp.org>
26310
26311         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26312         syntax.
26313         * modules/javaexec (Makefile.am): Likewise.
26314         * modules/relocatable-prog (Makefile.am): Likewise.
26315         Suggested by Jim Meyering.
26316
26317 2007-10-18  Bruno Haible  <bruno@clisp.org>
26318
26319         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26320         Reported by Jim Meyering.
26321
26322 2007-10-18  Eric Blake  <ebb9@byu.net>
26323
26324         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26325
26326 2007-10-18  Bruno Haible  <bruno@clisp.org>
26327
26328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26329         the format string into writable memory. Needed in Fortify conditions.
26330
26331 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26332             Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26335         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26336         * modules/trim (Depends-on): Add mbchar.
26337         (configure.ac): Add gl_FUNC_MBRTOWC.
26338         (Makefile.am): Augment lib_SOURCES.
26339
26340 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26341
26342         Modify glob.c to use fstatat and dirfd, to simplify it.
26343         Suggested by Eric Blake.
26344         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26345         Don't include <stdbool.h>; not used.
26346         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26347         (link_exists_p): Simplify implementation, since we can now assume
26348         dirfd and fstatat.
26349         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26350
26351 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26352
26353         * gnulib-tool (func_get_dependencies): Fix sed script to
26354         match only tests.
26355
26356 2007-10-17  Bruno Haible  <bruno@clisp.org>
26357
26358         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26359         allow locale names without encoding suffix.
26360         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26361         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26362
26363 2007-10-16  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26366         * lib/getgroups.c (getgroups): Likewise.
26367         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26368
26369 2007-10-16  Bruno Haible  <bruno@clisp.org>
26370
26371         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26372         * modules/malloc-posix (License): Likewise.
26373         * modules/realloc-posix (License): Likewise.
26374         * modules/calloc-posix (License): Likewise.
26375         * modules/intprops (License): Change from GPL to LGPL, with
26376         Paul Eggert's approval.
26377
26378 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26379
26380         Merge glibc changes into lib/glob.c.
26381
26382         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26383         2007-10-15 04:59:03 UTC.  Here are the changes:
26384
26385         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26386
26387         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26388
26389         * lib/glob.c: Add some branch prediction throughout.
26390
26391         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26392
26393         [BZ #5103]
26394         * lib/glob.c (glob): Recognize patterns starting \/.
26395
26396         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26397
26398         [BZ #3996]
26399         * lib/glob.c (attribute_hidden): Define if not defined.
26400         (glob): Unescape dirname, filename or username when needed and not
26401         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26402         is NULL.  Handle unescaped [ in pattern without closing ].
26403         Don't pass GLOB_CHECK down to recursive glob for directories.
26404         (__glob_pattern_type): New function.
26405         (__glob_pattern_p): Implement using __glob_pattern_type.
26406         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26407         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26408         Remove unreachable code.
26409
26410         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26411
26412         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26413         explain why there are no leaks.
26414
26415         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26416
26417         [BZ #3253]
26418         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26419         time, rather allocate increasingly bigger arrays of pointers, if
26420         possible with alloca, if too large with malloc.
26421
26422 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26423
26424         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26425         Problem reported by H.Merijn Brand in
26426         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26429
26430 2007-10-15  Bruno Haible  <bruno@clisp.org>
26431
26432         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26433         with explicit rpl_ prefix.
26434         * lib/fopen.c (fopen): Likewise.
26435         * lib/freopen.c (freopen): Likewise.
26436         * lib/iconv.c (iconv): Likewise.
26437         * lib/iconv_close.c (iconv_close): Likewise.
26438
26439 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26440
26441         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26442
26443 2007-10-15  Bruno Haible  <bruno@clisp.org>
26444
26445         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26446         <stddef.h> instead of <stdlib.h> since we only need NULL.
26447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26448
26449 2007-10-15  Bruno Haible  <bruno@clisp.org>
26450
26451         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26452         Replace paragraph talking about LIBOBJS.
26453         Reported by Colin Watson <cjwatson@debian.org>.
26454
26455 2007-10-15  Bruno Haible  <bruno@clisp.org>
26456
26457         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26458         <stdlib.h> before using NULL.
26459
26460 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26461
26462         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26463         Reported by Albert Chin <china@thewrittenword.com>.
26464
26465 2007-10-14  Bruno Haible  <bruno@clisp.org>
26466
26467         * modules/iconv_open-utf-tests: New file.
26468         * tests/test-iconv-utf.c: New file.
26469
26470         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26471         * modules/iconv_open-utf: New file.
26472         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26473         (iconv, iconv_close): New declarations.
26474         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26475         be defined.
26476         (iconv_open): Add special handling of conversion between UTF-8 and
26477         UTF-{16,32}{BE,LE}.
26478         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26479         * lib/iconv_close.c: New file.
26480         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26481         gl_FUNC_ICONV_OPEN.
26482         (gl_FUNC_ICONV_OPEN): Use it.
26483         (gl_FUNC_ICONV_OPEN_UTF): New macro.
26484         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26485         and REPLACE_ICONV_UTF.
26486         * modules/iconv_open (Depends-on): Add c-strcase.
26487         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26488         ICONV_CONST.
26489         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26490
26491 2007-10-13  Albert Chin  <china@thewrittenword.com>
26492             Bruno Haible  <bruno@clisp.org>
26493
26494         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26495         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26496
26497 2007-10-13  Bruno Haible  <bruno@clisp.org>
26498
26499         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26500         defined, use the ISO C99 inline semantics.
26501         * lib/argp.h (ARGP_EI): Likewise.
26502
26503 2007-10-13  Bruno Haible  <bruno@clisp.org>
26504
26505         Handle 'inline' change in gcc 4.3.0.
26506         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26507         argp_fmtstream_write, argp_fmtstream_set_lmargin,
26508         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26509         argp_fmtstream_point): Disable 'extern' declaration if the function
26510         definition is going to be provided inline.
26511         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26512         semantics, not the ISO C99 inline semantics.
26513         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26514         'extern' declaration if the function definition is going to be provided
26515         inline.
26516         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26517         the GNU C inline semantics, not the ISO C99 inline semantics. With
26518         GCC 4.2, avoid a warning.
26519
26520 2007-10-13  Bruno Haible  <bruno@clisp.org>
26521
26522         * lib/freading.h (freading): Enable the use of __freading for
26523         glibc >= 2.7.
26524         * lib/freading.c (freading): Likewise.
26525
26526 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26529         "warning: C99 inline functions are not supported; using GNU89".
26530
26531 2007-10-12  Bruno Haible  <bruno@clisp.org>
26532
26533         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26534         of 2.
26535         * tests/test-ceilf2.c: New file.
26536         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26537
26538         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26539         * modules/ceilf-tests: Update.
26540
26541 2007-10-12  Bruno Haible  <bruno@clisp.org>
26542
26543         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26544         of 2.
26545         * tests/test-floorf2.c: New file.
26546         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26547
26548         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26549         * modules/floorf-tests: Update.
26550
26551 2007-10-12  Bruno Haible  <bruno@clisp.org>
26552
26553         * tests/test-trunc2.c: New file.
26554         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26555
26556         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26557         * modules/trunc-tests: Update.
26558
26559 2007-10-12  Bruno Haible  <bruno@clisp.org>
26560
26561         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26562         of 2.
26563         * tests/test-truncf2.c: New file.
26564         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26565
26566         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26567         * modules/truncf-tests: Update.
26568
26569 2007-10-11  Eric Blake  <ebb9@byu.net>
26570
26571         Don't claim strerror is broken on Interix.
26572         * doc/functions/strerror.texi (strerror): Known broken systems are
26573         now Solaris 8, and not Interix.
26574         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26575         Interix on cross-compile.
26576         Reported by Martin Koeppe in
26577         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26578
26579 2007-10-11  Bruno Haible  <bruno@clisp.org>
26580
26581         * modules/i-ring-tests: New file.
26582         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26583         instead of assert.
26584
26585 2007-10-11  Bruno Haible  <bruno@clisp.org>
26586
26587         * modules/filenamecat-tests: New file.
26588         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26589         * lib/filenamecat.c: Remove test code.
26590
26591 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26592
26593         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26594
26595         * lib/strerror.c: Include <string.h> always, to test interface,
26596         and to remove the need for the dummy.
26597         Include intprops.h to compute width instead of doing it ourselves
26598         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26599         (strerror): Define it to return NULL if there's no system strerror.
26600         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26601         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
26602         ancient pre-strerror Unix systems well any more.  Saying "unknown
26603         system error" is enough.
26604         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26605         simpler strerror.c implementation.
26606         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26607         Simplify the tests to reflect the simpler strerror implementation.
26608         * modules/strerror (Depends-on): Add intprops.
26609
26610 2007-10-09  Eric Blake  <ebb9@byu.net>
26611
26612         Silence test-fpending.
26613         * modules/fpending-tests (Files): Add wrapper script.
26614         * tests/test-fpending.sh: New file.
26615
26616 2007-10-09  Bruno Haible  <bruno@clisp.org>
26617
26618         * MODULES.html.sh (func_module): Don't create a hyperlink for
26619         function names like 'printf_frexp'.
26620         (Misc): Add crc, memxor.
26621         (Characteristics of floating types): New section.
26622         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26623         isnanf-nolibm, signbit, trunc, truncf, truncl.
26624         (Enhancements for ISO C 99 functions): New subsection Input/output.
26625         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26626         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26627         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26628         (Compatibility checks for POSIX:2001 functions): Add clock-time.
26629         (Enhancements for POSIX:2001 functions): Add chdir-long.
26630         (File system functions): Add areadlink, chdir-safer, read-file.
26631         Remove cycle-check.
26632         (File system as inode set): New section.
26633         (Date and time): Add gethrxtime.
26634         (Multithreading): Add openmp.
26635         (Internationalization functions): Add localename.
26636         (Unicode string functions): Add unistr/u*-mbsnlen.
26637         (Support for maintaining and releasing projects): Add git-version-gen.
26638         (Lone files): Remove directories.
26639
26640 2007-10-08  Ben Pfaff  <blp@gnu.org>
26641
26642         * lib/xmalloca.h: Fix typo in comment.
26643
26644 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26645
26646         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26647         when avoiding problems with integer overflow.  Use a portable test
26648         instead.
26649
26650 2007-10-08  Simon Josefsson  <simon@josefsson.org>
26651
26652         * modules/dummy (License): Change to LGPLv2+.
26653         * modules/float (License): Likewise
26654         * modules/realloc (License): Likewise
26655         * modules/stdlib (License): Likewise
26656
26657 2007-10-07  Bruno Haible  <bruno@clisp.org>
26658
26659         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26660         * floor.c (TWO_MANT_DIG): Likewise.
26661         * ceil.c (TWO_MANT_DIG): Likewise.
26662         Reported by Ben Pfaff.
26663
26664 2007-10-07  Bruno Haible  <bruno@clisp.org>
26665
26666         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26667         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26668         * lib/frexp.c (FUNC): Likewise.
26669         * lib/printf-frexp.h (printf_frexp): Likewise.
26670         * lib/printf-frexpl.h (printf_frexpl): Likewise.
26671         * lib/printf-frexp.c (FUNC): Likewise.
26672         Suggested by Jim Meyering.
26673
26674 2007-10-07  Jim Meyering  <meyering@redhat.com>
26675
26676         Make xnanosleep's integer overflow test more robust.
26677         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26678         so that gcc-4.3.0 doesn't optimize away this test for overflow.
26679
26680 2007-10-07  Bruno Haible  <bruno@clisp.org>
26681
26682         * NEWS: Mention the license change.
26683
26684         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26685         abbreviations in the modules files.
26686
26687         Change copyright notice from GPLv2+ to GPLv3+.
26688         * README: Change copyright notice.
26689         * MODULES.html.sh: Likewise.
26690         * build-aux/bootstrap.conf: Likewise.
26691         * build-aux/config.libpath: Likewise.
26692         * build-aux/csharpcomp.sh.in: Likewise.
26693         * build-aux/csharpexec.sh.in: Likewise.
26694         * build-aux/install-reloc: Likewise.
26695         * build-aux/javacomp.sh.in: Likewise.
26696         * build-aux/javaexec.sh.in: Likewise.
26697         * build-aux/ldd.sh.in: Likewise.
26698         * build-aux/reloc-ldflags: Likewise.
26699         * build-aux/relocatable.sh.in: Likewise.
26700         * build-aux/x-to-1.in: Likewise.
26701         * check-module: Likewise.
26702         * config/srclistvars.sh: Likewise.
26703         * gnulib-tool: Likewise.
26704         * lib/acl-internal.h: Likewise.
26705         * lib/acl.c: Likewise.
26706         * lib/acl.h: Likewise.
26707         * lib/acl_entries.c: Likewise.
26708         * lib/areadlink-with-size.c: Likewise.
26709         * lib/areadlink.c: Likewise.
26710         * lib/areadlink.h: Likewise.
26711         * lib/argmatch.c: Likewise.
26712         * lib/argmatch.h: Likewise.
26713         * lib/argp-ba.c: Likewise.
26714         * lib/argp-eexst.c: Likewise.
26715         * lib/argp-fmtstream.c: Likewise.
26716         * lib/argp-fmtstream.h: Likewise.
26717         * lib/argp-fs-xinl.c: Likewise.
26718         * lib/argp-help.c: Likewise.
26719         * lib/argp-namefrob.h: Likewise.
26720         * lib/argp-parse.c: Likewise.
26721         * lib/argp-pin.c: Likewise.
26722         * lib/argp-pv.c: Likewise.
26723         * lib/argp-pvh.c: Likewise.
26724         * lib/argp-xinl.c: Likewise.
26725         * lib/argp.h: Likewise.
26726         * lib/at-func.c: Likewise.
26727         * lib/atanl.c: Likewise.
26728         * lib/backupfile.c: Likewise.
26729         * lib/backupfile.h: Likewise.
26730         * lib/basename.c: Likewise.
26731         * lib/binary-io.h: Likewise.
26732         * lib/byteswap.in.h: Likewise.
26733         * lib/c-stack.c: Likewise.
26734         * lib/c-stack.h: Likewise.
26735         * lib/c-strcasestr.c: Likewise.
26736         * lib/c-strcasestr.h: Likewise.
26737         * lib/c-strstr.c: Likewise.
26738         * lib/c-strstr.h: Likewise.
26739         * lib/c-strtod.c: Likewise.
26740         * lib/calloc.c: Likewise.
26741         * lib/canon-host.c: Likewise.
26742         * lib/canon-host.h: Likewise.
26743         * lib/canonicalize-lgpl.c: Likewise.
26744         * lib/canonicalize.c: Likewise.
26745         * lib/canonicalize.h: Likewise.
26746         * lib/ceil.c: Likewise.
26747         * lib/ceilf.c: Likewise.
26748         * lib/ceill.c: Likewise.
26749         * lib/chdir-long.c: Likewise.
26750         * lib/chdir-long.h: Likewise.
26751         * lib/chdir-safer.c: Likewise.
26752         * lib/chdir-safer.h: Likewise.
26753         * lib/chown.c: Likewise.
26754         * lib/classpath.c: Likewise.
26755         * lib/classpath.h: Likewise.
26756         * lib/clean-temp.c: Likewise.
26757         * lib/clean-temp.h: Likewise.
26758         * lib/cloexec.c: Likewise.
26759         * lib/close-stream.c: Likewise.
26760         * lib/closein.c: Likewise.
26761         * lib/closein.h: Likewise.
26762         * lib/closeout.c: Likewise.
26763         * lib/closeout.h: Likewise.
26764         * lib/concat-filename.c: Likewise.
26765         * lib/copy-file.c: Likewise.
26766         * lib/copy-file.h: Likewise.
26767         * lib/count-one-bits.h: Likewise.
26768         * lib/crc.c: Likewise.
26769         * lib/crc.h: Likewise.
26770         * lib/creat-safer.c: Likewise.
26771         * lib/csharpcomp.c: Likewise.
26772         * lib/csharpcomp.h: Likewise.
26773         * lib/csharpexec.c: Likewise.
26774         * lib/csharpexec.h: Likewise.
26775         * lib/cycle-check.c: Likewise.
26776         * lib/cycle-check.h: Likewise.
26777         * lib/diacrit.c: Likewise.
26778         * lib/diacrit.h: Likewise.
26779         * lib/diffseq.h: Likewise.
26780         * lib/dirchownmod.c: Likewise.
26781         * lib/dirent.in.h: Likewise.
26782         * lib/dirfd.c: Likewise.
26783         * lib/dirfd.h: Likewise.
26784         * lib/dirname.c: Likewise.
26785         * lib/dirname.h: Likewise.
26786         * lib/dummy.c: Likewise.
26787         * lib/dup-safer.c: Likewise.
26788         * lib/dup2.c: Likewise.
26789         * lib/eealloc.h: Likewise.
26790         * lib/error.c: Likewise.
26791         * lib/error.h: Likewise.
26792         * lib/euidaccess.c: Likewise.
26793         * lib/exclude.c: Likewise.
26794         * lib/exclude.h: Likewise.
26795         * lib/execute.c: Likewise.
26796         * lib/execute.h: Likewise.
26797         * lib/exitfail.c: Likewise.
26798         * lib/exitfail.h: Likewise.
26799         * lib/expl.c: Likewise.
26800         * lib/fatal-signal.c: Likewise.
26801         * lib/fatal-signal.h: Likewise.
26802         * lib/fbufmode.c: Likewise.
26803         * lib/fbufmode.h: Likewise.
26804         * lib/fchdir.c: Likewise.
26805         * lib/fchmodat.c: Likewise.
26806         * lib/fchownat.c: Likewise.
26807         * lib/fcntl--.h: Likewise.
26808         * lib/fcntl-safer.h: Likewise.
26809         * lib/fcntl.in.h: Likewise.
26810         * lib/fd-safer.c: Likewise.
26811         * lib/fflush.c: Likewise.
26812         * lib/file-has-acl.c: Likewise.
26813         * lib/file-set.c: Likewise.
26814         * lib/file-type.c: Likewise.
26815         * lib/file-type.h: Likewise.
26816         * lib/fileblocks.c: Likewise.
26817         * lib/filemode.c: Likewise.
26818         * lib/filemode.h: Likewise.
26819         * lib/filename.h: Likewise.
26820         * lib/filenamecat.c: Likewise.
26821         * lib/filenamecat.h: Likewise.
26822         * lib/findprog.c: Likewise.
26823         * lib/findprog.h: Likewise.
26824         * lib/float.in.h: Likewise.
26825         * lib/floor.c: Likewise.
26826         * lib/floorf.c: Likewise.
26827         * lib/floorl.c: Likewise.
26828         * lib/fopen-safer.c: Likewise.
26829         * lib/fopen.c: Likewise.
26830         * lib/fpending.c: Likewise.
26831         * lib/fpending.h: Likewise.
26832         * lib/fprintf.c: Likewise.
26833         * lib/fprintftime.h: Likewise.
26834         * lib/fpucw.h: Likewise.
26835         * lib/fpurge.c: Likewise.
26836         * lib/fpurge.h: Likewise.
26837         * lib/freadable.c: Likewise.
26838         * lib/freadable.h: Likewise.
26839         * lib/freadahead.c: Likewise.
26840         * lib/freadahead.h: Likewise.
26841         * lib/freading.c: Likewise.
26842         * lib/freading.h: Likewise.
26843         * lib/free.c: Likewise.
26844         * lib/freopen.c: Likewise.
26845         * lib/frexp.c: Likewise.
26846         * lib/frexpl.c: Likewise.
26847         * lib/fseek.c: Likewise.
26848         * lib/fseterr.c: Likewise.
26849         * lib/fseterr.h: Likewise.
26850         * lib/fstatat.c: Likewise.
26851         * lib/fstrcmp.c: Likewise.
26852         * lib/fstrcmp.h: Likewise.
26853         * lib/fsusage.c: Likewise.
26854         * lib/fsusage.h: Likewise.
26855         * lib/ftell.c: Likewise.
26856         * lib/ftello.c: Likewise.
26857         * lib/fts-cycle.c: Likewise.
26858         * lib/fts.c: Likewise.
26859         * lib/fts_.h: Likewise.
26860         * lib/full-read.c: Likewise.
26861         * lib/full-read.h: Likewise.
26862         * lib/full-write.c: Likewise.
26863         * lib/full-write.h: Likewise.
26864         * lib/fwritable.c: Likewise.
26865         * lib/fwritable.h: Likewise.
26866         * lib/fwriteerror.c: Likewise.
26867         * lib/fwriteerror.h: Likewise.
26868         * lib/fwriting.c: Likewise.
26869         * lib/fwriting.h: Likewise.
26870         * lib/gcd.c: Likewise.
26871         * lib/gcd.h: Likewise.
26872         * lib/getcwd.c: Likewise.
26873         * lib/getdate.h: Likewise.
26874         * lib/getdate.y: Likewise.
26875         * lib/getdomainname.c: Likewise.
26876         * lib/getdomainname.h: Likewise.
26877         * lib/getgroups.c: Likewise.
26878         * lib/gethostname.c: Likewise.
26879         * lib/gethrxtime.c: Likewise.
26880         * lib/gethrxtime.h: Likewise.
26881         * lib/getloadavg.c: Likewise.
26882         * lib/getndelim2.c: Likewise.
26883         * lib/getndelim2.h: Likewise.
26884         * lib/getnline.c: Likewise.
26885         * lib/getnline.h: Likewise.
26886         * lib/getopt.c: Likewise.
26887         * lib/getopt.in.h: Likewise.
26888         * lib/getopt1.c: Likewise.
26889         * lib/getopt_int.h: Likewise.
26890         * lib/getpagesize.h: Likewise.
26891         * lib/getsubopt.c: Likewise.
26892         * lib/gettime.c: Likewise.
26893         * lib/getugroups.c: Likewise.
26894         * lib/getugroups.h: Likewise.
26895         * lib/getusershell.c: Likewise.
26896         * lib/gl_anyavltree_list1.h: Likewise.
26897         * lib/gl_anyavltree_list2.h: Likewise.
26898         * lib/gl_anyhash_list1.h: Likewise.
26899         * lib/gl_anyhash_list2.h: Likewise.
26900         * lib/gl_anylinked_list1.h: Likewise.
26901         * lib/gl_anylinked_list2.h: Likewise.
26902         * lib/gl_anyrbtree_list1.h: Likewise.
26903         * lib/gl_anyrbtree_list2.h: Likewise.
26904         * lib/gl_anytree_list1.h: Likewise.
26905         * lib/gl_anytree_list2.h: Likewise.
26906         * lib/gl_anytree_oset.h: Likewise.
26907         * lib/gl_anytreehash_list1.h: Likewise.
26908         * lib/gl_anytreehash_list2.h: Likewise.
26909         * lib/gl_array_list.c: Likewise.
26910         * lib/gl_array_list.h: Likewise.
26911         * lib/gl_array_oset.c: Likewise.
26912         * lib/gl_array_oset.h: Likewise.
26913         * lib/gl_avltree_list.c: Likewise.
26914         * lib/gl_avltree_list.h: Likewise.
26915         * lib/gl_avltree_oset.c: Likewise.
26916         * lib/gl_avltree_oset.h: Likewise.
26917         * lib/gl_avltreehash_list.c: Likewise.
26918         * lib/gl_avltreehash_list.h: Likewise.
26919         * lib/gl_carray_list.c: Likewise.
26920         * lib/gl_carray_list.h: Likewise.
26921         * lib/gl_linked_list.c: Likewise.
26922         * lib/gl_linked_list.h: Likewise.
26923         * lib/gl_linkedhash_list.c: Likewise.
26924         * lib/gl_linkedhash_list.h: Likewise.
26925         * lib/gl_list.c: Likewise.
26926         * lib/gl_list.h: Likewise.
26927         * lib/gl_oset.c: Likewise.
26928         * lib/gl_oset.h: Likewise.
26929         * lib/gl_rbtree_list.c: Likewise.
26930         * lib/gl_rbtree_list.h: Likewise.
26931         * lib/gl_rbtree_oset.c: Likewise.
26932         * lib/gl_rbtree_oset.h: Likewise.
26933         * lib/gl_rbtreehash_list.c: Likewise.
26934         * lib/gl_rbtreehash_list.h: Likewise.
26935         * lib/gl_sublist.c: Likewise.
26936         * lib/gl_sublist.h: Likewise.
26937         * lib/group-member.c: Likewise.
26938         * lib/group-member.h: Likewise.
26939         * lib/hard-locale.c: Likewise.
26940         * lib/hard-locale.h: Likewise.
26941         * lib/hash-pjw.c: Likewise.
26942         * lib/hash-pjw.h: Likewise.
26943         * lib/hash-triple.c: Likewise.
26944         * lib/hash.c: Likewise.
26945         * lib/hash.h: Likewise.
26946         * lib/human.c: Likewise.
26947         * lib/human.h: Likewise.
26948         * lib/i-ring.c: Likewise.
26949         * lib/i-ring.h: Likewise.
26950         * lib/idcache.c: Likewise.
26951         * lib/imaxabs.c: Likewise.
26952         * lib/imaxdiv.c: Likewise.
26953         * lib/inet_pton.c: Likewise.
26954         * lib/inet_pton.h: Likewise.
26955         * lib/intprops.h: Likewise.
26956         * lib/inttostr.c: Likewise.
26957         * lib/inttostr.h: Likewise.
26958         * lib/inttypes.in.h: Likewise.
26959         * lib/isapipe.c: Likewise.
26960         * lib/isdir.c: Likewise.
26961         * lib/isnan.c: Likewise.
26962         * lib/isnan.h: Likewise.
26963         * lib/isnanf.c: Likewise.
26964         * lib/isnanf.h: Likewise.
26965         * lib/isnanl-nolibm.h: Likewise.
26966         * lib/isnanl.c: Likewise.
26967         * lib/isnanl.h: Likewise.
26968         * lib/javacomp.c: Likewise.
26969         * lib/javacomp.h: Likewise.
26970         * lib/javaexec.c: Likewise.
26971         * lib/javaexec.h: Likewise.
26972         * lib/javaversion.c: Likewise.
26973         * lib/javaversion.h: Likewise.
26974         * lib/javaversion.java: Likewise.
26975         * lib/lbrkprop.h: Likewise.
26976         * lib/lchmod.h: Likewise.
26977         * lib/lchown.c: Likewise.
26978         * lib/ldexpl.c: Likewise.
26979         * lib/linebreak.c: Likewise.
26980         * lib/linebreak.h: Likewise.
26981         * lib/linebuffer.c: Likewise.
26982         * lib/linebuffer.h: Likewise.
26983         * lib/locale.in.h: Likewise.
26984         * lib/logl.c: Likewise.
26985         * lib/long-options.c: Likewise.
26986         * lib/long-options.h: Likewise.
26987         * lib/lstat.c: Likewise.
26988         * lib/lstat.h: Likewise.
26989         * lib/math.in.h: Likewise.
26990         * lib/mbchar.c: Likewise.
26991         * lib/mbchar.h: Likewise.
26992         * lib/mbfile.h: Likewise.
26993         * lib/mbiter.h: Likewise.
26994         * lib/mbscasecmp.c: Likewise.
26995         * lib/mbscasestr.c: Likewise.
26996         * lib/mbschr.c: Likewise.
26997         * lib/mbscspn.c: Likewise.
26998         * lib/mbslen.c: Likewise.
26999         * lib/mbsncasecmp.c: Likewise.
27000         * lib/mbsnlen.c: Likewise.
27001         * lib/mbspbrk.c: Likewise.
27002         * lib/mbspcasecmp.c: Likewise.
27003         * lib/mbsrchr.c: Likewise.
27004         * lib/mbssep.c: Likewise.
27005         * lib/mbsspn.c: Likewise.
27006         * lib/mbsstr.c: Likewise.
27007         * lib/mbstok_r.c: Likewise.
27008         * lib/mbswidth.c: Likewise.
27009         * lib/mbswidth.h: Likewise.
27010         * lib/mbuiter.h: Likewise.
27011         * lib/memcasecmp.c: Likewise.
27012         * lib/memcasecmp.h: Likewise.
27013         * lib/memchr.c: Likewise.
27014         * lib/memcmp.c: Likewise.
27015         * lib/memcoll.c: Likewise.
27016         * lib/memcoll.h: Likewise.
27017         * lib/memcpy.c: Likewise.
27018         * lib/memrchr.c: Likewise.
27019         * lib/mkancesdirs.c: Likewise.
27020         * lib/mkdir-p.c: Likewise.
27021         * lib/mkdir-p.h: Likewise.
27022         * lib/mkdir.c: Likewise.
27023         * lib/mkdirat.c: Likewise.
27024         * lib/mkdtemp.c: Likewise.
27025         * lib/mkstemp-safer.c: Likewise.
27026         * lib/mkstemp.c: Likewise.
27027         * lib/modechange.c: Likewise.
27028         * lib/modechange.h: Likewise.
27029         * lib/mountlist.c: Likewise.
27030         * lib/mountlist.h: Likewise.
27031         * lib/mpsort.c: Likewise.
27032         * lib/nanosleep.c: Likewise.
27033         * lib/obstack.c: Likewise.
27034         * lib/obstack.h: Likewise.
27035         * lib/open-safer.c: Likewise.
27036         * lib/open.c: Likewise.
27037         * lib/openat-die.c: Likewise.
27038         * lib/openat-priv.h: Likewise.
27039         * lib/openat-proc.c: Likewise.
27040         * lib/openat.c: Likewise.
27041         * lib/openat.h: Likewise.
27042         * lib/pagealign_alloc.c: Likewise.
27043         * lib/pagealign_alloc.h: Likewise.
27044         * lib/physmem.c: Likewise.
27045         * lib/physmem.h: Likewise.
27046         * lib/pipe-safer.c: Likewise.
27047         * lib/pipe.c: Likewise.
27048         * lib/pipe.h: Likewise.
27049         * lib/posixtm.c: Likewise.
27050         * lib/posixtm.h: Likewise.
27051         * lib/posixver.c: Likewise.
27052         * lib/printf-frexp.c: Likewise.
27053         * lib/printf-frexp.h: Likewise.
27054         * lib/printf-frexpl.c: Likewise.
27055         * lib/printf-frexpl.h: Likewise.
27056         * lib/printf.c: Likewise.
27057         * lib/progname.c: Likewise.
27058         * lib/progname.h: Likewise.
27059         * lib/progreloc.c: Likewise.
27060         * lib/putenv.c: Likewise.
27061         * lib/quote.c: Likewise.
27062         * lib/quote.h: Likewise.
27063         * lib/quotearg.c: Likewise.
27064         * lib/quotearg.h: Likewise.
27065         * lib/raise.c: Likewise.
27066         * lib/readline.c: Likewise.
27067         * lib/readline.h: Likewise.
27068         * lib/readlink.c: Likewise.
27069         * lib/readtokens.c: Likewise.
27070         * lib/readtokens.h: Likewise.
27071         * lib/readtokens0.c: Likewise.
27072         * lib/readtokens0.h: Likewise.
27073         * lib/readutmp.c: Likewise.
27074         * lib/readutmp.h: Likewise.
27075         * lib/realloc.c: Likewise.
27076         * lib/relocwrapper.c: Likewise.
27077         * lib/rename-dest-slash.c: Likewise.
27078         * lib/rename.c: Likewise.
27079         * lib/rmdir.c: Likewise.
27080         * lib/rpmatch.c: Likewise.
27081         * lib/safe-read.c: Likewise.
27082         * lib/safe-read.h: Likewise.
27083         * lib/safe-write.c: Likewise.
27084         * lib/safe-write.h: Likewise.
27085         * lib/same-inode.h: Likewise.
27086         * lib/same.c: Likewise.
27087         * lib/same.h: Likewise.
27088         * lib/save-cwd.c: Likewise.
27089         * lib/save-cwd.h: Likewise.
27090         * lib/savedir.c: Likewise.
27091         * lib/savedir.h: Likewise.
27092         * lib/savewd.c: Likewise.
27093         * lib/savewd.h: Likewise.
27094         * lib/search.in.h: Likewise.
27095         * lib/setenv.c: Likewise.
27096         * lib/setenv.h: Likewise.
27097         * lib/settime.c: Likewise.
27098         * lib/sh-quote.c: Likewise.
27099         * lib/sh-quote.h: Likewise.
27100         * lib/sig2str.c: Likewise.
27101         * lib/sig2str.h: Likewise.
27102         * lib/signal.in.h: Likewise.
27103         * lib/signbitd.c: Likewise.
27104         * lib/signbitf.c: Likewise.
27105         * lib/signbitl.c: Likewise.
27106         * lib/sigprocmask.c: Likewise.
27107         * lib/sincosl.c: Likewise.
27108         * lib/sleep.c: Likewise.
27109         * lib/sprintf.c: Likewise.
27110         * lib/sqrtl.c: Likewise.
27111         * lib/stat-time.h: Likewise.
27112         * lib/stdio--.h: Likewise.
27113         * lib/stdio-safer.h: Likewise.
27114         * lib/stdlib--.h: Likewise.
27115         * lib/stdlib-safer.h: Likewise.
27116         * lib/stdlib.in.h: Likewise.
27117         * lib/stpcpy.c: Likewise.
27118         * lib/stpncpy.c: Likewise.
27119         * lib/strchrnul.c: Likewise.
27120         * lib/strcspn.c: Likewise.
27121         * lib/strerror.c: Likewise.
27122         * lib/strftime.c: Likewise.
27123         * lib/strftime.h: Likewise.
27124         * lib/striconveh.c: Likewise.
27125         * lib/striconveh.h: Likewise.
27126         * lib/striconveha.c: Likewise.
27127         * lib/striconveha.h: Likewise.
27128         * lib/stripslash.c: Likewise.
27129         * lib/strnlen1.c: Likewise.
27130         * lib/strnlen1.h: Likewise.
27131         * lib/strtod.c: Likewise.
27132         * lib/strtoimax.c: Likewise.
27133         * lib/strtok_r.c: Likewise.
27134         * lib/strtol.c: Likewise.
27135         * lib/strtoll.c: Likewise.
27136         * lib/strtoul.c: Likewise.
27137         * lib/strtoull.c: Likewise.
27138         * lib/sysexits.in.h: Likewise.
27139         * lib/tempname.c: Likewise.
27140         * lib/tempname.h: Likewise.
27141         * lib/timespec.h: Likewise.
27142         * lib/tls.c: Likewise.
27143         * lib/tls.h: Likewise.
27144         * lib/tmpdir.c: Likewise.
27145         * lib/tmpdir.h: Likewise.
27146         * lib/tmpfile-safer.c: Likewise.
27147         * lib/tmpfile.c: Likewise.
27148         * lib/trigl.c: Likewise.
27149         * lib/trigl.h: Likewise.
27150         * lib/trim.c: Likewise.
27151         * lib/trim.h: Likewise.
27152         * lib/trunc.c: Likewise.
27153         * lib/truncf.c: Likewise.
27154         * lib/truncl.c: Likewise.
27155         * lib/tsearch.c: Likewise.
27156         * lib/unicodeio.c: Likewise.
27157         * lib/unicodeio.h: Likewise.
27158         * lib/unistd--.h: Likewise.
27159         * lib/unistd-safer.h: Likewise.
27160         * lib/unistdio/ulc-fprintf.c: Likewise.
27161         * lib/unistdio/ulc-vfprintf.c: Likewise.
27162         * lib/unlinkdir.c: Likewise.
27163         * lib/unlinkdir.h: Likewise.
27164         * lib/unlocked-io.h: Likewise.
27165         * lib/unsetenv.c: Likewise.
27166         * lib/userspec.c: Likewise.
27167         * lib/utime.c: Likewise.
27168         * lib/utimecmp.c: Likewise.
27169         * lib/utimecmp.h: Likewise.
27170         * lib/utimens.c: Likewise.
27171         * lib/verify.h: Likewise.
27172         * lib/verror.c: Likewise.
27173         * lib/verror.h: Likewise.
27174         * lib/version-etc-fsf.c: Likewise.
27175         * lib/version-etc.c: Likewise.
27176         * lib/version-etc.h: Likewise.
27177         * lib/vfprintf.c: Likewise.
27178         * lib/vprintf.c: Likewise.
27179         * lib/vsprintf.c: Likewise.
27180         * lib/w32spawn.h: Likewise.
27181         * lib/wait-process.c: Likewise.
27182         * lib/wait-process.h: Likewise.
27183         * lib/wcwidth.c: Likewise.
27184         * lib/write-any-file.c: Likewise.
27185         * lib/xalloc-die.c: Likewise.
27186         * lib/xalloc.h: Likewise.
27187         * lib/xasprintf.c: Likewise.
27188         * lib/xgetcwd.c: Likewise.
27189         * lib/xgetcwd.h: Likewise.
27190         * lib/xgetdomainname.c: Likewise.
27191         * lib/xgetdomainname.h: Likewise.
27192         * lib/xgethostname.c: Likewise.
27193         * lib/xmalloc.c: Likewise.
27194         * lib/xmalloca.c: Likewise.
27195         * lib/xmalloca.h: Likewise.
27196         * lib/xmemcoll.c: Likewise.
27197         * lib/xnanosleep.c: Likewise.
27198         * lib/xreadlink.c: Likewise.
27199         * lib/xreadlink.h: Likewise.
27200         * lib/xsetenv.c: Likewise.
27201         * lib/xsetenv.h: Likewise.
27202         * lib/xstriconv.c: Likewise.
27203         * lib/xstriconv.h: Likewise.
27204         * lib/xstrndup.c: Likewise.
27205         * lib/xstrndup.h: Likewise.
27206         * lib/xstrtod.c: Likewise.
27207         * lib/xstrtod.h: Likewise.
27208         * lib/xstrtol-error.c: Likewise.
27209         * lib/xstrtol.c: Likewise.
27210         * lib/xstrtol.h: Likewise.
27211         * lib/xtime.h: Likewise.
27212         * lib/xvasprintf.c: Likewise.
27213         * lib/xvasprintf.h: Likewise.
27214         * lib/yesno.c: Likewise.
27215         * lib/yesno.h: Likewise.
27216         * posix-modules: Likewise.
27217         * tests/test-alloca-opt.c: Likewise.
27218         * tests/test-arcfour.c: Likewise.
27219         * tests/test-arctwo.c: Likewise.
27220         * tests/test-argmatch.c: Likewise.
27221         * tests/test-argp-2.sh: Likewise.
27222         * tests/test-argp.c: Likewise.
27223         * tests/test-arpa_inet.c: Likewise.
27224         * tests/test-array_list.c: Likewise.
27225         * tests/test-array_oset.c: Likewise.
27226         * tests/test-atexit.c: Likewise.
27227         * tests/test-avltree_list.c: Likewise.
27228         * tests/test-avltree_oset.c: Likewise.
27229         * tests/test-avltreehash_list.c: Likewise.
27230         * tests/test-base64.c: Likewise.
27231         * tests/test-binary-io.c: Likewise.
27232         * tests/test-byteswap.c: Likewise.
27233         * tests/test-c-ctype.c: Likewise.
27234         * tests/test-c-strcasecmp.c: Likewise.
27235         * tests/test-c-strcasestr.c: Likewise.
27236         * tests/test-c-strncasecmp.c: Likewise.
27237         * tests/test-c-strstr.c: Likewise.
27238         * tests/test-canonicalize-lgpl.c: Likewise.
27239         * tests/test-canonicalize.c: Likewise.
27240         * tests/test-carray_list.c: Likewise.
27241         * tests/test-ceilf.c: Likewise.
27242         * tests/test-ceill.c: Likewise.
27243         * tests/test-count-one-bits.c: Likewise.
27244         * tests/test-crc.c: Likewise.
27245         * tests/test-dirname.c: Likewise.
27246         * tests/test-fbufmode.c: Likewise.
27247         * tests/test-fcntl.c: Likewise.
27248         * tests/test-fflush.c: Likewise.
27249         * tests/test-floorf.c: Likewise.
27250         * tests/test-floorl.c: Likewise.
27251         * tests/test-fopen.c: Likewise.
27252         * tests/test-fprintf-posix.c: Likewise.
27253         * tests/test-fprintf-posix.h: Likewise.
27254         * tests/test-fpurge.c: Likewise.
27255         * tests/test-freadable.c: Likewise.
27256         * tests/test-freadahead.c: Likewise.
27257         * tests/test-freading.c: Likewise.
27258         * tests/test-freopen.c: Likewise.
27259         * tests/test-frexp.c: Likewise.
27260         * tests/test-frexpl.c: Likewise.
27261         * tests/test-fseek.c: Likewise.
27262         * tests/test-fseeko.c: Likewise.
27263         * tests/test-fseterr.c: Likewise.
27264         * tests/test-fstrcmp.c: Likewise.
27265         * tests/test-ftell.c: Likewise.
27266         * tests/test-ftello.c: Likewise.
27267         * tests/test-fwritable.c: Likewise.
27268         * tests/test-fwriting.c: Likewise.
27269         * tests/test-getaddrinfo.c: Likewise.
27270         * tests/test-getpass.c: Likewise.
27271         * tests/test-gettimeofday.c: Likewise.
27272         * tests/test-hmac-md5.c: Likewise.
27273         * tests/test-hmac-sha1.c: Likewise.
27274         * tests/test-iconv.c: Likewise.
27275         * tests/test-iconvme.c: Likewise.
27276         * tests/test-inttypes.c: Likewise.
27277         * tests/test-isnan.c: Likewise.
27278         * tests/test-isnanf.c: Likewise.
27279         * tests/test-isnanl-nolibm.c: Likewise.
27280         * tests/test-isnanl.c: Likewise.
27281         * tests/test-isnanl.h: Likewise.
27282         * tests/test-ldexpl.c: Likewise.
27283         * tests/test-linked_list.c: Likewise.
27284         * tests/test-linkedhash_list.c: Likewise.
27285         * tests/test-locale.c: Likewise.
27286         * tests/test-localename.c: Likewise.
27287         * tests/test-lock.c: Likewise.
27288         * tests/test-lseek.c: Likewise.
27289         * tests/test-malloca.c: Likewise.
27290         * tests/test-math.c: Likewise.
27291         * tests/test-mbscasecmp.c: Likewise.
27292         * tests/test-mbscasestr1.c: Likewise.
27293         * tests/test-mbscasestr2.c: Likewise.
27294         * tests/test-mbscasestr3.c: Likewise.
27295         * tests/test-mbscasestr4.c: Likewise.
27296         * tests/test-mbschr.c: Likewise.
27297         * tests/test-mbscspn.c: Likewise.
27298         * tests/test-mbsncasecmp.c: Likewise.
27299         * tests/test-mbspbrk.c: Likewise.
27300         * tests/test-mbspcasecmp.c: Likewise.
27301         * tests/test-mbsrchr.c: Likewise.
27302         * tests/test-mbsspn.c: Likewise.
27303         * tests/test-mbsstr1.c: Likewise.
27304         * tests/test-mbsstr2.c: Likewise.
27305         * tests/test-mbsstr3.c: Likewise.
27306         * tests/test-md5.c: Likewise.
27307         * tests/test-memmem.c: Likewise.
27308         * tests/test-netinet_in.c: Likewise.
27309         * tests/test-open.c: Likewise.
27310         * tests/test-printf-frexp.c: Likewise.
27311         * tests/test-printf-frexpl.c: Likewise.
27312         * tests/test-printf-posix.c: Likewise.
27313         * tests/test-printf-posix.h: Likewise.
27314         * tests/test-rbtree_list.c: Likewise.
27315         * tests/test-rbtree_oset.c: Likewise.
27316         * tests/test-rbtreehash_list.c: Likewise.
27317         * tests/test-read-file.c: Likewise.
27318         * tests/test-rijndael.c: Likewise.
27319         * tests/test-search.c: Likewise.
27320         * tests/test-signbit.c: Likewise.
27321         * tests/test-sleep.c: Likewise.
27322         * tests/test-snprintf-posix.c: Likewise.
27323         * tests/test-snprintf-posix.h: Likewise.
27324         * tests/test-snprintf.c: Likewise.
27325         * tests/test-sprintf-posix.c: Likewise.
27326         * tests/test-sprintf-posix.h: Likewise.
27327         * tests/test-stat-time.c: Likewise.
27328         * tests/test-stdbool.c: Likewise.
27329         * tests/test-stdint.c: Likewise.
27330         * tests/test-stdio.c: Likewise.
27331         * tests/test-stdlib.c: Likewise.
27332         * tests/test-stpncpy.c: Likewise.
27333         * tests/test-strcasestr.c: Likewise.
27334         * tests/test-striconv.c: Likewise.
27335         * tests/test-striconveh.c: Likewise.
27336         * tests/test-striconveha.c: Likewise.
27337         * tests/test-string.c: Likewise.
27338         * tests/test-sys_select.c: Likewise.
27339         * tests/test-sys_socket.c: Likewise.
27340         * tests/test-sys_stat.c: Likewise.
27341         * tests/test-sys_time.c: Likewise.
27342         * tests/test-sysexits.c: Likewise.
27343         * tests/test-time.c: Likewise.
27344         * tests/test-tls.c: Likewise.
27345         * tests/test-trunc.c: Likewise.
27346         * tests/test-truncf.c: Likewise.
27347         * tests/test-truncl.c: Likewise.
27348         * tests/test-unistd.c: Likewise.
27349         * tests/test-vasnprintf-posix.c: Likewise.
27350         * tests/test-vasnprintf-posix2.c: Likewise.
27351         * tests/test-vasnprintf.c: Likewise.
27352         * tests/test-vasprintf-posix.c: Likewise.
27353         * tests/test-vasprintf.c: Likewise.
27354         * tests/test-verify.c: Likewise.
27355         * tests/test-vfprintf-posix.c: Likewise.
27356         * tests/test-vprintf-posix.c: Likewise.
27357         * tests/test-vsnprintf-posix.c: Likewise.
27358         * tests/test-vsnprintf.c: Likewise.
27359         * tests/test-vsprintf-posix.c: Likewise.
27360         * tests/test-wchar.c: Likewise.
27361         * tests/test-wctype.c: Likewise.
27362         * tests/test-wcwidth.c: Likewise.
27363         * tests/test-xstrtol.c: Likewise.
27364         * tests/test-xvasprintf.c: Likewise.
27365         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27366         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27367         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27368         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27369         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27370         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27371         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27372         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27373         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27374         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27377         * tests/uniname/test-uninames.c: Likewise.
27378         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27379         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27380         * tests/unistdio/test-u16-printf1.h: Likewise.
27381         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27382         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27383         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27384         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27385         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27386         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27387         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27388         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27389         * tests/unistdio/test-u32-printf1.h: Likewise.
27390         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27391         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27392         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27393         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27394         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27395         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27396         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27397         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27398         * tests/unistdio/test-u8-printf1.h: Likewise.
27399         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27400         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27401         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27402         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27403         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27404         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27405         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27406         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27407         * tests/unistdio/test-ulc-printf1.h: Likewise.
27408         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27409         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27410         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27411         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27412         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27413         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27414         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27415         * tests/uniwidth/test-u16-width.c: Likewise.
27416         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27417         * tests/uniwidth/test-u32-width.c: Likewise.
27418         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27419         * tests/uniwidth/test-u8-width.c: Likewise.
27420         * tests/uniwidth/test-uc_width.c: Likewise.
27421         * config/srclist-update: Likewise.
27422         (fixlicense): Update to GPLv3+.
27423
27424         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27425         * tests/test-tsearch.c: Change copyright notice.
27426
27427         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27428         * lib/c-strcaseeq.h: Change copyright notice.
27429         * lib/streq.h: Likewise.
27430         * lib/uniconv.h: Likewise.
27431         * lib/uniconv/u-conv-from-enc.h: Likewise.
27432         * lib/uniconv/u-conv-to-enc.h: Likewise.
27433         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27434         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27435         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27436         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27437         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27438         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27439         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27440         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27441         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27442         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27443         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27444         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27445         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27446         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27447         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27448         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27449         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27450         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27451         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27452         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27453         * lib/uniname.h: Likewise.
27454         * lib/uniname/uniname.c: Likewise.
27455         * lib/unistdio.h: Likewise.
27456         * lib/unistdio/u-asnprintf.h: Likewise.
27457         * lib/unistdio/u-asprintf.h: Likewise.
27458         * lib/unistdio/u-printf-args.c: Likewise.
27459         * lib/unistdio/u-printf-args.h: Likewise.
27460         * lib/unistdio/u-printf-parse.h: Likewise.
27461         * lib/unistdio/u-snprintf.h: Likewise.
27462         * lib/unistdio/u-sprintf.h: Likewise.
27463         * lib/unistdio/u-vasprintf.h: Likewise.
27464         * lib/unistdio/u-vsnprintf.h: Likewise.
27465         * lib/unistdio/u-vsprintf.h: Likewise.
27466         * lib/unistdio/u16-asnprintf.c: Likewise.
27467         * lib/unistdio/u16-asprintf.c: Likewise.
27468         * lib/unistdio/u16-printf-parse.c: Likewise.
27469         * lib/unistdio/u16-snprintf.c: Likewise.
27470         * lib/unistdio/u16-sprintf.c: Likewise.
27471         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27472         * lib/unistdio/u16-u16-asprintf.c: Likewise.
27473         * lib/unistdio/u16-u16-snprintf.c: Likewise.
27474         * lib/unistdio/u16-u16-sprintf.c: Likewise.
27475         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27476         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27477         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27478         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27479         * lib/unistdio/u16-vasnprintf.c: Likewise.
27480         * lib/unistdio/u16-vasprintf.c: Likewise.
27481         * lib/unistdio/u16-vsnprintf.c: Likewise.
27482         * lib/unistdio/u16-vsprintf.c: Likewise.
27483         * lib/unistdio/u32-asnprintf.c: Likewise.
27484         * lib/unistdio/u32-asprintf.c: Likewise.
27485         * lib/unistdio/u32-printf-parse.c: Likewise.
27486         * lib/unistdio/u32-snprintf.c: Likewise.
27487         * lib/unistdio/u32-sprintf.c: Likewise.
27488         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27489         * lib/unistdio/u32-u32-asprintf.c: Likewise.
27490         * lib/unistdio/u32-u32-snprintf.c: Likewise.
27491         * lib/unistdio/u32-u32-sprintf.c: Likewise.
27492         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27493         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27494         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27495         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27496         * lib/unistdio/u32-vasnprintf.c: Likewise.
27497         * lib/unistdio/u32-vasprintf.c: Likewise.
27498         * lib/unistdio/u32-vsnprintf.c: Likewise.
27499         * lib/unistdio/u32-vsprintf.c: Likewise.
27500         * lib/unistdio/u8-asnprintf.c: Likewise.
27501         * lib/unistdio/u8-asprintf.c: Likewise.
27502         * lib/unistdio/u8-printf-parse.c: Likewise.
27503         * lib/unistdio/u8-snprintf.c: Likewise.
27504         * lib/unistdio/u8-sprintf.c: Likewise.
27505         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27506         * lib/unistdio/u8-u8-asprintf.c: Likewise.
27507         * lib/unistdio/u8-u8-snprintf.c: Likewise.
27508         * lib/unistdio/u8-u8-sprintf.c: Likewise.
27509         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27510         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27511         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27512         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27513         * lib/unistdio/u8-vasnprintf.c: Likewise.
27514         * lib/unistdio/u8-vasprintf.c: Likewise.
27515         * lib/unistdio/u8-vsnprintf.c: Likewise.
27516         * lib/unistdio/u8-vsprintf.c: Likewise.
27517         * lib/unistdio/ulc-asnprintf.c: Likewise.
27518         * lib/unistdio/ulc-asprintf.c: Likewise.
27519         * lib/unistdio/ulc-printf-parse.c: Likewise.
27520         * lib/unistdio/ulc-snprintf.c: Likewise.
27521         * lib/unistdio/ulc-sprintf.c: Likewise.
27522         * lib/unistdio/ulc-vasnprintf.c: Likewise.
27523         * lib/unistdio/ulc-vasprintf.c: Likewise.
27524         * lib/unistdio/ulc-vsnprintf.c: Likewise.
27525         * lib/unistdio/ulc-vsprintf.c: Likewise.
27526         * lib/unistr.h: Likewise.
27527         * lib/unistr/u-cpy-alloc.h: Likewise.
27528         * lib/unistr/u-cpy.h: Likewise.
27529         * lib/unistr/u-endswith.h: Likewise.
27530         * lib/unistr/u-move.h: Likewise.
27531         * lib/unistr/u-set.h: Likewise.
27532         * lib/unistr/u-startswith.h: Likewise.
27533         * lib/unistr/u-stpcpy.h: Likewise.
27534         * lib/unistr/u-stpncpy.h: Likewise.
27535         * lib/unistr/u-strcat.h: Likewise.
27536         * lib/unistr/u-strcpy.h: Likewise.
27537         * lib/unistr/u-strcspn.h: Likewise.
27538         * lib/unistr/u-strdup.h: Likewise.
27539         * lib/unistr/u-strlen.h: Likewise.
27540         * lib/unistr/u-strncat.h: Likewise.
27541         * lib/unistr/u-strncpy.h: Likewise.
27542         * lib/unistr/u-strnlen.h: Likewise.
27543         * lib/unistr/u-strpbrk.h: Likewise.
27544         * lib/unistr/u-strspn.h: Likewise.
27545         * lib/unistr/u-strstr.h: Likewise.
27546         * lib/unistr/u-strtok.h: Likewise.
27547         * lib/unistr/u16-check.c: Likewise.
27548         * lib/unistr/u16-chr.c: Likewise.
27549         * lib/unistr/u16-cmp.c: Likewise.
27550         * lib/unistr/u16-cpy-alloc.c: Likewise.
27551         * lib/unistr/u16-cpy.c: Likewise.
27552         * lib/unistr/u16-endswith.c: Likewise.
27553         * lib/unistr/u16-mblen.c: Likewise.
27554         * lib/unistr/u16-mbsnlen.c: Likewise.
27555         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27556         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27557         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27558         * lib/unistr/u16-mbtouc.c: Likewise.
27559         * lib/unistr/u16-mbtoucr.c: Likewise.
27560         * lib/unistr/u16-move.c: Likewise.
27561         * lib/unistr/u16-next.c: Likewise.
27562         * lib/unistr/u16-prev.c: Likewise.
27563         * lib/unistr/u16-set.c: Likewise.
27564         * lib/unistr/u16-startswith.c: Likewise.
27565         * lib/unistr/u16-stpcpy.c: Likewise.
27566         * lib/unistr/u16-stpncpy.c: Likewise.
27567         * lib/unistr/u16-strcat.c: Likewise.
27568         * lib/unistr/u16-strchr.c: Likewise.
27569         * lib/unistr/u16-strcmp.c: Likewise.
27570         * lib/unistr/u16-strcpy.c: Likewise.
27571         * lib/unistr/u16-strcspn.c: Likewise.
27572         * lib/unistr/u16-strdup.c: Likewise.
27573         * lib/unistr/u16-strlen.c: Likewise.
27574         * lib/unistr/u16-strmblen.c: Likewise.
27575         * lib/unistr/u16-strmbtouc.c: Likewise.
27576         * lib/unistr/u16-strncat.c: Likewise.
27577         * lib/unistr/u16-strncmp.c: Likewise.
27578         * lib/unistr/u16-strncpy.c: Likewise.
27579         * lib/unistr/u16-strnlen.c: Likewise.
27580         * lib/unistr/u16-strpbrk.c: Likewise.
27581         * lib/unistr/u16-strrchr.c: Likewise.
27582         * lib/unistr/u16-strspn.c: Likewise.
27583         * lib/unistr/u16-strstr.c: Likewise.
27584         * lib/unistr/u16-strtok.c: Likewise.
27585         * lib/unistr/u16-to-u32.c: Likewise.
27586         * lib/unistr/u16-to-u8.c: Likewise.
27587         * lib/unistr/u16-uctomb-aux.c: Likewise.
27588         * lib/unistr/u16-uctomb.c: Likewise.
27589         * lib/unistr/u32-check.c: Likewise.
27590         * lib/unistr/u32-chr.c: Likewise.
27591         * lib/unistr/u32-cmp.c: Likewise.
27592         * lib/unistr/u32-cpy-alloc.c: Likewise.
27593         * lib/unistr/u32-cpy.c: Likewise.
27594         * lib/unistr/u32-endswith.c: Likewise.
27595         * lib/unistr/u32-mblen.c: Likewise.
27596         * lib/unistr/u32-mbsnlen.c: Likewise.
27597         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27598         * lib/unistr/u32-mbtouc.c: Likewise.
27599         * lib/unistr/u32-mbtoucr.c: Likewise.
27600         * lib/unistr/u32-move.c: Likewise.
27601         * lib/unistr/u32-next.c: Likewise.
27602         * lib/unistr/u32-prev.c: Likewise.
27603         * lib/unistr/u32-set.c: Likewise.
27604         * lib/unistr/u32-startswith.c: Likewise.
27605         * lib/unistr/u32-stpcpy.c: Likewise.
27606         * lib/unistr/u32-stpncpy.c: Likewise.
27607         * lib/unistr/u32-strcat.c: Likewise.
27608         * lib/unistr/u32-strchr.c: Likewise.
27609         * lib/unistr/u32-strcmp.c: Likewise.
27610         * lib/unistr/u32-strcpy.c: Likewise.
27611         * lib/unistr/u32-strcspn.c: Likewise.
27612         * lib/unistr/u32-strdup.c: Likewise.
27613         * lib/unistr/u32-strlen.c: Likewise.
27614         * lib/unistr/u32-strmblen.c: Likewise.
27615         * lib/unistr/u32-strmbtouc.c: Likewise.
27616         * lib/unistr/u32-strncat.c: Likewise.
27617         * lib/unistr/u32-strncmp.c: Likewise.
27618         * lib/unistr/u32-strncpy.c: Likewise.
27619         * lib/unistr/u32-strnlen.c: Likewise.
27620         * lib/unistr/u32-strpbrk.c: Likewise.
27621         * lib/unistr/u32-strrchr.c: Likewise.
27622         * lib/unistr/u32-strspn.c: Likewise.
27623         * lib/unistr/u32-strstr.c: Likewise.
27624         * lib/unistr/u32-strtok.c: Likewise.
27625         * lib/unistr/u32-to-u16.c: Likewise.
27626         * lib/unistr/u32-to-u8.c: Likewise.
27627         * lib/unistr/u32-uctomb.c: Likewise.
27628         * lib/unistr/u8-check.c: Likewise.
27629         * lib/unistr/u8-chr.c: Likewise.
27630         * lib/unistr/u8-cmp.c: Likewise.
27631         * lib/unistr/u8-cpy-alloc.c: Likewise.
27632         * lib/unistr/u8-cpy.c: Likewise.
27633         * lib/unistr/u8-endswith.c: Likewise.
27634         * lib/unistr/u8-mblen.c: Likewise.
27635         * lib/unistr/u8-mbsnlen.c: Likewise.
27636         * lib/unistr/u8-mbtouc-aux.c: Likewise.
27637         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27638         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27639         * lib/unistr/u8-mbtouc.c: Likewise.
27640         * lib/unistr/u8-mbtoucr.c: Likewise.
27641         * lib/unistr/u8-move.c: Likewise.
27642         * lib/unistr/u8-next.c: Likewise.
27643         * lib/unistr/u8-prev.c: Likewise.
27644         * lib/unistr/u8-set.c: Likewise.
27645         * lib/unistr/u8-startswith.c: Likewise.
27646         * lib/unistr/u8-stpcpy.c: Likewise.
27647         * lib/unistr/u8-stpncpy.c: Likewise.
27648         * lib/unistr/u8-strcat.c: Likewise.
27649         * lib/unistr/u8-strchr.c: Likewise.
27650         * lib/unistr/u8-strcmp.c: Likewise.
27651         * lib/unistr/u8-strcpy.c: Likewise.
27652         * lib/unistr/u8-strcspn.c: Likewise.
27653         * lib/unistr/u8-strdup.c: Likewise.
27654         * lib/unistr/u8-strlen.c: Likewise.
27655         * lib/unistr/u8-strmblen.c: Likewise.
27656         * lib/unistr/u8-strmbtouc.c: Likewise.
27657         * lib/unistr/u8-strncat.c: Likewise.
27658         * lib/unistr/u8-strncmp.c: Likewise.
27659         * lib/unistr/u8-strncpy.c: Likewise.
27660         * lib/unistr/u8-strnlen.c: Likewise.
27661         * lib/unistr/u8-strpbrk.c: Likewise.
27662         * lib/unistr/u8-strrchr.c: Likewise.
27663         * lib/unistr/u8-strspn.c: Likewise.
27664         * lib/unistr/u8-strstr.c: Likewise.
27665         * lib/unistr/u8-strtok.c: Likewise.
27666         * lib/unistr/u8-to-u16.c: Likewise.
27667         * lib/unistr/u8-to-u32.c: Likewise.
27668         * lib/unistr/u8-uctomb-aux.c: Likewise.
27669         * lib/unistr/u8-uctomb.c: Likewise.
27670         * lib/unitypes.h: Likewise.
27671         * lib/uniwidth.h: Likewise.
27672         * lib/uniwidth/cjk.h: Likewise.
27673         * lib/uniwidth/u16-strwidth.c: Likewise.
27674         * lib/uniwidth/u16-width.c: Likewise.
27675         * lib/uniwidth/u32-strwidth.c: Likewise.
27676         * lib/uniwidth/u32-width.c: Likewise.
27677         * lib/uniwidth/u8-strwidth.c: Likewise.
27678         * lib/uniwidth/u8-width.c: Likewise.
27679         * lib/uniwidth/width.c: Likewise.
27680
27681 2007-10-07  Bruno Haible  <bruno@clisp.org>
27682
27683         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27684         The file is still under LGPL (see modules/inttypes).
27685
27686 2007-10-06  Bruno Haible  <bruno@clisp.org>
27687
27688         * modules/trunc (Dependencies): Add 'extensions'.
27689         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27690         Reported by Ben Pfaff <blp@gnu.org>.
27691
27692 2007-10-06  Bruno Haible  <bruno@clisp.org>
27693
27694         * modules/freopen-tests: New file.
27695         * tests/test-freopen.c: New file.
27696
27697         * modules/fopen-tests: New file.
27698         * tests/test-fopen.c: New file.
27699
27700         * modules/fopen: New file.
27701         * lib/fopen.c: New file.
27702         * m4/fopen.m4: New file.
27703         * modules/freopen: New file.
27704         * lib/freopen.c: New file.
27705         * m4/freopen.m4: New file.
27706         * lib/stdio.in.h (fopen, freopen): New declarations.
27707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27708         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27709         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27710         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27711         * doc/functions/fopen.texi: Mention the 'fopen' module.
27712         * doc/functions/freopen.texi: Mention the 'freopen' module.
27713
27714 2007-10-06  Bruno Haible  <bruno@clisp.org>
27715
27716         * modules/open-tests: New file.
27717         * tests/test-open.c: New file.
27718
27719         * modules/open: New file.
27720         * lib/open.c: New file.
27721         * m4/open.m4: New file.
27722         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
27723         lib/open.c does.
27724         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
27725         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
27726         macros.
27727         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
27728         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
27729         REPLACE_OPEN.
27730         * doc/functions/open.texi: Mention the 'open' module.
27731
27732 2007-10-04  Bruno Haible  <bruno@clisp.org>
27733
27734         * modules/ceill-tests: New file.
27735         * tests/test-ceill.c: New file.
27736
27737         * modules/ceill: New file.
27738         * lib/ceill.c: Replace entire file.
27739         * m4/ceill.m4: New file.
27740         * lib/math.in.h (ceill): Replace declaration.
27741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
27742         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
27743         * doc/functions/ceill.texi: Mention the 'ceill' module.
27744         * modules/mathl (Files): Remove lib/ceill.c.
27745         (Depends-on): Add ceill.
27746
27747 2007-10-04  Bruno Haible  <bruno@clisp.org>
27748
27749         * modules/ceilf-tests: New file.
27750         * tests/test-ceilf.c: New file.
27751
27752         * modules/ceilf: New file.
27753         * lib/ceil.c: New file.
27754         * lib/ceilf.c: New file.
27755         * m4/ceilf.m4: New file.
27756         * lib/math.in.h (ceilf): New declaration.
27757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
27758         HAVE_DECL_CEILF.
27759         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
27760         HAVE_DECL_CEILF.
27761         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
27762
27763 2007-10-04  Bruno Haible  <bruno@clisp.org>
27764
27765         * modules/floorl-tests: New file.
27766         * tests/test-floorl.c: New file.
27767
27768         * modules/floorl: New file.
27769         * lib/floorl.c: Replace entire file.
27770         * m4/floorl.m4: New file.
27771         * lib/math.in.h (floorl): Replace declaration.
27772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
27773         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
27774         * doc/functions/floorl.texi: Mention the 'floorl' module.
27775         * modules/mathl (Files): Remove lib/floorl.c.
27776         (Depends-on): Add floorl.
27777
27778 2007-10-04  Bruno Haible  <bruno@clisp.org>
27779
27780         * modules/floorf-tests: New file.
27781         * tests/test-floorf.c: New file.
27782
27783         * modules/floorf: New file.
27784         * lib/floor.c: New file.
27785         * lib/floorf.c: New file.
27786         * m4/floorf.m4: New file.
27787         * lib/math.in.h (floorf): New declaration.
27788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
27789         HAVE_DECL_FLOORF.
27790         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
27791         HAVE_DECL_FLOORF.
27792         * doc/functions/floorf.texi: Mention the 'floorf' module.
27793
27794 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
27795             Bruno Haible  <bruno@clisp.org>
27796
27797         Advertise for the Git server instead of the CVS server.
27798         * doc/gnulib-intro.texi (Steady Development): Mention the Git
27799         repository instead of the CVS one.
27800         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
27801         about all VCS systems generically.
27802         * doc/gnulib.texi (Introduction): Capitalize `Git'.
27803
27804 2007-10-04  Bruno Haible  <bruno@clisp.org>
27805
27806         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
27807         means.
27808         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
27809
27810 2007-10-04  Bruno Haible  <bruno@clisp.org>
27811
27812         * modules/truncl-tests: New file.
27813         * tests/test-truncl.c: New file.
27814
27815         * modules/truncl: New file.
27816         * lib/truncl.c: New file.
27817         * m4/truncl.m4: New file.
27818         * lib/math.in.h (truncl): New declaration.
27819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
27820         HAVE_DECL_TRUNCL.
27821         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
27822         HAVE_DECL_TRUNCL.
27823         * doc/functions/truncl.texi: Mention the 'truncl' module.
27824
27825 2007-10-04  Bruno Haible  <bruno@clisp.org>
27826
27827         * modules/truncf-tests: New file.
27828         * tests/test-truncf.c: New file.
27829
27830         * modules/truncf: New file.
27831         * lib/trunc.c: Make paramerizable through USE_* macros.
27832         * lib/truncf.c: New file.
27833         * m4/truncf.m4: New file.
27834         * lib/math.in.h (truncf): New declaration.
27835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
27836         HAVE_DECL_TRUNCF.
27837         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
27838         HAVE_DECL_TRUNCF.
27839         * doc/functions/truncf.texi: Mention the 'truncf' module.
27840
27841 2007-10-03  Bruno Haible  <bruno@clisp.org>
27842
27843         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27844         augmentation also for tests modules.
27845         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
27846         * modules/atexit-tests (Makefile.am): Likewise.
27847         * modules/binary-io-tests (Makefile.am): Likewise.
27848         * modules/c-strcase-tests (Makefile.am): Likewise.
27849         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
27850         * modules/canonicalize-tests (Makefile.am): Likewise.
27851         * modules/closein-tests (Makefile.am): Likewise.
27852         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27853         * modules/freadahead-tests (Makefile.am): Likewise.
27854         * modules/fseek-tests (Makefile.am): Likewise.
27855         * modules/fseeko-tests (Makefile.am): Likewise.
27856         * modules/ftell-tests (Makefile.am): Likewise.
27857         * modules/ftello-tests (Makefile.am): Likewise.
27858         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
27859         * modules/isnanl-tests (Makefile.am): Likewise.
27860         * modules/lseek-tests (Makefile.am): Likewise.
27861         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27862         * modules/mbscasestr-tests (Makefile.am): Likewise.
27863         * modules/mbschr-tests (Makefile.am): Likewise.
27864         * modules/mbscspn-tests (Makefile.am): Likewise.
27865         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27866         * modules/mbspbrk-tests (Makefile.am): Likewise.
27867         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27868         * modules/mbsrchr-tests (Makefile.am): Likewise.
27869         * modules/mbsspn-tests (Makefile.am): Likewise.
27870         * modules/mbsstr-tests (Makefile.am): Likewise.
27871         * modules/printf-posix-tests (Makefile.am): Likewise.
27872         * modules/snprintf-posix-tests (Makefile.am): Likewise.
27873         * modules/sprintf-posix-tests (Makefile.am): Likewise.
27874         * modules/tsearch-tests (Makefile.am): Likewise.
27875         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27876         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27877         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27878         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27879         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27880         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27881         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27882         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27883         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
27884         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
27885         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27886         * modules/xstrtol-tests (Makefile.am): Likewise.
27887         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27888         * modules/yesno-tests (Makefile.am): Likewise.
27889
27890 2007-10-03  Bruno Haible  <bruno@clisp.org>
27891
27892         * modules/trunc-tests: New file.
27893         * tests/test-trunc.c: New file.
27894
27895         * modules/trunc: New file.
27896         * lib/trunc.c: New file.
27897         * m4/trunc.m4: New file.
27898         * lib/math.in.h (trunc): New declaration.
27899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
27900         HAVE_DECL_TRUNC.
27901         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
27902         HAVE_DECL_TRUNC.
27903         * doc/functions/trunc.texi: Mention the 'trunc' module.
27904
27905 2007-10-03  Bruno Haible  <bruno@clisp.org>
27906
27907         * tests/test-fpending.c: New file, mostly copied
27908         from coreutils/lib/t-fpending.c.
27909         * modules/fpending-tests: New file.
27910
27911 2007-10-03  Bruno Haible  <bruno@clisp.org>
27912
27913         Port the stdio extensions to QNX (untested).
27914         * lib/fseterr.c (fseterr): Add support for QNX.
27915         * lib/fbufmode.c (fbufmode): Likewise.
27916         * lib/freadable.c (freadable): Likewise.
27917         * lib/fwritable.c (fwritable): Likewise.
27918         * lib/freading.c (freading): Likewise.
27919         * lib/fwriting.c (fwriting): Likewise.
27920         * lib/freadahead.c (freadahed): Likewise.
27921         * lib/fpurge.c (fpurge): Likewise.
27922         * lib/fseeko.c (rpl_fseeko): Likewise.
27923
27924 2007-10-03  Bruno Haible  <bruno@clisp.org>
27925             Jim Meyering  <jim@meyering.net>
27926             Eric Blake  <ebb9@byu.net>
27927
27928         * doc/relocatable.texi: Use @command instead of @program.
27929
27930 2007-10-02  Jim Meyering  <jim@meyering.net>
27931
27932         Perform one more "_.h" -> ".in.h" substitution.
27933         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
27934         instead of unistd_.h here, too.
27935
27936 2007-10-01  Bruno Haible  <bruno@clisp.org>
27937
27938         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
27939         Needed for the alloca-opt module.
27940
27941 2007-09-30  Bruno Haible  <bruno@clisp.org>
27942
27943         * lib/alloca.in.h: Renamed from lib/alloca_.h.
27944         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
27945         alloca_.h.
27946         * lib/argz.in.h: Renamed from lib/argz_.h.
27947         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
27948         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
27949         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
27950         byteswap_.h.
27951         * lib/dirent.in.h: Renamed from lib/dirent_.h.
27952         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
27953         dirent_.h.
27954         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
27955         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
27956         fcntl_.h.
27957         * lib/float.in.h: Renamed from lib/float_.h.
27958         * modules/float (Files, Makefile.am): Use float.in.h instead of
27959         float_.h.
27960         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
27961         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
27962         fnmatch_.h.
27963         * lib/getopt.in.h: Renamed from lib/getopt_.h.
27964         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
27965         getopt_.h.
27966         * lib/glob.in.h: Renamed from lib/glob_.h.
27967         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
27968         * lib/iconv.in.h: Renamed from lib/iconv_.h.
27969         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
27970         iconv_.h.
27971         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
27972         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
27973         inttypes_.h.
27974         * lib/locale.in.h: Renamed from lib/locale_.h.
27975         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
27976         locale_.h.
27977         * lib/math.in.h: Renamed from lib/math_.h.
27978         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
27979         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
27980         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
27981         of netinet_in_.h. Add dependency.
27982         * lib/poll.in.h: Renamed from lib/poll_.h.
27983         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
27984         * lib/search.in.h: Renamed from lib/search_.h.
27985         * modules/search (Files, Makefile.am): Use search.in.h instead of
27986         search_.h.
27987         * lib/signal.in.h: Renamed from lib/signal_.h.
27988         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
27989         _signal.h.
27990         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
27991         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
27992         stdbool_.h.
27993         * lib/stdint.in.h: Renamed from lib/stdint_.h.
27994         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
27995         stdint_.h.
27996         * lib/stdio.in.h: Renamed from lib/stdio_.h.
27997         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
27998         stdio_.h.
27999         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28000         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28001         stdlib_.h.
28002         * lib/string.in.h: Renamed from lib/string_.h.
28003         * modules/string (Files, Makefile.am): Use string.in.h instead of
28004         string_.h.
28005         * doc/gnulib-tool.texi (Initial import): Update.
28006         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28007         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28008         of sys_select_.h. Add dependency.
28009         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28010         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28011         of sys_socket_.h.
28012         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28013         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28014         sys_stat_.h.
28015         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28016         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28017         sys_time_.h.
28018         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28019         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28020         sysexits_.h.
28021         * lib/time.in.h: Renamed from lib/time_.h.
28022         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28023         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28024         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28025         unistd_.h.
28026         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28027         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28028         wchar_.h.
28029         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28030         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28031         wctype_.h.
28032         * build-aux/bootstrap (slurp): Update.
28033         * lib/.cppi-disable: Update.
28034
28035 2007-09-30  Bruno Haible  <bruno@clisp.org>
28036
28037         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28038         Needed on BeOS.
28039
28040 2007-09-30  Bruno Haible  <bruno@clisp.org>
28041
28042         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28043
28044 2007-09-29  Bruno Haible  <bruno@clisp.org>
28045
28046         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28047
28048 2007-09-29  Bruno Haible  <bruno@clisp.org>
28049
28050         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28051         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28052         * build-aux/install-reloc: Compile also areadlink.c.
28053         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28054
28055 2007-09-29  Bruno Haible  <bruno@clisp.org>
28056
28057         * gnulib-tool (func_emit_initmacro_done): Indentation.
28058
28059 2007-09-29  Bruno Haible  <bruno@clisp.org>
28060
28061         * README: Add CVS checkout update instructions.
28062         Info from Bob Proulx <bob@proulx.com>.
28063
28064 2007-09-28  Eric Blake  <ebb9@byu.net>
28065
28066         Provide move-if-change.
28067         * build-aux/move-if-change: New file, based on best practice
28068         rather than any canonical upstream location.
28069
28070 2007-09-28  Jim Meyering  <jim@meyering.net>
28071
28072         Fix canonicalize loop-detection corner case.
28073         Do not attempt to stat the symlink values stored via seen_triple.
28074         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28075         on linux-2.6.18, (but not 2.6.22).
28076         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28077         triple_compare.  The former compares dev,ino,filename, while the latter
28078         would actually stat dirname(filename) when dev and ino were equal.
28079         * lib/hash-triple.c: Install <string.h>.
28080         (STREQ): Define.
28081         (triple_compare_ino_str): New function.
28082         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28083
28084 2007-09-28  Eric Blake  <ebb9@byu.net>
28085
28086         Enforce that AC_REPLACE_FUNCS files exist.
28087         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28088         override check for typos.
28089
28090         Fix test-closein on Solaris 10.
28091         * tests/test-closein.c (main): Don't assume stdin can be inherited
28092         closed on all systems.
28093         * tests/test-closein.sh: Likewise.
28094         Reported by Piotr Tarnowski.
28095
28096 2007-09-28  Jim Meyering  <jim@meyering.net>
28097
28098         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28099
28100 2007-09-27  Jim Meyering  <jim@meyering.net>
28101
28102         canonicalize: Avoid a false-positive cycle failure.
28103         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28104         Sort.  Remove cycle-check.
28105         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28106         not cycle-check.h.
28107         (seen_triple): New function.
28108         (canonicalize_filename_mode): Use it instead of cycle-check.
28109         * tests/test-canonicalize.c: Add a test for this bug.
28110         * tests/test-canonicalize.sh: Set up and run the test.
28111
28112         New module, file-set, from coreutils.
28113         * modules/file-set: Define it.
28114         * lib/file-set.c, lib/file-set.h: Implement.
28115
28116         New module, hash-triple, from coreutils.
28117         * modules/hash-triple: Define it.
28118         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28119
28120 2007-09-25  Eric Blake  <ebb9@byu.net>
28121
28122         Fix strerror on Interix.
28123         * lib/string_.h (strerror): Declare replacement.
28124         * doc/functions/strerror.texi (strerror): Document the Interix
28125         shortcoming.
28126         * modules/string (Makefile.am): Support new hooks.
28127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28128         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28129         gl_FUNC_STRERROR_SEPARATE.
28130         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28131         * lib/strerror.c (rpl_strerror): Provide replacement.
28132         * modules/strerror (Depends-on): Add string.
28133         (configure.ac): Detect use of module.
28134         * tests/test-strerror.c: New file.
28135         * modules/strerror-tests: New test module.
28136         * modules/argp (Depends-on): Add strerror.
28137         * modules/error (Depends-on): Likewise.
28138         Reported by Martin Koeppe.
28139
28140 2007-09-24  Bruno Haible  <bruno@clisp.org>
28141
28142         * README: Update git instructions.
28143
28144 2007-09-24  Eric Blake  <ebb9@byu.net>
28145
28146         Revert fpending breakage from 2007-09-08.
28147         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28148         __fpending.c.
28149
28150 2007-09-24  Jim Meyering  <jim@meyering.net>
28151
28152         filenamecat.c: Add a test.
28153         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28154         showing how the function works when DIR is the empty string.
28155
28156 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28157
28158         * tests/test-canonicalize.sh: Turn on executable bit.
28159
28160 2007-09-19  Eric Blake  <ebb9@byu.net>
28161
28162         * README: Update CVS instructions.
28163
28164 2007-09-18  Bruno Haible  <bruno@clisp.org>
28165
28166         * modules/areadlink: New file.
28167         * lib/areadlink.h (areadlink): New declaration.
28168         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28169
28170 2007-09-17  Jim Meyering  <jim@meyering.net>
28171
28172         * lib/savewd.c (ESTALE) [!defined]: Define.
28173         Reported to be required on Interix by Martin Koeppe.
28174
28175 2007-09-17  Bruno Haible  <bruno@clisp.org>
28176
28177         * gnulib-tool (func_version): Use $version.
28178
28179 2007-09-16  Bruno Haible  <bruno@clisp.org>
28180
28181         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28182         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28183         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28184         Reported by Greg Schafer <gschafer@zip.com.au>.
28185
28186 2007-09-15  Bruno Haible  <bruno@clisp.org>
28187
28188         * gnulib-tool (sed): Try a little harder to make bash understand the
28189         alias.
28190         Reported by Bruce Korb <bruce.korb@gmail.com>.
28191
28192 2007-09-13  Eric Blake  <ebb9@byu.net>
28193
28194         * ChangeLog: Remove conflict markers.
28195
28196 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28197
28198         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28199         Reported by Bruno Haible <bruno@clisp.org>.
28200
28201 2007-09-12  Bruno Haible  <bruno@clisp.org>
28202
28203         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28204         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28205         is not defined.
28206
28207 2007-09-12  Eric Blake  <ebb9@byu.net>
28208
28209         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28211         Autoconf definition.
28212         * modules/euidaccess (Depends-on): Add extensions, for
28213         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28214         * modules/fnmatch (Depends-on): Likewise.
28215         * modules/getaddrinfo (Depends-on): Likewise.
28216         * modules/getdelim (Depends-on): Likewise.
28217         * modules/getline (Depends-on): Likewise.
28218         * modules/getsubopt (Depends-on): Likewise.
28219         * modules/gettext (Depends-on): Likewise.
28220         * modules/group-member (Depends-on): Likewise.
28221         * modules/mbchar (Depends-on): Likewise.
28222         * modules/memmem (Depends-on): Likewise.
28223         * modules/mempcpy (Depends-on): Likewise.
28224         * modules/memrchr (Depends-on): Likewise.
28225         * modules/pagealign_alloc (Depends-on): Likewise.
28226         * modules/readutmp (Depends-on): Likewise.
28227         * modules/stpcpy (Depends-on): Likewise.
28228         * modules/stpncpy (Depends-on): Likewise.
28229         * modules/strchrnul (Depends-on): Likewise.
28230         * modules/strndup (Depends-on): Likewise.
28231         * modules/strsep (Depends-on): Likewise.
28232         * modules/strverscmp (Depends-on): Likewise.
28233         * modules/vasprintf (Depends-on): Likewise.
28234         * modules/wcwidth (Depends-on): Likewise.
28235         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28236         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28237         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28238         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28240         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28241         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28242         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28243         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28244         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28247         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28249         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28250         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28251         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28252         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28254         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28256         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28257         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28258         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28259         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28261         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28262         so that lock.m4 can be used in gettext without extensions module.
28263
28264 2007-09-11  Bruno Haible  <bruno@clisp.org>
28265
28266         * m4/isc-posix.m4: Remove file.
28267         Suggested by Eric Blake.
28268
28269 2007-09-11  Eric Blake  <ebb9@byu.net>
28270
28271         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28272
28273 2007-09-10  Bruno Haible  <bruno@clisp.org>
28274
28275         * posix-modules: Fix typo in error message.
28276         Reported by Matt <mkraai@beckman.com>.
28277
28278 2007-09-09  Bruno Haible  <bruno@clisp.org>
28279
28280         * doc/functions/getdelim.texi: Update list of platforms lacking the
28281         function.
28282         * doc/functions/getline.texi: Likewise.
28283
28284 2007-09-09  Jim Meyering  <jim@meyering.net>
28285
28286         * lib/hash.c (hash_initialize): Detect calloc failure.
28287         Reported by Bruno Haible.
28288
28289 2007-09-09  Bruno Haible  <bruno@clisp.org>
28290
28291         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28292         malloc or realloc fails.
28293
28294 2007-09-09  Bruno Haible  <bruno@clisp.org>
28295
28296         * modules/getcwd (Depends-on): Add malloc-posix.
28297         * modules/glob (Depends-on): Likewise.
28298         * modules/putenv (Depends-on): Likewise.
28299         * modules/strdup (Depends-on): Likewise.
28300         * modules/getdelim (Depends-on): Add realloc-posix.
28301         * modules/read-file (Depends-on): Likewise.
28302
28303 2007-09-09  Bruno Haible  <bruno@clisp.org>
28304
28305         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28306         (gl_FUNC_MALLOC_POSIX): Require it.
28307         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28308         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28309         * modules/realloc (Files): Add m4/malloc.m4.
28310         * modules/calloc (Files): Likewise.
28311
28312 2007-09-09  Bruno Haible  <bruno@clisp.org>
28313
28314         * modules/malloc-posix: New file.
28315         * modules/malloc (Depends-on): Add malloc-posix.
28316         * lib/malloc.c: Include errno.h.
28317         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28318         and a POSIX-compatible malloc into a single function. Set ENOMEM
28319         when returning NULL.
28320         * m4/malloc.m4: New file.
28321         * doc/functions/malloc.texi: Mention the malloc-posix module.
28322         * lib/stdlib_.h (malloc): New declaration.
28323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28324         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28325         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28326         and HAVE_MALLOC_POSIX.
28327
28328 2007-09-09  Bruno Haible  <bruno@clisp.org>
28329
28330         * modules/realloc-posix: New file.
28331         * modules/realloc (Depends-on): Add realloc-posix.
28332         * lib/realloc.c: Include errno.h.
28333         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28334         and a POSIX-compatible realloc into a single function. Set ENOMEM
28335         when returning NULL.
28336         * m4/realloc.m4: New file.
28337         * doc/functions/realloc.texi: Mention the realloc-posix module.
28338         * lib/stdlib_.h (realloc): New declaration.
28339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28340         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28341         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28342         and HAVE_REALLOC_POSIX.
28343
28344 2007-09-09  Bruno Haible  <bruno@clisp.org>
28345
28346         * modules/calloc-posix: New file.
28347         * modules/calloc (Depends-on): Add calloc-posix.
28348         * lib/calloc.c: Include errno.h.
28349         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28350         and a POSIX-compatible calloc into a single function. Set ENOMEM
28351         when returning NULL.
28352         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28353         * doc/functions/calloc.texi: Mention the calloc-posix module.
28354         * lib/stdlib_.h (calloc): New declaration.
28355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28356         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28357         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28358         and HAVE_CALLOC_POSIX.
28359
28360 2007-09-09  Bruno Haible  <bruno@clisp.org>
28361
28362         Allow for modules to show an arbitrary notice.
28363         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28364         * gnulib-tool: New option --extract-notice.
28365         (func_usage): Document it.
28366         (sed_extract_prog): Update.
28367         (func_get_notice): New function.
28368         (func_modules_notice): New function.
28369         (func_import, func_create_testdir): Invoke it.
28370         Suggested by Jim Meyering.
28371
28372 2007-09-09  Bruno Haible  <bruno@clisp.org>
28373
28374         * gnulib-tool: New options --verbose, --quiet.
28375         (func_usage): Document them.
28376         (verbose): New variable.
28377         (func_execute_command): New function.
28378         (func_import): Don't show the module list and the file list if
28379         $verbose < 0.
28380         (func_create_testdir): Likewise. Use func_execute_command.
28381         (func_create_megatestdir): Use func_execute_command.
28382
28383 2007-09-08  Bruno Haible  <bruno@clisp.org>
28384
28385         * gnulib-tool (func_import): Prefer rsync over wget when available,
28386         for fetching the PO files.
28387
28388 2007-09-08  Bruno Haible  <bruno@clisp.org>
28389
28390         * posix-modules: New file. Portions copied from gnulib-tool.
28391         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28392
28393 2007-09-08  Jim Meyering  <jim@meyering.net>
28394
28395         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28396         * lib/fpending.h: Rename from __fpending.h.
28397         * lib/fpending.c: Rename from __fpending.c.
28398         Include "fpending.h", not "__fpending.h".
28399         * lib/__fpending.h, lib/__fpending.c: Remove files.
28400         * modules/fpending (Files): Reflect new file names.
28401         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28402
28403 2007-09-08  Bruno Haible  <bruno@clisp.org>
28404
28405         * m4/inttypes-h.m4: Remove stub file.
28406
28407 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28408
28409         * doc/headers/stdint.texi: Discuss #include_next issue.
28410
28411 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28412
28413         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28414
28415 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28416
28417         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28418         in variable name.
28419
28420 2007-09-03  Jim Meyering  <jim@meyering.net>
28421
28422         New module: git-version-gen.
28423         * modules/git-version-gen: New file.
28424
28425         Import changes from coreutils for bootstrap script.
28426
28427         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28428
28429         bootstrap: uses rsync to download the .po files
28430         * build-aux/bootstrap (po_download_command_format): New global.
28431         (download_po_files): Use rsync.
28432         (update_po_files): Don't remove .po files after download,
28433         so future rsync runs can take advantage of the copies.
28434
28435         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28436
28437         Solve the unnecessary-.po-file-regeneration problem once and for all.
28438         * build-aux/bootstrap (download_po_files): New function, renamed from
28439         get_translations.  Now, downloads, but doesn't update LINGUAS.
28440         (update_po_files): New function.
28441
28442         bootstrap: Ignore more.
28443         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28444         uniwidth to e.g., lib/.gitignore.
28445         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28446
28447         * build-aux/bootstrap: New setting: vc_ignore.
28448         (insert_sorted_if_absent): Create $file if absent.
28449         Adapt to new, possibly empty, list: $vc_ignore.
28450
28451         bootstrap: generate more ignorable names
28452         * build-aux/bootstrap (slurp): When generating ignorable names,
28453         also map .sin to .sed, .gperf to .c, and .y to .c.
28454
28455 2007-09-03  Jim Meyering  <jim@meyering.net>
28456
28457         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28458         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28459
28460 2007-09-02  Bruno Haible  <bruno@clisp.org>
28461
28462         Fix mis-recognition of 'mcs' on QNX 6.
28463         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28464         output contains the string "Mono".
28465         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28466         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28467
28468 2007-09-01  Bruno Haible  <bruno@clisp.org>
28469
28470         Fix collision between uniwidth/* and linebreak modules.
28471         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28472         u32_width): Remove declarations.
28473         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28474         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28475         streq3, streq2, streq1, streq0): Remove functions.
28476         (STREQ): Remove macro.
28477         (is_cjk_encoding): Remove function.
28478         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28479         (uc_width, u8_width, u16_width, u32_width): Remove functions.
28480         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28481         * NEWS: Document the change.
28482
28483 2007-09-01  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/streq.h: Add double-inclusion guard.
28486
28487 2007-09-01  Karl Berry  <karl@gnu.org>
28488
28489         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28490
28491 2007-08-28  Jim Meyering  <jim@meyering.net>
28492
28493         Rename mreadlink_with_size to areadlink_with_size.
28494         * NEWS: Document the change.
28495         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28496         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28497         * lib/mreadlink.h: Rename this to...
28498         * lib/areadlink.h: ...this.
28499         * modules/mreadlink-with-size: Rename this to...
28500         * modules/areadlink-with-size: ...this.
28501         * lib/canonicalize.c: Reflect the renaming.
28502         * modules/canonicalize: Likewise.
28503
28504 2007-08-26  Bruno Haible  <bruno@clisp.org>
28505
28506         * gnulib-tool (func_import): When deciding which files to remove,
28507         consider also dangling symbolic links.
28508         Reported by Eric Blake.
28509
28510 2007-08-26  Bruno Haible  <bruno@clisp.org>
28511
28512         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28513
28514 2007-08-23  Simon Josefsson  <simon@josefsson.org>
28515
28516         * lib/readline.c: Don't include getline.h, the prototype is now
28517         found in stdio.h.
28518
28519 2007-08-23  Jim Meyering  <jim@meyering.net>
28520
28521         Getdelim touchup.
28522         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28523         around the funlockfile call, since funlockfile never sets errno.
28524         Don't set errno upon failed realloc.
28525
28526 2007-08-22  Eric Blake  <ebb9@byu.net>
28527
28528         Getline touchups.
28529         * lib/getdelim.c (getdelim): Revert regression that required *n to
28530         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
28531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28532         getdelim, rather than whether implementation is missing.
28533         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28534         * lib/stdio_.h (getline): Also declare if replacement is
28535         required.
28536         * doc/functions/getdelim.texi: New file.
28537         * doc/functions/getline.texi: Likewise.
28538         * doc/gnulib.texi (Function Substitutes): Add new files.
28539         Reported by Bruno Haible.
28540
28541 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
28542
28543         * users.txt: Add Guile.
28544
28545 2007-08-22  Eric Blake  <ebb9@byu.net>
28546
28547         * tests/test-getdelim.c (main): Use remove, not unlink.
28548         * tests/test-getline.c (main): Likewise.
28549
28550         Move getline and getdelim into stdio.h, per POSIX 200x.
28551         * modules/getline (Files): Remove getline.h.
28552         (Depends-on): Add stdio.
28553         (configure.ac): Add module indicator.
28554         * modules/getdelim (Files): Remove getdelim.h.
28555         (Depends-on): Add stdio.
28556         (configure.ac): Add module indicator.
28557         * modules/stdio (Makefile.am): Work with new indicators.
28558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28559         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28560         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28561         * lib/getdelim.h: Delete.
28562         * lib/getline.h: Delete.
28563         * lib/stdio_.h (getdelim, getline): Declare.
28564         * modules/getdelim-tests: New module.
28565         * modules/getline-tests: Likewise.
28566         * tests/test-getdelim.c: New file.
28567         * tests/test-getline.c: Likewise.
28568         * NEWS: Document the change.
28569         * lib/getline.c: Update choice of header.
28570         * lib/csharpcomp.c: Likewise.
28571         * lib/getpass.c: Likewise.
28572         * lib/javacomp.c: Likewise.
28573         * lib/javaversion.c: Likewise.
28574         * lib/yesno.c: Likewise.
28575         * lib/getdelim.c: Likewise.
28576         (getdelim): Set errno on failure, and avoid memory leak.
28577
28578 2007-08-19  Bruno Haible  <bruno@clisp.org>
28579
28580         * modules/closein (Depends-on): Add freadahead.
28581         * lib/closein.c: Include freadahead.h.
28582         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28583         is zero.
28584
28585 2007-08-19  Bruno Haible  <bruno@clisp.org>
28586
28587         * modules/freadahead-tests: New file.
28588         * tests/test-freadahead.sh: New file.
28589         * tests/test-freadahead.c: New file.
28590
28591         * modules/freadahead: New file.
28592         * lib/freadahead.h: New file.
28593         * lib/freadahead.c: New file.
28594         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28595         fbufmode, fpurge, freadable, fwritable.
28596
28597 2007-08-19  Eric Blake  <ebb9@byu.net>
28598
28599         Test yesno in combination with closein.
28600         * lib/yesno.c (yesno): Document use of stdin.
28601         * modules/yesno-tests (Files): New module.
28602         * tests/test-yesno.c (main): New file.
28603         * tests/test-yesno.sh: Likewise.
28604
28605 2007-08-19  Bruno Haible  <bruno@clisp.org>
28606
28607         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28608         * lib/fseeko.c (rpl_fseeko): Likewise.
28609         * lib/fseterr.c (fseterr): Likewise.
28610
28611 2007-08-19  Bruno Haible  <bruno@clisp.org>
28612
28613         * tests/test-lseek.c (main): Disable a test for BeOS.
28614         * doc/functions/lseek.texi: Document the BeOS bug.
28615
28616 2007-08-19  Bruno Haible  <bruno@clisp.org>
28617             Eric Blake  <ebb9@byu.net>
28618
28619         * lib/lseek.c: Include <sys/stat.h>.
28620         (rpl_lseek): Add workaround code also for Unix platforms.
28621         Needed for BeOS.
28622         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28623         * doc/functions/lseek.texi: Document BeOS definiency.
28624
28625 2007-08-18  Bruno Haible  <bruno@clisp.org>
28626
28627         * modules/fstrcmp-tests: New file.
28628         * tests/test-fstrcmp.c: New file.
28629
28630 2007-08-18  Bruno Haible  <bruno@clisp.org>
28631
28632         * modules/fstrcmp: New file, from GNU gettext with modifications.
28633         * lib/fstrcmp.h: New file, from GNU gettext.
28634         * lib/fstrcmp.c: New file, from GNU gettext.
28635         * MODULES.html.sh (String handling): Add fstrcmp.
28636
28637 2007-08-18  Bruno Haible  <bruno@clisp.org>
28638
28639         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28640         'bool'.
28641         (diag, compareseq): Remove const from the ctxt argument.
28642         (USE_HEURISTIC): Undefine at the end.
28643
28644 2007-08-18  Jim Meyering  <jim@meyering.net>
28645
28646         New file: lib/idcache.h
28647         * NEWS: Mention the addition.
28648         * modules/idcache (Files): Add lib/idcache.h
28649         * lib/idcache.c: Include "idcache.h".
28650         Don't include <sys/types.h>.
28651         Add a FIXME comment.
28652         Move file-scoped "static" declarations to the top.
28653         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
28654
28655 2007-08-17  Bruno Haible  <bruno@clisp.org>
28656         and Paul Eggert  <eggert@cs.ucla.edu>
28657
28658         * MODULES.html.sh: Add diffseq.
28659         * modules/diffseq: New file.
28660         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28661         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28662
28663 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28664
28665         Import changes from coreutils for bootstrap script.
28666
28667         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
28668
28669         * build-aux/bootstrap (slurp): Work even in environments where
28670         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
28671         current code does not slurp files whose names start with ".", and
28672         this looks like it might be a troublesome area.
28673
28674         2007-07-11  Jim Meyering  <jim@meyering.net>
28675
28676         If there's a GPL vN copyright comment, require that N == 3.
28677
28678         2007-07-08  Jim Meyering  <jim@meyering.net>
28679
28680         Run the coreutils-specific code only if tests/Makefile.am.in exists.
28681         * build-aux/bootstrap (mam_template): Move definition out of loop.
28682
28683         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28684
28685         * build-aux/bootstrap (symlink_to_dir): Rename function from
28686         symlink_to_gnulib.  Add a directory parameter.  Update all
28687         callers.
28688         (cp_mark_as_generated): Also check for -- and link to -- files in
28689         gl/.
28690
28691         2007-07-08  Jim Meyering  <jim@meyering.net>
28692
28693         Adapt to deeper hierarchy in gnulib.
28694         * build-aux/bootstrap (symlink_to_dir): If the destination
28695         directory doesn't exist, create it. This is required at least for
28696         "lib/uniwidth/cjk.h".
28697
28698         2007-05-15  Jim Meyering  <jim@meyering.net>
28699
28700         * build-aux/bootstrap: Now that generated Makefile.am files
28701         are no longer under version control, they must be created at
28702         bootstrap time.
28703
28704 2007-08-14  Ben Pfaff  <blp@gnu.org>
28705
28706         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
28707
28708 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28709
28710         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28711         given the changes below.
28712         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
28713         even on hosts that have padding bits beyond the supported 64.
28714
28715 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28716
28717         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28718         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28719         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
28720         depends on it.
28721         (xstrtol_error): Remove.
28722         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
28723         but with a different signature.
28724         (ATTRIBUTE_NORETURN, __attribute__): New macros.
28725         * lib/xstrtol-error.c: Include exitfail.h.
28726         (xstrtol_fatal): New function, with a different signature from the
28727         old xstrtol_error, so that the caller need not worry about passing
28728         in an exit status, or about storage management of the option argument.
28729         (xstrtol_error): Now a static function.  Redo signature to
28730         implement xstrtol_fatal.  Output the correct number of hyphens in
28731         front of the option so that the caller need not worry about
28732         storage management.
28733         (N_): New macro.
28734         (_): Remove; not used now.
28735         * modules/xstrtol: Depend on getopt.
28736         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
28737         of old STRTOL_FATAL_ERROR macro.
28738         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
28739         of test program.
28740         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
28741         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
28742
28743 2007-08-08  Eric Blake  <ebb9@byu.net>
28744
28745         * lib/xstrtol-error.c: Add missing include.
28746
28747         Move xstrtol messages into gnulib domain, when --pobase is used.
28748         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
28749         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
28750         * modules/xstrtol (Files): Distribute new file.
28751         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
28752         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
28753         * tests/test-xstrtol.c: ...into new file.
28754         * tests/test-xstrtoul.c: Also test xstrtoul.
28755         * tests/test-xstrtoimax.c: Also test xstrtoimax.
28756         * tests/test-xstrtoumax.c: Also test xstrtoumax.
28757         * tests/test-xstrtol.sh: Drive the tests.
28758         * tests/test-xstrtoimax.sh: Likewise.
28759         * tests/test-xstrtoumax.sh: Likewise.
28760         * modules/xstrtol-tests: New module.
28761         * modules/xstrtoimax-tests: Likewise.
28762         * modules/xstrtoumax-tests: Likewise.
28763
28764 2007-08-08  Jim Meyering  <jim@meyering.net>
28765
28766         New function: mfile_name_concat.
28767         * lib/filenamecat.c (mfile_name_concat): New function, just like
28768         file_name_concat, but return NULL upon failure rather than exiting
28769         with a diagnostic.
28770         * lib/filenamecat.h: Declare it.
28771
28772 2007-08-07  Bruno Haible  <bruno@clisp.org>
28773
28774         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
28775         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
28776         warning from gcc.
28777         Reported by Eric Blake.
28778
28779 2007-08-07  Simon Josefsson  <simon@josefsson.org>
28780
28781         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
28782         * modules/crypto/arcfour (License): Likewise.
28783         * modules/crypto/des-tests (License): Likewise.
28784         * modules/crypto/gc-arctwo-tests (License): Likewise.
28785         * modules/crypto/gc-des-tests (License): Likewise.
28786         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
28787         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
28788         * modules/crypto/gc-md2-tests (License): Likewise.
28789         * modules/crypto/gc-md4-tests (License): Likewise.
28790         * modules/crypto/gc-md5-tests (License): Likewise.
28791         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
28792         * modules/crypto/gc-rijndael-tests (License): Likewise.
28793         * modules/crypto/gc-sha1-tests (License): Likewise.
28794         * modules/crypto/gc-tests (License): Likewise.
28795         * modules/crypto/hmac-md5 (License): Likewise.
28796         * modules/crypto/hmac-sha1 (License): Likewise.
28797         * modules/crypto/md2-tests (License): Likewise.
28798         * modules/crypto/md4-tests (License): Likewise.
28799         * modules/crypto/md5 (License): Likewise.
28800         * modules/crypto/rijndael (License): Likewise.
28801         * modules/crypto/sha1 (License): Likewise.
28802         * modules/memxor (License): Likewise.
28803
28804 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28805         and Bruno Haible  <bruno@clisp.org>
28806
28807         * NEWS: Describe interface changes to human, xstrtol.
28808         * lib/human.h: Include <xstrtol.h>.
28809         (human_options): Return enum strtol_error, not int.  Remove
28810         bool arg; take int * instead.
28811         * lib/human.c: Don't include "gettext.h".
28812         (_): Remove; no longer used.
28813         Don't include <xstrtol.h>, since human.h does it.
28814         (human_options): Adjust to abovementioned interface changes.
28815         Do not report error to stderr; that's now the caller's
28816         responsibility.
28817         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
28818         interface change.
28819         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
28820         Str, Argument_type_string.  All uses changed.  Put " argument"
28821         in diagnostics to make them clearer.  Change wording of suffix
28822         message for clarity.
28823         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
28824         Argument_type_string.
28825         (STRTOL_FATAL_WARN): Remove; no longer used.
28826         * modules/human (Depends-on): Remove gettext-h.
28827
28828 2007-08-06  Simon Josefsson  <simon@josefsson.org>
28829
28830         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
28831
28832 2007-07-31  Bruno Haible  <bruno@clisp.org>
28833
28834         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
28835         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
28836         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
28837
28838 2007-07-31  Bruno Haible  <bruno@clisp.org>
28839
28840         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
28841         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
28842
28843 2007-07-30  Bruno Haible  <bruno@clisp.org>
28844
28845         * modules/base64 (License): Use the synonymous term "LGPLv2+".
28846         * modules/c-ctype (License): Likewise.
28847         * modules/c-strcase (License): Likewise.
28848         * modules/check-version (License): Likewise.
28849         * modules/iconv (License): Likewise.
28850         * modules/iconv_open (License): Likewise.
28851         * modules/read-file (License): Likewise.
28852         * modules/striconv (License): Likewise.
28853         * modules/strverscmp (License): Likewise.
28854         * modules/vasprintf (License): Likewise.
28855         * modules/crypto/des (License): Likewise.
28856         * modules/crypto/gc (License): Likewise.
28857         * modules/crypto/gc-arcfour (License): Likewise.
28858         * modules/crypto/gc-arctwo (License): Likewise.
28859         * modules/crypto/gc-des (License): Likewise.
28860         * modules/crypto/gc-hmac-md5 (License): Likewise.
28861         * modules/crypto/gc-hmac-sha1 (License): Likewise.
28862         * modules/crypto/gc-md2 (License): Likewise.
28863         * modules/crypto/gc-md4 (License): Likewise.
28864         * modules/crypto/gc-md5 (License): Likewise.
28865         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
28866         * modules/crypto/gc-random (License): Likewise.
28867         * modules/crypto/gc-rijndael (License): Likewise.
28868         * modules/crypto/gc-sha1 (License): Likewise.
28869         * modules/crypto/md2 (License): Likewise.
28870         * modules/crypto/md4 (License): Likewise.
28871
28872 2007-07-30  Jim Meyering  <jim@meyering.net>
28873
28874         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
28875         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
28876         it has valid stat data.  This bug would cause du not to count the
28877         sizes of inaccessible directories.
28878         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
28879         in <http://bugzilla.redhat.com/250077>.
28880
28881 2007-07-25  Peter O'Gorman  <peter@pogma.com>
28882             Bruno Haible  <bruno@clisp.org>
28883
28884         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
28885         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
28886         #include_next, gives a diagnostic about it, but reports no error in
28887         the exit code.
28888         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28889
28890 2007-07-24  Ben Pfaff  <blp@gnu.org>
28891
28892         Improve name: "count-one-bits" is better than "popcount".
28893         * MODULES.html.sh: Update name.
28894         * lib/popcount.h: Renamed lib/count-one-bits.h.
28895         (popcount): Renamed count_one_bits.
28896         (popcountl): Renamed count_one_bits_l.
28897         (popcountll): Renamed count_one_bits_ll.
28898         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
28899         * modules/popcount: Renamed module/count-one-bits.
28900         * modules/popcount-tests: Renamed module/count-one-bits-tests.
28901         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
28902
28903 2007-07-23  Ben Pfaff  <blp@gnu.org>
28904
28905         * lib/popcount.h (popcount32): Reduce size of constants, to allow
28906         better code generation, and add U to large constants to avoid
28907         warnings, in non-GCC case.
28908         Suggested by Bruno Haible.
28909
28910 2007-07-23  Ben Pfaff  <blp@gnu.org>
28911
28912         * lib/popcount.h: Use verify_true instead of if...abort.
28913         * modules/popcount: Depend on verify module.
28914         Suggested by Jim Meyering.
28915
28916 2007-07-23  Bruno Haible  <bruno@clisp.org>
28917
28918         * gnulib-tool (func_import): Create a .cvsignore file also when the
28919         directory is not yet in CVS but the toplevel directory is. When
28920         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
28921         Reported by Karl Berry.
28922
28923 2007-07-22  Ben Pfaff  <blp@gnu.org>
28924
28925         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
28926         case.
28927         Suggested by Eric Blake.
28928
28929 2007-07-22  Ben Pfaff  <blp@gnu.org>
28930
28931         New module: popcount.
28932         * MODULES.html.sh: Add popcount.
28933         * modules/popcount: New file.
28934         * modules/popcount-tests: New file.
28935         * tests/test-popcount.c: New file.
28936         * lib/popcount.h: New file.
28937         * m4/popcount.m4: New file.
28938
28939 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
28940
28941         * build-aux/announce-gen: Update to GPLv3.
28942
28943         * build-aux/config.guess: Update from config.
28944
28945 2007-07-21  Bruno Haible  <bruno@clisp.org>
28946
28947         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
28948         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
28949
28950 2007-07-20  Jim Meyering  <jim@meyering.net>
28951
28952         * check-module: Diagnose a self-dependency.
28953
28954 2007-07-19  Bruno Haible  <bruno@clisp.org>
28955
28956         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
28957         empty.
28958         Reported by Eric Blake.
28959
28960 2007-07-18  Bruno Haible  <bruno@clisp.org>
28961
28962         * gnulib-tool: New options --po-base, --po-domain.
28963         (func_usage): Document them.
28964         (pobase, po_domain): New variables.
28965         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
28966         DEFAULT_TEXT_DOMAIN.
28967         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
28968         (func_import): Consider pobase and po_domain. Create a po/ directory.
28969         (func_create_testdir): Set pobase and po_domain to empty.
28970         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
28971         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
28972
28973 2007-07-18  Bruno Haible  <bruno@clisp.org>
28974
28975         * gnulib-tool (func_get_automake_snippet): Synthesize also an
28976         EXTRA_DIST augmentation for files in build-aux/.
28977
28978 2007-07-16  Bruno Haible  <bruno@clisp.org>
28979
28980         * modules/lseek (License): Use the synonymous term "LGPLv2+".
28981         * modules/getdelim (License): Likewise.
28982
28983 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28984
28985         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
28986         * modules/d-type (License): Likewise.
28987         * modules/extensions (License): Likewise.
28988         * modules/fnmatch (License): Likewise.
28989         * modules/fseeko (License): Likewise.
28990         * modules/getaddrinfo (License): Likewise.
28991         * modules/getline (License): Likewise.
28992         * modules/getlogin_r (License): Likewise.
28993         * modules/getpass (License): Likewise.
28994         * modules/gettimeofday (License): Likewise.
28995         * modules/glob (License): Likewise.
28996         * modules/inet_ntop (License): Likewise.
28997         * modules/malloc (License): Likewise.
28998         * modules/malloca (License): Likewise.
28999         * modules/memmem (License): Likewise.
29000         * modules/mempcpy (License): Likewise.
29001         * modules/memset (License): Likewise.
29002         * modules/minmax (License): Likewise.
29003         * modules/mktime (License): Likewise.
29004         * modules/netinet_in (License): Likewise.
29005         * modules/pathmax (License): Likewise.
29006         * modules/poll (License): Likewise.
29007         * modules/regex (License): Likewise.
29008         * modules/snprintf (License): Likewise.
29009         * modules/stdbool (License): Likewise.
29010         * modules/stdint (License): Likewise.
29011         * modules/stdio (License): Likewise.
29012         * modules/strcase (License): Likewise.
29013         * modules/strcasestr (License): Likewise.
29014         * modules/strdup (License): Likewise.
29015         * modules/string (License): Likewise.
29016         * modules/strndup (License): Likewise.
29017         * modules/strnlen (License): Likewise.
29018         * modules/strpbrk (License): Likewise.
29019         * modules/strptime (License): Likewise.
29020         * modules/strsep (License): Likewise.
29021         * modules/sys_select (License): Likewise.
29022         * modules/sys_socket (License): Likewise.
29023         * modules/sys_stat (License): Likewise.
29024         * modules/sys_time (License): Likewise.
29025         * modules/time (License): Likewise.
29026         * modules/time_r (License): Likewise.
29027         * modules/timegm (License): Likewise.
29028         * modules/unistd (License): Likewise.
29029         * modules/vsnprintf (License): Likewise.
29030         * modules/wctype (License): Likewise.
29031
29032 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29033
29034         * modules/argz (License): LGPLv2+.
29035
29036 2007-07-15  Karl Berry  <karl@gnu.org>
29037
29038         * doc/gnulib.texi: revise node structure per new fdl.texi.
29039
29040 2007-07-14  Bruno Haible  <bruno@clisp.org>
29041
29042         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29043         the output file.
29044         * lib/uniname/uninames.h: Regenerated.
29045
29046 2007-07-14  Karl Berry  <karl@gnu.org>
29047
29048         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29049         omitting sectioning and index commands.
29050
29051 2007-07-13  Bruno Haible  <bruno@clisp.org>
29052
29053         New gnulib-tool option --more-symlinks.
29054         * gnulib-tool (func_usage): Document --more-symlinks.
29055         (do_copyrights): New variable.
29056         Recognize option --more-symlinks.
29057         (func_import): Don't add a copyright notice transform to
29058         sed_transform_lib_file if do_copyrights is empty.
29059
29060 2007-07-13  Bruno Haible  <bruno@clisp.org>
29061
29062         * lib/vasnprintf.c (decimal_point_char): Define also if
29063         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29064         && !NEED_PRINTF_DIRECTIVE_A.
29065         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29066         Gary V. Vaughan <gary@gnu.org>.
29067
29068 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29069
29070         * lib/inttypes_.h: Undo previous change, since it was fixed
29071         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29072
29073 2007-07-13  Bruno Haible  <bruno@clisp.org>
29074
29075         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29076         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29077
29078 2007-07-13  Jim Meyering  <jim@meyering.net>
29079
29080         df: Don't fail for Tru64's "file-on-file mount".
29081         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29082         so we fall through and use statfs instead.  Details here:
29083         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29084         Reported by Albert Chin.
29085
29086 2007-07-13  Bruno Haible  <bruno@clisp.org>
29087
29088         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29089         * modules/configmake (License): Likewise.
29090         * modules/gettext (License): Likewise.
29091         * modules/gettext-h (License): Likewise.
29092         * modules/include_next (License): Likewise.
29093         * modules/link-warning (License): Likewise.
29094         * modules/localcharset (License): Likewise.
29095         * modules/localename (License): Likewise.
29096         * modules/lock (License): Likewise.
29097         * modules/relocatable-lib-lgpl (License): Likewise.
29098         * modules/size_max (License): Likewise.
29099         * modules/vasnprintf (License): Likewise.
29100         * modules/wchar (License): Likewise.
29101         * modules/xsize (License): Likewise.
29102
29103 2007-07-13  Bruno Haible  <bruno@clisp.org>
29104
29105         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29106         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29107
29108 2007-07-12  Bruno Haible  <bruno@clisp.org>
29109
29110         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29111         in the modules files.
29112
29113 2007-07-11  Karl Berry  <karl@gnu.org>
29114
29115         * MODULES.html.sh (func_module): use
29116          sed -e '\|^'"${includefile}"'$|d'
29117          instead of /.../d, to avoid errors on $includefile's containing /.
29118
29119 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29120
29121         * gnulib-tool (func_import): Avoid duplication of --avoid
29122         statements
29123         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29124         names to `_' in variable names.
29125
29126 2007-07-10  Eric Blake  <ebb9@byu.net>
29127
29128         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29129         * NEWS: Document this change.
29130
29131 2007-07-08  Bruno Haible  <bruno@clisp.org>
29132
29133         Update to Unicode 5.0.
29134         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29135         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29136         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29137         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29138         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29139         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29140         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29141         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29142         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29143         U+10A3F, U+1D242..U+1D244.
29144         (nonspacing_table_ind): Update.
29145         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29146         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29147
29148 2007-07-08  Bruno Haible  <bruno@clisp.org>
29149
29150         Update to Unicode 5.0.
29151         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29152         code transform. Extend the name index field of unicode_name_to_code and
29153         unicode_code_to_name from 16 to 24 bits.
29154         * lib/uniname/uniname.c (unicode_character_name,
29155         unicode_name_character): Add the range 0x12xxx to the code transform.
29156         * lib/uniname/uninames.h: Regenerated.
29157         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29158
29159 2007-07-07  Bruno Haible  <bruno@clisp.org>
29160
29161         * modules/wcwidth-tests: New file.
29162         * tests/test-wcwidth.c: New file.
29163
29164         Work around MacOS X wcwidth() bug.
29165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29166         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29167         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29168         original wcwidth in non-UTF-8 locales.
29169         * modules/wcwidth (Depends-on): Add localcharset, streq,
29170         uniwidth/width.
29171         * doc/functions/wcwidth.texi: Update.
29172
29173 2007-07-07  Bruno Haible  <bruno@clisp.org>
29174
29175         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29176         (wcwidth): New declaration.
29177         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29178         macros.
29179         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29180         here. Prepare for creating <wchar.h> unconditionally.
29181         * modules/wchar (Depends-on): Add link-warning.
29182         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29183         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29184         * lib/wcwidth.h: Remove file.
29185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29186         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29187         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29188         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29189         (Include): Replace wcwidth.h with <wchar.h>.
29190         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29191         * lib/mbchar.h: Don't include wcwidth.h.
29192         * lib/mbswidth.c: Likewise.
29193         * NEWS: Mention the change.
29194
29195 2007-07-07  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29198         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29199         definition with an external declaration.
29200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29201         defined as a function. Remove AC_C_INLINE requirement.
29202         * modules/wcwidth (Files): Add lib/wcwidth.c.
29203         (Makefile.am): Remove redundant statement.
29204
29205 2007-07-07  Bruno Haible  <bruno@clisp.org>
29206
29207         * MODULES.html.sh (Unicode string functions): Add the new modules.
29208
29209         * tests/uniwidth/test-u32-strwidth.c: New file.
29210         * modules/uniwidth/u32-strwidth-tests: New file.
29211
29212         * lib/uniwidth/u32-strwidth.c: New file.
29213         * modules/uniwidth/u32-strwidth: New file.
29214
29215         * tests/uniwidth/test-u16-strwidth.c: New file.
29216         * modules/uniwidth/u16-strwidth-tests: New file.
29217
29218         * lib/uniwidth/u16-strwidth.c: New file.
29219         * modules/uniwidth/u16-strwidth: New file.
29220
29221         * tests/uniwidth/test-u8-strwidth.c: New file.
29222         * modules/uniwidth/u8-strwidth-tests: New file.
29223
29224         * lib/uniwidth/u8-strwidth.c: New file.
29225         * modules/uniwidth/u8-strwidth: New file.
29226
29227         * tests/uniwidth/test-u32-width.c: New file.
29228         * modules/uniwidth/u32-width-tests: New file.
29229
29230         * lib/uniwidth/u32-width.c: New file.
29231         * modules/uniwidth/u32-width: New file.
29232
29233         * tests/uniwidth/test-u16-width.c: New file.
29234         * modules/uniwidth/u16-width-tests: New file.
29235
29236         * lib/uniwidth/u16-width.c: New file.
29237         * modules/uniwidth/u16-width: New file.
29238
29239         * tests/uniwidth/test-u8-width.c: New file.
29240         * modules/uniwidth/u8-width-tests: New file.
29241
29242         * lib/uniwidth/u8-width.c: New file.
29243         * modules/uniwidth/u8-width: New file.
29244
29245         * tests/uniwidth/test-uc_width.c: New file.
29246         * modules/uniwidth/width-tests: New file.
29247
29248         * lib/uniwidth/width.c: New file, from GNU libiconv.
29249         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29250         * modules/uniwidth/width: New file.
29251
29252         * lib/uniwidth.h: New file, from GNU libiconv.
29253         * modules/uniwidth/base: New file.
29254
29255 2007-07-07  Bruno Haible  <bruno@clisp.org>
29256
29257         * lib/uniname.h: New file, from GNU gettext.
29258         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29259         * lib/uniname/uninames.h: New file, from GNU gettext.
29260         * lib/uniname/uniname.c: New file, from GNU gettext.
29261         * tests/uniname/test-uninames.sh: New file.
29262         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29263         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29264         * modules/uniname/base: New file.
29265         * modules/uniname/uniname: New file.
29266         * modules/uniname/uniname-tests: New file.
29267         * MODULES.html.sh (Unicode string functions): Add the new modules.
29268
29269 2007-07-06  Bruno Haible  <bruno@clisp.org>
29270
29271         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29272
29273 2007-07-06  Bruno Haible  <bruno@clisp.org>
29274
29275         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29276         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29277         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29278         include <sys/time.h>.
29279         Reported by Eric Blake.
29280
29281 2007-07-06  Eric Blake  <ebb9@byu.net>
29282
29283         Fix testing canonicalize on cygwin.
29284         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29285         Revert patch from 2007-06-19.
29286         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29287         canonicalize module is also in use.
29288         * tests/test-canonicalize.c: New file.
29289         * tests/test-canonicalize.sh: Likewise.
29290         * modules/canonicalize-tests: Likewise.
29291
29292 2007-07-06  Jim Meyering  <jim@meyering.net>
29293
29294         * lib/getugroups.c (getugroups): Detect getgrent failure.
29295         Adjust comment to reflect reality: this function may return -1.
29296
29297 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29298
29299         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29300         the new TP address.
29301         (usage): Fix typo
29302         (gnulib_mk): New variable.
29303
29304 2007-07-05  Jim Meyering  <jim@meyering.net>
29305
29306         Don't let endgrent clobber errno, no matter how improbable.
29307         * lib/getugroups.c (getugroups): Save and restore errno around
29308         endgrent call.
29309
29310         Close the group DB even when failing with 2^31 or more members.
29311         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29312
29313 2007-07-04  Jim Meyering  <jim@meyering.net>
29314
29315         * lib/getugroups.h: New file.
29316         * lib/getugroups.c: Include "getugroups.h".
29317         Remove uses of "register" keyword.
29318         Move local variable, "cp", down into scope where used.
29319         Give "username" parameter the "const" attribute.
29320         * modules/getugroups (Files): Add lib/getugroups.h
29321
29322 2007-07-04  Karl Berry  <karl@gnu.org>
29323
29324         * MODULES.html.sh (func_all_modules): Complete rename of
29325         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29326
29327 2007-07-02  Bruno Haible  <bruno@clisp.org>
29328
29329         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29330         mode, when inttypes.h comes from gnulib.
29331         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29332
29333 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29334
29335         * NEWS: Mention lgpl module name change.
29336
29337         * modules/lgpl-2.1: Renamed from lgpl.
29338
29339         * NEWS: Mention gpl module name change.
29340
29341         * modules/gpl-3.0: New file, based on gpl-2.0.
29342
29343         * modules/gpl-2.0: Renamed from gpl.
29344
29345         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29346         doc/gpl-2.0.texi.
29347
29348 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29349
29350         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29351         #define __STDC_LIMIT_MACROS temporarily while including
29352         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29353         Problem reported by Joel E. Denny in
29354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29355
29356 2007-07-01  Bruno Haible  <bruno@clisp.org>
29357
29358         * lib/unistdio.h: New file.
29359         * lib/unistdio/u-asnprintf.h: New file.
29360         * lib/unistdio/u-asprintf.h: New file.
29361         * lib/unistdio/u-printf-args.c: New file.
29362         * lib/unistdio/u-printf-args.h: New file.
29363         * lib/unistdio/u-printf-parse.h: New file.
29364         * lib/unistdio/u-snprintf.h: New file.
29365         * lib/unistdio/u-sprintf.h: New file.
29366         * lib/unistdio/u-vasprintf.h: New file.
29367         * lib/unistdio/u-vsnprintf.h: New file.
29368         * lib/unistdio/u-vsprintf.h: New file.
29369         * lib/unistdio/ulc-asnprintf.c: New file.
29370         * lib/unistdio/ulc-asprintf.c: New file.
29371         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29372         * lib/unistdio/ulc-printf-parse.c: New file.
29373         * lib/unistdio/ulc-snprintf.c: New file.
29374         * lib/unistdio/ulc-sprintf.c: New file.
29375         * lib/unistdio/ulc-vasnprintf.c: New file.
29376         * lib/unistdio/ulc-vasprintf.c: New file.
29377         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29378         * lib/unistdio/ulc-vsnprintf.c: New file.
29379         * lib/unistdio/ulc-vsprintf.c: New file.
29380         * lib/unistdio/u8-asnprintf.c: New file.
29381         * lib/unistdio/u8-asprintf.c: New file.
29382         * lib/unistdio/u8-printf-parse.c: New file.
29383         * lib/unistdio/u8-snprintf.c: New file.
29384         * lib/unistdio/u8-sprintf.c: New file.
29385         * lib/unistdio/u8-vasnprintf.c: New file.
29386         * lib/unistdio/u8-vasprintf.c: New file.
29387         * lib/unistdio/u8-vsnprintf.c: New file.
29388         * lib/unistdio/u8-vsprintf.c: New file.
29389         * lib/unistdio/u8-u8-asnprintf.c: New file.
29390         * lib/unistdio/u8-u8-asprintf.c: New file.
29391         * lib/unistdio/u8-u8-snprintf.c: New file.
29392         * lib/unistdio/u8-u8-sprintf.c: New file.
29393         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29394         * lib/unistdio/u8-u8-vasprintf.c: New file.
29395         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29396         * lib/unistdio/u8-u8-vsprintf.c: New file.
29397         * lib/unistdio/u16-asnprintf.c: New file.
29398         * lib/unistdio/u16-asprintf.c: New file.
29399         * lib/unistdio/u16-printf-parse.c: New file.
29400         * lib/unistdio/u16-snprintf.c: New file.
29401         * lib/unistdio/u16-sprintf.c: New file.
29402         * lib/unistdio/u16-vasnprintf.c: New file.
29403         * lib/unistdio/u16-vasprintf.c: New file.
29404         * lib/unistdio/u16-vsnprintf.c: New file.
29405         * lib/unistdio/u16-vsprintf.c: New file.
29406         * lib/unistdio/u16-u16-asnprintf.c: New file.
29407         * lib/unistdio/u16-u16-asprintf.c: New file.
29408         * lib/unistdio/u16-u16-snprintf.c: New file.
29409         * lib/unistdio/u16-u16-sprintf.c: New file.
29410         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29411         * lib/unistdio/u16-u16-vasprintf.c: New file.
29412         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29413         * lib/unistdio/u16-u16-vsprintf.c: New file.
29414         * lib/unistdio/u32-asnprintf.c: New file.
29415         * lib/unistdio/u32-asprintf.c: New file.
29416         * lib/unistdio/u32-printf-parse.c: New file.
29417         * lib/unistdio/u32-snprintf.c: New file.
29418         * lib/unistdio/u32-sprintf.c: New file.
29419         * lib/unistdio/u32-vasnprintf.c: New file.
29420         * lib/unistdio/u32-vasprintf.c: New file.
29421         * lib/unistdio/u32-vsnprintf.c: New file.
29422         * lib/unistdio/u32-vsprintf.c: New file.
29423         * lib/unistdio/u32-u32-asnprintf.c: New file.
29424         * lib/unistdio/u32-u32-asprintf.c: New file.
29425         * lib/unistdio/u32-u32-snprintf.c: New file.
29426         * lib/unistdio/u32-u32-sprintf.c: New file.
29427         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29428         * lib/unistdio/u32-u32-vasprintf.c: New file.
29429         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29430         * lib/unistdio/u32-u32-vsprintf.c: New file.
29431         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29432         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29433         * tests/unistdio/test-ulc-printf1.h: New file.
29434         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29435         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29436         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29437         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29438         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29439         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29440         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29441         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29442         * tests/unistdio/test-u8-asnprintf1.c: New file.
29443         * tests/unistdio/test-u8-asnprintf1.h: New file.
29444         * tests/unistdio/test-u8-printf1.h: New file.
29445         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29446         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29447         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29448         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29449         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29450         * tests/unistdio/test-u8-vasprintf1.c: New file.
29451         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29452         * tests/unistdio/test-u8-vsprintf1.c: New file.
29453         * tests/unistdio/test-u16-asnprintf1.c: New file.
29454         * tests/unistdio/test-u16-asnprintf1.h: New file.
29455         * tests/unistdio/test-u16-printf1.h: New file.
29456         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29457         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29458         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29459         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29460         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29461         * tests/unistdio/test-u16-vasprintf1.c: New file.
29462         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29463         * tests/unistdio/test-u16-vsprintf1.c: New file.
29464         * tests/unistdio/test-u32-asnprintf1.c: New file.
29465         * tests/unistdio/test-u32-asnprintf1.h: New file.
29466         * tests/unistdio/test-u32-printf1.h: New file.
29467         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29468         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29469         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29470         * tests/unistdio/test-u32-vasnprintf3.c: New file.
29471         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29472         * tests/unistdio/test-u32-vasprintf1.c: New file.
29473         * tests/unistdio/test-u32-vsnprintf1.c: New file.
29474         * tests/unistdio/test-u32-vsprintf1.c: New file.
29475         * modules/unistdio/base: New file.
29476         * modules/unistdio/u-printf-args: New file.
29477         * modules/unistdio/ulc-asnprintf: New file.
29478         * modules/unistdio/ulc-asprintf: New file.
29479         * modules/unistdio/ulc-fprintf: New file.
29480         * modules/unistdio/ulc-printf-parse: New file.
29481         * modules/unistdio/ulc-snprintf: New file.
29482         * modules/unistdio/ulc-sprintf: New file.
29483         * modules/unistdio/ulc-vasnprintf: New file.
29484         * modules/unistdio/ulc-vasprintf: New file.
29485         * modules/unistdio/ulc-vfprintf: New file.
29486         * modules/unistdio/ulc-vsnprintf: New file.
29487         * modules/unistdio/ulc-vsprintf: New file.
29488         * modules/unistdio/u8-asnprintf: New file.
29489         * modules/unistdio/u8-asprintf: New file.
29490         * modules/unistdio/u8-printf-parse: New file.
29491         * modules/unistdio/u8-snprintf: New file.
29492         * modules/unistdio/u8-sprintf: New file.
29493         * modules/unistdio/u8-vasnprintf: New file.
29494         * modules/unistdio/u8-vasprintf: New file.
29495         * modules/unistdio/u8-vsnprintf: New file.
29496         * modules/unistdio/u8-vsprintf: New file.
29497         * modules/unistdio/u8-u8-asnprintf: New file.
29498         * modules/unistdio/u8-u8-asprintf: New file.
29499         * modules/unistdio/u8-u8-snprintf: New file.
29500         * modules/unistdio/u8-u8-sprintf: New file.
29501         * modules/unistdio/u8-u8-vasnprintf: New file.
29502         * modules/unistdio/u8-u8-vasprintf: New file.
29503         * modules/unistdio/u8-u8-vsnprintf: New file.
29504         * modules/unistdio/u8-u8-vsprintf: New file.
29505         * modules/unistdio/u16-asnprintf: New file.
29506         * modules/unistdio/u16-asprintf: New file.
29507         * modules/unistdio/u16-printf-parse: New file.
29508         * modules/unistdio/u16-snprintf: New file.
29509         * modules/unistdio/u16-sprintf: New file.
29510         * modules/unistdio/u16-vasnprintf: New file.
29511         * modules/unistdio/u16-vasprintf: New file.
29512         * modules/unistdio/u16-vsnprintf: New file.
29513         * modules/unistdio/u16-vsprintf: New file.
29514         * modules/unistdio/u16-u16-asnprintf: New file.
29515         * modules/unistdio/u16-u16-asprintf: New file.
29516         * modules/unistdio/u16-u16-snprintf: New file.
29517         * modules/unistdio/u16-u16-sprintf: New file.
29518         * modules/unistdio/u16-u16-vasnprintf: New file.
29519         * modules/unistdio/u16-u16-vasprintf: New file.
29520         * modules/unistdio/u16-u16-vsnprintf: New file.
29521         * modules/unistdio/u16-u16-vsprintf: New file.
29522         * modules/unistdio/u32-asnprintf: New file.
29523         * modules/unistdio/u32-asprintf: New file.
29524         * modules/unistdio/u32-printf-parse: New file.
29525         * modules/unistdio/u32-snprintf: New file.
29526         * modules/unistdio/u32-sprintf: New file.
29527         * modules/unistdio/u32-vasnprintf: New file.
29528         * modules/unistdio/u32-vasprintf: New file.
29529         * modules/unistdio/u32-vsnprintf: New file.
29530         * modules/unistdio/u32-vsprintf: New file.
29531         * modules/unistdio/u32-u32-asnprintf: New file.
29532         * modules/unistdio/u32-u32-asprintf: New file.
29533         * modules/unistdio/u32-u32-snprintf: New file.
29534         * modules/unistdio/u32-u32-sprintf: New file.
29535         * modules/unistdio/u32-u32-vasnprintf: New file.
29536         * modules/unistdio/u32-u32-vasprintf: New file.
29537         * modules/unistdio/u32-u32-vsnprintf: New file.
29538         * modules/unistdio/u32-u32-vsprintf: New file.
29539         * modules/unistdio/ulc-asnprintf-tests: New file.
29540         * modules/unistdio/ulc-vasnprintf-tests: New file.
29541         * modules/unistdio/ulc-vasprintf-tests: New file.
29542         * modules/unistdio/ulc-vsnprintf-tests: New file.
29543         * modules/unistdio/ulc-vsprintf-tests: New file.
29544         * modules/unistdio/u8-asnprintf-tests: New file.
29545         * modules/unistdio/u8-vasnprintf-tests: New file.
29546         * modules/unistdio/u8-vasprintf-tests: New file.
29547         * modules/unistdio/u8-vsnprintf-tests: New file.
29548         * modules/unistdio/u8-vsprintf-tests: New file.
29549         * modules/unistdio/u16-asnprintf-tests: New file.
29550         * modules/unistdio/u16-vasnprintf-tests: New file.
29551         * modules/unistdio/u16-vasprintf-tests: New file.
29552         * modules/unistdio/u16-vsnprintf-tests: New file.
29553         * modules/unistdio/u16-vsprintf-tests: New file.
29554         * modules/unistdio/u32-asnprintf-tests: New file.
29555         * modules/unistdio/u32-vasnprintf-tests: New file.
29556         * modules/unistdio/u32-vasprintf-tests: New file.
29557         * modules/unistdio/u32-vsnprintf-tests: New file.
29558         * modules/unistdio/u32-vsprintf-tests: New file.
29559         * MODULES.html.sh (Unicode string functions): Add the new modules.
29560
29561 2007-07-01  Bruno Haible  <bruno@clisp.org>
29562
29563         * lib/sprintf.c (sprintf): Limit the available length estimation,
29564         to avoid address wraparound.
29565         * lib/vsprintf.c (vsprintf): Likewise.
29566         * modules/sprintf-posix (Dependencies): Add stdint.
29567         * modules/vsprintf-posix (Dependencies): Likewise.
29568
29569 2007-07-01  Bruno Haible  <bruno@clisp.org>
29570
29571         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29572         Windows PATH as well. Conservative double-quoting. Comments.
29573
29574 2007-07-01  Bruno Haible  <bruno@clisp.org>
29575             Eric Blake  <ebb9@byu.net>
29576             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29577
29578         * gnulib-tool (self_abspathname): Fix algorithm to cope with
29579         empty components in $PATH, denoting '.'.
29580
29581 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29582
29583         * gnulib-tool: Fix indentation.
29584         (func_create_megatestdir): Likewise.
29585         Report by Bruno Haible.
29586
29587 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29588
29589         Sync from Automake.
29590         * build-aux/gnupload: Fix shell portability issues with for loops.
29591         Report by Karl Berry.
29592
29593 2007-06-29  Simon Josefsson  <simon@josefsson.org>
29594
29595         * build-aux/maint.mk (POURL): Use translationproject.org.
29596
29597 2007-06-27  Simon Josefsson  <simon@josefsson.org>
29598             Bruno Haible  <bruno@clisp.org>
29599
29600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29601         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29602         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29603         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29604         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29605
29606 2007-06-27  Bruno Haible  <bruno@clisp.org>
29607
29608         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29609         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29610
29611 2007-06-26  Karl Berry  <karl@gnu.org>
29612
29613         * MODULES.html.sh: remove xreadlink-with-size.
29614
29615 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29616
29617         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29618         method that I hope also handles the double-include problem noted
29619         by Bruno Haible in
29620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29621
29622 2007-06-23  Bruno Haible  <bruno@clisp.org>
29623
29624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29625         Don't let the 'mostlyclean' target fail if the last subdirectory could
29626         not be removed.
29627         Reported by Karl Berry.
29628
29629 2007-06-23  Bruno Haible  <bruno@clisp.org>
29630
29631         * gnulib-tool (echo): Add a speedier workaround for ksh.
29632         * tests/test-echo.sh: Likewise.
29633
29634 2007-06-23  Bruno Haible  <bruno@clisp.org>
29635
29636         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29637         * tests/test-echo.sh: Likewise.
29638
29639 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29640
29641         * gnulib-tool (IFS): Initialize early, so we don't set it to
29642         empty later.
29643         (self_abspathname): Rewrite algorithm to set it, reindent.
29644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29645         (func_create_megatestdir): Merge some sed scripts.
29646
29647 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29648
29649         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29650         exposed by Sun Studio 11 cc on Solaris 8.
29651
29652 2007-06-22  Bruno Haible  <bruno@clisp.org>
29653
29654         * gnulib-tool (echo): Ensure the echo primitive does not interpret
29655         backslashes.
29656         * tests/test-echo.sh: New file.
29657
29658 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29659
29660         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29661         simplify `sed_replace_build_aux' scripts, they are portable but
29662         echoing them with `echo' is not.
29663         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29664
29665 2007-06-21  Karl Berry  <karl@gnu.org>
29666
29667         * config/srclist.txt: guess we can't handle the licenses via
29668         srclist at the moment.
29669
29670 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29671
29672         * MODULES.html.sh: Add include_next.
29673         * modules/include_next: New file.
29674
29675 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29676
29677         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29678         INCLUDE_NEXT.
29679         (gl_CHECK_NEXT_HEADERS): New macro.
29680         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29681         the obsolescent gl_ABSOLUTE_HEADER.
29682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29683         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29684         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29685         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29686         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29687         * m4/math_h.m4 (gl_MATH_H): Likewise.
29688         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29689         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29690         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29691         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29692         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29693         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29694         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29695         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29699         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29700         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29701         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29702         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29703         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29704         * m4/inttypes.m4 (gl_INTTYPES_H): Define
29705         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29706         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29707         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29708         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29709         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29710         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29711         * lib/float_.h: Likewise.
29712         * lib/inttypes_.h: Likewise.
29713         * lib/math_.h: Likewise.
29714         * lib/search_.h: Likewise.
29715         * lib/signal_.h: Likewise.
29716         * lib/stdint_.h: Likewise.
29717         * lib/stdio_.h: Likewise.
29718         * lib/stdlib_.h: Likewise.
29719         * lib/string_.h: Likewise.
29720         * lib/sys_stat_.h: Likewise.
29721         * lib/sys_time_.h: Likewise.
29722         * lib/time_.h: Likewise.
29723         * lib/unistd_.h: Likewise.
29724         * lib/wchar_.h: Likewise.
29725         * lib/wctype_.h: Likewise.
29726         * lib/dirent_.h: Likewise.
29727         * lib/iconv_.h: Likewise.
29728         * lib/locale_.h: Likewise.
29729         * lib/netinet_in_.h: Likewise.
29730         * lib/sys_select_.h: Likewise.
29731         * lib/sys_socket_.h: Likewise.
29732         * lib/sysexits_.h: Likewise.
29733         * modules/fcntl (Depends-on): Depend on include_next, not
29734         absolute_header.
29735         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
29736         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
29737         * modules/fchdir: Likewise.
29738         * modules/float: Likewise.
29739         * modules/iconv_open: Likewise.
29740         * modules/inttypes: Likewise.
29741         * modules/locale: Likewise.
29742         * modules/math: Likewise.
29743         * modules/netinet_in: Likewise.
29744         * modules/search: Likewise.
29745         * modules/signal: Likewise.
29746         * modules/stdint: Likewise.
29747         * modules/stdio: Likewise.
29748         * modules/stdlib: Likewise.
29749         * modules/string: Likewise.
29750         * modules/sys_select: Likewise.
29751         * modules/sys_socket: Likewise.
29752         * modules/sys_stat: Likewise.
29753         * modules/sys_time: Likewise.
29754         * modules/sysexits: Likewise.
29755         * modules/time: Likewise.
29756         * modules/unistd: Likewise.
29757         * modules/wchar: Likewise.
29758         * modules/wctype: Likewise.
29759         * modules/sys_stat: Change maintainer to "all".
29760         * modules/unistd: Likewise.
29761
29762 2007-06-20  Karl Berry  <karl@gnu.org>
29763
29764         * config/srclist.txt: track www changes in license files.
29765
29766 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
29767
29768         * build-aux/bootstrap: Remove stray dot.
29769         Make sure build_aux settings are honored when linking
29770         gnulib_extra_files.
29771
29772 2007-06-19  Eric Blake  <ebb9@byu.net>
29773
29774         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29775         Allow compilation on cygwin.
29776
29777 2007-06-19  Jim Meyering  <jim@meyering.net>
29778
29779         xreadlink-with-size: Remove module.  No longer used.
29780         Ex-callers now use xreadlink or mreadlink-with-size.
29781         * modules/xreadlink-with-size: Remove module.
29782         * lib/xreadlink-with-size.c: Remove file.
29783         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
29784         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
29785         just before the function definition *is* accurate.
29786
29787         Eliminate one way canonicalize_filename_mode could exit.
29788         * lib/canonicalize.c (canonicalize_filename_mode):
29789         Use mreadlink_with_size, not xreadlink_with_size.
29790
29791 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
29792
29793         Detect porting problems to FreeBSD/arm, which has time_t wider than
29794         long int.  Original problem reported for GNU diff by Xin Li in
29795         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
29796         * modules/getdate (Depends-on): Add intprops, verify.
29797         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
29798         is an integer type no wider than long int.
29799
29800 2007-06-18  Jim Meyering  <jim@meyering.net>
29801
29802         New module: mreadlink-with-size.
29803         * MODULES.html.sh: Add mreadlink-with-size.
29804         * modules/mreadlink-with-size: New module
29805         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
29806         not xreadlink-with-size.
29807         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
29808
29809 2007-06-16  Bruno Haible  <bruno@clisp.org>
29810
29811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
29812         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
29813         Reported by Gary V. Vaughan <gary@gnu.org>.
29814
29815 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
29816
29817         Revamp lchown so that it lives in unistd.h where it belongs.
29818         * lib/lchown.h: Remove.
29819         * lib/dirchownmod.c: Don't include lib/lchown.h.
29820         * lib/fchownat.c: Likewise.
29821         * lib/openat.c: Likewise.
29822         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
29823         does not follow symlinks.
29824         (EOPNOTSUPP): Define if not defined.
29825         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
29826         is defined to 0.
29827         (lchown): New decl.
29828         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
29829         Do not check for lchown decl.
29830         Set REPLACE_LCHOWN.
29831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
29832         REPLACE_LCHOWN.
29833         * modules/chown: Make it clear it follows symlinks.
29834         * modules/lchown: Make it clear it doesn't follow symlinks.
29835         (Files): Remove lib/lchown.h
29836         (Depends-on): Add unistd.
29837         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
29838         (Include): Include <unistd.h>, not "lchown.h".
29839         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
29840         REPLACE_LCHOWN.
29841
29842 2007-06-15  Jim Meyering  <jim@meyering.net>
29843
29844         Change license (GPL to LGPL) of fsusage and dependents.
29845         * modules/fsusage (License): Change to LGPL.
29846         * modules/full-read (License): Likewise.
29847         * modules/full-write (License): Likewise.
29848         * modules/safe-read (License): Likewise.
29849         * modules/safe-write (License): Likewise.
29850
29851 2007-06-14  Ben Pfaff  <blp@gnu.org>
29852
29853         Missing part of allocsa -> malloca transition.
29854         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
29855         gl_MALLOCA.
29856
29857 2007-06-12  Bruno Haible  <bruno@clisp.org>
29858
29859         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
29860         to ia64, x86_64, i386.
29861         Reported by Eric Blake.
29862
29863 2007-06-12  Bruno Haible  <bruno@clisp.org>
29864
29865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
29866         cross-compiling to x86_64.
29867
29868 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
29869
29870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
29871         glitch reported by Ralf Wildenhues in
29872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
29873
29874         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
29875         Vin Shelton.
29876
29877 2007-06-11  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
29880         replacement string.
29881         Reported by Eric Blake.
29882
29883 2007-06-10  Bruno Haible  <bruno@clisp.org>
29884
29885         Prepare vasnprintf code for use with Unicode strings.
29886         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
29887         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
29888         TYPE_U32_STRING.
29889         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
29890         a_u32_string variants.
29891         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
29892         * lib/printf-args.c: Don't include config.h and the specification
29893         header if PRINTF_FETCHARGS is already defined.
29894         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
29895         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
29896         TYPE_U16_STRING, TYPE_U32_STRING.
29897         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
29898         u16_directive, u16_directives, u32_directive, u32_directives): New
29899         types.
29900         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
29901         New declarations.
29902         * lib/printf-parse.c: Don't include config.h and the specification
29903         header if PRINTF_PARSE is already defined. Eliminate the set of
29904         parameters for WIDE_CHAR_VERSION; the user of this file must provide
29905         them now. Include c-ctype.h.
29906         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
29907         directive and CHAR_T_ONLY_ASCII.
29908         * lib/vasnprintf.c: Don't include config.h and the specification header
29909         if VASNPRINTF is already defined.
29910         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
29911         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
29912         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
29913         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
29914         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
29915         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
29916         code accordingly.
29917         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
29918         pad_ourselves also in this case, with the 'c' and 's' directives, and
29919         with a different notion of "width".
29920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
29921
29922 2007-06-10  Bruno Haible  <bruno@clisp.org>
29923
29924         * modules/unistr/u32-mbsnlen: New file.
29925         * lib/unistr/u32-mbsnlen.c: New file.
29926
29927         * modules/unistr/u16-mbsnlen: New file.
29928         * lib/unistr/u16-mbsnlen.c: New file.
29929
29930         * modules/unistr/u8-mbsnlen: New file.
29931         * lib/unistr/u8-mbsnlen.c: New file.
29932
29933         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
29934         declarations.
29935
29936 2007-06-10  Bruno Haible  <bruno@clisp.org>
29937
29938         * lib/string_.h (mbsnlen): New declaration.
29939         * lib/mbsnlen.c: New file.
29940         * m4/mbsnlen.m4: New file.
29941         * modules/mbsnlen: New file.
29942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
29943         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
29944         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
29945
29946 2007-06-10  Bruno Haible  <bruno@clisp.org>
29947
29948         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
29949
29950 2007-06-10  Bruno Haible  <bruno@clisp.org>
29951
29952         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
29953         * lib/mbuiter.h: Likewise.
29954
29955 2007-06-10  Bruno Haible  <bruno@clisp.org>
29956
29957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
29958         declaration.
29959
29960 2007-06-10  Karl Berry  <karl@gnu.org>
29961
29962         * config/srclist.txt: remove gettext entries, Bruno prefers
29963         to update individually.
29964
29965 2007-06-10  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
29968         'maxlen'. Ensure only length + width bytes are allocated, not
29969         length + 1 + width.
29970
29971 2007-06-09  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
29974         (CHAR_T): Remove macro.
29975         (VASNPRINTF): Update.
29976
29977 2007-06-09  Bruno Haible  <bruno@clisp.org>
29978
29979         * MODULES.html.sh (Unicode string functions): Add the new modules.
29980
29981         * modules/uniconv/u32-conv-to-enc: New file.
29982         * lib/uniconv/u32-conv-to-enc.c: New file.
29983         * modules/uniconv/u32-conv-to-enc-tests: New file.
29984         * tests/uniconv/test-u32-conv-to-enc.c: New file.
29985
29986         * modules/uniconv/u16-conv-to-enc: New file.
29987         * lib/uniconv/u16-conv-to-enc.c: New file.
29988         * lib/uniconv/u-conv-to-enc.h: New file.
29989         * modules/uniconv/u16-conv-to-enc-tests: New file.
29990         * tests/uniconv/test-u16-conv-to-enc.c: New file.
29991
29992         * modules/uniconv/u8-conv-to-enc: New file.
29993         * lib/uniconv/u8-conv-to-enc.c: New file.
29994         * modules/uniconv/u8-conv-to-enc-tests: New file.
29995         * tests/uniconv/test-u8-conv-to-enc.c: New file.
29996
29997         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29998         u32_conv_to_encoding): New declarations.
29999
30000 2007-06-09  Bruno Haible  <bruno@clisp.org>
30001
30002         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30003
30004 2007-06-09  Bruno Haible  <bruno@clisp.org>
30005
30006         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30007         * modules/malloca: Renamed from modules/allocsa, updated.
30008         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30009         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30010         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30011         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30012         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30013         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30014         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30015         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30016         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30017         * modules/c-strcasestr (Depends-on): Update.
30018         * lib/c-strcasestr.c: Update.
30019         * modules/c-strstr (Depends-on): Update.
30020         * lib/c-strstr.c: Update.
30021         * modules/canonicalize-lgpl (Depends-on): Update.
30022         * lib/canonicalize-lgpl.c: Update.
30023         * modules/clean-temp (Depends-on): Update.
30024         * lib/clean-temp.c: Update.
30025         * modules/csharpcomp (Depends-on): Update.
30026         * lib/csharpcomp.c: Update.
30027         * modules/csharpexec (Depends-on): Update.
30028         * lib/csharpexec.c: Update.
30029         * modules/javacomp (Depends-on): Update.
30030         * lib/javacomp.c: Update.
30031         * modules/javaexec (Depends-on): Update.
30032         * lib/javaexec.c: Update.
30033         * modules/mbscasestr (Depends-on): Update.
30034         * lib/mbscasestr.c: Update.
30035         * modules/mbsstr (Depends-on): Update.
30036         * lib/mbsstr.c: Update.
30037         * modules/setenv (Depends-on): Update.
30038         * lib/setenv.c: Update.
30039         * modules/strcasestr (Depends-on): Update.
30040         * lib/strcasestr.c: Update.
30041         * modules/striconveha (Depends-on): Update.
30042         * lib/striconveha.c: Update.
30043         * modules/relocatable-prog-wrapper (Files): Update.
30044         * lib/relocwrapper.c: Update.
30045         * build-aux/install-reloc: Update.
30046         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30047
30048 2007-06-08  Bruno Haible  <bruno@clisp.org>
30049
30050         Port to uClibc.
30051         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30052         * lib/fpurge.c (fpurge): Likewise.
30053         * lib/freading.c (freading): Likewise.
30054         * lib/fseeko.c (rpl_fseeko): Likewise.
30055         * lib/fseterr.c (fseterr): Likewise.
30056         * lib/fwriting.c (fwriting): Likewise.
30057         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30058
30059 2007-06-08  Bruno Haible  <bruno@clisp.org>
30060
30061         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30062         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30063         * modules/gettext (Files): Add m4/intlmacosx.m4.
30064
30065 2007-06-07  Bruno Haible  <bruno@clisp.org>
30066
30067         * modules/localename-tests: New file.
30068         * tests/test-localename.c: New file.
30069
30070         New module 'localename'.
30071         * lib/localename.h: New file.
30072         * lib/localename.c: New file, from GNU gettext.
30073         * m4/localename.m4: New file.
30074         * modules/localename: New file.
30075
30076 2007-06-07  Bruno Haible  <bruno@clisp.org>
30077
30078         Work around the lack of <wchar.h> on some builds of uClibc.
30079         * doc/headers/wchar.texi: Update.
30080         * lib/wchar_.h: Include <wchar.h> only if it exists.
30081         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30082         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30083         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30084         doesn't exist.
30085         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30086         * modules/mbfile (Depends-on): Add wchar.
30087         * modules/mbiter (Depends-on): Likewise.
30088         * modules/mbuiter (Depends-on): Likewise.
30089         Reported by Simon Josefsson.
30090
30091 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         Work around problem reported by Steven M. Schweda in
30094         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30095         Tru64 5.1B with the Compaq compiler environment installed declares
30096         an 'isblank' function but does not define it in the C library.
30097         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30098         * lib/regex_internal.h (isblank): Likewise.
30099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30100         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30101
30102 2007-06-05  Bruno Haible  <bruno@clisp.org>
30103
30104         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30105         ia64.
30106         * modules/printf-safe: New file.
30107         * modules/fprintf-posix (Depends-on): Add printf-safe.
30108         * modules/printf-posix (Depends-on): Likewise.
30109         * modules/snprintf-posix (Depends-on): Likewise.
30110         * modules/sprintf-posix (Depends-on): Likewise.
30111         * modules/vasnprintf-posix (Depends-on): Likewise.
30112         * modules/vasprintf-posix (Depends-on): Likewise.
30113         * modules/vfprintf-posix (Depends-on): Likewise.
30114         * modules/vprintf-posix (Depends-on): Likewise.
30115         * modules/vsnprintf-posix (Depends-on): Likewise.
30116         * modules/vsprintf-posix (Depends-on): Likewise.
30117         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30118         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30119         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30120         "no" on i386, x86_64, ia64.
30121         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30122         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30123         on i386, x86_64, ia64.
30124         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30125         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30126         on i386, x86_64, ia64.
30127         * tests/test-vasnprintf-posix.c: Include float.h.
30128         (LDBL80_WORDS): New macro.
30129         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30130         on i386, x86_64, ia64.
30131         * tests/test-vasprintf-posix.c: Include float.h.
30132         (LDBL80_WORDS): New macro.
30133         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30134         on i386, x86_64, ia64.
30135         * tests/test-snprintf-posix.c: Include float.h.
30136         * tests/test-sprintf-posix.c: Likewise.
30137         * tests/test-vsnprintf-posix.c: Likewise.
30138         * tests/test-vsprintf-posix.c: Likewise.
30139
30140 2007-06-05  Bruno Haible  <bruno@clisp.org>
30141
30142         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30143         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30144         non-IEEE numbers on i386, x86_64, ia64.
30145         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30146         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30147         * tests/test-isnanl.h: Include float.h.
30148         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30149
30150 2007-06-05  Bruno Haible  <bruno@clisp.org>
30151
30152         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30153         also the %a / %A. Handle the %a / %A code before this extra handling.
30154
30155 2007-06-05  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30158         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30159
30160 2007-06-05  Bruno Haible  <bruno@clisp.org>
30161
30162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30163         typo in variable name.
30164
30165 2007-06-05  Eric Blake  <ebb9@byu.net>
30166
30167         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30168         Reported by Simon Josefsson.
30169
30170 2007-06-04  Bruno Haible  <bruno@clisp.org>
30171
30172         Avoid test failures on some PowerPC platforms.
30173         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30174         Define differently for PowerPC.
30175         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30176         Reported by Gary V. Vaughan <gary@gnu.org>.
30177
30178 2007-06-02  Bruno Haible  <bruno@clisp.org>
30179
30180         Fix test-stdint failure on FreeBSD/ia64.
30181         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30182         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30183         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30184         * doc/headers/stdint.texi: Update.
30185
30186 2007-06-01  Bruno Haible  <bruno@clisp.org>
30187
30188         * tests/test-binary-io.c (main): Pass a third argument to open().
30189         Reported by Gary V. Vaughan <gary@gnu.org>.
30190
30191 2007-06-01  Bruno Haible  <bruno@clisp.org>
30192
30193         * doc/functions/frexpl.texi: Update for mingw.
30194
30195 2007-06-01  Bruno Haible  <bruno@clisp.org>
30196
30197         * tests/test-lseek.c (main): Disable test of errno for invalid third
30198         argument.
30199         * doc/functions/lseek.texi: Update.
30200         Reported by Gary V. Vaughan <gary@gnu.org>.
30201
30202 2007-05-28  Bruno Haible  <bruno@clisp.org>
30203
30204         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30205
30206 2007-05-31  Eric Blake  <ebb9@byu.net>
30207
30208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30209         cross compiling.
30210
30211 2007-05-30  Eric Blake  <ebb9@byu.net>
30212         and Bruno Haible  <bruno@clisp.org>
30213
30214         Work around mingw test failures exposed by m4-1.4.9b.
30215         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30216         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30217         moment.
30218
30219 2007-05-30  Bruno Haible  <bruno@clisp.org>
30220
30221         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30222         assuming that they are closed. Needed on HP-UX 11.
30223
30224 2007-05-29  Bruno Haible  <bruno@clisp.org>
30225
30226         Fix a problem with #include_next.
30227         * lib/dirent_.h: Split the double-inclusion guard.
30228         * lib/fcntl_.h: Likewise.
30229         * lib/float_.h: Likewise.
30230         * lib/iconv_.h: Likewise.
30231         * lib/inttypes_.h: Likewise.
30232         * lib/locale_.h: Likewise.
30233         * lib/math_.h: Likewise.
30234         * lib/netinet_in_.h: Likewise.
30235         * lib/search_.h: Likewise.
30236         * lib/signal_.h: Likewise.
30237         * lib/stdint_.h: Likewise.
30238         * lib/stdio_.h: Likewise.
30239         * lib/stdlib_.h: Likewise.
30240         * lib/string_.h: Likewise.
30241         * lib/sys_select_.h: Likewise.
30242         * lib/sys_socket_.h: Likewise.
30243         * lib/sys_stat_.h: Likewise.
30244         * lib/sys_time_.h: Likewise.
30245         * lib/sysexits_.h: Likewise.
30246         * lib/time_.h: Likewise.
30247         * lib/unistd_.h: Likewise.
30248         * lib/wchar_.h: Likewise.
30249         * lib/wctype_.h: Likewise.
30250
30251 2007-05-29  Bruno Haible  <bruno@clisp.org>
30252
30253         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30254         for the moment.
30255
30256 2007-05-29  Bruno Haible  <bruno@clisp.org>
30257
30258         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30259         invocation.
30260         Reported by Eric Blake.
30261
30262 2007-05-29  Bruno Haible  <bruno@clisp.org>
30263
30264         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30265         compiling case.
30266
30267 2007-05-29  Eric Blake  <ebb9@byu.net>
30268             Bruno Haible  <bruno@clisp.org>
30269
30270         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30271         cross compiles.
30272
30273 2007-05-28  Eric Blake  <ebb9@byu.net>
30274
30275         * modules/closein-tests (test_closein_LDADD): Support test on
30276         cygwin with libtool.
30277
30278 2007-05-28  Bruno Haible  <bruno@clisp.org>
30279
30280         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30281         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30282         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30283         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30284         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30285         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30286         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30289
30290 2007-05-28  Eric Blake  <ebb9@byu.net>
30291
30292         Unconditionally include <config.h> in unit tests.
30293         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30294         * tests/test-allocsa.c, tests/test-arcfour.c,
30295         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30296         tests/test-array_list.c, tests/test-array_oset.c,
30297         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30298         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30299         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30300         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30301         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30302         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30303         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30304         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30305         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30306         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30307         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30308         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30309         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30310         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30311         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30312         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30313         test-md5.c, test-memmem.c, test-printf-posix.c,
30314         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30315         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30316         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30317         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30318         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30319         test-vasnprintf-posix2.c, test-vasnprintf.c,
30320         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30321         test-vfprintf-posix.c, test-vprintf-posix.c,
30322         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30323         test-xvasprintf.c: Likewise.
30324
30325 2007-05-28  Bruno Haible  <bruno@clisp.org>
30326
30327         * gnulib-tool (func_import): Remember the --with-tests command-line
30328         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30329         Reported by Eric Blake.
30330
30331 2007-05-28  Bruno Haible  <bruno@clisp.org>
30332
30333         * modules/ftell-tests: New file.
30334         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30335         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30336
30337         * lib/ftell.c: New file.
30338         * modules/ftell: New file.
30339         * m4/ftell.m4: New file.
30340         * doc/functions/ftell.texi: Update.
30341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30342         REPLACE_FTELL.
30343         * lib/stdio_.h (rpl_ftell): New declaration.
30344         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30345         REPLACE_FTELL.
30346
30347 2007-05-28  Eric Blake  <ebb9@byu.net>
30348
30349         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30350
30351 2007-05-28  Bruno Haible  <bruno@clisp.org>
30352
30353         * modules/fseek-tests: New file.
30354         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30355         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30356
30357         * lib/fseek.c: New file.
30358         * modules/fseek: New file.
30359         * m4/fseek.m4: New file.
30360         * doc/functions/fseek.texi: Update.
30361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30362         REPLACE_FSEEK.
30363         * lib/stdio_.h (rpl_fseek): New declaration.
30364         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30365         REPLACE_FSEEK.
30366
30367 2007-05-28  Bruno Haible  <bruno@clisp.org>
30368
30369         * lib/stdio_.h (fflush): More comments.
30370
30371 2007-05-28  Bruno Haible  <bruno@clisp.org>
30372
30373         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30374         runtime test.
30375
30376 2007-05-28  Eric Blake  <ebb9@byu.net>
30377
30378         Improve lseek module.
30379         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30380         * lib/unistd_.h (lseek): Scale back link warning message.
30381         * tests/test-lseek.c: Beef up test.
30382         * tests/test-lseek.sh: Exercise more facets of lseek.
30383         Reported by Bruno Haible.
30384
30385 2007-05-28  Bruno Haible  <bruno@clisp.org>
30386
30387         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30388         to define.
30389
30390 2007-05-27  Bruno Haible  <bruno@clisp.org>
30391
30392         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30393
30394 2007-05-27  Bruno Haible  <bruno@clisp.org>
30395
30396         * modules/openmp: New file.
30397         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30398         Noah Misch.
30399
30400 2007-05-26  Bruno Haible  <bruno@clisp.org>
30401
30402         * modules/chdir-long (Depends-on): Add fchdir.
30403         * modules/chdir-safer (Depends-on): Likewise.
30404         * modules/fts (Depends-on): Likewise.
30405         * modules/fts-lgpl (Depends-on): Likewise.
30406         * modules/openat (Depends-on): Likewise.
30407         * modules/savewd (Depends-on): Likewise.
30408
30409 2007-05-24  Eric Blake  <ebb9@byu.net>
30410
30411         Fix lseek on mingw.
30412         * modules/lseek: New module.
30413         * m4/lseek.m4: New file.
30414         * lib/lseek.c: New file.
30415         * modules/lseek-tests: New file.
30416         * tests/test-lseek.c: New file.
30417         * tests/test-lseek.sh: New file.
30418         * MODULES.html.sh: Document lseek module.
30419         * modules/fflush (Depends-on): Add lseek, fseeko.
30420         * modules/fseeko (Depends-on): Likewise.
30421         * modules/ftello (Depends-on): Likewise.
30422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30423         broken.
30424         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30425         broken.
30426         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30427         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30428         * lib/ftello.c (rpl_ftello): Likewise.
30429         * tests/test-fseeko.c (main): Test this.
30430         * tests/test-fseeko.sh: Likewise.
30431         * tests/test-ftello.c (main): Likewise.
30432         * tests/test-ftello.sh: Likewise.
30433         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30434         implies replacing fseek.
30435         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30436         HAVE_FTELLO.
30437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30438         * modules/unistd (Makefile.am): Likewise.
30439         * lib/unistd_.h (lseek): Declare a replacement.
30440         * doc/functions/lseek.texi (lseek): Document this fix.
30441         * doc/functions/fseek.texi (fseek): Likewise.
30442         * doc/functions/ftell.texi (ftell): Likewise.
30443
30444 2007-05-24  Bruno Haible  <bruno@clisp.org>
30445
30446         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30447         in the printed representation of a NaN.
30448         * tests/test-vasprintf-posix.c (test_function): Likewise.
30449         * tests/test-snprintf-posix.h (test_function): Likewise.
30450         * tests/test-sprintf-posix.h (test_function): Likewise.
30451         Reported by Eric Blake.
30452
30453 2007-05-23  Eric Blake  <ebb9@byu.net>
30454
30455         Fix fseeko/ftello on cygwin 1.5.24.
30456         * doc/functions/fseeko.texi (fseeko): Document the fix.
30457         * doc/functions/ftello.texi (ftello): Document the fix.
30458         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30459         * doc/functions/stdout.text (stdout): New file.
30460         * doc/functions/stderr.text (stderr): New file.
30461         * doc/gnulib.texi (Function Substitutes): Use new files.
30462         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30463         prior to 1.7.0.
30464         * tests/test-ftello.c (main): Likewise for ftello.
30465         * tests/test-fseeko.sh: New file.
30466         * tests/test-ftello.sh: New file.
30467         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30468         with seekable stdin.
30469         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30471         (gl_REPLACE_FSEEKO): New macro.
30472         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30473         * modules/fseeko (Files): Distribute fseeko.c.
30474         * modules/ftello (Files): Distribute ftello.c.
30475         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30476         mode.
30477         * lib/ftello.c (rpl_ftello): New file.
30478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30479         fseeko, ftello.
30480         (gl_STDIN_LARGE_OFFSET): New macro.
30481         * modules/stdio (Makefile.am): Perform the replacement.
30482         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30483
30484 2007-05-23  Bruno Haible  <bruno@clisp.org>
30485
30486         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30487         GNULIB_POSIXCHECK is defined.
30488
30489 2007-05-21  Bruno Haible  <bruno@clisp.org>
30490
30491         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30492         Check also the output for NaN arguments. When cross-compiling, guess
30493         no on IRIX.
30494         * lib/vasnprintf.c: Update comments.
30495         * tests/test-vasnprintf-posix.c (strisnan): New function.
30496         (test_function): Use it.
30497         * tests/test-vasprintf-posix.c (strisnan): New function.
30498         (test_function): Use it.
30499         * tests/test-snprintf-posix.h (strisnan): New function.
30500         (test_function): Use it.
30501         * tests/test-sprintf-posix.h (strisnan): New function.
30502         (test_function): Use it.
30503         Reported by Eric Blake.
30504
30505 2007-05-20  Bruno Haible  <bruno@clisp.org>
30506
30507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30508         numbers that fails on BeOS.
30509         * doc/functions/frexpl.texi: Update.
30510
30511 2007-05-20  Jim Meyering  <jim@meyering.net>
30512
30513         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30514         forced upon us by glibc-2.6.
30515
30516 2007-05-20  Bruno Haible  <bruno@clisp.org>
30517
30518         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30519         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30520         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30521         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30522         NEED_PRINTF_INFINITE.
30523         (is_infinitel): New function.
30524         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30526         gl_PREREQ_VASNPRINTF_INFINITE.
30527         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30528         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30529         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30530         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30531         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30532         gl_PREREQ_VASNPRINTF_INFINITE.
30533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30540         * doc/functions/fprintf.texi: Update.
30541         * doc/functions/printf.texi: Update.
30542         * doc/functions/snprintf.texi: Update.
30543         * doc/functions/sprintf.texi: Update.
30544         * doc/functions/vfprintf.texi: Update.
30545         * doc/functions/vprintf.texi: Update.
30546         * doc/functions/vsnprintf.texi: Update.
30547         * doc/functions/vsprintf.texi: Update.
30548
30549 2007-05-20  Bruno Haible  <bruno@clisp.org>
30550
30551         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30552         was not found in libc.
30553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30554
30555 2007-05-20  Bruno Haible  <bruno@clisp.org>
30556
30557         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30558         printed as "-nan" instead of "nan".
30559         * tests/test-vasprintf-posix.c (test_function): Likewise.
30560         * tests/test-snprintf-posix.h (test_function): Likewise.
30561         * tests/test-sprintf-posix.h (test_function): Likewise.
30562         Needed for HP-UX 11.
30563
30564 2007-05-20  Jim Meyering  <jim@meyering.net>
30565
30566         Fix buggy test for the fchownat-deref bug.
30567         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30568         symlink required for the run-test.  Without it, this test would
30569         always declare that fchownat doesn't work, and client code would
30570         unnecessarily use the replacement function with fixed libc.
30571         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30572         Reported by Greg Schafer.
30573
30574 2007-05-19  Bruno Haible  <bruno@clisp.org>
30575
30576         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30577         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30578         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30579         Needed for IRIX 6.5 and Solaris 2.5.1.
30580
30581 2007-05-19  Bruno Haible  <bruno@clisp.org>
30582
30583         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30584         (test_function): Skip tests involving -0.0 on platforms where
30585         -0.0 = 0.0.
30586         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30587         (test_function): Skip tests involving -0.0 on platforms where
30588         -0.0 = 0.0.
30589         * tests/test-snprintf-posix.h (have_minus_zero): New function.
30590         (test_function): Skip tests involving -0.0 on platforms where
30591         -0.0 = 0.0.
30592         * tests/test-sprintf-posix.h (have_minus_zero): New function.
30593         (test_function): Skip tests involving -0.0 on platforms where
30594         -0.0 = 0.0.
30595         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30596         tests.
30597         * tests/test-printf-posix.h (test_function): Likewise.
30598         * tests/test-printf-posix.output: Remove all -0.0 related results.
30599         Needed for IRIX 6.5.
30600
30601 2007-05-19  Bruno Haible  <bruno@clisp.org>
30602
30603         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30604         printed as "nan0x7fffffff" instead of "nan".
30605         * tests/test-vasprintf-posix.c (test_function): Likewise.
30606         * tests/test-snprintf-posix.h (test_function): Likewise.
30607         * tests/test-sprintf-posix.h (test_function): Likewise.
30608         * tests/test-fprintf-posix.h (NaN): Remove macro.
30609         (test_function): Remove all NaN related tests.
30610         * tests/test-printf-posix.h (NaN): Remove macro.
30611         (test_function): Remove all NaN related tests.
30612         * tests/test-printf-posix.output: Remove all NaN related results.
30613         Needed for IRIX 6.5.
30614
30615 2007-05-19  Bruno Haible  <bruno@clisp.org>
30616
30617         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30619
30620 2007-05-19  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/float_.h: New file.
30623         * m4/float_h.m4: New file.
30624         * modules/float: New file.
30625         * modules/isnanl (Dependencies): Add float.
30626         * modules/isnanl-nolibm (Dependencies): Likewise.
30627         * modules/mathl (Dependencies): Likewise.
30628         * modules/printf-frexpl (Dependencies): Likewise.
30629         * modules/signbit (Dependencies): Likewise.
30630         * modules/vasnprintf (Dependencies): Likewise.
30631         * doc/headers/float.texi: Update.
30632
30633 2007-05-19  Jim Meyering  <jim@meyering.net>
30634
30635         * lib/utimens.c (gl_futimens): Rename from futimens,
30636         now that glibc-2.6 declares futimens.
30637         * lib/utimens.h: Likewise.
30638
30639 2007-05-19  Bruno Haible  <bruno@clisp.org>
30640
30641         Avoid test failures on mingw.
30642         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30643         * tests/test-printf-posix.sh: Likewise.
30644         * tests/test-vfprintf-posix.sh: Likewise.
30645         * tests/test-vprintf-posix.sh: Likewise.
30646
30647 2007-05-19  Bruno Haible  <bruno@clisp.org>
30648
30649         Fix *printf result for NaN, Inf, -0.0 on mingw.
30650         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30651         * lib/vasnprintf.c: Include math.h and isnan.h.
30652         (is_infinite_or_zero): New function.
30653         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30654         values in the %f, %F, %e, %E, %g, %G directives.
30655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30657         gl_PRINTF_INFINITE and test its result. Invoke
30658         gl_PREREQ_VASNPRINTF_INFINITE.
30659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30666         * doc/functions/fprintf.texi: Update.
30667         * doc/functions/printf.texi: Update.
30668         * doc/functions/snprintf.texi: Update.
30669         * doc/functions/sprintf.texi: Update.
30670         * doc/functions/vfprintf.texi: Update.
30671         * doc/functions/vprintf.texi: Update.
30672         * doc/functions/vsnprintf.texi: Update.
30673         * doc/functions/vsprintf.texi: Update.
30674
30675 2007-05-19  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30678         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30679         Instead of multiplying with 10^k, set extra_zeroes to k.
30680         (scale10_round_long_double): Remove function.
30681
30682 2007-05-18  Bruno Haible  <bruno@clisp.org>
30683
30684         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30685         introduced on 2007-05-06.
30686
30687 2007-05-18  Bruno Haible  <bruno@clisp.org>
30688
30689         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30690         %g directives.
30691         * tests/test-vasprintf-posix.c (test_function): Likewise.
30692         * tests/test-snprintf-posix.h (test_function): Likewise.
30693         * tests/test-sprintf-posix.h (test_function): Likewise.
30694
30695 2007-05-18  Bruno Haible  <bruno@clisp.org>
30696
30697         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30698         (strmatch): New function.
30699         (test_function): Test the %f directive on numbers of various exponents.
30700         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30701         (strmatch): New function.
30702         (test_function): Test the %f directive on numbers of various exponents.
30703         * tests/test-snprintf-posix.h (strmatch): New function.
30704         (test_function): Test the %f directive on numbers of various exponents.
30705         * tests/test-sprintf-posix.h (strmatch): New function.
30706         (test_function): Test the %f directive on numbers of various exponents.
30707         * tests/test-snprintf-posix.c (SIZEOF): New macro.
30708         * tests/test-sprintf-posix.c (SIZEOF): New macro.
30709         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30710         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30711
30712 2007-05-18  Bruno Haible  <bruno@clisp.org>
30713
30714         Add support for 'long double' number output.
30715         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30716         * lib/vasnprintf.c: Include math.h and float+.h.
30717         (mp_limb_t): New type.
30718         (GMP_LIMB_BITS): New macro.
30719         (mp_twolimb_t): New type.
30720         (GMP_TWOLIMB_BITS): New macro.
30721         (mpn_t): New type.
30722         (multiply, divide, convert_to_decimal, decode_long_double,
30723         scale10_round_long_double, scale10_round_decimal_long_double,
30724         floorlog10l): New functions.
30725         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
30726         for the %f, %F, %e, %E, %g, %G directives.
30727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
30728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30729         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
30730         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
30731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30738         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
30739         * modules/snprintf-posix (Depends-on): Likewise.
30740         * modules/sprintf-posix (Depends-on): Likewise.
30741         * modules/vasnprintf-posix (Depends-on): Likewise.
30742         * modules/vasprintf-posix (Depends-on): Likewise.
30743         * modules/vfprintf-posix (Depends-on): Likewise.
30744         * modules/vsnprintf-posix (Depends-on): Likewise.
30745         * modules/vsprintf-posix (Depends-on): Likewise.
30746         * modules/vasnprintf (Files): Add lib/float+.h.
30747         * doc/functions/fprintf.texi: Update.
30748         * doc/functions/printf.texi: Update.
30749         * doc/functions/snprintf.texi: Update.
30750         * doc/functions/sprintf.texi: Update.
30751         * doc/functions/vfprintf.texi: Update.
30752         * doc/functions/vprintf.texi: Update.
30753         * doc/functions/vsnprintf.texi: Update.
30754         * doc/functions/vsprintf.texi: Update.
30755
30756 2007-05-18  Bruno Haible  <bruno@clisp.org>
30757
30758         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
30759
30760 2007-05-18  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
30763         for printing 64-bit integers. Needed for mingw.
30764
30765 2007-05-18  Bruno Haible  <bruno@clisp.org>
30766
30767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30768         gl_FUNC_FREXPL_WORKS.
30769         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
30770
30771 2007-05-18  Bruno Haible  <bruno@clisp.org>
30772
30773         * modules/frexpl-nolibm-tests: New file.
30774
30775         * modules/frexpl-nolibm: New file.
30776         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
30777
30778 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30779
30780         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
30781         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
30782         GCC 4.2, which otherwise issues a lot of warnings.
30783         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
30784         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
30785         Likewise.
30786         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
30787         * modules/iconv_open (iconv.h): Likewise.
30788         * modules/locale (locale.h): Likewise.
30789         * modules/netinet_in (netinet/in.h): Likewise.
30790         * modules/sys_select (sys_select.h): Likewise.
30791         * modules/sys_socket (sys/socket.h): Likewise.
30792         * modules/sys_stat (sys/stat.h): Likewise.
30793         * modules/sysexits (sysexits.h): Likewise.
30794         * modules/unistd (unistd.h): Likewise.
30795
30796 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30797
30798         * modules/closein-tests (Makefile.am): Distribute
30799         `test-closein.sh'.
30800
30801 2007-05-17  Bruno Haible  <bruno@clisp.org>
30802
30803         * tests/test-printf-posix.output: Renamed from
30804         tests/test-fprintf-posix.out.
30805         * modules/fprintf-posix-tests: Update.
30806         * modules/printf-posix-tests: Update.
30807         * modules/vfprintf-posix-tests: Update.
30808         * modules/vprintf-posix-tests: Update.
30809         * tests/test-fprintf-posix.sh: Update.
30810         * tests/test-printf-posix.sh: Update.
30811         * tests/test-vfprintf-posix.sh: Update.
30812         * tests/test-vprintf-posix.sh: Update.
30813         Reported by Ralf Wildenhues.
30814
30815 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30816
30817         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
30818         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
30819         GCC 4.2, which otherwise issues a lot of warnings.
30820         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
30821         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
30822         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
30823         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
30824         it should no longer be needed.
30825         * lib/string_.h: Likewise.
30826         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
30827         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
30828         * modules/inttypes (inttypes.h): Likewise.
30829         * modules/math (math.h): Likewise.
30830         * modules/search (search.h): Likewise.
30831         * modules/signal (signal.h): Likewise.
30832         * modules/stdint (stdint.h): Likewise.
30833         * modules/stdio (stdio.h): Likewise.
30834         * modules/stdlib (stdlib.h): Likewise.
30835         * modules/string (string.h): Likewise.
30836         * modules/sys_time (sys/time.h): Likewise.
30837         * modules/time (time.h): Likewise.
30838         * modules/wchar (wchar.h): Likewise.
30839         * modules/wctype (wtype.h): Likewise.
30840
30841 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30842
30843         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
30844
30845 2007-05-13  Bruno Haible  <bruno@clisp.org>
30846
30847         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
30848         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30849         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
30850         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30851         (gl_PREREQ_STRTOK_R): Don't require it here.
30852
30853 2007-05-13  Bruno Haible  <bruno@clisp.org>
30854
30855         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
30856         when used in C++ mode.
30857
30858 2007-05-12  Bruno Haible  <bruno@clisp.org>
30859
30860         * lib/linebuffer.h: Tweak doc.
30861         * lib/linebuffer.c: Likewise.
30862
30863 2007-05-12  James Youngman  <jay@gnu.org>
30864
30865         * lib/linebuffer.c (readlinebuffer_delim): New function,
30866         like readlinebuffer, but use a caller-specified delimiter.
30867         (readlinebuffer): Just call readlinebuffer_delim with '\n'
30868         as the delimiter.
30869         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
30870
30871 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30872
30873         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
30874         * modules/openat (Files): Remove openat-die.c.
30875         (Depends-on): Add openat-die.
30876         * modules/openat-die: New module.
30877
30878 2007-05-06  Bruno Haible  <bruno@clisp.org>
30879
30880         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
30881         Update with info about Cygwin.
30882         * doc/functions/fprintf.texi: Update.
30883         * doc/functions/printf.texi: Update.
30884         * doc/functions/snprintf.texi: Update.
30885         * doc/functions/sprintf.texi: Update.
30886         * doc/functions/vfprintf.texi: Update.
30887         * doc/functions/vprintf.texi: Update.
30888         * doc/functions/vsnprintf.texi: Update.
30889         * doc/functions/vsprintf.texi: Update.
30890         Reported by Eric Blake.
30891
30892 2007-05-06  Bruno Haible  <bruno@clisp.org>
30893
30894         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
30895         padding ourselves for the floating-point directives.
30896         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
30897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
30898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30899         gl_PRINTF_FLAG_ZERO and test its result. Invoke
30900         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
30901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
30903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30908         * tests/test-snprintf-posix.h (test_function): Also check the width
30909         and some flags in the %f directive.
30910         * tests/test-sprintf-posix.h (test_function): Likewise.
30911         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30912         * tests/test-vasprintf-posix.c (test_function): Likewise.
30913         * doc/functions/fprintf.texi: Update.
30914         * doc/functions/printf.texi: Update.
30915         * doc/functions/snprintf.texi: Update.
30916         * doc/functions/sprintf.texi: Update.
30917         * doc/functions/vfprintf.texi: Update.
30918         * doc/functions/vprintf.texi: Update.
30919         * doc/functions/vsnprintf.texi: Update.
30920         * doc/functions/vsprintf.texi: Update.
30921
30922 2007-05-06  Bruno Haible  <bruno@clisp.org>
30923
30924         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
30925         pass the ' flag character to sprintf or snprintf.
30926         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
30927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
30928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30929         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
30930         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
30931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
30933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30935         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30936         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30937         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30938         * tests/test-snprintf-posix.h (test_function): Also check the grouping
30939         flag.
30940         * tests/test-sprintf-posix.h (test_function): Likewise.
30941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30942         * tests/test-vasprintf-posix.c (test_function): Likewise.
30943         * doc/functions/fprintf.texi: Update.
30944         * doc/functions/printf.texi: Update.
30945         * doc/functions/snprintf.texi: Update.
30946         * doc/functions/sprintf.texi: Update.
30947         * doc/functions/vfprintf.texi: Update.
30948         * doc/functions/vprintf.texi: Update.
30949         * doc/functions/vsnprintf.texi: Update.
30950         * doc/functions/vsprintf.texi: Update.
30951
30952 2007-05-01  Bruno Haible  <bruno@clisp.org>
30953
30954         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
30955
30956 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
30957
30958         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
30959         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
30960
30961 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
30962
30963         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
30964         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
30965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
30966
30967 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
30968
30969         * lib/argp-help.c (struct hol_entry): New member `ord'.
30970         (HOL_ENTRY_PTRCMP): Use ord for comparison
30971         (hol_sort): Initialize ord.
30972
30973 2007-05-01  Bruno Haible  <bruno@clisp.org>
30974
30975         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
30976         Reported by Eric Blake.
30977         * doc/gnulib.texi (Function Substitutes): Update.
30978
30979 2007-05-01  Bruno Haible  <bruno@clisp.org>
30980
30981         * doc/functions.texi: Remove file, now redundant through
30982         doc/functions/*.texi.
30983
30984 2007-05-01  Bruno Haible  <bruno@clisp.org>
30985
30986         * modules/argp (Depends-on): Add sleep.
30987
30988 2007-05-01  Bruno Haible  <bruno@clisp.org>
30989
30990         * modules/sleep-tests: New file.
30991         * tests/test-sleep.c: New file.
30992
30993         * modules/sleep: New file.
30994         * lib/sleep.c: New file.
30995         * m4/sleep.m4: New file.
30996         * lib/unistd_.h (sleep): New declaration.
30997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
30998         HAVE_SLEEP.
30999         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31000         * doc/functions/sleep.texi: Document the sleep module.
31001
31002 2007-05-01  Bruno Haible  <bruno@clisp.org>
31003
31004         * lib/sigprocmask.h: Remove file.
31005         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31006         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31007         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31008         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31009         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31010         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31011         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31012         HAVE_SIGSET_T as a shell variable.
31013         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31014         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31015         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31016         (Depends-on): Add signal. Remove verify.
31017         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31018         (Include): Mention <signal.h> instead of sigprocmask.h.
31019         * NEWS: Mention the change.
31020         * lib/fatal-signal.c: Don't include sigprocmask.h.
31021
31022 2007-05-01  Bruno Haible  <bruno@clisp.org>
31023
31024         * modules/signal: New file.
31025         * lib/signal_.h: New file.
31026         * m4/signal_h.m4: New file.
31027
31028 2007-05-01  Bruno Haible  <bruno@clisp.org>
31029
31030         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31031         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31032         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31033         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31034
31035 2007-05-01  Bruno Haible  <bruno@clisp.org>
31036
31037         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31038         configure time.
31039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31040         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31041         * modules/sys_stat (Makefile.am): Substitute their values into
31042         sys/stat.h.
31043
31044 2007-05-01  Bruno Haible  <bruno@clisp.org>
31045
31046         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31047         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31048         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31049
31050 2007-05-01  Bruno Haible  <bruno@clisp.org>
31051
31052         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31053         'assert' module here.
31054
31055 2007-05-01  Bruno Haible  <bruno@clisp.org>
31056
31057         * doc/functions/*.texi: New files.
31058         * doc/functions/google-ranking.txt: New file.
31059         * doc/gnulib.texi (Function Substitutes): New chapter.
31060         (ctime, inet_ntoa): Remove sections.
31061         * doc/ctime.texi: Remove file.
31062         * doc/inet_ntoa.texi: Remove file.
31063         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31064         dependencies.
31065         (%.info): New rule, specifying a --reference-limit.
31066
31067 2007-05-01  Bruno Haible  <bruno@clisp.org>
31068
31069         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31070
31071 2007-05-01  Bruno Haible  <bruno@clisp.org>
31072
31073         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31074         the portability of 'mkdir' to mingw systems.
31075
31076 2007-05-01  Bruno Haible  <bruno@clisp.org>
31077
31078         * doc/headers/google-ranking.txt: New file.
31079
31080 2007-04-30  Eric Blake  <ebb9@byu.net>
31081
31082         Prefer fseeko to fseek.
31083         * modules/getpass (Depends-on): Add fseeko.
31084         * lib/getpass.c (getpass): Use fseeko, not fseek.
31085
31086 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31087
31088         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31089         assumes the sorting is stable, while most qsort implementations
31090         are not.  Use argument addresses to ensure they never compare as
31091         equal.
31092
31093         * tests/test-argp-2.sh (usage-indent test): Fix output
31094         (func_compare): Restore diff options
31095         * tests/test-argp.c: Restore #include "progname.h"
31096
31097 2007-04-29  Bruno Haible  <bruno@clisp.org>
31098
31099         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31101         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31103         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31104         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31105         (TESTS, check_PROGRAMS): Add test-snprintf.
31106         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31107         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31108         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31109         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31110         assertions that fail on HP-UX, OSF/1, or IRIX.
31111         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31112
31113 2007-04-29  Bruno Haible  <bruno@clisp.org>
31114
31115         * MODULES.html.sh (posix_functions): Remove 'contents'.
31116
31117 2007-04-29  Karl Berry  <karl@gnu.org>
31118
31119         * config/srclist.txt (gendocs_template_min): new entry.
31120
31121 2007-04-29  Bruno Haible  <bruno@clisp.org>
31122
31123         Work around fpurge bug on BSD systems.
31124         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31125         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31126         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31127         fpurge to rpl_fpurge if the system already has this function.
31128         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31129         the case where the system already has this function. Correct invariants
31130         on BSD systems.
31131         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31132         BSD systems.
31133
31134 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31135
31136         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31137         proposed by Sven Verdoolaege.
31138
31139         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31140         options.
31141         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31142         (usage and help tests): Update
31143
31144 2007-04-29  Bruno Haible  <bruno@clisp.org>
31145
31146         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31147         Print more information in case of failure. Disable a test on BeOS.
31148
31149 2007-04-29  Bruno Haible  <bruno@clisp.org>
31150
31151         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31152         This helps debugging on systems on which no gdb is available.
31153
31154 2007-04-29  Bruno Haible  <bruno@clisp.org>
31155
31156         * lib/freading.h: Improve comments.
31157         * lib/fwriting.h: Likewise.
31158         * tests/test-freading.c (main): Don't check freading immediately after
31159         repositioning. Needed for glibc.
31160
31161 2007-04-29  Bruno Haible  <bruno@clisp.org>
31162
31163         * lib/freading.c (freading): Trivial simplification.
31164
31165 2007-04-28  Bruno Haible  <bruno@clisp.org>
31166
31167         * tests/test-fwriting.c (main): Also test the interaction between
31168         fflush and fwriting.
31169         * modules/fwriting-tests (Depends-on): Add fflush.
31170
31171         * tests/test-freading.c (main): Also test the interaction between
31172         fflush and freading.
31173         * modules/freading-tests (Depends-on): Add fflush.
31174
31175 2007-04-28  Bruno Haible  <bruno@clisp.org>
31176
31177         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31178         fseeko and ftello.
31179         Suggested by Eric Blake.
31180
31181 2007-04-28  Jim Meyering  <jim@meyering.net>
31182
31183         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31184         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31185         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31186
31187 2007-04-27  Eric Blake  <ebb9@byu.net>
31188
31189         * doc/headers/assert.texi (assert.h): Document assert module use.
31190
31191 2007-04-27  Bruno Haible  <bruno@clisp.org>
31192
31193         * doc/headers/*.texi: New files.
31194         * doc/gnulib.texi (Header File Substitutes): New chapter.
31195         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31196         dependencies.
31197         (standards.info ,standards.html, standards.dvi): Update dependencies.
31198         (mostlyclean, clean): New targets.
31199
31200 2007-04-27  Bruno Haible  <bruno@clisp.org>
31201
31202         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31203         * modules/sysexits (Files, Makefile.am): Update.
31204
31205         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31206         * modules/sys_socket (Files, Makefile.am): Update.
31207
31208         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31209         * modules/sys_stat (Files, Makefile.am): Update.
31210
31211 2007-04-27  Eric Blake  <ebb9@byu.net>
31212
31213         * lib/freading.h: Improve comments.
31214         * lib/fwriting.h: Likewise.
31215         * lib/fflush.c: Likewise.
31216
31217         Fix closein for mingw.
31218         * modules/closein-tests: Add tests for closein.
31219         * tests/test-closein.c: New file.
31220         * tests/test-closein.sh: Likewise.
31221         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31222         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31223
31224 2007-04-27  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31227         version is < 6.
31228         * lib/math_.h [__DECC]: Likewise.
31229         * lib/stdio_.h [__DECC]: Likewise.
31230         * lib/stdlib_.h [__DECC]: Likewise.
31231         * lib/string_.h [__DECC]: Likewise.
31232         * lib/time_.h [__DECC]: Likewise.
31233         * lib/wchar_.h [__DECC]: Likewise.
31234         * lib/wctype_.h [__DECC]: Likewise.
31235
31236 2007-04-27  Bruno Haible  <bruno@clisp.org>
31237
31238         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31239
31240 2007-04-27  Bruno Haible  <bruno@clisp.org>
31241
31242         * lib/fflush.c: Add comments.
31243         * modules/fpurge-tests (Depends-on): Add fflush.
31244         * modules/freadable-tests (Depends-on): Likewise.
31245         * modules/fwritable-tests (Depends-on): Likewise.
31246
31247 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31248
31249         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31250         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31251         Report by Bruno Haible <bruno@clisp.org>.
31252
31253 2007-04-26  Eric Blake  <ebb9@byu.net>
31254
31255         Fix fflush on mingw.
31256         * modules/fflush (Depends-on): Add freading.
31257         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31258         but unread data.
31259
31260 2007-04-26  Eric Blake  <ebb9@byu.net>
31261         and Bruno Haible  <bruno@clisp.org>
31262
31263         Implement freading and fwriting.
31264         * lib/freading.c: New file.
31265         * lib/freading.h: Likewise.
31266         * m4/freading.m4: Likewise.
31267         * modules/freading: Likewise.
31268         * modules/freading-tests: Likewise.
31269         * tests/test-freading.c: Likewise.
31270         * lib/fwriting.c: New file.
31271         * lib/fwriting.h: Likewise.
31272         * m4/fwriting.m4: Likewise.
31273         * modules/fwriting: Likewise.
31274         * modules/fwriting-tests: Likewise.
31275         * tests/test-fwriting.c: Likewise.
31276         * MODULES.html.sh (File stream based Input/Output): Mention them.
31277
31278 2007-04-26  Bruno Haible  <bruno@clisp.org>
31279
31280         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31281         'long' when we assume it.
31282         Suggested by Eric Blake.
31283
31284 2007-04-26  Bruno Haible  <bruno@clisp.org>
31285
31286         Ensure fseeko, ftello are declared on glibc systems.
31287         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31288         * modules/fseeko (configure.ac-early): Likewise.
31289         * modules/ftello (configure.ac-early): Likewise.
31290         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31291         AC_FUNC_FSEEKO for this.
31292         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31293         (gl_CHECK_FSEEKO): Remove macro.
31294
31295 2007-04-26  Bruno Haible  <bruno@clisp.org>
31296
31297         * tests/test-fflush.c (main): Also check the ftell result after
31298         fflush and fseek/fseeko.
31299         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31300         file descriptor position cache in the stream.
31301         * lib/fseeko.c (rpl_fseeko): Likewise.
31302
31303 2007-04-26  Bruno Haible  <bruno@clisp.org>
31304
31305         * modules/fflush-tests (Depends-on): Add fseeko.
31306
31307 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31308             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31309
31310         * lib/argz_.h: ensure error_t definition is obtained in same
31311         mechanism system argz.h would have.
31312         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31313         argz facilities are known bad.  Err on the side of caution if
31314         cross-compiling.
31315
31316 2007-04-25  Eric Blake  <ebb9@byu.net>
31317
31318         * lib/fpurge.c (includes): Use stdlib.h for free.
31319         * tests/test-fflush.c (main): Also test fflush-fseeko.
31320
31321 2007-04-25  Bruno Haible  <bruno@clisp.org>
31322
31323         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31324         * lib/fseeko.c: New file.
31325         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31326         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31327         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31328         gl_FUNC_FSEEKO.
31329         (gl_FUNC_FSEEKO): Invoke it.
31330         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31331         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31332         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31333
31334 2007-04-25  Bruno Haible  <bruno@clisp.org>
31335
31336         * modules/fflush (Depends-on): Add ftello.
31337
31338 2007-04-25  Bruno Haible  <bruno@clisp.org>
31339
31340         * modules/ftello-tests: New file.
31341         * tests/test-ftello.c: New file.
31342
31343         * modules/ftello: New file.
31344         * m4/ftello.m4: New file.
31345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31346         HAVE_FTELLO.
31347         * lib/stdio_.h (ftello): New declaration.
31348         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31349         HAVE_FTELLO.
31350
31351 2007-04-25  Bruno Haible  <bruno@clisp.org>
31352
31353         * modules/fseeko-tests: New file.
31354         * tests/test-fseeko.c: New file.
31355
31356         * modules/fseeko: New file.
31357         * m4/fseeko.m4: New file.
31358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31359         HAVE_FSEEKO.
31360         * lib/stdio_.h (fseeko): New declaration.
31361         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31362         HAVE_FSEEKO.
31363
31364 2007-04-25  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31367
31368 2007-04-25  Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31371         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31372         * tests/test-unistd.c: Likewise.
31373         * tests/test-fcntl.c: Likewise.
31374
31375 2007-04-23  Eric Blake  <ebb9@byu.net>
31376
31377         * lib/fflush.c: Fix missing include.
31378         Reported by Bruno Haible.
31379
31380 2007-04-23  Bruno Haible  <bruno@clisp.org>
31381
31382         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31383         Reported by Eric Blake.
31384
31385 2007-04-23  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31388
31389 2007-04-23  Bruno Haible  <bruno@clisp.org>
31390
31391         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31392
31393 2007-04-23  Bruno Haible  <bruno@clisp.org>
31394
31395         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31396         Needed on HP-UX 11.
31397
31398 2007-04-16  Eric Blake  <ebb9@byu.net>
31399
31400         Make fflush rely on fpurge.
31401         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31402         open coding all variants.
31403         * modules/fflush (Depends-on): Add fpurge and unistd.
31404         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31406
31407         Fix --with-tests compilation on cygwin.
31408         * modules/argmatch-tests (Makefile.am): List gnulib library first
31409         in LDADD.
31410         * modules/argp-tests (Makefile.am): Likewise.
31411         * modules/array-list-tests (Makefile.am): Likewise.
31412         * modules/array-oset-tests (Makefile.am): Likewise.
31413         * modules/avltree-list-tests (Makefile.am): Likewise.
31414         * modules/avltree-oset-tests (Makefile.am): Likewise.
31415         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31416         * modules/carray-list-tests (Makefile.am): Likewise.
31417         * modules/dirname-tests (Makefile.am): Likewise.
31418         * modules/frexp-tests (Makefile.am): Likewise.
31419         * modules/isnanl-tests (Makefile.am): Likewise.
31420         * modules/linked-list-tests (Makefile.am): Likewise.
31421         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31422         * modules/lock-tests (Makefile.am): Likewise.
31423         * modules/rbtree-list-tests (Makefile.am): Likewise.
31424         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31425         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31426         * modules/tls-tests (Makefile.am): Likewise.
31427         * modules/tsearch-tests (Makefile.am): Likewise.
31428         * modules/xvasprintf-tests (Makefile.am): Likewise.
31429
31430         Fix fpurge for cygwin.
31431         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31432         value.
31433         * modules/fpurge-tests (Depends-on): Clean up trash.
31434
31435 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31436
31437         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31438
31439         * m4/autobuild.m4: Re-indent.
31440
31441 2007-04-13  Bruno Haible  <bruno@clisp.org>
31442
31443         * modules/fpurge-tests: New file.
31444         * tests/test-fpurge.c: New file.
31445
31446         * modules/fpurge: New file.
31447         * lib/fpurge.h: New file.
31448         * lib/fpurge.c: New file.
31449         * m4/fpurge.m4: New file.
31450
31451 2007-04-13  Bruno Haible  <bruno@clisp.org>
31452
31453         * modules/fbufmode-tests: New file.
31454         * tests/test-fbufmode.c: New file.
31455
31456         * modules/fbufmode: New file.
31457         * lib/fbufmode.h: New file.
31458         * lib/fbufmode.c: New file.
31459         * m4/fbufmode.m4: New file.
31460
31461 2007-04-13  Bruno Haible  <bruno@clisp.org>
31462
31463         * modules/fwritable-tests: New file.
31464         * tests/test-fwritable.c: New file.
31465
31466         * modules/fwritable: New file.
31467         * lib/fwritable.h: New file.
31468         * lib/fwritable.c: New file.
31469         * m4/fwritable.m4: New file.
31470
31471 2007-04-13  Bruno Haible  <bruno@clisp.org>
31472
31473         * modules/freadable-tests: New file.
31474         * tests/test-freadable.c: New file.
31475
31476         * modules/freadable: New file.
31477         * lib/freadable.h: New file.
31478         * lib/freadable.c: New file.
31479         * m4/freadable.m4: New file.
31480
31481 2007-04-13  Bruno Haible  <bruno@clisp.org>
31482
31483         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31484         MOSTLYCLEANFILES.
31485
31486 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31487
31488         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31489         gzip bootstrap.conf to avoid dragging in i18n machinery.
31490         (gnulib_tool_option): Use it.
31491
31492 2007-04-13  Bruno Haible  <bruno@clisp.org>
31493
31494         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31495         %F directives.
31496         * tests/test-vasprintf-posix.c (test_function): Likewise.
31497         * tests/test-snprintf-posix.h (test_function): Likewise.
31498         * tests/test-sprintf-posix.h (test_function): Likewise.
31499         * tests/test-fprintf-posix.h (test_function): Likewise.
31500         * tests/test-printf-posix.h (test_function): Likewise.
31501         * tests/test-fprintf-posix.out: Likewise.
31502
31503 2007-04-13  Bruno Haible  <bruno@clisp.org>
31504
31505         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31506         * modules/tls-tests (configure.ac): Likewise.
31507         Reported by Arto C. Nirkko <anirkko@insel.ch>.
31508
31509 2007-04-13  Bruno Haible  <bruno@clisp.org>
31510
31511         * lib/tls.c (glthread_tls_get): Fix return type.
31512         Patch by Arto C. Nirkko <anirkko@insel.ch>.
31513
31514 2007-04-12  Eric Blake  <ebb9@byu.net>
31515
31516         * modules/gettime (Depends-on): Remove gettime.
31517         Reported by Dmitry V. Levin.
31518
31519 2007-04-12  Bruno Haible  <bruno@clisp.org>
31520
31521         * modules/fflush (Include): Mention <stdio.h>.
31522         * modules/strtoimax (Include): Mention <inttypes.h>.
31523         * modules/strtoumax (Include): Likewise.
31524
31525 2007-04-12  Eric Blake  <ebb9@byu.net>
31526
31527         * .cvsignore: New file.
31528         * .gitignore: Likewise.
31529
31530 2007-04-12  Bruno Haible  <bruno@clisp.org>
31531
31532         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31533         not before, since $(LDADD) often contains libgnu.a.
31534         * modules/striconv-tests (test_striconv_LDADD): Likewise.
31535         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31536         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31537         Needed on Cygwin.
31538
31539 2007-04-12  Eric Blake  <ebb9@byu.net>
31540
31541         Work around glibc's failure to flush stdin on fclose.
31542         * lib/closein.c (close_stdin): Flush stdin before closing.
31543
31544         Work around glibc's failure to reset seekable stdin on exit.
31545         * modules/closein: New module.
31546         * lib/closein.c: New file.
31547         * lib/closein.h: Likewise.
31548         * m4/closein.m4: Likewise.
31549         * MODULES.html.sh (File stream based Input/Output): Document it.
31550
31551 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31552
31553         * gnulib-tool: Rename generated 'autobuild' script to
31554         'do-autobuild' in --create-megatestdir output.
31555
31556         * doc/gnulib.texi (Build robot for gnulib): Fix.
31557
31558 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31559
31560         * modules/sysexits (Depends-on): Add absolute-header.
31561
31562 2007-04-12  Eric Blake  <ebb9@byu.net>
31563
31564         No need to preserve errno on success.
31565         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31566         Reported by Bruno Haible.
31567
31568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31569
31570         * MODULES.html.sh (Support for maintaining and releasing
31571         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
31572
31573 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31574
31575         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31576
31577 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31578
31579         * modules/autobuild: New module.
31580
31581         * m4/autobuild.m4: New file.
31582
31583 2007-04-11  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31586         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31599         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31600         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31613         Reported by Eric Blake.
31614
31615 2007-04-11  Bruno Haible  <bruno@clisp.org>
31616
31617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31618
31619 2007-04-10  Bruno Haible  <bruno@clisp.org>
31620
31621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31622         for NaN and Infinity. Needed on FreeBSD 6.1.
31623         * tests/test-vasnprintf-posix.c (test_function): Undo last change
31624         regarding results for "%010a" of Infinity and NaN.
31625         * tests/test-vasprintf-posix.c (test_function): Likewise.
31626         * tests/test-snprintf-posix.h (test_function): Likewise.
31627         * tests/test-sprintf-posix.h (test_function): Likewise.
31628         * tests/test-fprintf-posix.h (test_function): Likewise.
31629         * tests/test-printf-posix.h (test_function): Likewise.
31630         * tests/test-fprintf-posix.out: Likewise.
31631
31632 2007-04-10  Bruno Haible  <bruno@clisp.org>
31633
31634         * modules/locale-tests: New file.
31635         * tests/test-locale.c: New file.
31636
31637         * modules/locale: New file.
31638         * lib/locale_.h: New file.
31639         * m4/locale_h.m4: New file.
31640
31641 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
31642             Bruno Haible  <bruno@clisp.org>
31643
31644         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31645         be determined, test for availability of the copysignf, copysign,
31646         copysignl functions.
31647         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31648         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31649         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31650
31651 2007-04-09  Eric Blake  <ebb9@byu.net>
31652
31653         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31654         * modules/stdio (Makefile.am): Support fflush.
31655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31656         * modules/fflush: New file.
31657         * lib/fflush.c: Likewise.
31658         * m4/fflush.m4: Likewise.
31659         * modules/fflush-tests: New test.
31660         * tests/test-fflush.c: Likewise.
31661         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31662
31663 2007-04-06  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31666         (VASNPRINTF): Use signbit for faster determination whether to print a
31667         minus sign.
31668         * modules/vasnprintf (Files): Remove lib/float+.h.
31669         * modules/fprintf-posix (Depends-on): Add signbit.
31670         * modules/snprintf-posix (Depends-on): Likewise.
31671         * modules/sprintf-posix (Depends-on): Likewise.
31672         * modules/vasnprintf-posix (Depends-on): Likewise.
31673         * modules/vasprintf-posix (Depends-on): Likewise.
31674         * modules/vfprintf-posix (Depends-on): Likewise.
31675         * modules/vsnprintf-posix (Depends-on): Likewise.
31676         * modules/vsprintf-posix (Depends-on): Likewise.
31677
31678 2007-04-06  Bruno Haible  <bruno@clisp.org>
31679
31680         * tests/test-frexp.c (main): Test also the sign bit of zero results.
31681         * tests/test-frexpl.c (main): Likewise.
31682         * tests/test-ldexpl.c (main): Likewise.
31683         * modules/frexp-tests (Depends-on): Add signbit.
31684         * modules/frexpl-tests (Depdends-on): Likewise.
31685         * modules/ldexpl-tests (Depdends-on): Likewise.
31686
31687 2007-04-06  Bruno Haible  <bruno@clisp.org>
31688
31689         * modules/signbit-tests: New file.
31690         * tests/test-signbit.c: New file.
31691
31692         * modules/signbit: New file.
31693         * lib/signbitf.c: New file.
31694         * lib/signbitd.c: New file.
31695         * lib/signbitl.c: New file.
31696         * m4/signbit.m4: New file.
31697         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31698         (signbit): New macro.
31699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31700         REPLACE_SIGNBIT.
31701         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31702         REPLACE_FREXPL into math.h.
31703
31704 2007-04-06  Bruno Haible  <bruno@clisp.org>
31705
31706         * modules/isnanf-nolibm-tests: New file.
31707         * tests/test-isnanf.c: New file.
31708
31709         * modules/isnanf-nolibm: New file.
31710         * lib/isnanf.h: New file.
31711         * lib/isnanf.c: New file.
31712         * lib/isnan.c: Consider the USE_FLOAT macro.
31713         * m4/isnanf.m4: New file.
31714
31715 2007-04-06  Bruno Haible  <bruno@clisp.org>
31716
31717         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31718         (Link): New section.
31719
31720         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
31721
31722 2007-04-06  Bruno Haible  <bruno@clisp.org>
31723
31724         Assume the 'long double' type.
31725         * m4/longdouble.m4: Remove file.
31726         * config/srclist.txt: Don't mention longdouble.m4.
31727         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
31728         * lib/float+.h: Likewise.
31729         * lib/frexp.c: Likewise.
31730         * lib/printf-args.h: Likewise.
31731         * lib/printf-args.c: Likewise.
31732         * lib/printf-frexp.c: Likewise.
31733         * lib/printf-parse.c: Likewise.
31734         * lib/vasnprintf.c: Likewise.
31735         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
31736         * m4/intl.m4: Likewise.
31737         * m4/isnanl.m4: Likewise.
31738         * m4/printf.m4: Likewise.
31739         * m4/printf-frexpl.m4: Likewise.
31740         * m4/vasnprintf.m4: Likewise.
31741         * modules/allocsa (Files): Remove m4/longdouble.m4.
31742         * modules/gettext (Files): Likewise.
31743         * modules/relocatable-prog-wrapper (Files): Likewise.
31744         * modules/vasnprintf (Files): Likewise.
31745         * modules/isnanl (Files): Likewise.
31746         (Include): Simplify.
31747         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
31748         (Include): Simplify.
31749         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
31750         (Include): Simplify.
31751         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
31752         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31753         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
31754         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31755         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31756         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31757         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
31758         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31759         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31760         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31761         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
31762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31763         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
31764         * tests/test-isnanl.c: Likewise.
31765         * tests/test-snprintf-posix.h: Likewise.
31766         * tests/test-sprintf-posix.h: Likewise.
31767         * tests/test-vasnprintf-posix.c: Likewise.
31768         * tests/test-vasnprintf-posix2.c: Likewise.
31769         * tests/test-vasprintf-posix.c: Likewise.
31770
31771 2007-04-06  Bruno Haible  <bruno@clisp.org>
31772
31773         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
31774         * lib/math_.h [__DECC]: Include the overridden include file through
31775         #include_next, outside the double-inclusion guard.
31776         * lib/stdio_.h [__DECC]: Likewise.
31777         * lib/stdlib_.h [__DECC]: Likewise.
31778         * lib/string_.h [__DECC]: Likewise.
31779         * lib/time_.h [__DECC]: Likewise.
31780         * lib/wchar_.h [__DECC]: Likewise.
31781         * lib/wctype_.h [__DECC]: Likewise.
31782         * lib/inttypes_.h [__DECC]: Likewise.
31783         Reported by Albert Chin <china@thewrittenword.com> in
31784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
31785
31786 2007-04-04  Eric Blake  <ebb9@byu.net>
31787
31788         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
31789         1.5.x.
31790
31791 2007-04-04  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
31794         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
31795
31796 2007-04-04  Bruno Haible  <bruno@clisp.org>
31797
31798         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
31799         results for "%010a" of Infinity and NaN.
31800         * tests/test-vasprintf-posix.c (test_function): Likewise.
31801         * tests/test-snprintf-posix.h (test_function): Likewise.
31802         * tests/test-sprintf-posix.h (test_function): Likewise.
31803         * tests/test-fprintf-posix.h (test_function): Remove these tests.
31804         * tests/test-printf-posix.h (test_function): Likewise.
31805         * tests/test-fprintf-posix.out: Update.
31806         Needed for FreeBSD 6.1.
31807
31808 2007-04-04  Bruno Haible  <bruno@clisp.org>
31809
31810         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
31811         directly used by the gnulib modules nor by gnulib-tool.
31812
31813 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31814
31815         * DEPENDENCIES: Give overall description of version dependency
31816         desirability.  Use more-typical names for apps.
31817         Add shell, coreutils, diffutils, grep, tar, gzip.
31818
31819 2007-04-04  Simon Josefsson  <simon@josefsson.org>
31820
31821         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
31822
31823 2007-04-04  Karl Berry  <karl@gnu.org>
31824
31825         * MODULES.html.sh (func_module): missing '.
31826
31827 2007-04-03  Bruno Haible  <bruno@clisp.org>
31828
31829         * modules/argmatch-tests (Makefile.am): New variable
31830         test_argmatch_LDADD.
31831         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
31832         * modules/array-list-tests (Makefile.am): New variable
31833         test_array_list_LDADD.
31834         * modules/array-oset-tests (Makefile.am): New variable
31835         test_array_oset_LDADD.
31836         * modules/avltree-list-tests (Makefile.am): New variable
31837         test_avltree_list_LDADD.
31838         * modules/avltree-oset-tests (Makefile.am): New variable
31839         test_avltree_oset_LDADD.
31840         * modules/avltreehash-list-tests (Makefile.am): New variable
31841         test_avltreehash_list_LDADD.
31842         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
31843         test_canonicalize_lgpl_LDADD.
31844         * modules/carray-list-tests (Makefile.am): New variable
31845         test_carray_list_LDADD.
31846         * modules/dirname-tests (Makefile.am): New variable
31847         test_dirname_LDADD.
31848         * modules/linked-list-tests (Makefile.am): New variable
31849         test_linked_list_LDADD.
31850         * modules/linkedhash-list-tests (Makefile.am): New variable
31851         test_linkedhash_list_LDADD.
31852         * modules/rbtree-list-tests (Makefile.am): New variable
31853         test_rbtree_list_LDADD.
31854         * modules/rbtree-oset-tests (Makefile.am): New variable
31855         test_rbtree_oset_LDADD.
31856         * modules/rbtreehash-list-tests (Makefile.am): New variable
31857         test_rbtreehash_list_LDADD.
31858         * modules/xvasprintf-tests (Makefile.am): New variable
31859         test_xvasprintf_LDADD.
31860         Reported by Eric Blake.
31861
31862 2007-04-03  Eric Blake  <ebb9@byu.net>
31863
31864         * DEPENDENCIES: Weaken m4 requirements.
31865
31866 2007-04-03  Bruno Haible  <bruno@clisp.org>
31867
31868         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
31869         * modules/isnanl-tests (configure.ac): Likewise.
31870
31871 2007-04-03  Ben Pfaff  <blp@gnu.org>
31872
31873         * modules/iconv_open: Add $(srcdir)/ to source directory
31874         references in Makefile fragments that call gperf, to fix VPATH
31875         builds.
31876
31877 2007-04-03  Bruno Haible  <bruno@clisp.org>
31878
31879         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
31880         * lib/ldexpl.c: Undo last change.
31881
31882 2007-04-03  Bruno Haible  <bruno@clisp.org>
31883
31884         * modules/printf-frexpl (Depends-on): Undo last change.
31885         (Files): Add m4/ldexpl.m4.
31886
31887 2007-04-03  Bruno Haible  <bruno@clisp.org>
31888
31889         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
31890         * modules/isnanl (Link): New section.
31891
31892         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
31893         * modules/frexp (Link): New section.
31894
31895         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
31896         * modules/frexpl (Link): New section.
31897
31898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
31899         * modules/ldexpl (Link): New section.
31900
31901 2007-04-03  Bruno Haible  <bruno@clisp.org>
31902
31903         * modules/TEMPLATE-EXTENDED: New file.
31904         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
31905
31906 2007-04-03  Bruno Haible  <bruno@clisp.org>
31907
31908         * DEPENDENCIES: New file.
31909         Suggested by Simon Josefsson.
31910
31911 2007-04-03  Bruno Haible  <bruno@clisp.org>
31912
31913         * doc/gnulib.texi: Escape @.
31914
31915 2007-04-03  James Youngman  <jay@gnu.org>
31916         and Paul Eggert  <eggert@cs.ucla.edu>
31917
31918         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
31919         birthtime on all systems that have birthtime, not just those which
31920         use st_birthtimensec rather than st_birthtim.  Putting zero in
31921         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
31922         that the birth time is not available for files on an NFS mount.
31923
31924 2007-04-03  Simon Josefsson  <simon@josefsson.org>
31925
31926         * modules/memxor: Move back from crypto/, suggested by Bruno.
31927         * modules/crypto/hmac-sha1: Fix memxor dependency.
31928
31929         * modules/crypto/gc: Moved from ../.
31930
31931 2007-04-02  Eric Blake  <ebb9@byu.net>
31932
31933         * lib/ldexpl.c (includes): Avoid libm.
31934
31935         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
31936
31937 2007-04-02  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
31940         on IRIX.
31941
31942 2007-04-02  Bruno Haible  <bruno@clisp.org>
31943
31944         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
31945         x86 or x86_64 platforms running MacOS X.
31946         Reported by Ryan Schmidt <@ryandesign.com>.
31947
31948 2007-04-02  Bruno Haible  <bruno@clisp.org>
31949
31950         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
31951         i386.
31952
31953 2007-04-01  Simon Josefsson  <simon@josefsson.org>
31954
31955         * modules/crypto/arcfour: Moved from ../.
31956         * modules/crypto/arcfour-tests: Moved from ../.
31957         * modules/crypto/arctwo: Moved from ../.
31958         * modules/crypto/arctwo-tests: Moved from ../.
31959         * modules/crypto/des: Moved from ../.
31960         * modules/crypto/des-tests: Moved from ../.
31961         * modules/crypto/gc-arcfour: Moved from ../.
31962         * modules/crypto/gc-arcfour-tests: Moved from ../.
31963         * modules/crypto/gc-arctwo: Moved from ../.
31964         * modules/crypto/gc-arctwo-tests: Moved from ../.
31965         * modules/crypto/gc-des: Moved from ../.
31966         * modules/crypto/gc-des-tests: Moved from ../.
31967         * modules/crypto/gc-hmac-md5: Moved from ../.
31968         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
31969         * modules/crypto/gc-hmac-sha1: Moved from ../.
31970         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
31971         * modules/crypto/gc-md2: Moved from ../.
31972         * modules/crypto/gc-md2-tests: Moved from ../.
31973         * modules/crypto/gc-md4: Moved from ../.
31974         * modules/crypto/gc-md4-tests: Moved from ../.
31975         * modules/crypto/gc-md5: Moved from ../.
31976         * modules/crypto/gc-md5-tests: Moved from ../.
31977         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
31978         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
31979         * modules/crypto/gc-random: Moved from ../.
31980         * modules/crypto/gc-rijndael: Moved from ../.
31981         * modules/crypto/gc-rijndael-tests: Moved from ../.
31982         * modules/crypto/gc-sha1: Moved from ../.
31983         * modules/crypto/gc-sha1-tests: Moved from ../.
31984         * modules/crypto/gc-tests: Moved from ../.
31985         * modules/crypto/hmac-md5: Moved from ../.
31986         * modules/crypto/hmac-md5-tests: Moved from ../.
31987         * modules/crypto/hmac-sha1: Moved from ../.
31988         * modules/crypto/hmac-sha1-tests: Moved from ../.
31989         * modules/crypto/md2: Moved from ../.
31990         * modules/crypto/md2-tests: Moved from ../.
31991         * modules/crypto/md4: Moved from ../.
31992         * modules/crypto/md4-tests: Moved from ../.
31993         * modules/crypto/md5: Moved from ../.
31994         * modules/crypto/md5-tests: Moved from ../.
31995         * modules/crypto/memxor: Moved from ../.
31996         * modules/crypto/rijndael: Moved from ../.
31997         * modules/crypto/rijndael-tests: Moved from ../.
31998         * modules/crypto/sha1: Moved from ../.
31999
32000 2007-03-30  James Youngman  <jay@gnu.org>
32001
32002         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32003         rename() to change the ctime of a file (because ctime is unaffected
32004         by rename on jfs2 on AIX 5.1).
32005         (main): Start by doing cleanup, in case a previous run failed leaving
32006         test files behind.
32007
32008 2007-03-31  Bruno Haible  <bruno@clisp.org>
32009
32010         Support old proprietary implementations of iconv.
32011         * modules/iconv_open: New file.
32012         * lib/iconv_.h: New file.
32013         * m4/iconv_h.m4: New file.
32014         * lib/iconv_open.c: New file.
32015         * lib/iconv_open-aix.gperf: New file.
32016         * lib/iconv_open-hpux.gperf: New file.
32017         * lib/iconv_open-irix.gperf: New file.
32018         * lib/iconv_open-osf.gperf: New file.
32019         * m4/iconv_open.m4: New file.
32020         * modules/linebreak (Depends-on): Add iconv_open.
32021         * modules/striconv (Depends-on): Likewise.
32022         * modules/striconveh (Depends-on): Likewise.
32023         * modules/unicodeio (Depends-on): Likewise.
32024         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32025         (iconv_t)(-1).
32026         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32027         conversion if cd is (iconv_t)(-1).
32028         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32029         is not possible.
32030
32031 2007-03-31  Bruno Haible  <bruno@clisp.org>
32032
32033         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32034         work on Solaris either. Protect also second use of "autodetect_jp".
32035
32036 2007-03-31  Bruno Haible  <bruno@clisp.org>
32037
32038         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32039         the function is not present.
32040
32041 2007-03-31  Bruno Haible  <bruno@clisp.org>
32042
32043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32044         the function is not present.
32045
32046 2007-03-31  Bruno Haible  <bruno@clisp.org>
32047
32048         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32049         a bug in HP-UX iconv_open().
32050
32051 2007-03-31  Bruno Haible  <bruno@clisp.org>
32052
32053         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32054         (Mathematics <math.h>): New section, add fpieee.
32055         (Input/output <stdio.h>): Add fseterr.
32056         (Mathematics <math.h>): New section, add printf-frexp.
32057         (Container data structures): Add sublist.
32058         (Core language properties): Add fpucw, inline.
32059         (Functions for greatest-width integer types <inttypes.h>): Add
32060         imaxabs, imaxdiv, inttypes.
32061         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32062         isnanl-nolibm, ldexp.
32063         (Mathematics <math.h>): New section, add printf-frexpl.
32064         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32065         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32066         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32067         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32068         (Unicode string functions): Add unistr/u*-mbtoucr.
32069         (Java): Add javacomp-script, javaexec-script.
32070         (C#): Add csharpcomp-script, csharpexec-script.
32071         (Support for building libraries and executables): Add havelib,
32072         relocatable-*.
32073         (Support for maintaining and releasing projects): Renamed from
32074         'Support for maintaining and release projects'. Add announce-gen.
32075
32076 2007-03-31  Bruno Haible  <bruno@clisp.org>
32077
32078         * README: Talk primarily about git.
32079         (git and CVS): Renamed from CVS.
32080         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32081         gnulib is available through git.
32082         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32083
32084 2007-03-30  Bruno Haible  <bruno@clisp.org>
32085
32086         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32087         * lib/poll_.h: Likewise.
32088         * lib/stat_.h: Likewise.
32089         * lib/sys_time_.h: Likewise.
32090         * lib/sysexit_.h: Likewise.
32091         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32092         * lib/stdbool_.h: Likewise.
32093         * lib/byteswap_.h: Add double-inclusion guard.
32094
32095 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32096
32097         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32098
32099 2007-03-30  Karl Berry  <karl@gnu.org>
32100
32101         * config/srclist-update: double space after USA in the license
32102         substitution, since that's how it's usually (?) written.
32103
32104 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32105
32106         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32107         reported by Bruno Haible.
32108
32109 2007-03-29  Bruno Haible  <bruno@clisp.org>
32110
32111         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32112         a bug in AIX iconv().
32113
32114 2007-03-29  Bruno Haible  <bruno@clisp.org>
32115
32116         * modules/ldexpl-tests: New file.
32117         * tests/test-ldexpl.c: New file.
32118
32119 2007-03-29  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/ldexpl.c: Include fpucw.h.
32122         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32123         multiplication.
32124         * modules/ldexpl (Depends-on): Add fpucw.
32125
32126 2007-03-29  Bruno Haible  <bruno@clisp.org>
32127
32128         * modules/ldexpl: New file.
32129         * m4/ldexpl.m4: New file.
32130         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32131         set.
32132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32133         REPLACE_LDEXPL.
32134         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32135         REPLACE_LDEXPL.
32136         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32137         gl_FUNC_LDEXPL_WORKS.
32138         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32139         * modules/mathl (Files): Remove lib/ldexpl.c.
32140         (Depends-on): Add ldexpl.
32141
32142 2007-03-29  Bruno Haible  <bruno@clisp.org>
32143
32144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32145
32146 2007-03-29  Bruno Haible  <bruno@clisp.org>
32147
32148         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32149         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32150         and possibly also HP-UX.
32151         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32152         work on AIX, IRIX, HP-UX, OSF/1.
32153         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32154         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32155         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32156         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32157         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32158         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32159
32160 2007-03-29  Bruno Haible  <bruno@clisp.org>
32161
32162         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32163
32164 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32165
32166         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32167         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32168
32169 2007-03-29  Eric Blake  <ebb9@byu.net>
32170
32171         * lib/acl-internal.h: Remove redundant include.
32172         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32173         Cygwin when a file is locked.
32174
32175 2007-03-29  Bruno Haible  <bruno@clisp.org>
32176
32177         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32178         file.
32179         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32180
32181 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32184         try to remove a parent directory if the child couldn't be removed
32185         (except for the first rmdir, which could fail because the child
32186         doesn't exist).  Problem reported by Jeff Blaine in
32187         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32188
32189 2007-03-28  Bruno Haible  <bruno@clisp.org>
32190
32191         * lib/striconveh.c (utf8conv_carefully): New function.
32192         (mem_cd_iconveh_internal): Invoke it.
32193
32194 2007-03-28  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32197         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32198         input.
32199         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32200         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32201         unistr/u8-uctomb.
32202
32203 2007-03-28  Bruno Haible  <bruno@clisp.org>
32204
32205         * modules/unistr/u8-mbtoucr: New file.
32206         * lib/unistr/u8-mbtoucr.c: New file.
32207         * modules/unistr/u16-mbtoucr: New file.
32208         * lib/unistr/u16-mbtoucr.c: New file.
32209         * modules/unistr/u16-mbtoucr: New file.
32210         * lib/unistr/u16-mbtoucr.c: New file.
32211         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32212
32213 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32214             Bruno Haible  <bruno@clisp.org>
32215
32216         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32217         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32218         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32219
32220         * m4/stdio_h.m4: Add stubs for vasprintf too.
32221
32222         * modules/stdio: Support vasprintf in sed command.
32223
32224         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32225         vasprintf.h.  Add stdio module indicator.
32226
32227         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32228         vasprintf.h.
32229
32230         * lib/vasprintf.h: File removed.
32231
32232         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32233         * lib/vasprintf.c: Ditto.
32234         * lib/xvasprintf.c: Ditto.
32235         * tests/test-vasprintf-posix.c: Ditto.
32236         * tests/test-vasprintf.c: Ditto.
32237
32238 2007-03-27  Bruno Haible  <bruno@clisp.org>
32239
32240         Make vasnprintf multithread-safe.
32241         * lib/vasnprintf.c (decimal_point_char): New function.
32242         (VASNPRINTF): Use it.
32243         Suggested by Simon Josefsson.
32244
32245 2007-03-27  Eric Blake  <ebb9@byu.net>
32246
32247         Support sub-second birthtime on cygwin.
32248         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32249         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32250         (get_stat_birthtime): Also work with st_birthtim.
32251
32252 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32253
32254         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32255         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32256         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32257         (get_stat_birthtime_ns): Simplify compile-time tests.
32258         (get_stat_birthtime): Change the API to look like
32259         get_stat_mtime etc., except return a negative tv_nsec on error.
32260         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32261         Don't check for "spare" fields.
32262         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32263         or for struct stat.st_birthtime, as these tests aren't used.
32264         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32265
32266 2007-03-27  Bruno Haible  <bruno@clisp.org>
32267
32268         * lib/stat-time.h: Include <sys/stat.h>.
32269
32270 2007-03-27  James Youngman  <jay@gnu.org>
32271
32272         * lib/stat-time.h (get_stat_birthtime): New function for
32273           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32274         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32275           and its variants.
32276         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32277         * modules/stat-time-test: New file.
32278         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32279
32280 2007-03-26  Bruno Haible  <bruno@clisp.org>
32281
32282         Better support of signalling NaNs.
32283         * lib/atanl.c: Include isnanl.h.
32284         (atanl): Perform test for NaN at the beginning of the function and
32285         through a call to isnanl.
32286         * lib/cosl.c: Include isnanl.h.
32287         (cosl): Perform test for NaN at the beginning of the function and
32288         through a call to isnanl.
32289         * lib/ldexpl.c: Include isnanl.h.
32290         (ldexpl): Perform test for NaN through a call to isnanl.
32291         * lib/logl.c: Include isnanl.h.
32292         (logl): Perform test for NaN at the beginning of the function and
32293         through a call to isnanl.
32294         * lib/sinl.c: Include isnanl.h.
32295         (sinl): Perform test for NaN at the beginning of the function and
32296         through a call to isnanl.
32297         * lib/sqrtl.c: Include isnanl.h.
32298         (sqrtl): Perform test for NaN at the beginning of the function and
32299         through a call to isnanl.
32300         * lib/tanl.c: Include isnanl.h.
32301         (tanl): Perform test for NaN at the beginning of the function and
32302         through a call to isnanl.
32303         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32304         * modules/mathl (Depends-on): Add isnanl.
32305
32306 2007-03-26  Eric Blake  <ebb9@byu.net>
32307
32308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32309         regression in logic sense of previous patch.
32310
32311 2007-03-26  Bruno Haible  <bruno@clisp.org>
32312
32313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32314         unportable shell command "if ! ...".
32315         Reported by Ralf Wildenhues.
32316
32317 2007-03-25  Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32320         <sysexits.h> file, and only add EX_CONFIG.
32321         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32322         absolute file name and whether it is sufficient. Substitute also
32323         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32324         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32325         ABSOLUTE_SYSEXITS_H into sysexits.h.
32326
32327 2007-03-25  Bruno Haible  <bruno@clisp.org>
32328
32329         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32330         hints is NULL.
32331
32332 2007-03-25  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32335         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32336
32337 2007-03-25  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/vasnprintf.c: Include langinfo.h.
32340         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32341         multithread-safe.
32342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32344         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32351         Reported by Simon Josefsson.
32352
32353 2007-03-25  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32356         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32357         * modules/vasnprintf (Depends-on): Add stdint.
32358
32359 2007-03-25  Bruno Haible  <bruno@clisp.org>
32360
32361         * modules/fpieee: New file.
32362         * m4/fpieee.m4: New file.
32363         * modules/isnan-nolibm (Depends-on): Add fpieee.
32364         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32365         * modules/isnanl (Depends-on): Add fpieee.
32366
32367 2007-03-25  Bruno Haible  <bruno@clisp.org>
32368
32369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32370
32371 2007-03-25  Bruno Haible  <bruno@clisp.org>
32372
32373         Avoid test failures on IRIX 6.5.
32374         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32375         (main): Use it.
32376         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32377         macros.
32378         (main): Use them.
32379
32380 2007-03-25  Bruno Haible  <bruno@clisp.org>
32381
32382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32383         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32384         exists but doesn't work.
32385         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32386         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32388         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32389
32390 2007-03-25  Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32393         returns inf. Needed on IRIX 6.5.
32394
32395 2007-03-25  Bruno Haible  <bruno@clisp.org>
32396
32397         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32398         (main): Use isnanl instead of x != x idiom.
32399         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32400
32401         * tests/test-frexp.c: Include isnan.h.
32402         (main): Use isnan instead of x != x idiom.
32403         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32404
32405 2007-03-25  Bruno Haible  <bruno@clisp.org>
32406
32407         * tests/test-frexp.c (NaN): New function/macro.
32408         (main): Use it instead of 0.0 / 0.0.
32409         * tests/test-isnan.c (NaN): New function/macro.
32410         (main): Use it instead of 0.0 / 0.0.
32411         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32412         (test_function): Use it instead of 0.0 / 0.0.
32413         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32414         (test_function): Use it instead of 0.0 / 0.0.
32415         * tests/test-snprintf-posix.h (NaN): New function/macro.
32416         (test_function): Use it instead of 0.0 / 0.0.
32417         * tests/test-sprintf-posix.h (NaN): New function/macro.
32418         (test_function): Use it instead of 0.0 / 0.0.
32419         * tests/test-fprintf-posix.h (NaN): New function/macro.
32420         (test_function): Use it instead of 0.0 / 0.0.
32421         * tests/test-printf-posix.h (NaN): New function/macro.
32422         (test_function): Use it instead of 0.0 / 0.0.
32423
32424         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32425
32426 2007-03-25  Bruno Haible  <bruno@clisp.org>
32427
32428         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32429
32430 2007-03-25  Bruno Haible  <bruno@clisp.org>
32431
32432         * lib/regexec.c (merge_state_with_log): Make static.
32433
32434 2007-03-25  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/trigl.c (kernel_rem_pio2): Make static.
32437
32438 2007-03-25  Bruno Haible  <bruno@clisp.org>
32439
32440         * lib/sincosl.c (sincosl_table): Make static.
32441
32442 2007-03-25  Bruno Haible  <bruno@clisp.org>
32443
32444         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32445         if the compiler does not support C99.
32446
32447 2007-03-25  Bruno Haible  <bruno@clisp.org>
32448
32449         * modules/time (Makefile.am): Ensure all rule action lines start with a
32450         tab.
32451
32452 2007-03-24  Bruno Haible  <bruno@clisp.org>
32453
32454         * modules/tsearch-tests: New file.
32455         * tests/test-tsearch.sh: New file.
32456         * tests/test-tsearch.c: New file, mostly copied from glibc.
32457
32458         * modules/search-tests: New file.
32459         * tests/test-search.c: New file.
32460
32461         * modules/search: New file.
32462         * lib/search_.h: New file, incorporating lib/tsearch.h.
32463         * m4/search_h.m4: New file.
32464         * lib/tsearch.h: Remove file.
32465         * lib/tsearch.c: Include search.h instead of tsearch.h.
32466         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32467         HAVE_TSEARCH.
32468         * modules/tsearch (Files): Remove lib/tsearch.h.
32469         (Depends-on): Add search.
32470         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32471         (Include): Change tsearch.h into search.h.
32472
32473 2007-03-24  Bruno Haible  <bruno@clisp.org>
32474
32475         * modules/fpucw: New file.
32476         * lib/fpucw.h: New file.
32477         * lib/frexp.c: Include fpucw.h.
32478         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32479         (FUNC): Use them.
32480         * lib/printf-frexp.c: Include fpucw.h.
32481         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32482         (FUNC): Use them.
32483         * lib/vasnprintf.c: Include fpucw.h.
32484         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32485         'long double' calculations.
32486         * tests/test-frexpl.c: Include fpucw.h.
32487         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32488         * tests/test-printf-frexpl.c: Include fpucw.h.
32489         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32490         * modules/frexpl (Depends-on): Add fpucw.
32491         * modules/printf-frexpl (Depends-on): Likewise.
32492         * modules/fprintf-posix (Depends-on): Likewise.
32493         * modules/snprintf-posix (Depends-on): Likewise.
32494         * modules/sprintf-posix (Depends-on): Likewise.
32495         * modules/vasnprintf-posix (Depends-on): Likewise.
32496         * modules/vasprintf-posix (Depends-on): Likewise.
32497         * modules/vfprintf-posix (Depends-on): Likewise.
32498         * modules/vsnprintf-posix (Depends-on): Likewise.
32499         * modules/vsprintf-posix (Depends-on): Likewise.
32500         * modules/frexpl-tests (Depends-on): Likewise.
32501         * modules/printf-frexpl-tests (Depends-on): Likewise.
32502
32503 2007-03-24  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/float+.h: New file.
32506         * lib/isnan.c: Include float+.h.
32507         (SIZE): New macro.
32508         (FUNC): Compare only SIZE bytes of the value.
32509         * lib/vasnprintf.c: Include float+.h.
32510         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32511         SIZEOF_LDBL or SIZEOF_DBL bytes.
32512         * modules/isnan-nolibm (Files): Add lib/float+.h.
32513         * modules/isnanl-nolibm (Files): Add lib/float+.h.
32514         * modules/isnanl (Files): Add lib/float+.h.
32515         * modules/vasnprintf (Files): Add lib/float+.h.
32516
32517 2007-03-24  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32520         include isnanl-nolibm.h.
32521
32522 2007-03-24  Bruno Haible  <bruno@clisp.org>
32523
32524         * tests/test-read-file.c (main): Don't produce spurious output for
32525         expected situations. Make the test fail if it encountered unexpected
32526         results.
32527
32528 2007-03-24  Bruno Haible  <bruno@clisp.org>
32529
32530         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32531         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32532
32533 2007-03-24  Bruno Haible  <bruno@clisp.org>
32534
32535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32536
32537 2007-03-24  Bruno Haible  <bruno@clisp.org>
32538
32539         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32540         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32541
32542         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32543         * modules/utf8-ucs4: Turn into a symbolic link to module
32544         unistr/u8-mbtouc.
32545
32546         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32547         utf8-ucs4-unsafe.
32548         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32549         unistr/u8-mbtouc-unsafe.
32550
32551         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32552         * modules/utf16-ucs4: Turn into a symbolic link to module
32553         unistr/u16-mbtouc.
32554
32555         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32556         utf16-ucs4-unsafe.
32557         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32558         unistr/u16-mbtouc-unsafe.
32559
32560         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32561         * modules/ucs4-utf8: Turn into a symbolic link to module
32562         unistr/u8-ubtomb.
32563
32564         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32565         * modules/ucs4-utf16: Turn into a symbolic link to module
32566         unistr/u16-ubtomb.
32567
32568 2007-03-24  Bruno Haible  <bruno@clisp.org>
32569
32570         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32571         Enable the function only if HAVE_INLINE.
32572         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32573         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32574         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32575         Enable the function only if HAVE_INLINE.
32576         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32577         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32578         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32579         Enable the function only if HAVE_INLINE.
32580         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32581         Enable the function only if HAVE_INLINE.
32582         * modules/utf8-ucs4: Update.
32583         * modules/utf8-ucs4-unsafe: Update.
32584         * modules/utf16-ucs4: Update.
32585         * modules/utf16-ucs4-unsafe: Update.
32586         * modules/ucs4-utf8: Update.
32587         * modules/ucs4-utf16: Update.
32588
32589 2007-03-24  Bruno Haible  <bruno@clisp.org>
32590
32591         * lib/utf8-ucs4.h: Remove file.
32592         * lib/utf8-ucs4-unsafe.h: Remove file.
32593         * lib/utf16-ucs4.h: Remove file.
32594         * lib/utf16-ucs4-unsafe.h: Remove file.
32595         * lib/ucs4-utf8.h: Remove file.
32596         * lib/ucs4-utf16.h: Remove file.
32597         * lib/unistr.h: Include their previous contents.
32598         * m4/utf-ucs4.m4: Remove file.
32599         * m4/ucs4-utf.m4: Remove file.
32600         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32601         (Depends-on): Add unistr/base.
32602         (configure.ac): Remove gl_UTF_UCS4.
32603         (Makefile.am): Update.
32604         (Include): Change to unistr.h.
32605         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32606         (Depends-on): Add unistr/base.
32607         (configure.ac): Remove gl_UTF_UCS4.
32608         (Makefile.am): Update.
32609         (Include): Change to unistr.h.
32610         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32611         (Depends-on): Add unistr/base.
32612         (configure.ac): Remove gl_UTF_UCS4.
32613         (Makefile.am): Update.
32614         (Include): Change to unistr.h.
32615         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32616         (Depends-on): Add unistr/base.
32617         (configure.ac): Remove gl_UTF_UCS4.
32618         (Makefile.am): Update.
32619         (Include): Change to unistr.h.
32620         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32621         (Depends-on): Add unistr/base.
32622         (configure.ac): Remove gl_UCS4_UTF.
32623         (Makefile.am): Update.
32624         (Include): Change to unistr.h.
32625         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32626         (Depends-on): Add unistr/base.
32627         (configure.ac): Remove gl_UCS4_UTF.
32628         (Makefile.am): Update.
32629         (Include): Change to unistr.h.
32630         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32631         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32632         utf8-ucs4-unsafe.h.
32633         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32634         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32635         utf16-ucs4-unsafe.h.
32636         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32637         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32638         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32639         * lib/unistr/u8-strchr.c: Likewise.
32640         * lib/unistr/u8-strrchr.c: Likewise.
32641         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32642         * lib/unistr/u16-strchr.c: Likewise.
32643         * lib/unistr/u16-strrchr.c: Likewise.
32644         * lib/striconveh.c: Update.
32645         * lib/linebreak.c: Update.
32646
32647 2007-03-24  Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32650         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32651
32652 2007-03-22  Bruno Haible  <bruno@clisp.org>
32653
32654         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32655
32656 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32657
32658         * MODULES.html.sh (File system functions): New module write-any-file.
32659         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32660         * m4/write-any-file.m4: New files.
32661
32662 2007-03-23  Eric Blake  <ebb9@byu.net>
32663
32664         * gnulib-tool: Rearrange space-tab sequences, since some editors
32665         like to eat them.
32666
32667 2007-03-23  Eric Blake  <ebb9@byu.net>
32668
32669         * lib/version-etc.c (version_etc_va): Update license wording to
32670         be more concise.  Recommended by Richard Stallman.
32671
32672 2007-03-22  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/poll.c (MSG_PEEK): New fallback definition.
32675
32676 2007-03-22  Bruno Haible  <bruno@clisp.org>
32677
32678         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32679         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32680         (main): Update.
32681         Fixes a compilation error on BeOS.
32682
32683 2007-03-22  Bruno Haible  <bruno@clisp.org>
32684
32685         * modules/frexpl-tests: New file.
32686         * tests/test-frexpl.c: New file.
32687
32688         * modules/frexpl: New file.
32689         * m4/frexpl.m4: New file.
32690         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32691         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32693         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32694         (Depends-on): Add frexpl. Remove isnanl-nolibm.
32695         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32696
32697 2007-03-22  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/frexpl.c: Share code with lib/frexp.c.
32700         * modules/mathl (Files): Add lib/frexp.c.
32701         (Depends-on): Add isnanl-nolibm.
32702
32703 2007-03-22  Bruno Haible  <bruno@clisp.org>
32704
32705         * modules/printf-frexp (Files): Add m4/frexp.m4.
32706         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32707         only if the found frexp function actually works.
32708
32709 2007-03-22  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/frexp.c: Remove older implementation that uses divisions.
32712
32713 2007-03-21  Bruno Haible  <bruno@clisp.org>
32714
32715         * modules/frexp-tests: New file.
32716         * tests/test-frexp.c: New file.
32717
32718         * modules/frexp: New file.
32719         * lib/frexp.c: New file.
32720         * m4/frexp.m4: New file.
32721         * lib/math_.h (frexp): New declaration.
32722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
32723         REPLACE_FREXP.
32724         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
32725
32726 2007-03-21  Bruno Haible  <bruno@clisp.org>
32727
32728         * modules/isnanl-tests: New file.
32729         * tests/test-isnanl.c: New file.
32730
32731         * modules/isnanl: New file.
32732         * lib/isnanl.h: New file.
32733         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
32734         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
32735         gl_FUNC_ISNANL_WORKS.
32736         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
32737         New macros.
32738
32739 2007-03-21  Bruno Haible  <bruno@clisp.org>
32740
32741         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
32742         lib/isnanl.h.
32743         (Include): Update.
32744         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
32745         * lib/vasnprintf.c: Update.
32746         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
32747         tests/test-isnanl.h, remove tests/test-isnanl.c.
32748         (Makefile.am): Update.
32749         * tests/test-isnanl-nolibm.c: New file.
32750         * tests/test-isnanl.h: New file.
32751         * tests/test-isnanl.c: Remove file.
32752
32753 2007-03-21  Jim Meyering  <jim@meyering.net>
32754
32755         When trying to open ".", treat ESTALE like EACCES.
32756         * lib/savewd.c (savewd_save): Resort to forking not just upon
32757         failure with EACCES, but also when errno is ESTALE.
32758
32759 2007-03-20  Bruno Haible  <bruno@clisp.org>
32760
32761         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
32762         Needed on AIX 5.1. Reported by Matthew Woehlke.
32763
32764 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32765
32766         Suggestions by Bruno Haible:
32767         * lib/acl-internal.h: Include "gettext.h" rather than rolling
32768         our own.
32769         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
32770         * modules/acl (Depends-on): Add gettext.
32771
32772 2007-03-19  Bruno Haible  <bruno@clisp.org>
32773
32774         * modules/iconvme: Remove file.
32775         * lib/iconvme.h: Remove file.
32776         * lib/iconvme.c: Remove file.
32777         * m4/iconvme.m4: Remove file.
32778
32779 2007-03-19  Bruno Haible  <bruno@clisp.org>
32780
32781         * doc/relocatable-maint.texi: Break long shell script line.
32782         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32783
32784 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32785
32786         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
32787         handle file_has_acl.
32788         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
32789         * lib/acl.c: Move header inclusions and related macro defns into
32790         lib/acl-internal.h.
32791         (S_ISLNK): Remove defn, since that's now done for us.
32792         (file_has_acl): Move to lib/file-has-acl.c.
32793         Call acl_trivial if available.  This is the crucial part of the fix.
32794         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
32795         shared within the library.  Rewrite a bit, partly to make it compatible
32796         with the GNU coding style.
32797         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
32798         Remove unnecessary double-quotes.
32799         Don't test for acl_to_text; the build will catch that.
32800         Replace acl_entries if it doesn't exist and it is needed.
32801         Check for -lsec and acl_trivial (as used on Solaris 10).
32802         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
32803         lib/file-has-acl.c.
32804         (Depends-on): Add sys_stat, for S_ISLNK.
32805
32806 2007-03-19  Ben Pfaff  <blp@gnu.org>
32807
32808         * doc/gnulib.texi: Fix typos.
32809         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32810
32811 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32812
32813         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
32814         If size is zero here, buf must be zero.
32815
32816 2007-03-19  Simon Josefsson  <simon@josefsson.org>
32817
32818         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
32819         <bruno@clisp.org>.
32820
32821 2007-03-18  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
32824         Suggested by Eric Blake.
32825
32826 2007-03-18  Ben Pfaff  <blp@gnu.org>
32827
32828         * doc/relocatable.texi: Recommend using as prefix a directory
32829         that does not exist and will never be created.  Based on
32830         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
32831         and others.
32832
32833 2007-03-17  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/fchownat.c: Include lchown.h.
32836
32837 2007-03-17  Bruno Haible  <bruno@clisp.org>
32838
32839         Fix endless loop when the given allocated size was > INT_MAX.
32840         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
32841         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
32842         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
32843         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
32844         * lib/sprintf.c (sprintf): Likewise.
32845
32846 2007-03-17  Bruno Haible  <bruno@clisp.org>
32847
32848         * tests/test-argp-2.sh (func_compare): Output a context diff.
32849
32850 2007-03-17  Bruno Haible  <bruno@clisp.org>
32851
32852         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
32853         locale's decimal-point character.
32854
32855 2007-03-17  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
32858         before comparing it. Needed because on some platforms (e.g. x86) a
32859         'long double' occupies less bytes than sizeof (long double).
32860
32861 2007-03-17  Bruno Haible  <bruno@clisp.org>
32862
32863         * tests/test-crc.c (main): Make printf statements 64-bit clean.
32864         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
32865         * tests/test-getaddrinfo.c (simple): Likewise.
32866         * tests/test-read-file.c (main): Likewise.
32867
32868 2007-03-17  Bruno Haible  <bruno@clisp.org>
32869
32870         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
32871
32872 2007-03-17  Bruno Haible  <bruno@clisp.org>
32873
32874         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
32875         unused variable.
32876
32877 2007-03-17  Bruno Haible  <bruno@clisp.org>
32878
32879         * tests/test-c-strcasecmp.c: Include c-strcase.h.
32880         * tests/test-c-strncasecmp.c: Likewise.
32881
32882 2007-03-17  Bruno Haible  <bruno@clisp.org>
32883
32884         * modules/stdlib (Depends-on): Add unistd.
32885         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
32886         Needed for MacOS X 10.3.
32887
32888 2007-03-17  Bruno Haible  <bruno@clisp.org>
32889
32890         * lib/unistr/u-strdup.h: Include <stdlib.h>.
32891
32892 2007-03-17  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
32895
32896 2007-03-17  Bruno Haible  <bruno@clisp.org>
32897
32898         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
32899         to reflect files copied from gnulib (with or without modifications).
32900         Suggested by Jim Meyering.
32901
32902 2007-03-17  Eric Blake  <ebb9@byu.net>
32903
32904         * NEWS: Document stdlib change from 2007-02-18.
32905
32906 2007-03-17  Jim Meyering  <jim@meyering.net>
32907
32908         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
32909         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
32910         someone uses a name containing shell meta-characters.
32911         Reported by Alfred M. Szmidt.
32912
32913         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
32914
32915 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
32916
32917         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
32918         and copy gettext configuration files only if configure.ac contains
32919         a use of AM_GNU_GETTEXT_VERSION.
32920
32921 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
32922
32923         * build-aux/bootstrap (gnulib_name): New variable.
32924         (gnulib_tool_options): Use it.
32925
32926 2007-03-13  Simon Josefsson  <simon@josefsson.org>
32927
32928         * tests/test-des.c: Use new namespace.
32929
32930 2007-03-15  Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
32933         Reported by James Youngman <jay@gnu.org>.
32934
32935 2007-03-15  Bruno Haible  <bruno@clisp.org>
32936
32937         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
32938         declared prototype. Needed with cc on OSF/1 5.1.
32939
32940 2007-03-15  Bruno Haible  <bruno@clisp.org>
32941
32942         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
32943         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
32944         (struct gl_list_implementation): Add dispose_fn argument to the
32945         'create_empty', 'create' methods.
32946         (struct gl_list_impl_base): Add field 'dispose_fn'.
32947         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
32948         argument.
32949         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
32950         dispose_fn argument.
32951         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
32952         dispose_fn on the dropped values.
32953         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
32954         dispose_fn argument.
32955         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
32956         dropped values.
32957         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
32958         (gl_tree_remove_node): Call dispose_fn on the dropped value.
32959         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
32960         (gl_tree_remove_node): Call dispose_fn on the dropped value.
32961         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
32962         argument.
32963         (gl_tree_list_free): Call dispose_fn on the dropped values.
32964         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
32965         the dropped values.
32966         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32967         Add dispose_fn argument.
32968         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
32969         Call dispose_fn on the dropped values.
32970         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
32971         Add dispose_fn argument.
32972         (gl_sublist_create): Initialize the 'dispose_fn' field.
32973         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
32974         * tests/test-array_list.c (main): Update.
32975         * tests/test-carray_list.c (main): Update.
32976         * tests/test-avltree_list.c (main): Update.
32977         * tests/test-rbtree_list.c (main): Update.
32978         * tests/test-avltreehash_list.c (main): Update.
32979         * tests/test-rbtreehash_list.c (main): Update.
32980         * tests/test-linked_list.c (main): Update.
32981         * tests/test-linkedhash_list.c (main): Update.
32982         * tests/test-array_oset.c (main): Update.
32983
32984 2007-03-15  Bruno Haible  <bruno@clisp.org>
32985
32986         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
32987         (gl_oset_create_empty): Add dispose_fn argument.
32988         (struct gl_oset_implementation): Add dispose_fn argument to
32989         'create_empty' method.
32990         (struct gl_oset_impl_base): Add dispose_fn field.
32991         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
32992         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
32993         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
32994         values.
32995         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
32996         (gl_tree_oset_free): Call dispose_fn on the dropped values.
32997         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
32998         dropped value.
32999         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33000         dropped value.
33001         * tests/test-array_oset.c (main): Update.
33002         * tests/test-avltree_oset.c (main): Update.
33003         * tests/test-rbtree_oset.c (main): Update.
33004         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33005
33006 2007-03-13  Bruno Haible  <bruno@clisp.org>
33007
33008         * tests/test-stdbool.c (i): Update after last patch.
33009
33010 2007-03-12  Bruno Haible  <bruno@clisp.org>
33011
33012         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33013         the iswprint macro. Needed on Solaris 2.5.1.
33014
33015 2007-03-12  Bruno Haible  <bruno@clisp.org>
33016
33017         * tests/test-printf-frexp.c (main): Declare x as volatile.
33018
33019 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33020
33021         * doc/gnulib.texi (Build robot for gnulib): New section.
33022
33023 2007-03-12  Jim Meyering  <jim@meyering.net>
33024
33025         * build-aux/bootstrap: New file.
33026         * build-aux/bootstrap.conf: New file, from coreutils.
33027
33028 2007-03-11  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33031
33032 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33033
33034         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33035         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33036         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33037
33038 2007-03-11  Bruno Haible  <bruno@clisp.org>
33039
33040         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33041         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33042
33043 2007-03-11  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33046         formula. Needed for SunPRO C 5.0.
33047
33048 2007-03-11  Bruno Haible  <bruno@clisp.org>
33049
33050         * modules/long-options (Depends-on): Add getopt.
33051
33052 2007-03-11  Bruno Haible  <bruno@clisp.org>
33053
33054         * modules/modechange (Depends-on): Add stdbool.
33055
33056 2007-03-11  Bruno Haible  <bruno@clisp.org>
33057
33058         * modules/i-ring (Depends-on): Add stdbool.
33059
33060 2007-03-11  Bruno Haible  <bruno@clisp.org>
33061
33062         * modules/gc-des (Depends-on): Add stdbool.
33063
33064 2007-03-11  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33067
33068 2007-03-11  Bruno Haible  <bruno@clisp.org>
33069
33070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33071
33072 2007-03-11  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33075
33076 2007-03-11  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/vasnprintf.c (sprintf): Undefine.
33079
33080 2007-03-11  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33083         initializers in SunPRO C and Compaq C compilers.
33084
33085 2007-03-11  Bruno Haible  <bruno@clisp.org>
33086
33087         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33088         decrementing code ANSI C compliant.
33089
33090 2007-03-11  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33093         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33094
33095 2007-03-11  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33098         <stdbool.h> substitute doesn't pass.
33099
33100 2007-03-11  Bruno Haible  <bruno@clisp.org>
33101
33102         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33103
33104 2007-03-11  Bruno Haible  <bruno@clisp.org>
33105
33106         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33107         script, for submission to autobuild.josefsson.org.
33108
33109 2007-03-10  Bruno Haible  <bruno@clisp.org>
33110
33111         * modules/canonicalize-lgpl-tests: New file.
33112         * tests/test-canonicalize-lgpl.sh: New file.
33113         * tests/test-canonicalize-lgpl.c: New file.
33114
33115         * modules/c-strcase-tests: New file.
33116         * tests/test-c-strcase.sh: New file.
33117         * tests/test-c-strcasecmp.c: New file.
33118         * tests/test-c-strncasecmp.c: New file.
33119
33120         * modules/atexit-tests: New file.
33121         * tests/test-atexit.sh: New file.
33122         * tests/test-atexit.c: New file.
33123
33124 2007-03-10  Bruno Haible  <bruno@clisp.org>
33125
33126         * tests/test-binary-io.sh: Use temporary filenames that are not so
33127         likely to clash with those of other tests (in a parallel make).
33128         * tests/test-binary-io.c: Likewise.
33129
33130 2007-03-10  Bruno Haible  <bruno@clisp.org>
33131
33132         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33133         fallback; use #error instead.
33134         Suggested by Simon Josefsson.
33135
33136 2007-03-10  Bruno Haible  <bruno@clisp.org>
33137
33138         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33139         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33140         first and the last.
33141
33142 2007-03-10  Bruno Haible  <bruno@clisp.org>
33143
33144         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33145
33146 2007-03-10  Bruno Haible  <bruno@clisp.org>
33147
33148         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33149         "make distcheck".
33150         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33151         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33152         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33153
33154 2007-03-10  Bruno Haible  <bruno@clisp.org>
33155
33156         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33157         variable.
33158         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33159         variable.
33160
33161 2007-03-09  Eric Blake  <ebb9@byu.net>
33162         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33163
33164         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33165         types are not being provided by gnulib.
33166         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33167         types are supported.
33168
33169 2007-03-10  Bruno Haible  <bruno@clisp.org>
33170
33171         * lib/stdio_.h (__attribute__): New macro.
33172         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33173         vsprintf): Specify __attribute__ __format__ for GCC.
33174         Suggested by Eric Blake.
33175
33176 2007-03-09  Bruno Haible  <bruno@clisp.org>
33177
33178         * modules/printf-posix-tests: New file.
33179         * tests/test-printf-posix.sh: New file.
33180         * tests/test-printf-posix.c: New file.
33181
33182         * modules/printf-posix: New file.
33183         * lib/printf.c: New file.
33184         * m4/printf-posix-rpl.m4: New file.
33185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33186         REPLACE_PRINTF.
33187         * lib/stdio_.h (printf): New declaration.
33188         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33189         ____strfmon____): New macros.
33190         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33191         REPLACE_PRINTF.
33192
33193 2007-03-09  Bruno Haible  <bruno@clisp.org>
33194
33195         * tests/test-vasnprintf-posix2.sh: New file.
33196         * tests/test-vasnprintf-posix2.c: New file.
33197         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33198         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33199         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33200
33201         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33202         a locale dependent decimal point, rather than always '.'.
33203
33204 2007-03-09  Eric Blake  <ebb9@byu.net>
33205
33206         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33207         spite of platforms like Tandem/NSK that define it to -1.
33208
33209 2007-03-08  Bruno Haible  <bruno@clisp.org>
33210
33211         * modules/vprintf-posix-tests: New file.
33212         * tests/test-vprintf-posix.sh: New file.
33213         * tests/test-vprintf-posix.c: New file.
33214         * tests/test-printf-posix.h: New file.
33215
33216         * modules/vprintf-posix: New file.
33217         * lib/vprintf.c: New file.
33218         * m4/vprintf-posix.m4: New file.
33219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33220         REPLACE_VPRINTF.
33221         * lib/stdio_.h (vprintf): New declaration.
33222         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33223         REPLACE_VPRINTF.
33224
33225 2007-03-08  Bruno Haible  <bruno@clisp.org>
33226
33227         * modules/fprintf-posix-tests: New file.
33228         * tests/test-fprintf-posix.sh: New file.
33229         * tests/test-fprintf-posix.c: New file.
33230
33231         * modules/fprintf-posix: New file.
33232         * lib/fprintf.c: New file.
33233         * m4/fprintf-posix.m4: New file.
33234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33235         REPLACE_FPRINTF.
33236         * lib/stdio_.h (fprintf): New declaration.
33237         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33238         REPLACE_FPRINTF.
33239
33240 2007-03-08  Bruno Haible  <bruno@clisp.org>
33241
33242         * modules/vfprintf-posix-tests: New file.
33243         * tests/test-vfprintf-posix.sh: New file.
33244         * tests/test-vfprintf-posix.c: New file.
33245         * tests/test-fprintf-posix.h: New file.
33246         * tests/test-fprintf-posix.out: New file.
33247
33248         * modules/vfprintf-posix: New file.
33249         * lib/vfprintf.c: New file.
33250         * m4/vfprintf-posix.m4: New file.
33251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33252         REPLACE_VFPRINTF.
33253         * lib/stdio_.h (vfprintf): New declaration.
33254         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33255         REPLACE_VFPRINTF.
33256
33257 2007-03-08  Bruno Haible  <bruno@clisp.org>
33258
33259         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33260
33261 2007-03-08  Bruno Haible  <bruno@clisp.org>
33262
33263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33264         instead of 'expr' invocations.
33265         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33266         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33267         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33270         Suggested by Paul Eggert.
33271
33272 2007-03-08  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/fseterr-tests: New file.
33275         * tests/test-fseterr.c: New file.
33276
33277         * modules/fseterr: New file.
33278         * lib/fseterr.h: New file.
33279         * lib/fseterr.c: New file.
33280
33281 2007-03-08  Bruno Haible  <bruno@clisp.org>
33282
33283         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33284         * lib/getopt_.h: Likewise.
33285         * lib/mbswidth.h: Likewise.
33286         * lib/setenv.h: Likewise.
33287         * lib/vasnprintf.h: Likewise.
33288         * lib/vasprintf.h: Likewise.
33289         * lib/verror.h: Likewise.
33290         * lib/xsetenv.h: Likewise.
33291         * lib/xvasprintf.h: Likewise.
33292
33293 2007-03-08  Jim Meyering  <jim@meyering.net>
33294
33295         * users.txt: Add parted.
33296
33297         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33298
33299 2007-03-07  Bruno Haible  <bruno@clisp.org>
33300
33301         * m4/printf.m4: Make the shell script snippets copy&pastable.
33302
33303 2007-03-02  Bruno Haible  <bruno@clisp.org>
33304
33305         * lib/netinet_in_.h: New file.
33306         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33307         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33308         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33309         (Depends-on): Add absolute-header.
33310         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33311         into netinet/in.h.
33312
33313 2007-03-03  Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/sys_select_.h: New file.
33316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33317         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33318         * modules/sys_select (Files): Add lib/sys_select_.h.
33319         (Depends-on): Add absolute-header.
33320         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33321         into sys/select.h.
33322
33323 2007-03-02  Bruno Haible  <bruno@clisp.org>
33324
33325         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33326         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33327         values.
33328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33329         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33330         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33331         * modules/sys_socket (Depends-on): Add absolute-header.
33332         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33333         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33334         (Include): Remove requirement of inclusion of <sys/types.h>.
33335
33336 2007-03-02  Bruno Haible  <bruno@clisp.org>
33337
33338         * lib/byteswap_.h (bswap_32): Fix formula.
33339
33340 2007-03-06  Bruno Haible  <bruno@clisp.org>
33341
33342         * modules/sprintf-posix-tests: New file.
33343         * tests/test-sprintf-posix.c: New file.
33344
33345         * modules/sprintf-posix: New file.
33346         * lib/sprintf.c: New file.
33347         * m4/sprintf-posix.m4: New file.
33348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33349         REPLACE_SPRINTF.
33350         * lib/stdio_.h (sprintf): New declaration.
33351         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33352         REPLACE_SPRINTF.
33353
33354 2007-03-06  Bruno Haible  <bruno@clisp.org>
33355
33356         * modules/vsprintf-posix-tests: New file.
33357         * tests/test-vsprintf-posix.c: New file.
33358         * tests/test-sprintf-posix.h: New file.
33359
33360         * modules/vsprintf-posix: New file.
33361         * lib/vsprintf.c: New file.
33362         * m4/vsprintf-posix.m4: New file.
33363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33364         REPLACE_VSPRINTF.
33365         * lib/stdio_.h (vsprintf): New declaration.
33366         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33367         REPLACE_VSPRINTF.
33368
33369 2007-03-06  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/vsnprintf (Depend-on): Remove minmax.
33372
33373 2007-03-06  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/snprintf-posix-tests: New file.
33376         * tests/test-snprintf-posix.c: New file.
33377
33378         * modules/snprintf-posix: New file.
33379         * m4/snprintf-posix.m4: New file.
33380         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33381         gl_FUNC_SNPRINTF.
33382         (gl_FUNC_SNPRINTF): Invoke it.
33383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33384         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33385         is set.
33386         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33387
33388 2007-03-06  Bruno Haible  <bruno@clisp.org>
33389
33390         * modules/vsnprintf-posix-tests: New file.
33391         * tests/test-vsnprintf-posix.c: New file.
33392         * tests/test-snprintf-posix.h: New file.
33393
33394         * modules/vsnprintf-posix: New file.
33395         * m4/vsnprintf-posix.m4: New file.
33396         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33397         gl_FUNC_VSNPRINTF.
33398         (gl_FUNC_VSNPRINTF): Invoke it.
33399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33400         * lib/stdio_.h (vsnprintf): Define as a replacement if
33401         REPLACE_VSNPRINTF is set.
33402         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33403
33404 2007-03-06  Bruno Haible  <bruno@clisp.org>
33405
33406         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33408
33409 2007-03-06  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33412         (asinl): Declare also if HAVE_DECL_ASINL is set.
33413         (atanl): Declare also if HAVE_DECL_ATANL is set.
33414         (ceill): Declare also if HAVE_DECL_CEILL is set.
33415         (cosl): Declare also if HAVE_DECL_COSL is set.
33416         (expl): Declare also if HAVE_DECL_EXPL is set.
33417         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33418         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33419         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33420         (logl): Declare also if HAVE_DECL_LOGL is set.
33421         (sinl): Declare also if HAVE_DECL_SINL is set.
33422         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33423         (tanl): Declare also if HAVE_DECL_TANL is set.
33424         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33426         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33427         declaration of frexpl, ldexpl.
33428         * modules/printf-frexpl (Depends-on): Add math.
33429         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33430
33431 2007-03-05  Bruno Haible  <bruno@clisp.org>
33432
33433         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33434         frexpl and ldexpl are declared.
33435         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33436
33437 2007-03-05  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33440         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33441
33442 2007-03-05  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/stdio_.h: Include <stddef.h>.
33445
33446 2007-03-05  Bruno Haible  <bruno@clisp.org>
33447
33448         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33449
33450 2007-03-05  Bruno Haible  <bruno@clisp.org>
33451
33452         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33453         NetBSD 4, from Ralf Wildenhues.
33454
33455 2007-03-04  Bruno Haible  <bruno@clisp.org>
33456
33457         * lib/vasprintf.h: Update #if logic for the case when the functions
33458         exist but are overridden.
33459
33460 2007-03-04  Bruno Haible  <bruno@clisp.org>
33461
33462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33463         implementations: glibc-2.4 and MacOS X 10.3.
33464         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33465         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33466         * tests/test-vasprintf-posix.c (test_function): Likewise.
33467
33468 2007-03-04  Bruno Haible  <bruno@clisp.org>
33469
33470         * modules/vasprintf-posix-tests: New file.
33471         * tests/test-vasprintf-posix.c: New file.
33472
33473         * modules/vasprintf-posix: New file.
33474         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33475         defined.
33476         * m4/vasprintf-posix.m4: New file.
33477         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33478         gl_FUNC_VASPRINTF.
33479         (gl_FUNC_VASPRINTF): Invoke it.
33480         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33481         here.
33482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33483
33484 2007-03-04  Bruno Haible  <bruno@clisp.org>
33485
33486         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33487         REPLACE_GETTIMEOFDAY.
33488         * modules/sys_time (Makefile.am): Likewise.
33489         * m4/sys_time_h.m4: Likewise.
33490         * m4/gettimeofday.m4: Likewise.
33491
33492 2007-03-04  Bruno Haible  <bruno@clisp.org>
33493
33494         * modules/vasnprintf-posix-tests: New file.
33495         * tests/test-vasnprintf-posix.c: New file.
33496
33497         * modules/vasnprintf-posix: New file.
33498         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33499         printf-frexpl.h.
33500         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33501         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33502         REPLACE_VASNPRINTF is defined.
33503         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33504         gl_FUNC_VASNPRINTF.
33505         (gl_FUNC_VASNPRINTF): Invoke it.
33506         * m4/vasnprintf-posix.m4: New file.
33507         * m4/printf.m4: New file.
33508
33509 2007-03-04  Bruno Haible  <bruno@clisp.org>
33510
33511         Compile progreloc.c only if --enable-relocatable is specified.
33512         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33513         if --enable-relocatable was specified.
33514         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33515         lib_SOURCES.
33516
33517 2007-03-04  Jim Meyering  <jim@meyering.net>
33518
33519         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33520         Use it consistently, rather than enumerating errno constants.
33521
33522 2007-03-04  Bruno Haible  <bruno@clisp.org>
33523
33524         * modules/xvasprintf-tests: New file.
33525         * tests/test-xvasprintf.c: New file.
33526
33527         * modules/vasprintf-tests: New file.
33528         * tests/test-vasprintf.c: New file.
33529
33530         * modules/vasnprintf-tests: New file.
33531         * tests/test-vasnprintf.c: New file.
33532
33533         * modules/vsnprintf-tests: New file.
33534         * tests/test-vsnprintf.c: New file.
33535
33536         * modules/snprintf-tests: New file.
33537         * tests/test-snprintf.c: New file.
33538
33539 2007-03-04  Bruno Haible  <bruno@clisp.org>
33540
33541         Compile relocatable.c only if --enable-relocatable is specified.
33542         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33543         gl_RELOCATABLE_LIBRARY.
33544         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33545         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33546         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33547         gl_RELOCATABLE_LIBRARY.
33548         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33549         (Makefile.am): Remove lib_SOURCES.
33550         * modules/relocatable-lib-lgpl (configure.ac): Invoke
33551         gl_RELOCATABLE_LIBRARY.
33552         (Makefile.am): Remove lib_SOURCES.
33553         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33554         always.
33555         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33556         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33557
33558 2007-03-04  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/argmatch-tests: New file.
33561         * tests/test-argmatch.c: New file.
33562
33563         * tests/test-allocsa.c (main): Halve the number of loop runs.
33564
33565         * modules/alloca-opt-tests: New file.
33566         * tests/test-alloca-opt.c: New file.
33567
33568 2007-03-04  Jim Meyering  <jim@meyering.net>
33569
33570         Work around difference between Linux ACLs and Solaris 10 ZFS.
33571         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33572         for EINVAL.
33573
33574 2007-03-03  Bruno Haible  <bruno@clisp.org>
33575
33576         * modules/relocatable-prog (Depends-on): Add back progreloc's
33577         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33578
33579 2007-03-03  Bruno Haible  <bruno@clisp.org>
33580
33581         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33582         * modules/relocatable-lib: New file.
33583
33584 2007-03-03  Bruno Haible  <bruno@clisp.org>
33585
33586         * modules/relocatable-prog: Renamed from modules/relocatable.
33587         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33588
33589 2007-03-03  Bruno Haible  <bruno@clisp.org>
33590
33591         * modules/relocatable-script (Files): Add doc/relocatable.texi,
33592         m4/relocatable-lib.m4.
33593         (Depends-on): Remove 'relocatable'.
33594         (configure.ac): Add gl_RELOCATABLE_NOP.
33595
33596 2007-03-03  Bruno Haible  <bruno@clisp.org>
33597
33598         * modules/relocatable-prog-wrapper: New file.
33599         * modules/relocatable (Depends-on): Add it. Remove all other
33600         dependencies except progname.
33601         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33602
33603         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33604         (gl_FUNC_STRERROR): Nop.
33605         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33606
33607         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33608         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33609
33610         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33611         (gl_FUNC_READLINK): Update.
33612
33613         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33614
33615 2007-03-03  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/xreadlink.c: Include <unistd.h> unconditionally.
33618         * modules/xreadlink (Depends-on): Add unistd.
33619         * modules/xreadlink-with-size (Depends-on): Likewise.
33620
33621 2007-03-03  Bruno Haible  <bruno@clisp.org>
33622
33623         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33624         extracted from gt_FUNC_SETENV.
33625         (gt_FUNC_SETENV): Remove macro.
33626         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33627         remove gt_FUNC_SETENV.
33628
33629 2007-03-03  Bruno Haible  <bruno@clisp.org>
33630
33631         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33632         ENABLE_RELOCATABLE here.
33633         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33634
33635 2007-03-03  Bruno Haible  <bruno@clisp.org>
33636
33637         * modules/rbtreehash-list-tests (Depends-on): Add progname.
33638         * tests/test-rbtreehash_list.c: Include progname.h.
33639         (main): Call set_program_name.
33640
33641         * modules/rbtree-oset-tests (Depends-on): Add progname.
33642         * tests/test-rbtree_oset.c: Include progname.h.
33643         (main): Call set_program_name.
33644
33645         * modules/rbtree-list-tests (Depends-on): Add progname.
33646         * tests/test-rbtree_list.c: Include progname.h.
33647         (main): Call set_program_name.
33648
33649         * modules/linked-list-tests (Depends-on): Add progname.
33650         * tests/test-linked_list.c: Include progname.h.
33651         (main): Call set_program_name.
33652
33653 2007-03-03  Bruno Haible  <bruno@clisp.org>
33654
33655         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33656         All uses of __restrict changed to _Restrict_.
33657         * lib/glob_.h (__restrict): Remove macro.
33658
33659 2007-03-02  Bruno Haible  <bruno@clisp.org>
33660
33661         * modules/gettext (configure.ac): Require gettext infrastructure
33662         from version 0.16.1.
33663
33664 2007-03-02  Bruno Haible  <bruno@clisp.org>
33665
33666         * modules/linkedhash-list-tests (Depends-on): Add progname.
33667         * tests/test-linkedhash_list.c: Include progname.h.
33668         (main): Call set_program_name.
33669
33670         * modules/carray-list-tests (Depends-on): Add progname.
33671         * tests/test-carray_list.c: Include progname.h.
33672         (main): Call set_program_name.
33673
33674         * modules/avltreehash-list-tests (Depends-on): Add progname.
33675         * tests/test-avltreehash_list.c: Include progname.h.
33676         (main): Call set_program_name.
33677
33678         * modules/avltree-oset-tests (Depends-on): Add progname.
33679         * tests/test-avltree_oset.c: Include progname.h.
33680         (main): Call set_program_name.
33681
33682         * modules/avltree-list-tests (Depends-on): Add progname.
33683         * tests/test-avltree_list.c: Include progname.h.
33684         (main): Call set_program_name.
33685
33686         * modules/array-oset-tests (Depends-on): Add progname.
33687         * tests/test-array_oset.c: Include progname.h.
33688         (main): Call set_program_name.
33689
33690         * modules/array-list-tests (Depends-on): Add progname.
33691         * tests/test-array_list.c: Include progname.h.
33692         (main): Call set_program_name.
33693
33694         * modules/argp-tests (Depends-on): Add progname.
33695         * tests/test-argp.c: Include argp.h first. Include progname.h.
33696         (main): Call set_program_name.
33697
33698 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * doc/gnulib-tool.texi (Initial import): Reword description of
33701         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33702         limited effect even if defined after the first system include.
33703
33704 2007-03-01  Bruno Haible  <bruno@clisp.org>
33705
33706         * build-aux/config.libpath: Update to libtool-1.5.22.
33707         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33708
33709 2007-03-01  Bruno Haible  <bruno@clisp.org>
33710
33711         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33712         foo_CFLAGS.
33713         Reported by Ralf Wildenhues.
33714
33715 2007-03-01  Bruno Haible  <bruno@clisp.org>
33716
33717         * build-aux/install-reloc: Remove object files left over by some
33718         compilers.
33719         Reported by Ralf Wildenhues.
33720
33721 2007-03-01  Bruno Haible  <bruno@clisp.org>
33722
33723         * build-aux/install-reloc: Break long lines.
33724
33725 2007-03-01  Bruno Haible  <bruno@clisp.org>
33726
33727         * doc/relocatable.texi: Document that it may not work on OpenBSD.
33728         Reported by Ralf Wildenhues.
33729
33730 2007-03-01  Bruno Haible  <bruno@clisp.org>
33731
33732         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
33733         include ordering constraints.
33734
33735 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33736
33737         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
33738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
33739         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
33740         as another example.
33741         * lib/time_.h: Fix misspelling.
33742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33743         Require gl_HEADER_TIME_H_DEFAULTS.
33744         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
33745         * m4/time_r.m4 (gl_TIME_R): Likewise.
33746         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
33747
33748 2007-03-01  Bruno Haible  <bruno@clisp.org>
33749
33750         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
33751         * m4/utimens.m4 (gl_UTIMENS): Likewise.
33752
33753 2007-03-01  Jim Meyering  <jim@meyering.net>
33754
33755         * modules/xreadlink (Maintainer): Add my name.
33756         * modules/xreadlink-with-size (Depends-on): Alphabetize.
33757
33758 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
33759             Bruno Haible  <bruno@clisp.org>
33760
33761         * build-aux/install-reloc: Compile also c-ctype.c.
33762         * build-aux/relocatable.sh.in: New file.
33763         * doc/relocatable.texi: New file.
33764         * doc/relocatable-maint.texi: New file.
33765         * doc/gnulib.texi: Include relocatable-maint.texi.
33766         * lib/progreloc.c: Include unistd.h unconditionally.
33767         * lib/relocwrapper.c: Include unistd.h unconditionally.
33768         Include c-ctype.h.
33769         (add_dotbin): Use c_tolower.
33770         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
33771         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
33772         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
33773         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
33774         to m4/relocatable-lib.m4.
33775         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
33776         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
33777         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
33778         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
33779         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
33780         * modules/relocatable: New file.
33781         * modules/relocatable-lib: New file.
33782         * modules/relocatable-script: New file.
33783
33784 2007-02-28  Bruno Haible  <bruno@clisp.org>
33785
33786         Import --enable-relocatable infrastructure.
33787         * build-aux/config.libpath: New file, from GNU gettext.
33788         * build-aux/install-reloc: New file, from GNU gettext.
33789         * build-aux/reloc-ldflags: New file, from GNU gettext.
33790         * lib/relocatable.h: New file, from GNU gettext.
33791         * lib/relocatable.c: New file, from GNU gettext.
33792         * lib/relocwrapper.c: New file, from GNU gettext.
33793         * m4/relocatable.m4: New file, from GNU gettext.
33794
33795 2007-02-28  Bruno Haible  <bruno@clisp.org>
33796
33797         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
33798
33799         * modules/xreadlink: New file, from GNU gettext with modifications.
33800         * lib/xreadlink.c: New file, from GNU gettext.
33801         * lib/xreadlink.h: Add comments.
33802         (xreadlink): New declaration.
33803
33804         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
33805         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
33806         lib/xreadlink-with-size.c.
33807         (configure.ac): Remove gl_XREADLINK invocation.
33808         (Makefile.am): Augment lib_SOURCES.
33809         * m4/xreadlink.m4: Remove file.
33810         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
33811         (xreadlink_with_size): Renamed from xreadink.
33812         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
33813         * modules/canonicalize (Depends-on): Replace xreadlink with
33814         xreadlink-with-size.
33815         * lib/canonicalize.c (canonicalize_filename_mode): Update.
33816
33817 2007-02-25  Jim Meyering  <jim@meyering.net>
33818
33819         * build-aux/announce-gen: When complaining about excess arguments,
33820         list them.
33821
33822 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33823
33824         * README: Document signed integer overflow situation more
33825         accurately.
33826
33827 2007-02-25  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
33830         'a' or 'A' conversion.
33831
33832 2007-02-25  Bruno Haible  <bruno@clisp.org>
33833
33834         * modules/filename: Renamed from modules/pathname.
33835         (Files): Replace lib/pathname.h with lib/filename.h. Replace
33836         lib/concatpath.c with lib/concat-filename.c.
33837         (Makefile.am): Update.
33838         (Include): Replace pathname.h with filename.h.
33839         * lib/filename.h: Renamed from lib/pathname.h.
33840         (concatenated_filename): Renamed from concatenated_pathname.
33841         * lib/concat-filename.c: Renamed from lib/concatpath.c.
33842         (concatenated_filename): Renamed from concatenated_pathname.
33843         * lib/findprog.c: Include filename.h instead of pathname.h.
33844         (find_in_path): Update.
33845         * lib/javacomp.c: Include filename.h instead of pathname.h.
33846         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33847         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33848         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33849         is_oldgcj_14_13_usable, is_javac_usable): Update.
33850         * lib/javaexec.c: Include filename.h instead of pathname.h.
33851         (execute_java_class): Update.
33852         * modules/findprog: Update.
33853         * modules/javacomp: Update.
33854         * modules/javaexec: Update.
33855         * MODULES.html.sh (File system functions): Add 'filename', remove
33856         'pathname'.
33857
33858 2007-02-25  Bruno Haible  <bruno@clisp.org>
33859
33860         * modules/printf-frexpl-tests: New file.
33861         * tests/test-printf-frexpl.c: New file.
33862
33863         * modules/printf-frexpl: New file.
33864         * lib/printf-frexpl.h: New file.
33865         * lib/printf-frexpl.c: New file.
33866         * m4/printf-frexpl.m4: New file.
33867
33868 2007-02-25  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/printf-frexp-tests: New file.
33871         * tests/test-printf-frexp.c: New file.
33872
33873         * modules/printf-frexp: New file.
33874         * lib/printf-frexp.h: New file.
33875         * lib/printf-frexp.c: New file.
33876         * m4/printf-frexp.m4: New file.
33877
33878 2007-02-25  Bruno Haible  <bruno@clisp.org>
33879
33880         Assume automake >= 1.10 for the tests.
33881         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
33882         * modules/arctwo-tests: Likewise.
33883         * modules/argp-tests: Likewise.
33884         * modules/avltree-list-tests: Likewise.
33885         * modules/avltree-oset-tests: Likewise.
33886         * modules/avltreehash-list-tests: Likewise.
33887         * modules/carray-list-tests: Likewise.
33888         * modules/crc-tests: Likewise.
33889         * modules/des-tests: Likewise.
33890         * modules/gc-arcfour-tests: Likewise.
33891         * modules/gc-arctwo-tests: Likewise.
33892         * modules/gc-des-tests: Likewise.
33893         * modules/gc-hmac-md5-tests: Likewise.
33894         * modules/gc-hmac-sha1-tests: Likewise.
33895         * modules/gc-md2-tests: Likewise.
33896         * modules/gc-md4-tests: Likewise.
33897         * modules/gc-md5-tests: Likewise.
33898         * modules/gc-pbkdf2-sha1-tests: Likewise.
33899         * modules/gc-rijndael-tests: Likewise.
33900         * modules/gc-sha1-tests: Likewise.
33901         * modules/gc-tests: Likewise.
33902         * modules/getaddrinfo-tests: Likewise.
33903         * modules/hmac-md5-tests: Likewise.
33904         * modules/hmac-sha1-tests: Likewise.
33905         * modules/linked-list-tests: Likewise.
33906         * modules/linkedhash-list-tests: Likewise.
33907         * modules/lock-tests: Likewise.
33908         * modules/md2-tests: Likewise.
33909         * modules/md4-tests: Likewise.
33910         * modules/md5-tests: Likewise.
33911         * modules/rbtree-list-tests: Likewise.
33912         * modules/rbtree-oset-tests: Likewise.
33913         * modules/rbtreehash-list-tests: Likewise.
33914         * modules/read-file-tests: Likewise.
33915         * modules/rijndael-tests: Likewise.
33916         * modules/stdint-tests: Likewise.
33917         * modules/tls-tests: Likewise.
33918
33919 2007-02-24  Bruno Haible  <bruno@clisp.org>
33920
33921         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
33922         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
33923         function; instead check whether isnan with a double argument links.
33924         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
33925         function; instead check whether isnan with a 'long double' argument
33926         links.
33927         Reported by Eric Blake <ebb9@byu.net>.
33928
33929 2007-02-24  Bruno Haible  <bruno@clisp.org>
33930
33931         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
33932         defined.
33933         * lib/isnanl.c: Remove all code. Just include isnan.c.
33934         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
33935
33936 2007-02-25  Jim Meyering  <jim@meyering.net>
33937
33938         Avoid conflicting types for 'unsetenv' on FreeBSD.
33939         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
33940         conflicting with FreeBSD's (5.0 and 6.1) function declaration
33941         in stdlib.h.
33942
33943 2007-02-24  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/isnanl-nolibm-tests: New file.
33946         * tests/test-isnanl.c: New file.
33947
33948         * modules/isnanl-nolibm: New file.
33949         * lib/isnanl.h: New file.
33950         * lib/isnanl.c: New file.
33951         * m4/isnanl.m4: New file.
33952
33953 2007-02-24  Bruno Haible  <bruno@clisp.org>
33954
33955         * modules/isnan-nolibm-tests: New file.
33956         * tests/test-isnan.c: New file.
33957
33958         * modules/isnan-nolibm: New file.
33959         * lib/isnan.h: New file.
33960         * lib/isnan.c: New file.
33961         * m4/isnan.m4: New file.
33962
33963 2007-02-24  Bruno Haible  <bruno@clisp.org>
33964
33965         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
33966         assume that an exponent fits in 20 bits.
33967
33968 2007-02-24  Jim Meyering  <jim@meyering.net>
33969
33970         * m4/regex.m4: Update the description of the configure-time option,
33971         --without-included-regex, to state accurately what the defaults are,
33972         and perhaps to give people an idea why using this option is risky.
33973
33974 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33975
33976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
33977         loops on small arguments.  This attempts to avoid the problem
33978         Bruno Haible reported for AIX 4.3.2 in
33979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
33980
33981 2007-02-23  Bruno Haible  <bruno@clisp.org>
33982
33983         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
33984         Needed for help2man.
33985
33986 2007-02-23  Karl Berry  <karl@gnu.org>
33987
33988         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
33989         exists, foo.h should be cvs-ignored, not committed.
33990
33991 2007-02-23  Eric Blake  <ebb9@byu.net>
33992
33993         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
33994         * lib/stat-time.h (includes): Likewise.
33995         * lib/utimecmp.c (includes): Likewise.
33996         * lib/utimens.h (includes): Likewise.
33997         * lib/getdate.y (includes): Also include "timespec.h" for use
33998         internal to the module.
33999         * modules/utimens (Depends-on): Revert yesterday's patch.
34000         * modules/nanosleep (Depends-on): Add missing dependency.
34001
34002 2007-02-22  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/glob.c: Don't include getlogin_r.h.
34005
34006 2007-02-22  Jim Meyering  <jim@meyering.net>
34007
34008         * modules/utimens (Depends-on): Add timespec, required for
34009         utimens.h's inclusion of timespec.h.
34010
34011 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34012
34013         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34014         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34015         Schwab in
34016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34017         I'll try to think of a better way to fix the Solaris problem.
34018
34019         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34020         like glibc; on Solaris 10, it fails with errno == EINVAL.
34021         POSIX says the behavior is unspecified if the first argument is NULL,
34022         so play it safe and never pass NULL to the system getcwd.
34023
34024 2007-02-21  Jim Meyering  <jim@meyering.net>
34025
34026         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34027         of gettimeofday.  It would conflict with the one now always
34028         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34029         an IRIX 6.5 build failure.
34030
34031 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34032
34033         Minor fixups to port to Solaris 10 with Sun C 5.8.
34034         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34035         * modules/getcwd (Depends-on): Add dirfd.
34036         * lib/putenv.c (putenv): #undef it.
34037         (rpl_putenv): New decl.
34038         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34039
34040 2007-02-20  Bruno Haible  <bruno@clisp.org>
34041
34042         * modules/stdio-tests: New file.
34043         * tests/test-stdio.c: New file.
34044
34045         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34046         (Depends-on): Add stdio.
34047         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34048         (Include): Use <stdio.h> instead of vsnprintf.h.
34049         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34050         HAVE_DECL_VSNPRINTF.
34051         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34052
34053         * modules/snprintf (Files): Remove lib/snprintf.h.
34054         (Depends-on): Add stdio.
34055         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34056         (Include): Use <stdio.h> instead of snprintf.h.
34057         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34058         HAVE_DECL_SNPRINTF.
34059         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34060         * lib/getaddrinfo.c: Likewise.
34061
34062         * modules/stdio: New file.
34063         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34064         * lib/snprintf.h: Remove file.
34065         * lib/vsnprintf.h: Remove file.
34066         * lib/.cppi-disable: Remove snprintf.h.
34067         * m4/stdio_h.m4: New file.
34068         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34069
34070 2007-02-20  Jim Meyering  <jim@meyering.net>
34071
34072         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34073         used by e.g., mingw.  From Bruno Haible.
34074
34075 2007-02-19  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34078         warnings.
34079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34080
34081 2007-02-19  Bruno Haible  <bruno@clisp.org>
34082
34083         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34084         from mingw users.
34085
34086 2007-02-19  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34089         warnings.
34090         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34091
34092 2007-02-19  Jim Meyering  <jim@meyering.net>
34093
34094         Don't use FD after a successful "fdopendir (fd)".
34095         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34096         Reset it by calling dirfd on the just-obtained DIR*.
34097
34098         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34099         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34100
34101 2007-02-18  Bruno Haible  <bruno@clisp.org>
34102
34103         * lib/readlink.c: Include <unistd.h>.
34104         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34105         HAVE_READLINK.
34106         * modules/readlink (Depends-on): Add unistd.
34107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34108         (Include): Add <unistd.h>.
34109
34110         * lib/getlogin_r.h: Remove file.
34111         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34112         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34113         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34114         HAVE_DECL_GETLOGIN_R.
34115         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34117         (Include): Use <unistd.h> instead of getlogin_r.h.
34118
34119         * lib/getcwd.h: Remove file.
34120         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34121         * lib/xgetcwd.c: Likewise.
34122         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34123         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34124         * modules/getcwd (Files): Remove lib/getcwd.h.
34125         (Depends-on): Add unistd.
34126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34127         (Include): Use <unistd.h> instad of getcwd.h.
34128
34129         * lib/ftruncate.c: Include <unistd.h> first.
34130         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34131         Set HAVE_FTRUNCATE.
34132         * modules/ftruncate (Depends-on): Add unistd.
34133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34134
34135         * lib/fchdir.c: Include <unistd.h> first.
34136         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34138         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34139         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34140         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34141
34142         * lib/dup2.c: Include <unistd.h> first.
34143         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34144         HAVE_DUP2.
34145         * modules/dup2 (Depends-on): Add unistd.
34146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34147
34148         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34149         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34150         REPLACE_CHOWN. Don't define chown as a macro here.
34151         * modules/chown (Depends-on): Add unistd.
34152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34153
34154         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34155         Add definition for GL_LINK_WARNING.
34156         (chown, dup2): New declarations.
34157         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34158         link warning.
34159         (ftruncate): New declaration.
34160         (getcwd): New declaration, taken from old getcwd.h.
34161         (getlogin_r): New declaration, taken from old getlogin_r.h.
34162         (readlink): New declaration.
34163         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34164         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34165         (gl_PREREQ_UNISTD): Remove macro.
34166         (gl_UNISTD_MODULE_INDICATOR): New macro.
34167         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34168         many new variables. Don't set UNISTD_H.
34169         * modules/unistd (Description): Change.
34170         (Depends-on): Add link-warning.
34171         (configure.ac): Update.
34172         (Makefile.am): Create unistd.h always. Substitute many new variables
34173         into it.
34174
34175 2007-02-18  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34178         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34179         HAVE_GETSUBOPT.
34180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34181         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34182         * lib/getsubopt.h: Remove file.
34183         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34184         (Depends-on): Add stdlib.
34185         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34186         (Includes): Use <stdlib.h> instead of getsubopt.h.
34187         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34188         Set HAVE_GETSUBOPT.
34189         * lib/getsubopt.c: Don't include getsubopt.h.
34190
34191 2007-02-18  Bruno Haible  <bruno@clisp.org>
34192
34193         * modules/fchdir (Depends-on): Add dup2.
34194
34195 2007-02-18  Bruno Haible  <bruno@clisp.org>
34196
34197         * lib/stdlib_.h: Handle glibc's special invocation convention
34198         specially.
34199
34200 2007-02-18  Bruno Haible  <bruno@clisp.org>
34201
34202         * modules/stdlib-tests: New file.
34203         * tests/test-stdlib.c: New file.
34204
34205         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34206         (Depends-on): Add stdlib.
34207         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34208         (Includes): Use <stdlib.h> instead of mkstemp.h.
34209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34210         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34211         * lib/mkstemp.c: Don't include mkstemp.h.
34212         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34213         * lib/stdlib--.h: Don't include mkstemp.h.
34214
34215         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34216         (Depends-on): Add stdlib.
34217         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34218         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34219         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34220         HAVE_MKDTEMP.
34221         * lib/mkdtemp.c: Don't include mkdtemp.h.
34222         * lib/clean-temp.c: Don't include mkdtemp.h.
34223
34224         * modules/exit (Files): Remove lib/exit.h.
34225         (Depends-on): Add stdlib.
34226         (Makefile.am): Remove lib_SOURCES.
34227         (Include): Use <stdlib.h> instead of exit.h.
34228         * lib/argmatch.c: Don't include exit.h.
34229         * lib/execute.c: Likewise.
34230         * lib/pagealign_alloc.c: Likewise.
34231         * lib/pipe.c: Likewise.
34232         * lib/wait-process.c: Likewise.
34233         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34234         * lib/exitfail.c: Likewise.
34235         * lib/savewd.c: Likewise.
34236         * lib/xsetenv.c: Likewise.
34237
34238         * modules/stdlib: New file.
34239         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34240         and extra comments about mkstemp().
34241         * lib/exit.h: Remove file.
34242         * lib/mkdtemp.h: Remove file.
34243         * lib/mkstemp.h: Remove file.
34244         * m4/stdlib_h.m4: New file.
34245         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34246
34247 2007-02-18  Bruno Haible  <bruno@clisp.org>
34248
34249         * modules/math-tests: New file.
34250         * tests/test-math.c: New file.
34251
34252         * modules/math: New file.
34253         * modules/mathl (Files): Remove lib/mathl.h.
34254         (Depends-on): Add math.
34255         (Makefile.am): Don't mention mathl.h.
34256         (Include): Use <math.h> instead of mathl.h.
34257         * lib/math_.h: New file.
34258         * lib/mathl.h: Remove file.
34259         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34260         mathl.h.
34261         * lib/asinl.c: Likewise.
34262         * lib/atanl.c: Likewise.
34263         * lib/ceill.c: Likewise.
34264         * lib/cosl.c: Likewise.
34265         * lib/expl.c: Likewise.
34266         * lib/floorl.c: Likewise.
34267         * lib/frexpl.c: Likewise.
34268         * lib/ldexpl.c: Likewise.
34269         * lib/logl.c: Likewise.
34270         * lib/sincosl.c: Likewise.
34271         * lib/sinl.c: Likewise.
34272         * lib/sqrtl.c: Likewise.
34273         * lib/tanl.c: Likewise.
34274         * lib/trigl.c: Likewise.
34275         * m4/math_h.m4: New file.
34276         * MODULES.html.sh (Mathematics): Add math.
34277
34278 2007-02-17  Bruno Haible  <bruno@clisp.org>
34279
34280         * modules/wctype-tests: New file.
34281         * tests/test-wctype.c: New file.
34282
34283         * modules/wchar-tests: New file.
34284         * tests/test-wchar.c: New file.
34285
34286         * modules/unistd-tests: New file.
34287         * tests/test-unistd.c: New file.
34288
34289         * modules/time-tests: New file.
34290         * tests/test-time.c: New file.
34291
34292         * modules/sysexits-tests: New file.
34293         * tests/test-sysexits.c: New file.
34294
34295         * modules/sys_time-tests: New file.
34296         * tests/test-sys_time.c: New file.
34297
34298         * modules/sys_stat-tests: New file.
34299         * tests/test-sys_stat.c: New file.
34300
34301         * modules/sys_socket-tests: New file.
34302         * tests/test-sys_socket.c: New file.
34303
34304         * modules/sys_select-tests: New file.
34305         * tests/test-sys_select.c: New file.
34306
34307         * modules/string-tests: New file.
34308         * tests/test-string.c: New file.
34309
34310         * modules/stdbool-tests: New file.
34311         * tests/test-stdbool.c: New file.
34312
34313         * modules/netinet_in-tests: New file.
34314         * tests/test-netinet_in.c: New file.
34315
34316         * modules/inttypes-tests: New file.
34317         * tests/test-inttypes.c: New file.
34318
34319         * modules/fcntl-tests: New file.
34320         * tests/test-fcntl.c: New file.
34321
34322         * modules/byteswap-tests: New file.
34323         * tests/test-byteswap.c: New file.
34324
34325         * modules/arpa_inet-tests: New file.
34326         * tests/test-arpa_inet.c: New file.
34327
34328 2007-02-17  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34331         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34332         if the corresponding module is not enabled. Emit link warnings if
34333         the function is used nevertheless.
34334         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34335         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34336         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34337         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34338         * modules/inttypes (Depends-on): Add link-warning.
34339         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34340         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34341         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34342         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34343         * modules/imaxdiv (configure.ac): Likewise.
34344         * modules/strtoimax (configure.ac): Likewise.
34345         * modules/strtoumax (configure.ac): Likewise.
34346
34347 2007-02-17  Bruno Haible  <bruno@clisp.org>
34348
34349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34350         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34351         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34352         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34353
34354 2007-02-17  Bruno Haible  <bruno@clisp.org>
34355
34356         * modules/link-warning: New file.
34357         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34358         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34359         * modules/string (Depends-on): Add link-warning.
34360         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34361         string.h.
34362         * MODULES.html.sh (Support for building libraries and executables): Add
34363         link-warning.
34364
34365 2007-02-17  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34368         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34369         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34370         long lines.
34371
34372 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34373             Bruno Haible  <bruno@clisp.org>
34374
34375         * modules/tmpfile: New file.
34376         * lib/tmpfile.c: New file.
34377         * m4/tmpfile.m4: New file.
34378         * MODULES.html.sh (func_all_modules): New section "Input/output".
34379
34380 2007-02-15  Bruno Haible  <bruno@clisp.org>
34381
34382         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34383         (supports_delete_on_close): New function.
34384         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34385
34386 2007-02-14  Bruno Haible  <bruno@clisp.org>
34387
34388         * modules/mbspcasecmp-tests: New file.
34389         * tests/test-mbspcasecmp.sh: New file.
34390         * tests/test-mbspcasecmp.c: New file.
34391
34392         New module mbspcasecmp.
34393         * modules/mbspcasecmp: New file.
34394         * lib/mbspcasecmp.c: New file.
34395         * lib/string_.h (strncasecmp): Change warning message.
34396         (mbspcasecmp): New declaration.
34397         * m4/mbspcasecmp.m4: New file.
34398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34399         GNULIB_MBSPCASECMP.
34400         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34401         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34402
34403 2007-02-14  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/mbsncasecmp-tests: New file.
34406         * tests/test-mbsncasecmp.sh: New file.
34407         * tests/test-mbsncasecmp.c: New file.
34408
34409         New module mbsncasecmp.
34410         * modules/mbsncasecmp: New file.
34411         * lib/mbsncasecmp.c: New file.
34412         * lib/string_.h (mbsncasecmp): New declaration.
34413         * m4/mbsncasecmp.m4: New file.
34414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34415         GNULIB_MBSNCASECMP.
34416         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34417         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34418
34419 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34420
34421         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34422         Verify that it doesn't overlap with our flags.
34423         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34424         do not have the desired effect in multibyte locales; instead, use
34425         mbscasecmp.
34426         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34427         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34428         we don't require GNU fnmatch ourselves (if our users require it, they
34429         should do so explicitly).
34430
34431         Fix regex code so it doesn't rely on strcasecmp.
34432         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34433         Otherwise, include gnulib's langinfo.h.
34434         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34435         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34436         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34437         * modules/regex (FILES): Remove m4/codeset.m4.
34438         (Depends-on): Add localcharset.  Remove strcase.
34439
34440 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34441
34442         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34443         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34444
34445 2007-02-13  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34449
34450 2007-02-12  Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34453         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34454         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34455         time warning rather than a link error.
34456
34457 2007-02-12  Bruno Haible  <bruno@clisp.org>
34458
34459         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34460         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34462
34463 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34466         args, not 2.
34467
34468 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34469
34470         New module 'time', so that apps can include <time.h> as per
34471         POSIX and GNU instead of separate include files like time_r.h
34472         and timegm.h.  This implementation tries out a simpler approach
34473         for replacing decls in standard include files (as compared to
34474         the string module), somewhat as an experiment.
34475
34476         * config/srclist.txt: Comment out mktime.c for now.
34477         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34478         since it doesn't apply any more.  Use generic wording instead.
34479         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34480         'time'.
34481         * lib/time_.h, m4/time_h.m4, modules/time: New files.
34482         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34483         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34484         Don't include <sys/types.h>; no longer needed since we assume C89.
34485         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34486         * lib/strftime.c: Likewise.
34487         * lib/time_r.c: Likewise.
34488         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34489         * lib/nanosleep.c: Include <time.h> first, to check interface.
34490         * lib/strptime.c: Likewise.
34491         * lib/time_r.c: Likewise.
34492         * lib/timegm.c: Likewise.
34493         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34494         needed.
34495         * lib/timegm.c: Don't include timegm.h; no longer needed.
34496         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34497         time.h now handles any problems in that area.
34498         (struct timespec, nanosleep): Remove; time.h now arranges for these.
34499         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34500         that time.h defines struct timespec.
34501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34502         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
34503         handles that.
34504         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34505         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34506         needed.  Set REPLACE_LOCALTIME.
34507         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34508         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34509         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34510         nanosleep; time_h.m4 now does that.  Don't require
34511         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34512         module handles this now.
34513         * modules/getdate (Depends-on): Remove timespec.  Add time.
34514         * modules/nanosleep (Depends-on): Likewise.
34515         * modules/stat-time (Depends-on): Likewise.
34516         * modules/nanosleep (Include): Include time.h, not timespec.h.
34517         * modules/strptime (Files): Remove lib/strptime.h.
34518         (Depends-on): Add extensions, time.
34519         (Include): Include time.h, not strptime.h.
34520         * modules/time_r (Files): Remove lib/time_r.h.
34521         (Depends-on): Add time.
34522         (Include): Include time.h, not time_r.h.
34523         * modules/timegm: Likewise.
34524         * modules/timespec (Description): Now does timespec-related decls
34525         of our own, instead of struct timespec itself.
34526         (Depends-on): Add time; remove extensions.
34527         (Maintainer): Add self.
34528         * modules/utimecmp (Depends-on): Add time; remove timespec.
34529         * modules/utimens (Depends-on): Likewise.
34530         * modules/xnanosleep (Depends-on): Likewise.
34531
34532 2007-02-11  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/c-strstr.c: Include allocsa.h.
34535         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34536         * lib/c-strcasestr.c: Include allocsa.h.
34537         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34538         * lib/strcasestr.c: Include allocsa.h.
34539         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34540         * lib/mbsstr.c: Include allocsa.h.
34541         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34542         allocsa/freesa instead of malloc/free.
34543         * lib/mbscasestr.c: Include allocsa.h.
34544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34545         allocsa/freesa instead of malloc/free.
34546         * modules/c-strstr (Depends-on): Add allocsa.
34547         * modules/c-strcasestr (Depends-on): Likewise.
34548         * modules/strcasestr (Depends-on): Likewise.
34549         * modules/mbsstr (Depends-on): Likewise.
34550         * modules/mbscasestr (Depends-on): Likewise.
34551
34552 2007-02-11  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34555
34556         * modules/mbsspn-tests: New file.
34557         * tests/test-mbsspn.sh: New file.
34558         * tests/test-mbsspn.c: New file.
34559
34560 2007-02-11  Bruno Haible  <bruno@clisp.org>
34561
34562         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34563
34564         * modules/mbspbrk-tests: New file.
34565         * tests/test-mbspbrk.sh: New file.
34566         * tests/test-mbspbrk.c: New file.
34567
34568 2007-02-11  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34571         unneeded cast.
34572
34573         * modules/mbscspn-tests: New file.
34574         * tests/test-mbscspn.sh: New file.
34575         * tests/test-mbscspn.c: New file.
34576
34577 2007-02-11  Bruno Haible  <bruno@clisp.org>
34578
34579         * modules/mbscasecmp-tests: New file.
34580         * tests/test-mbscasecmp.sh: New file.
34581         * tests/test-mbscasecmp.c: New file.
34582
34583 2007-02-11  Bruno Haible  <bruno@clisp.org>
34584
34585         Ensure O(n) worst-case complexity of mbscasestr.
34586         * lib/mbscasestr.c: Include stdbool.h.
34587         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34588         functions.
34589         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34590         the bookkeeping indicates that it's worth it.
34591         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34592
34593         * modules/mbscasestr-tests: New file.
34594         * tests/test-mbscasestr1.c: New file.
34595         * tests/test-mbscasestr2.sh: New file.
34596         * tests/test-mbscasestr2.c: New file.
34597         * tests/test-mbscasestr3.sh: New file.
34598         * tests/test-mbscasestr3.c: New file.
34599         * tests/test-mbscasestr4.sh: New file.
34600         * tests/test-mbscasestr4.c: New file.
34601         * m4/locale-tr.m4: New file.
34602
34603 2007-02-11  Bruno Haible  <bruno@clisp.org>
34604
34605         Ensure O(n) worst-case complexity of mbsstr.
34606         * lib/mbsstr.c: Include stdbool.h.
34607         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34608         functions.
34609         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34610         bookkeeping indicates that it's worth it.
34611         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34612
34613         * modules/mbsstr-tests: New file.
34614         * tests/test-mbsstr1.c: New file.
34615         * tests/test-mbsstr2.sh: New file.
34616         * tests/test-mbsstr2.c: New file.
34617         * tests/test-mbsstr3.sh: New file.
34618         * tests/test-mbsstr3.c: New file.
34619         * m4/locale-fr.m4: New file.
34620
34621 2007-02-11  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/mbsrchr.c (mbsrchr): Fix bug.
34624
34625         * modules/mbsrchr-tests: New file.
34626         * tests/test-mbsrchr.sh: New file.
34627         * tests/test-mbsrchr.c: New file.
34628
34629 2007-02-11  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/mbschr.c (mbschr): Fix bug.
34632
34633         * modules/mbschr-tests: New file.
34634         * tests/test-mbschr.sh: New file.
34635         * tests/test-mbschr.c: New file.
34636         * m4/locale-zh.m4: New file.
34637
34638 2007-02-11  Bruno Haible  <bruno@clisp.org>
34639
34640         Support for copying multibyte string iterators.
34641         * lib/mbiter.h: Include <string.h>.
34642         (mbiter_multi_copy): New function.
34643         (mbi_copy): New macro.
34644         * lib/mbuiter.h: Include <string.h>.
34645         (mbuiter_multi_copy): New function.
34646         (mbui_copy): New macro.
34647
34648 2007-02-11  Bruno Haible  <bruno@clisp.org>
34649
34650         New module mbslen.
34651         * modules/mbslen: New file.
34652         * lib/mbslen.c: New file.
34653         * lib/string_.h (mbslen): New declaration.
34654         * m4/mbslen.m4: New file.
34655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34656         GNULIB_MBSLEN.
34657         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34658         * MODULES.html.sh (Internationalization functions): Add mbslen.
34659
34660 2007-02-11  Bruno Haible  <bruno@clisp.org>
34661
34662         Ensure O(n) worst-case complexity of strcasestr substitute.
34663         * lib/strcasestr.c: Include stdbool.h.
34664         (knuth_morris_pratt): New function.
34665         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34666         bookkeeping indicates that it's worth it.
34667         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34668
34669         * modules/strcasestr-tests: New file.
34670         * tests/test-strcasestr.c: New file.
34671
34672 2007-02-11  Bruno Haible  <bruno@clisp.org>
34673
34674         Ensure O(n) worst-case complexity of c_strcasestr.
34675         * lib/c-strcasestr.c: Include stdbool.h, string.h.
34676         (knuth_morris_pratt): New function.
34677         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34678         the bookkeeping indicates that it's worth it.
34679         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34680
34681         * modules/c-strcasestr-tests: New file.
34682         * tests/test-c-strcasestr.c: New file.
34683
34684 2007-02-11  Bruno Haible  <bruno@clisp.org>
34685
34686         Ensure O(n) worst-case complexity of c_strstr.
34687         * lib/c-strstr.c: Include stdbool.h, string.h.
34688         (knuth_morris_pratt): New function.
34689         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34690         bookkeeping indicates that it's worth it.
34691         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34692
34693         * lib/c-strstr.c: Complete rewrite for maintainability.
34694
34695         * modules/c-strstr-tests: New file.
34696         * tests/test-c-strstr.c: New file.
34697
34698 2007-02-11  Bruno Haible  <bruno@clisp.org>
34699
34700         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34701         5.2.1 and earlier, whereby \055 was treated just like the range
34702         delimiter '-'.
34703         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34704
34705 2007-02-08  Bruno Haible  <bruno@clisp.org>
34706
34707         * modules/regex (Depends-on): Add stdbool.
34708         Reported by Dalibor Topic <robilad@kaffe.org>.
34709
34710 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34711
34712         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34713         Prefer returning from main to exiting from it.
34714         Remove unnecessary parens after sizeof.
34715
34716 2007-02-05  Bruno Haible  <bruno@clisp.org>
34717
34718         New module mbssep.
34719         * modules/mbssep: New file.
34720         * lib/mbssep.c: New file.
34721         * lib/string_.h (strsep): Add a conditional link warning.
34722         (mbssep): New declaration.
34723         * m4/mbssep.m4: New file.
34724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34725         GNULIB_MBSSEP.
34726         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
34727         * MODULES.html.sh (Internationalization functions): Add mbssep.
34728
34729 2007-02-05  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
34732         Optimize search in case of 1 delimiter.
34733
34734 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34735
34736         * lib/acl.h: Include sys/types.h before sys/acl.h.
34737
34738 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34739
34740         Merge upstream fix for glibc bugzilla #3957:
34741
34742         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
34743
34744         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
34745         bit for RE_HAT_LISTS_NOT_NEWLINE.
34746         (build_charclass_op): Remove bogus comment.
34747
34748 2007-02-05  Simon Josefsson  <simon@josefsson.org>
34749
34750         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
34751
34752 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34753
34754         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
34755         * lib/memmem.c [!defined _LIBC]: Include config.h.
34756
34757 2007-02-04  Bruno Haible  <bruno@clisp.org>
34758
34759         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
34760         warning message.
34761
34762 2007-02-04  Bruno Haible  <bruno@clisp.org>
34763
34764         New module mbstok_r.
34765         * modules/mbstok_r: New file.
34766         * lib/mbstok_r.c: New file.
34767         * lib/string_.h (strtok_r): Change argument names to match the
34768         comments. Add a conditional link warning.
34769         (mbstok_r): New declaration.
34770         * m4/mbstok_r.m4: New file.
34771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34772         GNULIB_MBSTOK_R.
34773         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
34774         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
34775
34776 2007-02-04  Bruno Haible  <bruno@clisp.org>
34777
34778         New module mbsspn.
34779         * modules/mbsspn: New file.
34780         * lib/mbsspn.c: New file.
34781         * lib/string_.h (strspn): Add a conditional link warning.
34782         (mbsspn): New declaration.
34783         * m4/mbsspn.m4: New file.
34784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34785         GNULIB_MBSSPN.
34786         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
34787         * MODULES.html.sh (Internationalization functions): Add mbsspn.
34788
34789 2007-02-04  Bruno Haible  <bruno@clisp.org>
34790
34791         New module mbspbrk.
34792         * modules/mbspbrk: New file.
34793         * lib/mbspbrk.c: New file.
34794         * lib/string_.h (strpbrk): Add a conditional link warning.
34795         (mbspbrk): New declaration.
34796         * m4/mbspbrk.m4: New file.
34797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34798         GNULIB_MBSPBRK.
34799         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
34800         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
34801
34802 2007-02-04  Bruno Haible  <bruno@clisp.org>
34803
34804         New module mbscspn.
34805         * modules/mbscspn: New file.
34806         * lib/mbscspn.c: New file.
34807         * lib/string_.h (strcspn): Add a conditional link warning.
34808         (mbscspn): New declaration.
34809         * m4/mbscspn.m4: New file.
34810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34811         GNULIB_MBSCSPN.
34812         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
34813         * MODULES.html.sh (Internationalization functions): Add mbscspn.
34814
34815 2007-02-04  Bruno Haible  <bruno@clisp.org>
34816
34817         New module mbscasestr, reduced goal of strcasestr.
34818         * modules/mbscasestr: New file.
34819         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
34820         (mbscasestr): Renamed from strcasestr.
34821         * lib/strcasestr.c: Don't include mbuiter.h.
34822         (strcasestr): Remove support for multibyte locales.
34823         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
34824         Change the conditional link warning.
34825         (mbscasestr): New declaration.
34826         * m4/mbscasestr.m4: New file.
34827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
34828         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
34829         REPLACE_STRCASESTR.
34830         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
34831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34832         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
34833         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
34834         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
34835         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
34836         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
34837         (Depends-on): Remove mbuiter.
34838         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
34839
34840 2007-02-04  Bruno Haible  <bruno@clisp.org>
34841
34842         Simplify handling of strncasecmp.
34843         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
34844         the conditional link warning.
34845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34846         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
34847         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
34848         * modules/strcase (configure.ac): Don't invoke
34849         gl_STRING_MODULE_INDICATOR.
34850         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
34851
34852 2007-02-04  Bruno Haible  <bruno@clisp.org>
34853
34854         New module mbscasecmp, reduced goal of strcasecmp.
34855         * modules/mbscasecmp: New file.
34856         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
34857         (mbscasecmp): Renamed from strcasecmp.
34858         * lib/strcasecmp.c: Don't include mbuiter.h.
34859         (strcasecmp): Remove support for multibyte locales.
34860         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
34861         Change the conditional link warning.
34862         (mbscasecmp): New declaration.
34863         * m4/mbscasecmp.m4: New file.
34864         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
34865         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
34866         REPLACE_STRCASECMP.
34867         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
34868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34869         GNULIB_MBSCASECMP.
34870         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
34871         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
34872         * modules/strcase (Files): Remove m4/mbrtowc.m4.
34873         (Depends-on): Remove mbuiter.
34874         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
34875
34876 2007-02-04  Bruno Haible  <bruno@clisp.org>
34877
34878         New module mbsstr. Remove module strstr.
34879         * modules/mbsstr: New file.
34880         * modules/strstr: Remove file.
34881         * lib/mbsstr.c: Renamed from lib/strstr.c.
34882         (mbsstr): Renamed from strstr.
34883         * lib/string_.h (strstr): Remove declaration. Change the conditional
34884         link warning.
34885         (mbsstr): New declaration.
34886         * m4/mbsstr.m4: New file.
34887         * m4/strstr.m4: Remove file.
34888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34889         REPLACE_STRSTR.
34890         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
34891         Don't initialize GNULIB_STRSTR.
34892         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
34893         substitute GNULIB_STRSTR and REPLACE_STRSTR.
34894         * MODULES.html.sh (Internationalization functions): Add mbsstr.
34895         (Support for systems lacking ANSI C 89): Remove strstr.
34896
34897 2007-02-04  Bruno Haible  <bruno@clisp.org>
34898
34899         New module mbsrchr.
34900         * modules/mbsrchr: New file.
34901         * lib/mbsrchr.c: New file.
34902         * lib/string_.h (strrchr): Add a conditional link warning.
34903         (mbsrchr): New declaration.
34904         * m4/mbsrchr.m4: New file.
34905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34906         GNULIB_MBSRCHR.
34907         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
34908         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
34909
34910 2007-02-04  Bruno Haible  <bruno@clisp.org>
34911
34912         New module mbschr.
34913         * modules/mbschr: New file.
34914         * lib/mbschr.c: New file.
34915         * lib/string_.h (strchr): Add a conditional link warning.
34916         (mbschr): New declaration.
34917         * m4/mbschr.m4: New file.
34918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34919         GNULIB_MBSCHR.
34920         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
34921         * MODULES.html.sh (Internationalization functions): Add mbschr.
34922
34923 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34924
34925         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
34926
34927         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
34928
34929 2007-02-04  Bruno Haible  <bruno@clisp.org>
34930
34931         New module description section 'configure.ac-early'.
34932         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
34933         (func_get_autoconf_early_snippet): New function.
34934         (func_import, func_create_testdir): Use it. Remove special cases for
34935         modules 'extensions' and 'lock'.
34936         * modules/extensions (configure.ac-early): Require
34937         gl_USE_SYSTEM_EXTENSIONS.
34938         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
34939
34940 2007-02-04  Bruno Haible  <bruno@clisp.org>
34941
34942         Make use of gcj-4.3's -fsource and -ftarget option.
34943         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
34944         and if so try the options -fsource and -ftarget.
34945         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
34946         source_version, ftarget_option, target_version arguments.
34947         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
34948         (is_envjavac_oldgcj_14_14_usable): Renamed from
34949         is_envjavac_gcj_14_14_usable.
34950         (is_envjavac_oldgcj_14_13_usable): Renamed from
34951         is_envjavac_gcj_14_13_usable.
34952         (is_gcj_present): Update.
34953         (is_gcj_43, is_gcj43_usable): New functions.
34954         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
34955         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
34956         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
34957         try the options -fsource and -ftarget.
34958
34959 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34960
34961         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
34962         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
34963         larger value.
34964
34965 2007-02-03  Jim Meyering  <jim@meyering.net>
34966
34967         Give tools a better chance to allocate space for very large buffers.
34968         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
34969
34970         Make pwd and readlink work also when run with an unreadable parent dir
34971         on systems with openat support.
34972         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
34973         provided getcwd function, even when we have openat support.
34974         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
34975
34976 2007-02-02  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34979         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
34980         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
34981         portability problems if one of these functions is only used on specific
34982         platforms.
34983         Reported by Paul Eggert.
34984
34985 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
34986
34987         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
34988         is causing more trouble than it's curing.
34989         * lib/regex_internal.h (__mempcpy): Remove.
34990         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
34991         (and make the code a tad smaller to boot).
34992         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
34993
34994 2007-02-02  Jim Meyering  <jim@meyering.net>
34995
34996         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
34997         section, not in the Makefile.am: one.
34998
34999 2007-02-02  Eric Blake  <ebb9@byu.net>
35000
35001         * lib/strchrnul.c: Always include config.h first.
35002
35003         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35004         gnulib strstr is not necessary here.
35005
35006 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35007
35008         * m4/socklen.m4: Fix typo.
35009
35010 2007-02-02  Eric Blake  <ebb9@byu.net>
35011
35012         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35013         * modules/netinet_in (Makefile.am): Likewise.
35014
35015 2007-02-01  Bruno Haible  <bruno@clisp.org>
35016
35017         * lib/string_.h (GL_LINK_WARNING): New macro.
35018         (strcasecmp, strstr, strcasestr): If provided by the system,
35019         conditionally define as a macro that leads to a warning instead of to
35020         an error.
35021         (strncasecmp): Conditionally define as a macro that leads to a warning.
35022
35023 2007-02-01  Karl Berry  <karl@gnu.org>
35024
35025         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35026
35027 2007-02-01  Bruno Haible  <bruno@clisp.org>
35028
35029         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35030         renamings.
35031
35032 2007-02-01  Eric Blake  <ebb9@byu.net>
35033
35034         * modules/regex (Depends-on): Revert dependence on mempcpy.
35035         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35036         module's definition of mempcpy.
35037         Reported by Paul Eggert.
35038
35039 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35040
35041         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35042         the symbol XYZ before redefining it.  This fixes a problem with
35043         programs that don't use XYZ, when compiled on systems that define
35044         XYZ to something else.
35045
35046 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35047
35048         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35049         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35050         writeable to group or other and (2) is intended to have a special
35051         mode bit that is set or cleared.  In such a case, the directory
35052         should be neither group- nor other-writeable until the special
35053         mode bits are right.
35054
35055 2007-01-31  Eric Blake  <ebb9@byu.net>
35056
35057         * modules/mountlist (Depends-on): Add strstr.
35058
35059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35060         bug.
35061         * modules/string (Makefile.am): Remove redundant replacement.
35062         * modules/regex (Depends-on): Add mempcpy.
35063
35064 2007-01-31  Bruno Haible  <bruno@clisp.org>
35065
35066         New module description field 'Link'.
35067         * gnulib-tool (func_usage): Document --extract-link-directive.
35068         (sed_extract_prog): Recognize 'Link' directive.
35069         (func_get_link_directive): New function.
35070         (func_import): Show summary of link directives.
35071         Handle --extract-link-directive option.
35072         * modules/acl (Link): New section.
35073         * modules/clock-time (Link): New section.
35074         * modules/euidaccess (Link): New section.
35075         * modules/gettext (Link): New section.
35076         * modules/iconv (Link): New section.
35077         * modules/lock (Link): New section.
35078         * modules/nanosleep (Link): New section.
35079         * modules/readline (Link): New section.
35080
35081 2007-01-27  Bruno Haible  <bruno@clisp.org>
35082
35083         Enforce the use of gnulib modules for unportable <string.h> functions.
35084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35086         (gl_HEADER_STRING_H_BODY): Require it.
35087         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35088         the symbol XYZ to one that gives a link error.
35089         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35090         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35091         * modules/mempcpy (configure.ac): Likewise.
35092         * modules/memrchr (configure.ac): Likewise.
35093         * modules/stpcpy (configure.ac): Likewise.
35094         * modules/stpncpy (configure.ac): Likewise.
35095         * modules/strcase (configure.ac): Likewise.
35096         * modules/strcasestr (configure.ac): Likewise.
35097         * modules/strchrnul (configure.ac): Likewise.
35098         * modules/strdup (configure.ac): Likewise.
35099         * modules/strndup (configure.ac): Likewise.
35100         * modules/strnlen (configure.ac): Likewise.
35101         * modules/strpbrk (configure.ac): Likewise.
35102         * modules/strsep (configure.ac): Likewise.
35103         * modules/strstr (configure.ac): Likewise.
35104         * modules/strtok_r (configure.ac): Likewise.
35105
35106 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35107
35108         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35109
35110 2007-01-30  Jim Meyering  <jim@meyering.net>
35111
35112         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35113
35114 2007-01-29  Bruno Haible  <bruno@clisp.org>
35115
35116         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35117         * lib/execute.c: Likewise.
35118         * lib/pipe.c: Likewise.
35119         * lib/printf-args.h: Likewise.
35120         * lib/printf-args.c: Likewise.
35121         * lib/printf-parse.c: Likewise.
35122         * lib/vasnprintf.c: Likewise.
35123
35124 2007-01-29  Eric Blake  <ebb9@byu.net>
35125
35126         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35127         declaration.
35128
35129 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35130
35131         * lib/strptime.h (strptime): Use 'restrict' for args where
35132         POSIX requires this.
35133         * lib/strptime.c (strptime): Likewise.
35134         Change license notice from LGPL to GPL, since gnulib-tool will
35135         change this as needed.
35136         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35137         defined.
35138         Include "strptime.h" first, to check interface.
35139         Do not #undef _LIBC and _NL_CURRENT.
35140         Do not include <stdlib.h>; no longer needed.
35141         Include "time_r.h" and declare ptime_locale_status
35142         only if _LIBC is not defined.
35143         (__P): Remove unused macro.
35144         (match_string): Bring back glibc version, but use it only if _LIBC
35145         is defined.
35146         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35147         Remove unnecessary assertion and abort() call.
35148         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35149         * m4/strptime.m4: Fix serial number comment.
35150         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35151         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35152         (Depends-on): Add time_r.
35153
35154 2007-01-29  Bruno Haible  <bruno@clisp.org>
35155
35156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35157         strptime.
35158         * modules/strptime (Depends-on): Add stdbool.
35159         * lib/strptime.h: Include <time.h> always. Add comments.
35160
35161 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35162
35163         * modules/strptime: New file.
35164         * lib/strptime.h: New file.
35165         * lib/strptime.c: New file.
35166         * m4/strptime.m4: New file.
35167
35168 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35169
35170         * MODULES.html.sh: New module mpsort.
35171         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35172
35173         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35174         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35176         All uses changed.
35177         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35178         All uses changed.
35179         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35180         to _Restrict_.
35181         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35182         the parameter matches the prototype.
35183
35184 2007-01-28  Jim Meyering  <jim@meyering.net>
35185
35186         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35187         sys/time.h here, reverting that part of the previous patch:
35188         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35189
35190 2007-01-28  Bruno Haible  <bruno@clisp.org>
35191
35192         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35193         value of $(SYS_TIME_H).
35194         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35195         remove it conditionally, too. [added by Jim Meyering]
35196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35198         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35199         GETTIMEOFDAY_REPLACEMENT to 1.
35200
35201 2007-01-28  Bruno Haible  <bruno@clisp.org>
35202
35203         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35204         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35206         Set UNISTD_H instead of UNISTD_H2.
35207         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35208
35209 2007-01-28  Bruno Haible  <bruno@clisp.org>
35210
35211         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35212         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35213
35214 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35215
35216         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35217         (func_create_testdir): Ensure C locale for `grep' and `tr'
35218         character ranges.
35219         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35220         ACLOCAL_AMFLAGS parsing state machine.
35221
35222 2007-01-27  Bruno Haible  <bruno@clisp.org>
35223
35224         * modules/unistr/base: Update.
35225
35226 2007-01-27  Bruno Haible  <bruno@clisp.org>
35227
35228         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35229         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35230         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35231         modules/unistr/u32-mbtouc.
35232         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35233         * lib/unistr.h: Update.
35234         * lib/linebreak.c: Update.
35235         * modules/unistr/u32-mbtouc: Renamed from
35236         modules/unistr/u32-mbtouc-safe.
35237         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35238         * lib/unistr.h: Update.
35239         * lib/unistr/u32-to-u8.c: Update.
35240         * lib/unistr/u32-to-u16.c: Update.
35241
35242 2007-01-27  Bruno Haible  <bruno@clisp.org>
35243
35244         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35245         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35246         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35247         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35248         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35249         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35250         modules/unistr/u16-mbtouc.
35251         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35252         * lib/unistr.h: Update.
35253         * lib/linebreak.c: Update.
35254         * modules/linebreak: Update.
35255         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35256         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35257         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35258         * modules/unistr/u16-mbtouc: Renamed from
35259         modules/unistr/u16-mbtouc-safe.
35260         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35261         * lib/unistr.h: Update.
35262         * lib/unistr/u16-to-u8.c: Update.
35263         * modules/unistr/u16-to-u8: Update.
35264         * lib/unistr/u16-to-u32.c: Update.
35265         * modules/unistr/u16-to-u32: Update.
35266
35267 2007-01-27  Bruno Haible  <bruno@clisp.org>
35268
35269         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35270         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35271         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35272         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35273         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35274         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35275         modules/unistr/u8-mbtouc.
35276         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35277         * lib/unistr.h: Update.
35278         * lib/striconveh.c: Update.
35279         * modules/striconveh: Update.
35280         * lib/linebreak.c: Update.
35281         * modules/linebreak: Update.
35282         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35283         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35284         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35285         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35286         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35287         * lib/unistr.h: Update.
35288         * lib/striconveh.c: Update.
35289         * modules/striconveh: Update.
35290         * lib/unistr/u8-to-u16.c: Update.
35291         * modules/unistr/u8-to-u16: Update.
35292         * lib/unistr/u8-to-u32.c: Update.
35293         * modules/unistr/u8-to-u32: Update.
35294
35295 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35296
35297         Sync from Libtool.
35298         * lib/argz.c: Do not include strings.h nor memory.h, include
35299         string.h unconditionally.  Patch by Simon Josefsson.
35300
35301 2007-01-27  Bruno Haible  <bruno@clisp.org>
35302
35303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35304         from gl_HEADER_STRING_H_BODY.
35305         (gl_HEADER_STRING_H_BODY): Require it.
35306         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35307         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35308         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35309         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35310         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35311         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35313         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35314         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35315         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35316         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35317         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35318         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35319         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35321
35322 2007-01-27  Bruno Haible  <bruno@clisp.org>
35323
35324         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35325         check_PROGRAMS into noinst_PROGRAMS.
35326         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35327         check_PROGRAMS in this case.
35328         (func_import): Set for_test to false.
35329         (func_create_testdir): Set for_test to true.
35330
35331 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35332             Bruno Haible  <bruno@clisp.org>
35333
35334         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35335         (Depends-on): Add string.
35336         (Includes): Use <string.h> instead of strcasestr.h.
35337         * modules/string (Makefile.am): Also substitute the value of
35338         REPLACE_STRCASESTR.
35339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35340         assume strcasestr is declared in <string.h> not <strings.h>. Also
35341         set REPLACE_STRCASESTR.
35342         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35343         REPLACE_STRCASESTR.
35344         * lib/strcasestr.h: Remove file.
35345         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35346         * lib/string_.h (strcasestr): New declaration.
35347
35348 2007-01-27  Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/string_.h: Use 'extern'.
35351
35352 2007-01-27  Jim Meyering  <jim@meyering.net>
35353
35354         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35355         of set-but-not-used local, "q".
35356
35357         * lib/mempcpy.c: Include <config.h> before <string.h>.
35358         This fixes a compilation error on HP-UX, due to the system's
35359         "restrict"-using mempcpy prototype.
35360
35361 2007-01-26  Bruno Haible  <bruno@clisp.org>
35362
35363         Small optimization.
35364         * lib/javacomp.c: Include c-strstr.h.
35365          (is_envjavac_gcj): Use c_strstr instead of strstr.
35366         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35367
35368 2007-01-26  Bruno Haible  <bruno@clisp.org>
35369
35370         * MODULES.html.sh (Unicode string functions): Add the new modules.
35371
35372         * modules/uniconv/u32-strconv-to-locale: New file.
35373         * lib/uniconv/u32-strconv-to-locale.c: New file.
35374
35375         * modules/uniconv/u16-strconv-to-locale: New file.
35376         * lib/uniconv/u16-strconv-to-locale.c: New file.
35377
35378         * modules/uniconv/u8-strconv-to-locale: New file.
35379         * lib/uniconv/u8-strconv-to-locale.c: New file.
35380
35381         * modules/uniconv/u32-strconv-from-locale: New file.
35382         * lib/uniconv/u32-strconv-from-locale.c: New file.
35383
35384         * modules/uniconv/u16-strconv-from-locale: New file.
35385         * lib/uniconv/u16-strconv-from-locale.c: New file.
35386
35387         * modules/uniconv/u8-strconv-from-locale: New file.
35388         * lib/uniconv/u8-strconv-from-locale.c: New file.
35389
35390         * modules/uniconv/u32-strconv-to-enc: New file.
35391         * lib/uniconv/u32-strconv-to-enc.c: New file.
35392         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35393         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35394
35395         * modules/uniconv/u16-strconv-to-enc: New file.
35396         * lib/uniconv/u16-strconv-to-enc.c: New file.
35397         * lib/uniconv/u-strconv-to-enc.h: New file.
35398         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35399         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35400
35401         * modules/uniconv/u8-strconv-to-enc: New file.
35402         * lib/uniconv/u8-strconv-to-enc.c: New file.
35403         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35404         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35405
35406         * modules/uniconv/u32-strconv-from-enc: New file.
35407         * lib/uniconv/u32-strconv-from-enc.c: New file.
35408         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35409         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35410
35411         * modules/uniconv/u16-strconv-from-enc: New file.
35412         * lib/uniconv/u16-strconv-from-enc.c: New file.
35413         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35414         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35415
35416         * modules/uniconv/u8-strconv-from-enc: New file.
35417         * lib/uniconv/u8-strconv-from-enc.c: New file.
35418         * lib/uniconv/u-strconv-from-enc.h: New file.
35419         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35420         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35421
35422         * modules/uniconv/u32-conv-from-enc: New file.
35423         * lib/uniconv/u32-conv-from-enc.c: New file.
35424         * modules/uniconv/u32-conv-from-enc-tests: New file.
35425         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35426
35427         * modules/uniconv/u16-conv-from-enc: New file.
35428         * lib/uniconv/u16-conv-from-enc.c: New file.
35429         * lib/uniconv/u-conv-from-enc.h: New file.
35430         * modules/uniconv/u16-conv-from-enc-tests: New file.
35431         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35432
35433         * modules/uniconv/u8-conv-from-enc: New file.
35434         * lib/uniconv/u8-conv-from-enc.c: New file.
35435         * modules/uniconv/u8-conv-from-enc-tests: New file.
35436         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35437
35438         * modules/uniconv/base: New file.
35439         * lib/uniconv.h: New file.
35440
35441 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         * doc/gnulib-tool.texi (Initial import): Update to match current
35444         behavior with strdup module.
35445         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35446         * lib/memmem.h: Remove; all uses removed.  This is now done
35447         by <string.h>.
35448         * lib/mempcpy.h: Likewise.
35449         * lib/memrchr.h: Likewise.
35450         * lib/stpcpy.h: Likewise.
35451         * lib/stpncpy.h: Likewise.
35452         * lib/strcase.h: Likewise.
35453         * lib/strchrnul.h: Likewise.
35454         * lib/strdup.h: Likewise.
35455         * lib/strndup.h: Likewise.
35456         * lib/strnlen.h: Likewise.
35457         * lib/strpbrk.h: Likewise.
35458         * lib/strsep.h: Likewise.
35459         * lib/strstr.h: Likewise.
35460         * lib/strtok_r.h: Likewise.
35461         * lib/string_.h: New file.
35462         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35463         Rely on <string.h> instead.
35464         * lib/canon-host.c: Likewise.
35465         * lib/chdir-long.c: Likewise.
35466         * lib/concatpath.c: Likewise.
35467         * lib/exclude.c: Likewise.
35468         * lib/fchdir.c: Likewise.
35469         * lib/getaddrinfo.c: Likewise.
35470         * lib/getcwd.c: Likewise.
35471         * lib/getsubopt.c: Likewise.
35472         * lib/glob.c: Likewise.
35473         * lib/hard-locale.c: Likewise.
35474         * lib/iconvme.c: Likewise.
35475         * lib/javacomp.c: Likewise.
35476         * lib/mempcpy.c: Likewise.
35477         * lib/memrchr.c: Likewise.
35478         * lib/regex_internal.h: Likewise.
35479         * lib/stpncpy.c: Likewise.
35480         * lib/strcasecmp.c: Likewise.
35481         * lib/strchrnul.c: Likewise.
35482         * lib/strdup.c: Likewise.
35483         * lib/striconv.c: Likewise.
35484         * lib/striconveh.c: Likewise.
35485         * lib/striconveha.c: Likewise.
35486         * lib/strncasecmp.c: Likewise.
35487         * lib/strndup.c: Likewise.
35488         * lib/strnlen.c: Likewise.
35489         * lib/strsep.c: Likewise.
35490         * lib/strstr.c: Likewise.
35491         * lib/strtok_r.c: Likewise.
35492         * lib/userspec.c: Likewise.
35493         * lib/w32spawn.h: Likewise.
35494         * lib/xstrndup.c: Likewise.
35495         * lib/mountlist.c (strstr): Remove decl.
35496         * m4/string_h.m4: New file.
35497         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35498         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35499         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35500         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35501         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35502         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35503         Set REPLACE_STRCASECMP if necessary.
35504         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35505         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35506         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35507         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35508         HAVE_DECL_STRDUP if necessary.
35509         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35510         since gl_FUNC_STRNDUP does that now.
35511         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35512         Check for decl here...
35513         (gl_PREREQ_STRNLEN): ... not here.
35514         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35515         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35516         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35517         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35518         necessary.
35519         * modules/string: New file.
35520         * modules/memmem (Files): Remove special-purpose include file.
35521         (Depends-on): Add string.
35522         (Include): Include <string.h>, not the removed file.
35523         * modules/mempcpy: Likewise.
35524         * modules/memrchr: Likewise.
35525         * modules/stpcpy: Likewise.
35526         * modules/stpncpy: Likewise.
35527         * modules/strcase: Likewise.
35528         * modules/strchrnul: Likewise.
35529         * modules/strdup: Likewise.
35530         * modules/strndup: Likewise.
35531         * modules/strnlen: Likewise.
35532         * modules/strpbrk: Likewise.
35533         * modules/strsep: Likewise.
35534         * modules/strstr: Likewise.
35535         * modules/strtok_r: Likewise.
35536         * tests/test-dirname.c: Don't include "strdup.h", since
35537         <string.h> now suffices.
35538         * tests/test-memmem.c: Don't include "memmem.h", since
35539         <string.h> now suffices.
35540
35541 2007-01-25  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35544         *resultp is 0.
35545
35546         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35547         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35548         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35549         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35550
35551         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35552         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35553         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35554         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35555         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35556         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35557
35558 2007-01-24  Bruno Haible  <bruno@clisp.org>
35559
35560         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35561         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35562         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35563         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35564         gl_FUNC_FTS_CORE.
35565         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35566         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35567         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35568         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35569         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35570         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35571         gl_FUNC_FCHOWNAT.
35572         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35573         gl_FUNC_STRFTIME.
35574         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35575         Reported by Ralf Wildenhues.
35576
35577 2007-01-24  Bruno Haible  <bruno@clisp.org>
35578
35579         Drop AC_REQUIRE calls that are redundant with the module dependencies.
35580         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35581         gl_GETADDRINFO.
35582         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35583         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35584         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35585
35586 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
35587
35588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35589         Don't use 'exit'; just return from 'main'.
35590         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35591
35592         * lib/fnmatch_.h: Readjust white space and comments to match
35593         glibc, to avoid spurious diffs.
35594
35595 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35596
35597         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35598         2004-12-01 change by Jakub Jelinek, since this code won't compile
35599         if !LIBC.  Problem reported by Bob Proulx.
35600
35601 2007-01-23  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/striconveh.c: Include c-strcaseeq.h.
35604         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35605         * modules/striconveh (Depends-on): Add c-strcaseeq.
35606
35607 2007-01-23  Bruno Haible  <bruno@clisp.org>
35608
35609         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35610
35611         * modules/c-strcaseeq: New file.
35612         * lib/c-strcaseeq.h: New file.
35613
35614         * modules/streq: New file.
35615         * lib/streq.h: New file.
35616
35617 2007-01-23  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/striconveha-tests: New file.
35620         * tests/test-striconveha.c: New file.
35621
35622         * lib/striconveha.h: Include <stdbool.h>.
35623         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35624         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35625         (mem_iconveha_notranslit): Renamed from mem_iconveha.
35626         (mem_iconveha): New function.
35627         (str_iconveha_notranslit): Renamed from str_iconveha.
35628         (str_iconveha): New function.
35629         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35630         c-strcase.
35631
35632 2007-01-23  Bruno Haible  <bruno@clisp.org>
35633
35634         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35635         encodings without forgiving before trying any encoding with handler.
35636         (str_iconveha): Try all encodings without forgiving before trying any
35637         encoding with handler.
35638
35639 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35640
35641         Import the following changes from libc.
35642
35643         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35644
35645         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35646
35647         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
35648
35649         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35650         normal_bracket label.
35651
35652         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
35653
35654         [BZ #361]
35655         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35656         to normal_bracket after fetching the next character.
35657
35658 2007-01-22  Bruno Haible  <bruno@clisp.org>
35659
35660         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35661         argument.
35662         * lib/striconveh.c (iconv_carefully_1): New function.
35663         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35664         argument.
35665         (str_cd_iconveh): Update.
35666         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35667         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35668         * tests/test-striconveh.c (MAGIC): New macro.
35669         (new_offsets): New function.
35670         (main): Test call with and without offsets.
35671
35672 2007-01-22  Bruno Haible  <bruno@clisp.org>
35673
35674         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35675         * modules/sys_select (Makefile.am): Likewise.
35676         * modules/sys_socket (Makefile.am): Likewise.
35677         * modules/sys_time (Makefile.am): Likewise.
35678
35679 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35680
35681         * modules/gettimeofday (License): Change from GPL to LGPL, since
35682         gettimeofday is a library function.
35683
35684 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35685
35686         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35687
35688 2007-01-21  Bruno Haible  <bruno@clisp.org>
35689
35690         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35691
35692 2007-01-21  Bruno Haible  <bruno@clisp.org>
35693
35694         * modules/striconveha: New file.
35695         * lib/striconveha.h: New file.
35696         * lib/striconveha.c: New file.
35697         * MODULES.html.sh (Internationalization functions): Add striconveha.
35698         * lib/striconv.c (str_iconv): Optimize the case of an empty input
35699         string.
35700         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35701
35702 2007-01-21  Bruno Haible  <bruno@clisp.org>
35703
35704         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35705         * lib/striconveh.c (str_iconveh): Likewise.
35706
35707 2007-01-21  Bruno Haible  <bruno@clisp.org>
35708
35709         * lib/striconveh.h (mem_iconveh): New declaration.
35710         * lib/striconveh.c (mem_iconveh): New function.
35711         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35712
35713 2007-01-21  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35716
35717         * lib/striconveh.h (mem_cd_iconveh): Change specification.
35718         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35719         original result buffer.
35720         (str_cd_iconveh): Update.
35721         * tests/test-striconveh.c (main): Update.
35722
35723         * lib/striconv.h (mem_cd_iconv): Change specification.
35724         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
35725         result buffer.
35726         (str_cd_iconv): Update.
35727         * tests/test-striconv.c (main): Update.
35728
35729 2007-01-21  Bruno Haible  <bruno@clisp.org>
35730
35731         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
35732
35733 2007-01-20  Jim Meyering  <jim@meyering.net>
35734
35735         * lib/userspec.c (parse_with_separator): If a user or group string
35736         starts with "+", skip the corresponding name-to-ID look-up, since
35737         such a look-up must fail: user and group names may not include "+".
35738
35739 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35740
35741         * lib/poll.c: Include sys/time.h and time.h unconditionally,
35742         since we now assume the sys_time module.
35743         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
35744         check for sys/time.h; no longer needed.
35745         * modules/poll (Depends-on): Depend on sys_time.
35746
35747 2007-01-18  Bruno Haible  <bruno@clisp.org>
35748
35749         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
35750         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35751
35752         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
35753         gettimeofday.
35754
35755         * tests/test-gettimeofday.c: Include <time.h>.
35756         (dummy): Remove variable.
35757
35758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
35759         gl_HEADER_SYS_TIME_H.
35760         (gl_HEADER_SYS_TIME_H): New macro.
35761
35762         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
35763         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35765         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
35766         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35767         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
35768         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
35769         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35770         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
35771         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
35772         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35773
35774         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
35775         last change; it caused a compilation error when cross-compiling to
35776         Cygwin.
35777
35778 2007-01-18  Jim Meyering  <jim@meyering.net>
35779
35780         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
35781         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
35782         than the race-prone "test -d sys || mkdir sys".
35783         (configure.ac): Use AC_PROG_MKDIR_P.
35784         * modules/sys_select: Likewise.
35785         * modules/sys_socket: Likewise.
35786         * modules/sys_time: Likewise.
35787
35788 2007-01-18  Eric Blake  <ebb9@byu.net>
35789
35790         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
35791         replace gettimeofday.
35792         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
35793         name, to avoid infinite recursion.
35794
35795 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
35796
35797         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
35798         module sys_time.
35799         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
35800         assume timespec.h defines struct timeval.
35801         * lib/settime.c: Likewise.
35802         * lib/utimens.c: Likewise.
35803         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
35804         since we now assume the gettimeofday module.
35805         * lib/tempname.c (__gen_tempname): Likewise.
35806         * lib/gettimeofday.h: Remove.
35807         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
35808         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
35809         Include <time.h>, for 'time()'.
35810         (localtime_buffer_addr): Also use this workaround if
35811         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
35812         to simplify the uses.  All uses changed.
35813         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
35814         that #undef is inside {}, and 'const' follows type name consistently.
35815         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
35816         (gettimeofday): Do not use the maximum possible value for
35817         tv->tv_usec, since that might break usages other than ls.c.
35818         Instead, we'll leave ls.c alone.  This undoes today's patch
35819         by Bruno.  Add a compile-time warning for 1s-clock resolution;
35820         we've never observed the problem but might as well keep the
35821         canary.
35822         * lib/nanosleep.c: Include timespec.h first, for interface check.
35823         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
35824         now assume the sys_time module.
35825         * lib/tempname.c: Likewise.
35826         * lib/timespec.h: Likewise.
35827         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
35828         needed.
35829         * lib/strftime.c: Likewise.
35830         * lib/timespec.h: Likewise.
35831         * lib/posixtm.c: Include posixtm.h first, for interface check.
35832         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
35833         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
35834         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
35835         * lib/sys_time_.h: New file.
35836         * lib/timespec.h (struct timespec): Use long int, not long.
35837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35838         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
35839         Remove obsolescent call to AC_HEADER_TIME.
35840         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
35841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35843         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
35844         Likewise.
35845         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
35846         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
35847         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
35848         into the sys_time module.  Check for gettimeofday just once.
35849         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
35850         for gettimeofday signature to just check the signature.  Merely
35851         compile it, since linking doesn't test signature.  Improve test for
35852         whether gettimeofday.o is actually needed.
35853         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
35854         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
35855         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
35856         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35857         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
35858         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
35859         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
35860         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
35861         than worrying about sys/time.h.
35862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35863         Don't bother worrying about TIME_WITH_SYS_TIME.
35864         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35865         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
35866         * m4/sys_time_h.m4: New file.
35867         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
35868         Don't include sys/time.h.  Return from main rather than exiting.
35869         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
35870         all uses changed.
35871         * modules/gethrxtime (Depends-on): Add sys_time.
35872         * modules/gettime (Depends-on): Likewise.
35873         * modules/gettimeofday (Depends-on): Likewise.
35874         * modules/nanosleep (Depends-on): Likewise.
35875         * modules/settime (Depends-on): Likewise.
35876         * modules/tempname (Depends-on): Likewise.
35877         * modules/utimens (Depends-on): Likewise.
35878         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
35879         (Include:) Change back to <sys/time.h>.
35880         (Maintainer:) Add self.
35881         * modules/sys_time: New file.
35882         * modules/tempname (Depends-on): Add gettimeofday.
35883         * tests/test-gettimeofday.c: Include <sys/time.h>
35884         rather than gettimeofday.h.
35885
35886 2007-01-17  Bruno Haible  <bruno@clisp.org>
35887
35888         * gnulib-tool (func_get_license): Revert last patch. Instead, let
35889         the license default to GPL.
35890         (func_create_testdir): Don't complain if a module is LGPL and its
35891         tests module depends on GPLed modules.
35892
35893 2007-01-17  Bruno Haible  <bruno@clisp.org>
35894
35895         * lib/gettimeofday.c (gettimeofday): Add code for the case
35896         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
35897         maximum possible value for tv->tv_usec, rather than the minimum one.
35898
35899 2005-10-08  Martin Lambers  <marlam@marlam.de>
35900 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35901 2007-01-16  Bruno Haible  <bruno@clisp.org>
35902
35903         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
35904         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
35905         gl_FUNC_GETTIMEOFDAY.
35906         (Include): Add gettimeofday.h.
35907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
35908         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
35909         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
35910         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
35911         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
35912         * lib/gettimeofday.h: New file.
35913         * lib/gettimeofday.c: Include <sys/timeb.h>.
35914         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
35915         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35916         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
35917         fall back on time().
35918
35919         * tests/test-gettimeofday.c: New file.
35920         * modules/gettimeofday-tests: New file.
35921
35922 2007-01-16  Eric Blake  <ebb9@byu.net>
35923
35924         * modules/fnmatch (Depends-on): Depend on wchar.
35925         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
35926         * m4/fnmatch.m4: Likewise.
35927         * modules/mbchar (Makefile.am): Assume <wchar.h>.
35928         * m4/mbchar.m4: Likewise.
35929         * modules/mbswidth (Depends-on): Depend on wchar.
35930         * lib/mbswidth.c: Assume <wchar.h>.
35931         * m4/mbswidth.m4: Likewise.
35932         * modules/quotearg (Depends-on): Depend on wchar.
35933         * lib/quotearg.c: Assume <wchar.h>.
35934         * m4/quotearg.m4: Likewise.
35935         * modules/regex (Depends-on): Depend on wchar.
35936         * lib/regex_internal.h: Assume <wchar.h>.
35937         * m4/regex.m4: Likewise.
35938         * modules/stdint (Depends-on): Depend on wchar.
35939         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
35940         * m4/stdint.m4: Likewise.
35941         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
35942         * modules/strftime (Depends-on): Depend on wchar.
35943         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
35944         * modules/strtol (Depends-on): Depend on wchar.
35945         * lib/strtol.c: Assume <wchar.h>.
35946         * modules/wcwidth (Depends-on): Depend on wchar.
35947         * lib/wcwidth.h: Assume <wchar.h>.
35948         * m4/wcwidth.m4: Likewise.
35949
35950 2007-01-16  Bruno Haible  <bruno@clisp.org>
35951
35952         * modules/csharpexec-script: New, created from...
35953         * modules/csharpexec: ... this.
35954
35955 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35956
35957         * modules/javaexec-script: New, created from...
35958         * modules/javaexec: ... this.
35959
35960 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35961
35962         * modules/poll (Dependencies): Add sys_select.
35963
35964 2007-01-15  Jim Meyering  <jim@meyering.net>
35965
35966         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
35967         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
35968         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
35969         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
35970
35971 2007-01-15  Bruno Haible  <bruno@clisp.org>
35972
35973         * modules/striconveh: New file.
35974         * lib/striconveh.h: New file.
35975         * lib/striconveh.c: New file.
35976         * MODULES.html.sh (Internationalization functions): Add striconveh.
35977
35978         * modules/striconveh-tests: New file.
35979         * tests/test-striconveh.c: New file.
35980
35981 2007-01-15  Bruno Haible  <bruno@clisp.org>
35982
35983         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
35984         not from GNU libiconv or GNU libc.
35985
35986 2007-01-15  Bruno Haible  <bruno@clisp.org>
35987
35988         * doc/gnulib-intro.texi (Copyright): Explain the different license
35989         terms for module descriptions, autoconf macros, tests, documentation.
35990
35991 2007-01-14  Bruno Haible  <bruno@clisp.org>
35992
35993         * modules/striconv-tests: New file.
35994         * tests/test-striconv.c: New file.
35995
35996 2007-01-14  Bruno Haible  <bruno@clisp.org>
35997
35998         * modules/iconv-tests: New file.
35999         * tests/test-iconv.c: New file.
36000
36001 2007-01-14  Bruno Haible  <bruno@clisp.org>
36002
36003         * gnulib-tool (func_get_license): For test modules, use the license of
36004         the main module.
36005
36006 2007-01-14  Bruno Haible  <bruno@clisp.org>
36007
36008         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36009         if iconv is found to exist.
36010
36011 2007-01-14  Bruno Haible  <bruno@clisp.org>
36012
36013         * modules/c-ctype-tests: New file.
36014         * tests/test-c-ctype.c: New file.
36015
36016 2007-01-14  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/binary-io-tests: New file.
36019         * tests/test-binary-io.sh: New file.
36020         * tests/test-binary-io.c: New file.
36021
36022 2007-01-14  Bruno Haible  <bruno@clisp.org>
36023
36024         * modules/array-oset-tests: New file.
36025         * tests/test-array_oset.c: New file.
36026
36027 2007-01-14  Bruno Haible  <bruno@clisp.org>
36028
36029         * modules/array-list-tests: New file.
36030         * tests/test-array_list.c: New file.
36031
36032 2007-01-14  Bruno Haible  <bruno@clisp.org>
36033
36034         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36035         and make.
36036         Reported by Simon Josefsson in
36037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36038
36039 2007-01-14  Bruno Haible  <bruno@clisp.org>
36040
36041         * modules/allocsa-tests: New file.
36042         * tests/test-allocsa.c: New file.
36043
36044 2007-01-14  Bruno Haible  <bruno@clisp.org>
36045
36046         * modules/fchdir (Depends-on): Add absolute-header.
36047         * modules/unistd (Depends-on): Likewise.
36048
36049 2006-12-30  Bruno Haible  <bruno@clisp.org>
36050
36051         * modules/fchdir: New file.
36052         * modules/unistd (Files): Add lib/unistd_.h.
36053         (Makefile.am): Generate unistd.h from unistd_.h.
36054         * lib/fchdir.c: New file.
36055         * lib/dirent_.h: New file.
36056         * lib/unistd_.h: New file.
36057         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36058         * m4/fchdir.m4: New file.
36059         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36060         (gl_HEADER_UNISTD): Invoke it.
36061         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36062         function.
36063         * lib/backupfile.c (opendir, closedir): Undefine.
36064         * lib/chown.c (open, close): Undefine.
36065         * lib/clean-temp.c (open, close): Undefine.
36066         * lib/copy-file.c (open, close): Undefine.
36067         * lib/execute.c (open, close): Undefine.
36068         * lib/fsusage.c (open, close): Undefine.
36069         * lib/gc-gnulib.c (open, close): Undefine.
36070         * lib/getcwd.c (opendir, closedir): Undefine.
36071         * lib/glob.c (opendir, closedir): Undefine.
36072         * lib/javacomp.c (open, close): Undefine.
36073         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36074         * lib/openat-proc.c (open, close): Undefine.
36075         * lib/pagealign_alloc.c (open, close): Undefine.
36076         * lib/pipe.c (open, close): Undefine.
36077         * lib/progreloc.c (open, close): Undefine.
36078         * lib/savedir.c (opendir, closedir): Undefine.
36079         * lib/utime.c (open, close): Undefine.
36080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36081
36082 2007-01-10  Bruno Haible  <bruno@clisp.org>
36083
36084         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36085
36086 2007-01-12  Eric Blake  <ebb9@byu.net>
36087
36088         Provide a robust <wchar.h>.  Further simplifications are now
36089         possible in other modules, but not included here.
36090         * modules/wchar: New module.
36091         * m4/wchar.m4: New file.
36092         * lib/wchar_.h: Likewise.
36093         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36094         of the new module.
36095         * MODULES.html.sh (Extended multibyte and wide character utilities):
36096         New section.
36097
36098 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36099
36100         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36101         to a reasonable default for memory allocation.
36102         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36103         file system that reports garbage st_size values for symlinks.
36104         Problem reported by Liyang Hu.
36105
36106 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36107
36108         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36109         Emacs .#* auto-save files).
36110
36111 2007-01-11  Bruno Haible  <bruno@clisp.org>
36112
36113         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36114         directory.
36115
36116 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36117
36118         Use @...@ consistently in lib/wctype_.h.
36119         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36120         on it being set to 1 or 0.
36121         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36122         go back to AC_SUBSTing it.
36123         * modules/wctype (Makefile.am): Undo previous change.
36124
36125 2007-01-10  Eric Blake  <ebb9@byu.net>
36126
36127         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36128         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36129         * modules/wctype (Makefile.am): Likewise.
36130         Reported by Chris McGuire.
36131
36132 2007-01-10  Jim Meyering  <jim@meyering.net>
36133
36134         fts.c: a small readability/maintainability improvement
36135         * lib/fts.c (fts_read): Make this code slightly more readable and
36136         maintainable by hoisting the "sp->fts_cur = p" assignments to
36137         immediately follow the statements that set P.  Derived from
36138         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36139
36140 2007-01-10  Eric Blake  <ebb9@byu.net>
36141
36142         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36143         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36145         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36146         Reported by Chris McGuire.
36147
36148 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36149
36150         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36151         in sed script.
36152
36153 2007-01-09  Bruno Haible  <bruno@clisp.org>
36154
36155         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36156         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36157         variables.
36158         (func_module): Use them.
36159
36160 2007-01-09  Bruno Haible  <bruno@clisp.org>
36161
36162         * modules/unistr/base: New file.
36163         * lib/unistr.h: New file.
36164
36165         * modules/unistr/u8-to-u16: New file.
36166         * lib/unistr/u8-to-u16.c: New file.
36167
36168         * modules/unistr/u8-to-u32: New file.
36169         * lib/unistr/u8-to-u32.c: New file.
36170
36171         * modules/unistr/u16-to-u8: New file.
36172         * lib/unistr/u16-to-u8.c: New file.
36173
36174         * modules/unistr/u16-to-u32: New file.
36175         * lib/unistr/u16-to-u32.c: New file.
36176
36177         * modules/unistr/u32-to-u8: New file.
36178         * lib/unistr/u32-to-u8.c: New file.
36179
36180         * modules/unistr/u32-to-u16: New file.
36181         * lib/unistr/u32-to-u16.c: New file.
36182
36183         * modules/unistr/u8-check: New file.
36184         * modules/unistr/u16-check: New file.
36185         * modules/unistr/u32-check: New file.
36186         * lib/unistr/u8-check.c: New file.
36187         * lib/unistr/u16-check.c: New file.
36188         * lib/unistr/u32-check.c: New file.
36189
36190         * modules/unistr/u8-chr: New file.
36191         * modules/unistr/u16-chr: New file.
36192         * modules/unistr/u32-chr: New file.
36193         * lib/unistr/u8-chr.c: New file.
36194         * lib/unistr/u16-chr.c: New file.
36195         * lib/unistr/u32-chr.c: New file.
36196
36197         * modules/unistr/u8-cmp: New file.
36198         * modules/unistr/u16-cmp: New file.
36199         * modules/unistr/u32-cmp: New file.
36200         * lib/unistr/u8-cmp.c: New file.
36201         * lib/unistr/u16-cmp.c: New file.
36202         * lib/unistr/u32-cmp.c: New file.
36203
36204         * modules/unistr/u8-cpy: New file.
36205         * modules/unistr/u16-cpy: New file.
36206         * modules/unistr/u32-cpy: New file.
36207         * lib/unistr/u8-cpy.c: New file.
36208         * lib/unistr/u16-cpy.c: New file.
36209         * lib/unistr/u32-cpy.c: New file.
36210         * lib/unistr/u-cpy.h: New file.
36211
36212         * modules/unistr/u8-cpy-alloc: New file.
36213         * modules/unistr/u16-cpy-alloc: New file.
36214         * modules/unistr/u32-cpy-alloc: New file.
36215         * lib/unistr/u8-cpy-alloc.c: New file.
36216         * lib/unistr/u16-cpy-alloc.c: New file.
36217         * lib/unistr/u32-cpy-alloc.c: New file.
36218         * lib/unistr/u-cpy-alloc.h: New file.
36219
36220         * modules/unistr/u8-endswith: New file.
36221         * modules/unistr/u16-endswith: New file.
36222         * modules/unistr/u32-endswith: New file.
36223         * lib/unistr/u8-endswith.c: New file.
36224         * lib/unistr/u16-endswith.c: New file.
36225         * lib/unistr/u32-endswith.c: New file.
36226         * lib/unistr/u-endswith.h: New file.
36227
36228         * modules/unistr/u8-mblen: New file.
36229         * modules/unistr/u16-mblen: New file.
36230         * modules/unistr/u32-mblen: New file.
36231         * lib/unistr/u8-mblen.c: New file.
36232         * lib/unistr/u16-mblen.c: New file.
36233         * lib/unistr/u32-mblen.c: New file.
36234
36235         * modules/unistr/u8-mbtouc: New file.
36236         * modules/unistr/u16-mbtouc: New file.
36237         * modules/unistr/u32-mbtouc: New file.
36238         * lib/unistr/u8-mbtouc.c: New file.
36239         * lib/unistr/u16-mbtouc.c: New file.
36240         * lib/unistr/u32-mbtouc.c: New file.
36241
36242         * modules/unistr/u8-mbtouc-safe: New file.
36243         * modules/unistr/u16-mbtouc-safe: New file.
36244         * modules/unistr/u32-mbtouc-safe: New file.
36245         * lib/unistr/u8-mbtouc-safe.c: New file.
36246         * lib/unistr/u16-mbtouc-safe.c: New file.
36247         * lib/unistr/u32-mbtouc-safe.c: New file.
36248
36249         * modules/unistr/u8-move: New file.
36250         * modules/unistr/u16-move: New file.
36251         * modules/unistr/u32-move: New file.
36252         * lib/unistr/u8-move.c: New file.
36253         * lib/unistr/u16-move.c: New file.
36254         * lib/unistr/u32-move.c: New file.
36255         * lib/unistr/u-move.h: New file.
36256
36257         * modules/unistr/u8-next: New file.
36258         * modules/unistr/u16-next: New file.
36259         * modules/unistr/u32-next: New file.
36260         * lib/unistr/u8-next.c: New file.
36261         * lib/unistr/u16-next.c: New file.
36262         * lib/unistr/u32-next.c: New file.
36263
36264         * modules/unistr/u8-prev: New file.
36265         * modules/unistr/u16-prev: New file.
36266         * modules/unistr/u32-prev: New file.
36267         * lib/unistr/u8-prev.c: New file.
36268         * lib/unistr/u16-prev.c: New file.
36269         * lib/unistr/u32-prev.c: New file.
36270
36271         * modules/unistr/u8-set: New file.
36272         * modules/unistr/u16-set: New file.
36273         * modules/unistr/u32-set: New file.
36274         * lib/unistr/u8-set.c: New file.
36275         * lib/unistr/u16-set.c: New file.
36276         * lib/unistr/u32-set.c: New file.
36277         * lib/unistr/u-set.h: New file.
36278
36279         * modules/unistr/u8-startswith: New file.
36280         * modules/unistr/u16-startswith: New file.
36281         * modules/unistr/u32-startswith: New file.
36282         * lib/unistr/u8-startswith.c: New file.
36283         * lib/unistr/u16-startswith.c: New file.
36284         * lib/unistr/u32-startswith.c: New file.
36285         * lib/unistr/u-startswith.h: New file.
36286
36287         * modules/unistr/u8-stpcpy: New file.
36288         * modules/unistr/u16-stpcpy: New file.
36289         * modules/unistr/u32-stpcpy: New file.
36290         * lib/unistr/u8-stpcpy.c: New file.
36291         * lib/unistr/u16-stpcpy.c: New file.
36292         * lib/unistr/u32-stpcpy.c: New file.
36293         * lib/unistr/u-stpcpy.h: New file.
36294
36295         * modules/unistr/u8-stpncpy: New file.
36296         * modules/unistr/u16-stpncpy: New file.
36297         * modules/unistr/u32-stpncpy: New file.
36298         * lib/unistr/u8-stpncpy.c: New file.
36299         * lib/unistr/u16-stpncpy.c: New file.
36300         * lib/unistr/u32-stpncpy.c: New file.
36301         * lib/unistr/u-stpncpy.h: New file.
36302
36303         * modules/unistr/u8-strcat: New file.
36304         * modules/unistr/u16-strcat: New file.
36305         * modules/unistr/u32-strcat: New file.
36306         * lib/unistr/u8-strcat.c: New file.
36307         * lib/unistr/u16-strcat.c: New file.
36308         * lib/unistr/u32-strcat.c: New file.
36309         * lib/unistr/u-strcat.h: New file.
36310
36311         * modules/unistr/u8-strchr: New file.
36312         * modules/unistr/u16-strchr: New file.
36313         * modules/unistr/u32-strchr: New file.
36314         * lib/unistr/u8-strchr.c: New file.
36315         * lib/unistr/u16-strchr.c: New file.
36316         * lib/unistr/u32-strchr.c: New file.
36317
36318         * modules/unistr/u8-strcmp: New file.
36319         * modules/unistr/u16-strcmp: New file.
36320         * modules/unistr/u32-strcmp: New file.
36321         * lib/unistr/u8-strcmp.c: New file.
36322         * lib/unistr/u16-strcmp.c: New file.
36323         * lib/unistr/u32-strcmp.c: New file.
36324
36325         * modules/unistr/u8-strcpy: New file.
36326         * modules/unistr/u16-strcpy: New file.
36327         * modules/unistr/u32-strcpy: New file.
36328         * lib/unistr/u8-strcpy.c: New file.
36329         * lib/unistr/u16-strcpy.c: New file.
36330         * lib/unistr/u32-strcpy.c: New file.
36331         * lib/unistr/u-strcpy.h: New file.
36332
36333         * modules/unistr/u8-strcspn: New file.
36334         * modules/unistr/u16-strcspn: New file.
36335         * modules/unistr/u32-strcspn: New file.
36336         * lib/unistr/u8-strcspn.c: New file.
36337         * lib/unistr/u16-strcspn.c: New file.
36338         * lib/unistr/u32-strcspn.c: New file.
36339         * lib/unistr/u-strcspn.h: New file.
36340
36341         * modules/unistr/u8-strdup: New file.
36342         * modules/unistr/u16-strdup: New file.
36343         * modules/unistr/u32-strdup: New file.
36344         * lib/unistr/u8-strdup.c: New file.
36345         * lib/unistr/u16-strdup.c: New file.
36346         * lib/unistr/u32-strdup.c: New file.
36347         * lib/unistr/u-strdup.h: New file.
36348
36349         * modules/unistr/u8-strlen: New file.
36350         * modules/unistr/u16-strlen: New file.
36351         * modules/unistr/u32-strlen: New file.
36352         * lib/unistr/u8-strlen.c: New file.
36353         * lib/unistr/u16-strlen.c: New file.
36354         * lib/unistr/u32-strlen.c: New file.
36355         * lib/unistr/u-strlen.h: New file.
36356
36357         * modules/unistr/u8-strmblen: New file.
36358         * modules/unistr/u16-strmblen: New file.
36359         * modules/unistr/u32-strmblen: New file.
36360         * lib/unistr/u8-strmblen.c: New file.
36361         * lib/unistr/u16-strmblen.c: New file.
36362         * lib/unistr/u32-strmblen.c: New file.
36363
36364         * modules/unistr/u8-strmbtouc: New file.
36365         * modules/unistr/u16-strmbtouc: New file.
36366         * modules/unistr/u32-strmbtouc: New file.
36367         * lib/unistr/u8-strmbtouc.c: New file.
36368         * lib/unistr/u16-strmbtouc.c: New file.
36369         * lib/unistr/u32-strmbtouc.c: New file.
36370
36371         * modules/unistr/u8-strncat: New file.
36372         * modules/unistr/u16-strncat: New file.
36373         * modules/unistr/u32-strncat: New file.
36374         * lib/unistr/u8-strncat.c: New file.
36375         * lib/unistr/u16-strncat.c: New file.
36376         * lib/unistr/u32-strncat.c: New file.
36377         * lib/unistr/u-strncat.h: New file.
36378
36379         * modules/unistr/u8-strncmp: New file.
36380         * modules/unistr/u16-strncmp: New file.
36381         * modules/unistr/u32-strncmp: New file.
36382         * lib/unistr/u8-strncmp.c: New file.
36383         * lib/unistr/u16-strncmp.c: New file.
36384         * lib/unistr/u32-strncmp.c: New file.
36385
36386         * modules/unistr/u8-strncpy: New file.
36387         * modules/unistr/u16-strncpy: New file.
36388         * modules/unistr/u32-strncpy: New file.
36389         * lib/unistr/u8-strncpy.c: New file.
36390         * lib/unistr/u16-strncpy.c: New file.
36391         * lib/unistr/u32-strncpy.c: New file.
36392         * lib/unistr/u-strncpy.h: New file.
36393
36394         * modules/unistr/u8-strnlen: New file.
36395         * modules/unistr/u16-strnlen: New file.
36396         * modules/unistr/u32-strnlen: New file.
36397         * lib/unistr/u8-strnlen.c: New file.
36398         * lib/unistr/u16-strnlen.c: New file.
36399         * lib/unistr/u32-strnlen.c: New file.
36400         * lib/unistr/u-strnlen.h: New file.
36401
36402         * modules/unistr/u8-strpbrk: New file.
36403         * modules/unistr/u16-strpbrk: New file.
36404         * modules/unistr/u32-strpbrk: New file.
36405         * lib/unistr/u8-strpbrk.c: New file.
36406         * lib/unistr/u16-strpbrk.c: New file.
36407         * lib/unistr/u32-strpbrk.c: New file.
36408         * lib/unistr/u-strpbrk.h: New file.
36409
36410         * modules/unistr/u8-strrchr: New file.
36411         * modules/unistr/u16-strrchr: New file.
36412         * modules/unistr/u32-strrchr: New file.
36413         * lib/unistr/u8-strrchr.c: New file.
36414         * lib/unistr/u16-strrchr.c: New file.
36415         * lib/unistr/u32-strrchr.c: New file.
36416
36417         * modules/unistr/u8-strspn: New file.
36418         * modules/unistr/u16-strspn: New file.
36419         * modules/unistr/u32-strspn: New file.
36420         * lib/unistr/u8-strspn.c: New file.
36421         * lib/unistr/u16-strspn.c: New file.
36422         * lib/unistr/u32-strspn.c: New file.
36423         * lib/unistr/u-strspn.h: New file.
36424
36425         * modules/unistr/u8-strstr: New file.
36426         * modules/unistr/u16-strstr: New file.
36427         * modules/unistr/u32-strstr: New file.
36428         * lib/unistr/u8-strstr.c: New file.
36429         * lib/unistr/u16-strstr.c: New file.
36430         * lib/unistr/u32-strstr.c: New file.
36431         * lib/unistr/u-strstr.h: New file.
36432
36433         * modules/unistr/u8-strtok: New file.
36434         * modules/unistr/u16-strtok: New file.
36435         * modules/unistr/u32-strtok: New file.
36436         * lib/unistr/u8-strtok.c: New file.
36437         * lib/unistr/u16-strtok.c: New file.
36438         * lib/unistr/u32-strtok.c: New file.
36439         * lib/unistr/u-strtok.h: New file.
36440
36441         * modules/unistr/u8-uctomb: New file.
36442         * modules/unistr/u16-uctomb: New file.
36443         * modules/unistr/u32-uctomb: New file.
36444         * lib/unistr/u8-uctomb.c: New file.
36445         * lib/unistr/u16-uctomb.c: New file.
36446         * lib/unistr/u32-uctomb.c: New file.
36447
36448         * MODULES.html.sh (Unicode string functions): Add the new modules.
36449
36450 2007-01-08  Bruno Haible  <bruno@clisp.org>
36451
36452         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36453         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36454         subdirectories.
36455
36456 2007-01-08  Karl Berry  <karl@gnu.org>
36457
36458         * doc/error.texi: mention that main() fns must set program_name
36459         when progname is used.
36460
36461 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36462
36463         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36464         WCTYPE_H is empty, for the benefit of builds from non-distclean
36465         directories.  Problem reported by Eric Blake in
36466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36467
36468 2007-01-08  Bruno Haible  <bruno@clisp.org>
36469
36470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36471         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36472         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36473         PROVIDE_CANONICALIZE_FILENAME_MODE.
36474         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36475
36476 2007-01-08  Bruno Haible  <bruno@clisp.org>
36477
36478         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36479         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36480         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36481         * lib/fts.c: Likewise.
36482         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36483
36484 2006-12-25  Bruno Haible  <bruno@clisp.org>
36485
36486         * modules/utf8-ucs4-safe: New file.
36487         * lib/utf8-ucs4-safe.h: New file.
36488         * lib/unistr/utf8-ucs4-safe.c: New file.
36489
36490         * modules/utf16-ucs4-safe: New file.
36491         * lib/utf16-ucs4-safe.h: New file.
36492         * lib/unistr/utf16-ucs4-safe.c: New file.
36493
36494         * MODULES.html.sh (Unicode string functions): Add the new modules.
36495
36496 2007-01-08  Bruno Haible  <bruno@clisp.org>
36497
36498         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36499         (Depends-on): Add unitypes.
36500         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36501         (u8_mbtouc_aux): Move out to separate file.
36502         (u8_mbtouc): Use ucs4_t, uint8_t types.
36503         * lib/unistr/utf8-ucs4.c: New file.
36504
36505         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36506         (Depends-on): Add unitypes.
36507         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36508         (u16_mbtouc_aux): Move out to separate file.
36509         (u16_mbtouc): Use ucs4_t, uint16_t types.
36510         * lib/unistr/utf16-ucs4.c: New file.
36511
36512         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36513         (Depends-on): Add unitypes.
36514         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36515         (u8_uctomb_aux): Move out to separate file.
36516         (u8_uctomb): Use ucs4_t, uint8_t types.
36517         * lib/unistr/ucs4-utf8.c: New file.
36518
36519         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36520         (Depends-on): Add unitypes.
36521         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36522         (u16_uctomb_aux): Move out to separate file.
36523         (u16_uctomb): Use ucs4_t, uint16_t types.
36524         * lib/unistr/ucs4-utf16.c: New file.
36525
36526 2006-12-25  Bruno Haible  <bruno@clisp.org>
36527
36528         * modules/unitypes: New file.
36529         * lib/unitypes.h: New file.
36530         * MODULES.html.sh (func_all_modules): New section "Unicode string
36531         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36532         this section. Add unitypes.
36533
36534 2007-01-08  Bruno Haible  <bruno@clisp.org>
36535
36536         Avoid variable names that conflict with those from libtool.
36537         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36538         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36539         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36540         library_names_spec to acl_library_names_spec, hardcode_* to
36541         acl_hardcode_*.
36542         Reported by Ralf Wildenhues.
36543
36544 2007-01-08  Bruno Haible  <bruno@clisp.org>
36545
36546         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36547         definition.
36548         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36549         definition.
36550         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36551         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36552         definition.
36553         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36554         definition.
36555         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36556         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36557         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36558         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36559         definition.
36560         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36561         definition.
36562         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36563         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36564         GC_USE_<algorithm>.
36565         * lib/gc-libgcrypt.c: Likewise.
36566         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36567         * modules/gc-arctwo (configure.ac): Likewise.
36568         * modules/gc-des (configure.ac): Likewise.
36569         * modules/gc-hmac-md5 (configure.ac): Likewise.
36570         * modules/gc-hmac-sha1 (configure.ac): Likewise.
36571         * modules/gc-md2 (configure.ac): Likewise.
36572         * modules/gc-md4 (configure.ac): Likewise.
36573         * modules/gc-md5 (configure.ac): Likewise.
36574         * modules/gc-random (configure.ac): Likewise.
36575         * modules/gc-rijndael (configure.ac): Likewise.
36576         * modules/gc-sha1 (configure.ac): Likewise.
36577
36578 2007-01-08  Bruno Haible  <bruno@clisp.org>
36579
36580         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36581         macro definition.
36582         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36583         definition.
36584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36585         definition.
36586         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36587         * modules/fcntl-safer (configure.ac): Likewise.
36588         * modules/fopen-safer (configure.ac): Likewise.
36589         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36590         GNULIB_FWRITEERROR macro definition.
36591
36592 2007-01-08  Bruno Haible  <bruno@clisp.org>
36593
36594         * m4/gnulib-common.m4: New file.
36595         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36596         (func_get_filelist): Add m4/gnulib-common.m4.
36597
36598 2007-01-08  Bruno Haible  <bruno@clisp.org>
36599
36600         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36601         command.
36602
36603 2007-01-08  Jim Meyering  <jim@meyering.net>
36604
36605         Use a more robust test for a "can't happen" condition.
36606         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36607         narrowed the st_size value.  Presuming the "can't happen" condition
36608         is true, that narrowing could conceivably convert an invalid st_size
36609         value into a valid one.  Instead, use a change based on Matthew
36610         Woehlke's original patch.
36611
36612         Slight readability improvement: use an assert-like macro
36613         in place of literal "abort ()" uses.
36614         * lib/fts.c (fts_assert): Define.
36615         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36616         Use this macro instead of a bare 'abort'.
36617
36618 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36619
36620         Don't worry about using IRIX 5.3's wctype.h broken definitions;
36621         simply work around them.
36622         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36623         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36624         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36625         declaring.
36626         Don't bother to define as macros, since the standard doesn't require it.
36627         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36628         longer worry about IRIX 5.3.
36629         (HAVE_WCTYPE_CTMP_BUG): Remove.
36630
36631 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36632
36633         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36634         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
36635         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36636         Problems reported by Georg Schwarz for IRIX 5.3.
36637
36638         * gnulib-tool (autoconf_minversion): Take the maximum version number
36639         found, not the minimum.  Problem reported by James Youngman.
36640
36641 2007-01-03  Karl Berry  <karl@gnu.org>
36642
36643         * doc/error.texi: new file, explaining interaction with progname.
36644         * doc/gnulib.texi: include it.  Update copyright.
36645
36646 2007-01-03  Simon Josefsson  <simon@josefsson.org>
36647
36648         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36649         AC_CANONICAL_HOST, to improve autobuild outputs.
36650
36651 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
36652             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36653
36654         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36655         sockets, server sockets, and other file descriptors.  Count errors
36656         to compute the return value.  Reorder the code a bit to be easier
36657         to follow.  Don't set event bits that were not requested (except
36658         POLLERR and POLLHUP).
36659
36660 2007-01-01  Bruno Haible  <bruno@clisp.org>
36661
36662         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36663
36664 2007-01-03  Jim Meyering  <jim@meyering.net>
36665
36666         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
36667
36668 2007-01-02  Bruno Haible  <bruno@clisp.org>
36669
36670         * modules/settime (Include): Require timespec.h.
36671         * modules/nanosleep (Include): Likewise.
36672
36673 2007-01-01  Bruno Haible  <bruno@clisp.org>
36674
36675         * gnulib-tool (func_emit_copyright_notice): Bump year.
36676         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36677
36678 2007-01-01  Bruno Haible  <bruno@clisp.org>
36679
36680         Improve support for OpenBSD.
36681         * build-aux/config.rpath (libname_spec): Export.
36682         (library_names_spec): New variable. Export.
36683         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36684         library_names_spec from the config.rpath output. Locate shared library
36685         through the name pattern in library_names_spec.
36686
36687 2007-01-01  Eric Blake  <ebb9@byu.net>
36688
36689         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36690
36691 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36692
36693         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36694         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
36695         assume the C locale, and avoid an "eval" that could cause trouble.
36696         Problem with SORT reported by Bob Proulx.
36697
36698         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36699         Define.  Trivial patch from Henning Nielsen Lund, originally
36700         sent to bug-grep@gnu.org today.
36701
36702 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36703
36704         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36705         struct stat.  Problem reported by Henning Nielsen Lund.
36706         * lib/acl.c: Include acl.h first, to check interface.  Don't
36707         bother to include sys/types.h and sys/stat.h again.
36708
36709 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36710
36711         Import the following change from libc; problem reported by
36712         Sven Verdoolaege.
36713
36714         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
36715
36716         [BZ #1373]
36717         * lib/argp.h: Remove __NTH for __argp_usage inline function.
36718
36719 2006-12-28  Jim Meyering  <jim@meyering.net>
36720
36721         * build-aux/announce-gen: Do not assume that the package
36722         builds any of tar.gz, tar.bz2, and .xdelta files.
36723         Suggestion from Simon Josefsson.
36724
36725 2006-12-28  Simon Josefsson  <simon@josefsson.org>
36726
36727         * modules/announce-gen: New file.
36728
36729 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36730
36731         * lib/mbchar.h: Just include <wctype.h>; the wctype module
36732         handles its gotchas now.
36733         * lib/mbswidth.c: Likewise.
36734         * lib/wcwidth.h: Likewise.
36735         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
36736         and iswcntrl; the wctype module does this stuff now.
36737         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36739         * modules/mbchar (Depends-on): Add wctype.
36740         * modules/mbswidth (Depends-on): Likewise.
36741         * modules/wcwidth (Depends-on): Likewise.
36742
36743 2006-12-27  Eric Blake  <ebb9@byu.net>
36744
36745         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
36746         module uses more than what <wctype.h> is required to provide.
36747
36748 2006-12-26  Eric Blake  <ebb9@byu.net>
36749
36750         * gnulib-tool (sed_extract_prog): Avoid space-tab.
36751
36752 2006-12-26  Eric Blake  <ebb9@byu.net>
36753
36754         * modules/absolute-header: New module.
36755         * modules/fcntl (Depends-on): Depend on it.
36756         * modules/inttypes (Depends-on): Likewise.
36757         * modules/stdint (Depends-on): Likewise.
36758         * modules/sys_stat (Depends-on): Likewise.
36759         * modules/wctype (Depends-on): Likewise.
36760         * MODULES.html.sh (Support for building libraries and
36761         executables): Document it.
36762
36763 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36764
36765         * gnulib-tool (SED): Remove, undoing previous change.
36766         The problem was that it broke coreutils on Solaris, because
36767         "sed --posix" leaked into a makefile.
36768         (sed): New alias, if 'alias' and GNU sed.
36769
36770 2006-12-24  Jim Meyering  <jim@meyering.net>
36771
36772         Work around an fchownat bug in glibc-2.4:
36773         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
36774         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
36775         in spite of the -P option.
36776         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
36777         New macros.
36778         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
36779         * modules/openat (Files): Add lib/fchownat.c.
36780         * lib/openat.c (fchownat): Don't define here.  Move to...
36781         * lib/fchownat.c: ...this new file.
36782
36783 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36784
36785         Fix bug reported by Bruno Haible in
36786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
36787         where quotearg.c didn't compile on Mac OS X 10.2 because it
36788         lacks <wchar.h> and wint_t.
36789         * lib/wctype_.h (__wctype_wint_t): New type.
36790         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
36791         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
36792         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
36793         Arg is now of type __wctype_wint_t, not wint_t.
36794         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
36795         substitute HAVE_WINT_T.
36796         * modules/wctype (Files): Add m4/wint_t.m4.
36797         (wctype.h): Substitute HAVE_WINT_T.
36798
36799 2006-12-23  Bruno Haible  <bruno@clisp.org>
36800
36801         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
36802
36803 2006-12-23  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
36806         S_ISLNK.
36807         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
36808         mingw.
36809
36810 2006-12-22  Bruno Haible  <bruno@clisp.org>
36811
36812         * lib/copy-file.c: Include acl.h.
36813         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
36814         Close the file descriptors only after being done with copy_acl.
36815         * modules/copy-file (Depends-on): Add acl.
36816
36817 2006-12-22  Bruno Haible  <bruno@clisp.org>
36818
36819         * gnulib-tool (SED): New variable.
36820         Use $SED instead of sed everywhere.
36821
36822 2006-12-22  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/no-c++: New file.
36825         * m4/no-c++.m4: New file.
36826         * MODULES.html.sh (Support for building libraries and executables):
36827         Add no-c++.
36828
36829 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36830
36831         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
36832         Include <limits.h>, and use its INT_MAX to rewrite the
36833         j loop so that it does not overflow 'int'.  Problem reported by
36834         Ralf Wildenhues in
36835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
36836         Play it safe by shifting left by 1 rather than multiplying by 2,
36837         as GCC is less likely to optimize this away when the value
36838         is signed (when it assumes overflow leads to undefined behavior).
36839         Also, don't assume time_t uses two's complement.
36840
36841 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36842
36843         * MODULES.html.sh: New module wctype.
36844         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
36845         * lib/fnmatch.c: Don't bother to include <wchar.h> before
36846         <wctype.h>, since the new wctype module should fix this.
36847         * lib/quotearg.c: Include <wctype.h> unconditionally, since
36848         the wctype module should arrange for it.
36849         * lib/regex_internal.h: Likewise.
36850         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
36851         since the wctype module should handle this now.
36852         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
36853         * modules/fnmatch (Depends-on): Add wctype.
36854         * modules/quotearg (Depends-on): Likewise.
36855         * modules/regex (Depends-on): Likewise.
36856
36857 2006-12-19  Bruno Haible  <bruno@clisp.org>
36858
36859         * lib/strdup.h [C++]: Wrap definitions in extern "C".
36860         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
36861
36862 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36863
36864         * modules/savewd (Depends-on): Fix dependency on fcntl.
36865
36866 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36867
36868         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
36869         conforms to C99, rather than relying on the user's environment
36870         setting of STDINT_H.
36871
36872 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36873         and Eric Blake  <ebb9@byu.net>
36874
36875         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
36876         This is more consistent with the other defines here.
36877         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
36878         Port to z/OS.  Problem reported by Paul Gilmartin.
36879         Change local vars to use gl_ prefix rather than ac_.
36880         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
36881         with other defines.
36882         * modules/double-slash-root: New module.
36883         * modules/dirname (Files): Remove m4/double-slash-root.m4.
36884         (Depends-on): Add double-slash-root.
36885         * MODULES.html.sh (File system functions): Mention new module.
36886
36887 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
36888
36889         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
36890         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
36891         This is for the benefit of gzip, which doesn't do i18n.
36892
36893 2006-12-12  Jim Meyering  <jim@meyering.net>
36894
36895         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
36896         Reported by Andreas Schwab <schwab@suse.de>.
36897
36898 2006-12-12  Bruno Haible  <bruno@clisp.org>
36899
36900         Merge these changes.
36901         2006-09-05  Bruno Haible  <bruno@clisp.org>
36902         * lib/iconvme.c (iconv_string): No need to save and restore errno when
36903         iconv_alloc succeeded.
36904         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
36905         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
36906         test for " && dest " at the end - dest is always != NULL there. Call
36907         iconv with 4xNULL arguments initially, to reset the state. Call iconv
36908         with 2xNULL arguments, also to flush the state storage. Handle the
36909         IRIX iconv behaviour. Realloc the final result, to throw away unused
36910         memory.
36911
36912 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36913
36914         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
36915         and fchmodat unconditionally, since glibc 2.4 has them.
36916         Problem reported by Arkadiusz Miskiewicz.
36917
36918 2006-12-10  Bruno Haible  <bruno@clisp.org>
36919
36920         * gnulib-tool (func_import): Show the include files only for those
36921         modules that are copied and specified.
36922         Reported by Karl Berry.
36923
36924 2006-12-08  Jim Meyering  <jim@meyering.net>
36925
36926         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
36927         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
36928
36929         * build-aux/announce-gen: Add two new options, both optional:
36930         --bootstrap-tools=TOOL_LIST
36931               a comma-separated list of tools, e.g.,
36932               autoconf,automake,bison,gnulib
36933         --gnulib-snapshot-date=DATE
36934               if gnulib is in the bootstrap tool list,
36935               then report this as the snapshot date.
36936               If not specified, use the current date/time.
36937               If you specify a date here, be sure it's UTC.
36938
36939 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36940
36941         * tests/test-argp-2.sh: Fix test to match actual output.
36942         (func_compare): Fix sed script to be portable.
36943
36944 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36945
36946         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
36947         workaround for this case.  It is not autoconfigured now; offhand
36948         it's hard to see how to autoconfigure it.
36949
36950 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36951
36952         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
36953         a directory that is about to be chowned.  Such a directory's
36954         initial file permissions should permit the owner only and this
36955         should not be changed until after the chown, since the group and
36956         other bits would be incorrect if they granted permission before
36957         the chown.
36958
36959         Fix porting problem for iswctype reported by Georg Schwarz in:
36960         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
36961         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
36962         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
36963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
36964         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36965
36966 2006-12-03  Jim Meyering  <jim@meyering.net>
36967
36968         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
36969         p->fts_statp may not yet be defined.
36970         (fts_read): Instead, set it in the caller, once p->fts_statp is
36971         sure to be defined, and corresponds to a top-level directory.
36972         This bug made du -x fail.  Here's the coreutils test case:
36973         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
36974         Reported by Mike Frysinger.
36975
36976 2006-12-01  Jim Meyering  <jim@meyering.net>
36977
36978         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
36979         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
36980         Reported by Simon Josefsson.
36981
36982 2006-11-30  Jim Meyering  <jim@meyering.net>
36983
36984         * m4/warning.m4: Use the all-permissive copyright notice
36985         recommended by RMS (rather than LGPL).
36986         * m4/vararrays.m4: Likewise.
36987         * m4/flexmember.m4: Likewise.
36988
36989 2006-11-29  Bruno Haible  <bruno@clisp.org>
36990
36991         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
36992         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
36993         using +=.
36994         Reported by Simon Josefsson <simon@josefsson.org>.
36995
36996 2006-11-28  James Youngman <jay@gnu.org>
36997
36998         * README: Advise users that they might find the bug-gnulib@gnu.org
36999         and autotools-announce@gnu.org mailing lists useful.
37000
37001 2006-11-28  Bruno Haible  <bruno@clisp.org>
37002
37003         * m4/ptrdiff_max.m4: Remove file.
37004
37005 2006-11-21  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37008         _AC_COMPUTE_INT.
37009         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37010         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37011         _AC_COMPUTE_INT.
37012         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37013         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37014         _AC_COMPUTE_INT.
37015         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37016
37017 2006-11-28  Jim Meyering  <jim@meyering.net>
37018
37019         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37020         warning from "gcc -Wshadow" about shadowing the builtin.
37021
37022 2006-11-27  Bruno Haible  <bruno@clisp.org>
37023
37024         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37025         _AC_COMPUTE_INT.
37026         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37027
37028 2006-11-27  Bruno Haible  <bruno@clisp.org>
37029             Paul Eggert  <eggert@cs.ucla.edu>
37030
37031         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37032
37033 2006-11-26  Bruno Haible  <bruno@clisp.org>
37034
37035         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37036         noinst_LTLIBRARIES.
37037
37038 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37039             Bruno Haible  <bruno@clisp.org>
37040
37041         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37042         if compiling with "gcc -ansi".
37043
37044 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         Fix some incompatibilities with gcc -ansi -pedantic.
37047         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37048         if compiling pedantically with GCC, unless it's C99 or later.
37049         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37050         it mishandles gcc -ansi -pedantic as well.
37051         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37052         if gcc -pedantic.
37053         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37054         initializers for struct if -pedantic, unless it's C99 or later.
37055
37056 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37057
37058         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37059         Don't close an fd more than once. Identical atimes indicate
37060         success, not failure.
37061
37062 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37063
37064         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37065
37066 2006-11-23  Jim Meyering  <jim@meyering.net>
37067
37068         * build-aux/announce-gen: New file.  From coreutils.
37069
37070 2006-11-22  Jim Meyering  <jim@meyering.net>
37071
37072         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37073         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37074         (fts_read): Use a temporary to narrow the overused st_size member
37075         before using it in a switch statement.  Reported by Matthew Woehlke.
37076
37077         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37078         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37079
37080 2006-11-20  Bruno Haible  <bruno@clisp.org>
37081
37082         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37083         changequote instead of pairs of brackets.
37084         Reported by Andreas Schwab <schwab@suse.de>.
37085
37086 2006-11-21  Jim Meyering  <jim@meyering.net>
37087
37088         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37089         so as to remain compatible with older compilers.
37090         Patch from Michael Deutschmann.
37091
37092 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37093
37094         * MODULES.html.sh (File system functions): Add openat.
37095
37096         * lib/openat.h (rpl_fstatat): New macro, if
37097         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37098         (fstatat): Define to rpl_fstatat under the same conditions,
37099         unless COMPILING_FSTATAT.
37100         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37101         seems to have the bug.
37102         * lib/fstatat.c: New file.
37103         * modules/openat (Files): Add it.
37104
37105 2006-11-20  Bruno Haible  <bruno@clisp.org>
37106
37107         * Makefile: New file.
37108
37109 2006-11-20  Jim Meyering  <jim@meyering.net>
37110
37111         The beginnings of syntax-related checks for gnulib.
37112         * lib/Makefile: New file.
37113         * lib/t-idcache: New script.  Ensure that the two halves of
37114         idcache.c stay in sync.
37115
37116         * lib/idcache.c: Adjust comments in user- and group- portions to
37117         be more accurate, and to be consistent with one another.
37118
37119 2006-11-20  Jim Meyering  <jim@meyering.net>
37120
37121         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37122         continue using the flexible array member (thus, this module performs
37123         half as many malloc calls), with the addition that...
37124         (getgroup, getuser): Consistently record a non-match via an empty
37125         "name" string, and map an empty string match to a NULL return value.
37126         * modules/idcache (Depends-on): Re-add flexmember.
37127
37128         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37129         (getuidbyname, getgroup, getgidbyname): Likewise.
37130
37131         Use cleaner syntax: NULL rather than 0.
37132         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37133
37134 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37135
37136         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37137         It mishandled the case where the group was missing.
37138         Problem reported by Greg Schafer.
37139         * modules/idcache: Likewise.
37140
37141 2006-11-18  Jim Meyering  <jim@meyering.net>
37142
37143         * check-module (%exempt_header): Add exception for some
37144         conditionally-included headers.
37145
37146         * modules/i-ring (Depends-on): Add verify.
37147         (License): Change to LGPL.
37148
37149 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37150
37151         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37152         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37153         and inttostr.h.  Use snprintf rather than uinttostr, so that
37154         LGPLed code doesn't depend on GPLed.
37155
37156 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37157
37158         * modules/inline (License): Change from GPL to LGPL.
37159
37160 2006-11-17  Jim Meyering  <jim@meyering.net>
37161
37162         * modules/d-type (License): Switch to LGPL.
37163
37164 2006-11-15  Bruno Haible  <bruno@clisp.org>
37165
37166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37167
37168 2006-11-15  Eric Blake  <ebb9@byu.net>
37169
37170         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37171         the module dependency.
37172
37173 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37174             Bruno Haible  <bruno@clisp.org>
37175
37176         * gnulib-tool (func_create_testdir): Add license consistency check.
37177
37178 2006-11-15  Eric Blake  <ebb9@byu.net>
37179
37180         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37181         random "(cached)" in configure output.
37182
37183 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37184
37185         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37186         test for conforming inttypes.h is both announced and cached.
37187
37188         * MODULES.html.sh (seen_modules, seen_files): New variables.
37189         (func_module): Rewrite to use a few less gnulib-tool and sed
37190         invocations.  Avoid a couple of quadratic algorithms for ...
37191         (missed_modules, missed_files): ... these, with ...
37192         (func_append, func_tmpdir): ... these new functions, from
37193         gnulib-tool.  Analogously, install traps for cleanup.
37194
37195         * tests/test-gc.c (main): Remove unused variables.
37196         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37197
37198 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37199
37200         * modules/inttostr (License): Change to LGPL.
37201
37202 2006-11-14  Eric Blake  <ebb9@byu.net>
37203
37204         * modules/tempname (License): Change to LGPL.
37205
37206 2006-11-14  Eric Blake  <ebb9@byu.net>
37207
37208         * doc/functions.texi (Function Portability): *printf functions on
37209         Cygwin now understand all POSIX size specifiers.
37210
37211 2006-11-14  Bruno Haible  <bruno@clisp.org>
37212
37213         * modules/c-ctype (License): Change to LGPL.
37214
37215 2006-11-12  Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37218         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37219         for GNOME libraries, for which the include files are installed in
37220         subdirectories of $prefix/include.
37221
37222 2006-11-12  Bruno Haible  <bruno@clisp.org>
37223
37224         * m4/lib-link.m4: Require at least autoconf-2.54.
37225         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37226         name to underscores for the --with option.
37227
37228 2006-11-13  Bruno Haible  <bruno@clisp.org>
37229
37230         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37231         the tests directory.
37232         Reported by Ralf Wildenhues.
37233
37234 2006-11-13  Bruno Haible  <bruno@clisp.org>
37235
37236         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37237         (func_emit_initmacro_end): Undo the override here.
37238         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37239         Works around the famous automake error in coreutils.
37240
37241 2006-11-13  Eric Blake  <ebb9@byu.net>
37242
37243         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37244         element, not its node.
37245
37246 2006-11-12  Bruno Haible  <bruno@clisp.org>
37247
37248         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37249         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37250
37251 2006-11-12  Bruno Haible  <bruno@clisp.org>
37252
37253         * gnulib-tool: New option --local-symlink.
37254         (func_usage): Document it.
37255         (lsymbolic): New variable.
37256         (func_import, func_create_testdir): If --symlink was not specified,
37257         test whether --local-symlink was specified and the file comes from
37258         the local_gnulib_dir.
37259
37260 2006-11-12  Bruno Haible  <bruno@clisp.org>
37261
37262         * gnulib-tool (func_ln): New function.
37263         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37264
37265 2006-11-12  Bruno Haible  <bruno@clisp.org>
37266
37267         Finish support for source files in subdirectories.
37268         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37269         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37270         AUTOMAKE_OPTIONS.
37271         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37272
37273 2006-11-12  Bruno Haible  <bruno@clisp.org>
37274
37275         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37276         EXTRA_lib_SOURCES augmentation.
37277         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37278
37279 2006-11-12  Jim Meyering  <jim@meyering.net>
37280
37281         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37282         file descriptors.  This also averts a failure on systems with
37283         native openat support when a traversed directory lacks "x" access.
37284         * lib/fts_.h: Include "i-ring.h"
37285         (struct FTS) [fts_fd_ring]: New member.
37286         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37287         (FCHDIR): Add parentheses.
37288         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37289         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37290         When descending, rather than simply closing the previous
37291         fts_cwd_fd value, push that file descriptor onto the ring.
37292         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37293         (fts_open): Initialize the new fd_ring member.
37294         (fts_close): Clear the ring.
37295         (fts_safe_changedir): When possible, use our new fd_ring to skip
37296         the diropen and fstat and dev/ino comparison that would normally
37297         accompany a virtual `chdir ("..")'.
37298
37299         * modules/fts (Depends-on): Add i-ring.
37300         * modules/i-ring: New module.
37301         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37302         * m4/i-ring.m4: New file.
37303
37304 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37305
37306         * gnulib-tool (func_create_testdir): Fix replacement of
37307         `build-aux' in configure.ac.  Run autotools in gltests
37308         subdirectory.
37309         (func_create_testdir, func_create_megatestdir, test): There is
37310         no need for '--force' in most autotool invocations in a new
37311         tree.  Actually fail the whole test if any of the tools, or the
37312         configure or make stages fail.
37313
37314         Sync from Automake.
37315         * build-aux/gnupload: Revert last change.  Add pointer to upload
37316         instructions of the GNU Maintenance Instructions.
37317         Suggestion by Karl Berry.
37318
37319 2006-11-10  Jim Meyering  <jim@meyering.net>
37320
37321         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37322
37323 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37326         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37327         (bind_textdomain_codeset) [! ENABLE_NLS]:
37328         Evaluate all the arguments.  That way, callers get compatible behavior
37329         if the arguments have side effects.  Also, it avoids some GCC
37330         diagnostics in some cases; Joel E. Denny reported problems when Bison
37331         was configured with --enable-gcc-warnigs.
37332
37333 2006-11-10  Jim Meyering  <jim@meyering.net>
37334
37335         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37336         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37337         account.
37338
37339 2006-11-10  Jim Meyering  <jim@meyering.net>
37340
37341         * modules/inline: New file/module.
37342         * modules/xalloc (Files): Remove m4/inline.m4.
37343         (Depends-on): Add inline, instead.
37344         * modules/oset: Likewise.
37345         * modules/list: Likewise.
37346
37347 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37348
37349         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37350         Problem reported by Matthew Woehlke.
37351
37352 2006-11-09  Bruno Haible  <bruno@clisp.org>
37353
37354         * lib/tempname.c (gen_tempname): Remove variant that invokes
37355         __gen_tempname.
37356         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37357         __gen_tempname.
37358
37359 2006-11-08  Bruno Haible  <bruno@clisp.org>
37360
37361         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37362         to 'yes' instead of 'cross-compiling'.
37363
37364 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37365
37366         * lib/quotearg.h (quotearg_free): New decl.
37367         * lib/quotearg.c (quotearg_free): New function.
37368         (slot0, nslots, slotvec0, slotvec):
37369         Now file-scope so that quotearg_free can get at them.
37370
37371 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37372
37373         Sync from Automake.
37374         * build-aux/gnupload: Add missing 'gnu' to example URL.
37375         Report by Karl Berry.
37376
37377 2006-11-08  Bruno Haible  <bruno@clisp.org>
37378
37379         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37380         Suggested by Paul Eggert.
37381
37382 2006-11-08  Jim Meyering  <jim@meyering.net>
37383
37384         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37385         It's already included if !_LIBC.
37386         (fts_safe_changedir): Add a comment.
37387
37388 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37389
37390         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37391         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37392         Matthew Woehlke.
37393
37394         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37395         definitions up, to avoid colliding with change below.
37396         (static_inline) [HAVE_INLINE]: New macro.
37397         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37398         Provide extern decls when !HAVE_INLINE.  Do not define unless
37399         static_inline is defined, either by us or by xmalloc.c.  Use
37400         static_inline rather than static inline.
37401         (XCALLOC): Optimize sizeof(T) = 1 case.
37402         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37403
37404 2006-11-07  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37407         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37408         AC_C_INLINE.
37409         * modules/xalloc (Files): Add m4/inline.m4.
37410
37411 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37412
37413         * README: Fix typo.
37414         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37415         (Miscellanous Notes): ...from this.
37416
37417 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37418
37419         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37420         Mention that offsetof should be used instead of sizeof.
37421         From Bruno Haible.
37422
37423 2006-11-07  Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37426
37427 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37428
37429         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37430         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37431         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37432         (gl_tree_add_before, gl_tree_add_after):
37433         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37434         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37435         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37436         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37437         (gl_linked_add_after, gl_linked_add_at): Likewise.
37438         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37439         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37440         (gl_tree_add_before, gl_tree_add_after): Likewise.
37441         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37442         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37443         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37444
37445 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37446
37447         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37448
37449 2006-11-06  Bruno Haible  <bruno@clisp.org>
37450
37451         * m4/inline.m4: New file.
37452         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37453         * modules/list (Files): Add m4/inline.m4.
37454         * modules/oset (Files): Likewise.
37455
37456 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37457
37458         * lib/idcache.c: Include <stddef.h>, for offsetof.
37459         (struct userid.name): Change from char * to a flexible array member.
37460         All uses changed.
37461         * modules/idcache (Depends-on): Add flexmember.
37462
37463         * MODULES.html.sh (Core language properties): New module flexmember.
37464         * modules/flexmember, m4/flexmember.m4: New files.
37465
37466         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37467         inline functions that are identical with the old xnmalloc_inline,
37468         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37469         that we can avoid some unnecessary integer multiplications and
37470         divisions in the common case where the element size is known at
37471         compile time.
37472         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37473         needed.
37474         (xnboundedmalloc): Remove.
37475         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37476         arguments, for consistency with rest of this header.
37477         (xcharalloc): Rewrite using XNMALLOC.
37478         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37479         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
37480         versions have been moved to lib/xalloc.h and renamed to be the
37481         non-*_inline versions.
37482         (xmalloc, xrealloc): Implement without reference to the xnmalloc
37483         and xnrealloc functions, since those functions are now inline and
37484         now call us.
37485         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37486         renaming described above.
37487         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37488         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
37489         captures the dependency in AC_C_INLINE.
37490
37491         New module canonicalize-lgpl, proposed by Charles Wilson in
37492         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37493         with a few small changes afterwards.
37494         * MODULES.html.sh (File system functions): New module
37495         canonicalize-lgpl.
37496         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37497         and canonicalize_file_name.
37498         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37499         * modules/canonicalize-lgpl: New files.
37500
37501 2006-11-05  Bruno Haible  <bruno@clisp.org>
37502
37503         * gnulib-tool (func_import, func_create_testdir): Create directories
37504         also for files in subdirectories of lib/.
37505
37506 2006-11-05  Bruno Haible  <bruno@clisp.org>
37507
37508         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37509         ANSI C compliant.
37510
37511 2006-11-03  Bruno Haible  <bruno@clisp.org>
37512
37513         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37514         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37515         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37516         (xnboundedmalloc): New inline function.
37517         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37518         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37519         xmalloc.
37520         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37521         xmalloc.
37522         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37523         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37524         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37525         xmalloc.
37526         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37527         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37528         xmalloc.
37529         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37530         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37531         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37532         xmalloc.
37533         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37534         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37535         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37536         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37537         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37538         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37539         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37540
37541 2006-11-03  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/c-ctype.h [C++]: Define functions without name mangling.
37544         * lib/fwriteerror.h [C++]: Likewise.
37545         * lib/gcd.h [C++]: Likewise.
37546         * lib/linebreak.h [C++]: Likewise.
37547
37548 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
37549
37550         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37551         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37552         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37553         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37554         Check for functions and headers just once.
37555         Check for declaration of canonicalize_file_name.
37556         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37557
37558 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37559
37560         * gnulib-tool (func_import): Fix typo in actioncmd.
37561
37562 2006-11-02  Bruno Haible  <bruno@clisp.org>
37563
37564         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37565         newline sequence in the Makefile.am snippet as a space, like "make"
37566         does.
37567         Reported by Roger Persson <perrog@gmail.com>.
37568
37569 2006-11-01  Bruno Haible  <bruno@clisp.org>
37570
37571         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37572         already declared in <string.h>.
37573         * lib/strcase.h (strncasecmp): Don't declare it if yes.
37574
37575 2006-11-01  Bruno Haible  <bruno@clisp.org>
37576
37577         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37578         * lib/strcase.h: Include <string.h>.
37579         (strcasecmp): Define to rpl_strcasecmp here.
37580
37581 2006-11-01  Bruno Haible  <bruno@clisp.org>
37582
37583         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37584
37585 2006-11-01  Eric Blake  <ebb9@byu.net>
37586
37587         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37588
37589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37590
37591 2006-10-29  Bruno Haible  <bruno@clisp.org>
37592
37593         Make it compile in C++ mode.
37594         * lib/full-write.c (full_rw): Add a cast.
37595
37596 2006-11-01  Bruno Haible  <bruno@clisp.org>
37597
37598         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37599         be POSIX compliant.
37600         Reported by Roger Persson <perrog@gmail.com>.
37601
37602 2006-11-01  Eric Blake  <ebb9@byu.net>
37603
37604         * lib/getopt_.h: Fix comments.
37605
37606 2006-10-31  Eric Blake  <ebb9@byu.net>
37607
37608         * modules/tmpdir (Depends-on): Add sys_stat.
37609         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37610         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37611         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37612         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37613         tempname.
37614
37615 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37616
37617         Avoid some C++ diagnostics reported by Bruno Haible.
37618         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37619         xmalloc.
37620         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37621         (struct slotvec): Move to top level.
37622         (quotearg_n_options): Rewrite to avoid xmalloc.
37623         * lib/xalloc.h (xcharalloc): New function.
37624         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37625         [defined __cplusplus]: Add function template that provides result
37626         type propagation.  This part of the change is from Bruno Haible.
37627
37628 2006-10-29  Bruno Haible  <bruno@clisp.org>
37629
37630         Make it compile in C++ mode.
37631         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37632         * lib/strnlen1.c (strnlen1): Cast memchr result.
37633         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37634         * lib/clean-temp.c (string_equals, string_hash): Add casts.
37635         (create_temp_dir): Rename local variable 'template'.
37636         (compile_csharp_using_sscli): Add cast.
37637         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37638         * lib/findprog.c (find_in_path): Likewise.
37639         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37640         * lib/wait-process.c (register_slave_subprocess): Likewise.
37641
37642 2006-10-22  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/tsearch: New file.
37645         * lib/tsearch.h: New file.
37646         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37647         * m4/tsearch.m4: New file.
37648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37649
37650 2006-10-29  Eric Blake  <ebb9@byu.net>
37651
37652         * lib/arcfour.c: Assume config.h.
37653         * lib/arctwo.c: Likewise.
37654         * lib/base64.c: Likewise.
37655         * lib/check-version.c: Likewise.
37656         * lib/crc.c: Likewise.
37657         * lib/des.c: Likewise.
37658         * lib/gc-gnulib.c: Likewise.
37659         * lib/gc-libgcrypt.c: Likewise.
37660         * lib/gc-pbkdf2-sha1.c: Likewise.
37661         * lib/getaddrinfo.c: Likewise.
37662         * lib/getdelim.c: Likewise.
37663         * lib/getline.c: Likewise.
37664         * lib/hmac-md5.c: Likewise.
37665         * lib/hmac-sha1.c: Likewise.
37666         * lib/iconvme.c: Likewise.
37667         * lib/md2.c: Likewise.
37668         * lib/md4.c: Likewise.
37669         * lib/memxor.c: Likewise.
37670         * lib/read-file.c: Likewise.
37671         * lib/readline.c: Likewise.
37672         * lib/rijndael-alg-fst.c: Likewise.
37673         * lib/rijndael-api-fst.c: Likewise.
37674         * lib/xgetdomainname.c: Likewise.
37675
37676 2006-10-28  Eric Blake  <ebb9@byu.net>
37677
37678         * lib/xstrndup.c: Assume config.h.
37679
37680 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37681
37682         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37683         stat-macros.h is now for our own macros, whereas stat_h is for
37684         macros in the <sys/stat.h> name space.
37685         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37686         (STAT_MACROS_H): Remove.
37687         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37688         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37689         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37690         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37691         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37692         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37693         Move these macros to ...
37694         * lib/stat_.h: here.  Don't include stat-macros.h.
37695         * lib/canonicalize.c: Don't include stat-macros.h.
37696         * lib/chown.c: Likewise.
37697         * lib/euidaccess.c: Likewise.
37698         * lib/file-type.c: Likewise.
37699         * lib/filemode.c: Likewise.
37700         * lib/glob.c: Likewise.
37701         * lib/isapipe.c: Likewise.
37702         * lib/lchown.c: Likewise.
37703         * lib/lstat.c: Likewise.
37704         * lib/mkdir-p.c: Likewise.
37705         * lib/rmdir.c: Likewise.
37706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37708         unless mkdir isn't declared, to speed up 'configure'.
37709         Always create sys/stat.h, since it's unlikely any real sys/stat.h
37710         would define all the S_* symbols.
37711         * modules/canonicalize (Depends-on):
37712         Depend on sys_stat, not stat-macros.
37713         * modules/chown: Likewise.
37714         * modules/euidaccess: Likewise.
37715         * modules/filemode: Likewise.
37716         * modules/file-type: Likewise.
37717         * modules/glob: Likewise.
37718         * modules/isapipe: Likewise.
37719         * modules/lchown: Likewise.
37720         * modules/lstat: Likewise.
37721         * modules/mkancesdirs: Likewise.
37722         * modules/rmdir: Likewise.
37723         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
37724         * modules/modechange: Likewise.
37725         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
37726         (configure.ac): Remove gl_STAT_MACROS.
37727         * modules/sys_stat (Depends-on): Remove stat-macros.
37728
37729 2006-10-27  Bruno Haible  <bruno@clisp.org>
37730
37731         * m4/signed.m4: Remove file.
37732         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
37733         invocation.
37734         * modules/vasnprintf (Files): Remove m4/signed.m4.
37735
37736 2006-10-27  Bruno Haible  <bruno@clisp.org>
37737
37738         Update to GNU gettext 0.16.
37739         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
37740         m4/inttypes-h.m4, m4/signed.m4.
37741         * m4/gettext.m4: Update to GNU gettext 0.16.
37742         * m4/intl.m4: New file, from GNU gettext.
37743         * m4/intldir.m4: New file, from GNU gettext.
37744         * config/srclist.txt: Update
37745
37746 2006-10-27  Eric Blake  <ebb9@byu.net>
37747
37748         * MODULES.html.sh: Document tempname.
37749         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
37750         dependencies.
37751         (Files): Move lib/tempname.c...
37752         * modules/tempname: ...to this new module.
37753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
37754         (gl_PREREQ_TEMPNAME): Move...
37755         * m4/tempname.m4: ...to this new file.
37756         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
37757         * modules/sys_stat (Depends-on): Add stat-macros.
37758         * lib/stat_.h (includes): Pick up stat macros.
37759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
37760         if stat macros are broken.
37761         * lib/tempname.c (includes): No need to include "stat-macros.h".
37762         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
37763         (direxists, __path_search) [!_LIBC]: Don't compile these in
37764         gnulib; the tmpdir module covers that.
37765         * lib/tempname.h: New file.
37766
37767 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
37768
37769         * COPYING: Explain how gnulib-tool converts licence headers.
37770         Almost all wording by Eric Blake.
37771
37772 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
37773
37774         * lib/mbchar.h (is_basic_table): Make read-only.
37775         * lib/mbchar.c (is_basic_table): Likewise.
37776         Reported by John Darrington.
37777
37778 2006-10-25  Bruno Haible  <bruno@clisp.org>
37779
37780         * lib/progname.h (set_program_name): Undefine before defining.
37781
37782 2006-10-25  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
37785         false for non-gcc C++ compilers.
37786         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37787
37788 2006-10-24  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
37791         iconv implementations like Irix iconv.
37792
37793 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37794
37795         * modules/vararrays: New file.
37796         * m4/vararrays.m4: New file, taken from diffutils.
37797         * MODULES.html.sh: New module vararrays.
37798
37799 2006-10-24  Karl Berry  <karl@gnu.org>
37800
37801         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
37802         Don't call GNU Unix.
37803
37804 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37805
37806         * users.txt: Add Libtool.
37807
37808         Sync from Libtool:
37809
37810         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37811
37812         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
37813         to gnulib's policy of including config.h unconditionally.
37814
37815 2006-10-24  Bruno Haible  <bruno@clisp.org>
37816
37817         * modules/wcwidth (Files): Add m4/wint_t.m4.
37818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
37819         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
37820
37821 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37822
37823         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
37824         to pacify GCC with some -W flags enabled.  Problem reported by
37825         Bruno Haible.
37826
37827 2006-10-24  Jim Meyering  <jim@meyering.net>
37828
37829         * MODULES.html.sh: Remove uinttostr.  It's not a module.
37830         Reported by Karl Berry.
37831
37832 2006-10-23  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
37835
37836 2006-10-24  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/gl_list.h: Use C comment style, not C++ comment style.
37839
37840 2006-10-23  Eric Blake  <ebb9@byu.net>
37841
37842         * lib/getaddrinfo.c (includes): Add missing include.
37843
37844 2006-10-23  Bruno Haible  <bruno@clisp.org>
37845             Paul Eggert  <eggert@cs.ucla.edu>
37846
37847         Ability to rename obstack_free.
37848         * lib/obstack.h (__obstack_free): New macro. Declare instead of
37849         obstack_free.
37850         (obstack_free): Invoke the __obstack_free macro.
37851         * lib/obstack.c (obstack_free): Use __obstack_free macro.
37852
37853 2006-10-23  Bruno Haible  <bruno@clisp.org>
37854             Paul Eggert  <eggert@cs.ucla.edu>
37855
37856         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
37857         __argc, __argv from the declaration. (They are defined as macros on
37858         mingw.)
37859
37860 2006-10-22  Bruno Haible  <bruno@clisp.org>
37861
37862         * doc/gnulib-intro.texi: New file.
37863         * doc/gnulib.texi: Include it.
37864
37865 2006-10-21  Bruno Haible  <bruno@clisp.org>
37866
37867         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
37868         "Introduction", "Miscellanous Notes", "Particular Modules".
37869
37870 2006-10-21  Bruno Haible  <bruno@clisp.org>
37871
37872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37873         Change mostlyclean-local rule to avoid sh syntax error from bash
37874         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
37875
37876 2006-10-23  Jim Meyering  <jim@meyering.net>
37877
37878         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
37879         in place of snprintf.
37880
37881         * modules/inttostr (Files): Add lib/uinttostr.c.
37882         * lib/uinttostr.c (inttostr): New file/function.
37883         * lib/inttostr.h (uinttostr): Declare.
37884         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
37885         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
37886         Add uinttostr.
37887         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
37888
37889 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
37890
37891         * lib/canonicalize.c (ELOOP): Define if not already defined.
37892         Problem reported by Bruno Haible in
37893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
37894
37895 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
37896
37897         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
37898         Problem reported by Perry Smith and Ville Laurikari.
37899
37900         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
37901         uses.
37902
37903 2006-10-19  Bruno Haible  <bruno@clisp.org>
37904
37905         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
37906         for mingw.
37907
37908 2006-10-19  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
37911         Needed for mingw.
37912
37913 2006-10-19  Bruno Haible  <bruno@clisp.org>
37914
37915         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
37916
37917 2006-10-19  Bruno Haible  <bruno@clisp.org>
37918
37919         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
37920         it.
37921
37922 2006-10-19  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
37925         invocation.
37926
37927 2006-10-19  Bruno Haible  <bruno@clisp.org>
37928
37929         * gnulib-tool (func_create_testdir): Don't include ftruncate and
37930         mountlist by default.
37931
37932 2006-10-16  Bruno Haible  <bruno@clisp.org>
37933
37934         * lib/c-strstr.c: Include c-strstr.h.
37935
37936 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37937
37938         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
37939         in a slash.
37940
37941 2006-10-18  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/lock.h [C++]: Wrap definitions in extern "C".
37944
37945 2006-10-18  Bruno Haible  <bruno@clisp.org>
37946
37947         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
37948         gl_LIBOBJS list.
37949
37950 2006-10-18  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
37953
37954 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
37955
37956         * lib/xstrtol.h: Include gettext.h.
37957         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
37958         Problem reported by Eric Blake.
37959         * modules/xstrtol (Depends-on): Add gettext-h.
37960
37961 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
37962
37963         * lib/strftime.c (advance): New macro.
37964         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
37965         incomplete type, so you can't add 0 to it.  Problem and patch
37966         reported by Eelco Dolstra for dietlibc.
37967
37968 2006-10-18  Jim Meyering  <jim@meyering.net>
37969
37970         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
37971         type for a local, and rename it: s/up/user_proc/.
37972
37973 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37974
37975         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
37976         READ_UTMP_USER_PROCESS.
37977         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
37978
37979 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37980
37981         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
37982         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
37983
37984 2006-10-17  Eric Blake  <ebb9@byu.net>
37985
37986         * lib/sigprocmask.c (sigprocmask): Fix typo.
37987
37988         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
37989
37990         * modules/clean-temp (Makefile.am): Don't add to make output...
37991         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
37992         config.h.
37993
37994 2006-10-17  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
37997         differently if DEFAULT_TEXT_DOMAIN is set.
37998
37999 2006-10-16  Bruno Haible  <bruno@clisp.org>
38000
38001         * lib/clean-temp.c: Include fwriteerror.h.
38002
38003 2006-10-16  Bruno Haible  <bruno@clisp.org>
38004
38005         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38006
38007 2006-10-16  Bruno Haible  <bruno@clisp.org>
38008
38009         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38010         * lib/sigprocmask.h: Include <sys/types.h>.
38011         (sigset_t): Use the system's definition if present.
38012
38013 2006-10-17  Eric Blake  <ebb9@byu.net>
38014
38015         * lib/xvasprintf.c (includes): Assume config.h.
38016         * lib/xasprintf.c (includes): Likewise.
38017
38018 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38019
38020         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38021         at least as wide as intmax_t.
38022
38023 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38024
38025         (Imported from Automake.)
38026         * build-aux/gnupload: Update to version 1.1 of directive file.
38027
38028 2006-10-16  Eric Blake  <ebb9@byu.net>
38029
38030         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38031         match Automake 1.10a.
38032
38033 2006-10-14  Bruno Haible  <bruno@clisp.org>
38034
38035         * modules/sigprocmask: New file.
38036         * lib/sigprocmask.h: New file.
38037         * lib/sigprocmask.c: New file.
38038         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38039         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38040         request sigprocmask.o.
38041         (gl_PREREQ_SIGPROCMASK): New macro.
38042         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38043         (Depends-on): Add sigprocmask.
38044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38045         gt_SIGNALBLOCKING. Test for 'raise' only once.
38046         * lib/fatal-signal.c: Include sigprocmask.h.
38047         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38048         unblock_fatal_signals): Define always.
38049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38050         sigprocmask.
38051
38052 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38053
38054         Sync from Automake.
38055         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38056         which incorrectly sets the mode of an existing destination
38057         directory.  In some cases the unpatched install-sh could do the
38058         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38059         system.  We hope this is rare in practice, but it's clearly worth
38060         fixing.  Problem reported by Alex Unleashed in
38061         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38062         Also, don't bother to check for -m bugs unless we're using -m;
38063         suggested by Stepan Kasal.
38064
38065 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38066
38067         Sync from Automake.
38068         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38069         `-c' flag, so they appear at the same position as in %FASTDEP%
38070         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38071         which ignores unknown options only after the first non-option.
38072         Bug report against M4 by Nelson H. F. Beebe.
38073
38074 2006-10-13  Jim Meyering  <jim@meyering.net>
38075
38076         Fix a bug in yesterday's change.
38077         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38078         p->fts_statp->st_dev would be used uninitialized.
38079         Ensures that we always call fts_stat on the very first entry.
38080         Miklos Szeredi reported that find -xdev stopped working.
38081
38082 2006-10-12  Bruno Haible  <bruno@clisp.org>
38083
38084         * gnulib-tool (func_get_automake_snippet): Append an automatically
38085         computed EXTRA_DIST augmentation.
38086         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38087         * modules/alloca-opt (Makefile.am): Likewise.
38088         * modules/allocsa (Makefile.am): Likewise.
38089         * modules/arcfour (Makefile.am): Likewise.
38090         * modules/arctwo (Makefile.am): Likewise.
38091         * modules/argmatch (Makefile.am): Likewise.
38092         * modules/argz (Makefile.am): Likewise.
38093         * modules/atexit (Makefile.am): Likewise.
38094         * modules/backupfile (Makefile.am): Likewise.
38095         * modules/byteswap (Makefile.am): Likewise.
38096         * modules/c-strtod (Makefile.am): Likewise.
38097         * modules/c-strtold (Makefile.am): Likewise.
38098         * modules/calloc (Makefile.am): Likewise.
38099         * modules/canon-host (Makefile.am): Likewise.
38100         * modules/canonicalize (Makefile.am): Likewise.
38101         * modules/chdir-long (Makefile.am): Likewise.
38102         * modules/chdir-safer (Makefile.am): Likewise.
38103         * modules/check-version (Makefile.am): Likewise.
38104         * modules/chown (Makefile.am): Likewise.
38105         * modules/cloexec (Makefile.am): Likewise.
38106         * modules/close-stream (Makefile.am): Likewise.
38107         * modules/closeout (Makefile.am): Likewise.
38108         * modules/crc (Makefile.am): Likewise.
38109         * modules/csharpexec (Makefile.am): Likewise.
38110         * modules/cycle-check (Makefile.am): Likewise.
38111         * modules/des (Makefile.am): Likewise.
38112         * modules/dev-ino (Makefile.am): Likewise.
38113         * modules/dirfd (Makefile.am): Likewise.
38114         * modules/dirname (Makefile.am): Likewise.
38115         * modules/dup2 (Makefile.am): Likewise.
38116         * modules/eealloc (Makefile.am): Likewise.
38117         * modules/error (Makefile.am): Likewise.
38118         * modules/euidaccess (Makefile.am): Likewise.
38119         * modules/exclude (Makefile.am): Likewise.
38120         * modules/exitfail (Makefile.am): Likewise.
38121         * modules/fcntl-safer (Makefile.am): Likewise.
38122         * modules/fcntl (Makefile.am): Likewise.
38123         * modules/file-type (Makefile.am): Likewise.
38124         * modules/fileblocks (Makefile.am): Likewise.
38125         * modules/filemode (Makefile.am): Likewise.
38126         * modules/filenamecat (Makefile.am): Likewise.
38127         * modules/fnmatch (Makefile.am): Likewise.
38128         * modules/fopen-safer (Makefile.am): Likewise.
38129         * modules/fpending (Makefile.am): Likewise.
38130         * modules/fprintftime (Makefile.am): Likewise.
38131         * modules/free (Makefile.am): Likewise.
38132         * modules/fsusage (Makefile.am): Likewise.
38133         * modules/ftruncate (Makefile.am): Likewise.
38134         * modules/fts (Makefile.am): Likewise.
38135         * modules/gc-arcfour (Makefile.am): Likewise.
38136         * modules/gc-des (Makefile.am): Likewise.
38137         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38138         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38139         * modules/gc-md4 (Makefile.am): Likewise.
38140         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38141         * modules/gc-sha1 (Makefile.am): Likewise.
38142         * modules/gc (Makefile.am): Likewise.
38143         * modules/getaddrinfo (Makefile.am): Likewise.
38144         * modules/getcwd (Makefile.am): Likewise.
38145         * modules/getdelim (Makefile.am): Likewise.
38146         * modules/getdomainname (Makefile.am): Likewise.
38147         * modules/getgroups (Makefile.am): Likewise.
38148         * modules/gethostname (Makefile.am): Likewise.
38149         * modules/gethrxtime (Makefile.am): Likewise.
38150         * modules/getline (Makefile.am): Likewise.
38151         * modules/getloadavg (Makefile.am): Likewise.
38152         * modules/getlogin_r (Makefile.am): Likewise.
38153         * modules/getndelim2 (Makefile.am): Likewise.
38154         * modules/getopt (Makefile.am): Likewise.
38155         * modules/getpagesize (Makefile.am): Likewise.
38156         * modules/getpass-gnu (Makefile.am): Likewise.
38157         * modules/getpass (Makefile.am): Likewise.
38158         * modules/getsubopt (Makefile.am): Likewise.
38159         * modules/gettime (Makefile.am): Likewise.
38160         * modules/gettimeofday (Makefile.am): Likewise.
38161         * modules/getugroups (Makefile.am): Likewise.
38162         * modules/getusershell (Makefile.am): Likewise.
38163         * modules/glob (Makefile.am): Likewise.
38164         * modules/group-member (Makefile.am): Likewise.
38165         * modules/hard-locale (Makefile.am): Likewise.
38166         * modules/hash (Makefile.am): Likewise.
38167         * modules/hmac-md5 (Makefile.am): Likewise.
38168         * modules/hmac-sha1 (Makefile.am): Likewise.
38169         * modules/human (Makefile.am): Likewise.
38170         * modules/idcache (Makefile.am): Likewise.
38171         * modules/imaxabs (Makefile.am): Likewise.
38172         * modules/imaxdiv (Makefile.am): Likewise.
38173         * modules/inet_ntop (Makefile.am): Likewise.
38174         * modules/inet_pton (Makefile.am): Likewise.
38175         * modules/intprops (Makefile.am): Likewise.
38176         * modules/inttostr (Makefile.am): Likewise.
38177         * modules/inttypes (Makefile.am): Likewise.
38178         * modules/isapipe (Makefile.am): Likewise.
38179         * modules/javaversion (Makefile.am): Likewise.
38180         * modules/lchmod (Makefile.am): Likewise.
38181         * modules/lchown (Makefile.am): Likewise.
38182         * modules/localcharset (Makefile.am): Likewise.
38183         * modules/long-options (Makefile.am): Likewise.
38184         * modules/lstat (Makefile.am): Likewise.
38185         * modules/malloc (Makefile.am): Likewise.
38186         * modules/mathl (Makefile.am): Likewise.
38187         * modules/mbchar (Makefile.am): Likewise.
38188         * modules/md2 (Makefile.am): Likewise.
38189         * modules/md4 (Makefile.am): Likewise.
38190         * modules/md5 (Makefile.am): Likewise.
38191         * modules/memcasecmp (Makefile.am): Likewise.
38192         * modules/memchr (Makefile.am): Likewise.
38193         * modules/memcmp (Makefile.am): Likewise.
38194         * modules/memcoll (Makefile.am): Likewise.
38195         * modules/memcpy (Makefile.am): Likewise.
38196         * modules/memmem (Makefile.am): Likewise.
38197         * modules/memmove (Makefile.am): Likewise.
38198         * modules/mempcpy (Makefile.am): Likewise.
38199         * modules/memrchr (Makefile.am): Likewise.
38200         * modules/memset (Makefile.am): Likewise.
38201         * modules/memxor (Makefile.am): Likewise.
38202         * modules/mkancesdirs (Makefile.am): Likewise.
38203         * modules/mkdir-p (Makefile.am): Likewise.
38204         * modules/mkdir (Makefile.am): Likewise.
38205         * modules/mkdtemp (Makefile.am): Likewise.
38206         * modules/mkstemp (Makefile.am): Likewise.
38207         * modules/mktime (Makefile.am): Likewise.
38208         * modules/modechange (Makefile.am): Likewise.
38209         * modules/mountlist (Makefile.am): Likewise.
38210         * modules/nanosleep (Makefile.am): Likewise.
38211         * modules/obstack (Makefile.am): Likewise.
38212         * modules/openat (Makefile.am): Likewise.
38213         * modules/pagealign_alloc (Makefile.am): Likewise.
38214         * modules/pathmax (Makefile.am): Likewise.
38215         * modules/physmem (Makefile.am): Likewise.
38216         * modules/poll (Makefile.am): Likewise.
38217         * modules/posixtm (Makefile.am): Likewise.
38218         * modules/posixver (Makefile.am): Likewise.
38219         * modules/putenv (Makefile.am): Likewise.
38220         * modules/quote (Makefile.am): Likewise.
38221         * modules/quotearg (Makefile.am): Likewise.
38222         * modules/raise (Makefile.am): Likewise.
38223         * modules/read-file (Makefile.am): Likewise.
38224         * modules/readline (Makefile.am): Likewise.
38225         * modules/readlink (Makefile.am): Likewise.
38226         * modules/readtokens (Makefile.am): Likewise.
38227         * modules/readutmp (Makefile.am): Likewise.
38228         * modules/realloc (Makefile.am): Likewise.
38229         * modules/regex (Makefile.am): Likewise.
38230         * modules/rename-dest-slash (Makefile.am): Likewise.
38231         * modules/rename (Makefile.am): Likewise.
38232         * modules/rijndael (Makefile.am): Likewise.
38233         * modules/rmdir (Makefile.am): Likewise.
38234         * modules/rpmatch (Makefile.am): Likewise.
38235         * modules/safe-read (Makefile.am): Likewise.
38236         * modules/safe-write (Makefile.am): Likewise.
38237         * modules/same-inode (Makefile.am): Likewise.
38238         * modules/same (Makefile.am): Likewise.
38239         * modules/save-cwd (Makefile.am): Likewise.
38240         * modules/savedir (Makefile.am): Likewise.
38241         * modules/setenv (Makefile.am): Likewise.
38242         * modules/settime (Makefile.am): Likewise.
38243         * modules/sha1 (Makefile.am): Likewise.
38244         * modules/sig2str (Makefile.am): Likewise.
38245         * modules/snprintf (Makefile.am): Likewise.
38246         * modules/stat-macros (Makefile.am): Likewise.
38247         * modules/stat-time (Makefile.am): Likewise.
38248         * modules/stdbool (Makefile.am): Likewise.
38249         * modules/stdint (Makefile.am): Likewise.
38250         * modules/stdlib-safer (Makefile.am): Likewise.
38251         * modules/stpcpy (Makefile.am): Likewise.
38252         * modules/stpncpy (Makefile.am): Likewise.
38253         * modules/strcase (Makefile.am): Likewise.
38254         * modules/strcasestr (Makefile.am): Likewise.
38255         * modules/strchrnul (Makefile.am): Likewise.
38256         * modules/strcspn (Makefile.am): Likewise.
38257         * modules/strdup (Makefile.am): Likewise.
38258         * modules/strerror (Makefile.am): Likewise.
38259         * modules/strftime (Makefile.am): Likewise.
38260         * modules/strndup (Makefile.am): Likewise.
38261         * modules/strnlen (Makefile.am): Likewise.
38262         * modules/strpbrk (Makefile.am): Likewise.
38263         * modules/strsep (Makefile.am): Likewise.
38264         * modules/strstr (Makefile.am): Likewise.
38265         * modules/strtod (Makefile.am): Likewise.
38266         * modules/strtoimax (Makefile.am): Likewise.
38267         * modules/strtok_r (Makefile.am): Likewise.
38268         * modules/strtol (Makefile.am): Likewise.
38269         * modules/strtoll (Makefile.am): Likewise.
38270         * modules/strtoul (Makefile.am): Likewise.
38271         * modules/strtoull (Makefile.am): Likewise.
38272         * modules/strtoumax (Makefile.am): Likewise.
38273         * modules/strverscmp (Makefile.am): Likewise.
38274         * modules/sys_socket (Makefile.am): Likewise.
38275         * modules/sys_stat (Makefile.am): Likewise.
38276         * modules/sysexits (Makefile.am): Likewise.
38277         * modules/time_r (Makefile.am): Likewise.
38278         * modules/timegm (Makefile.am): Likewise.
38279         * modules/timespec (Makefile.am): Likewise.
38280         * modules/tmpfile-safer (Makefile.am): Likewise.
38281         * modules/trim (Makefile.am): Likewise.
38282         * modules/unistd-safer (Makefile.am): Likewise.
38283         * modules/unlinkdir (Makefile.am): Likewise.
38284         * modules/unlocked-io (Makefile.am): Likewise.
38285         * modules/userspec (Makefile.am): Likewise.
38286         * modules/utime (Makefile.am): Likewise.
38287         * modules/utimecmp (Makefile.am): Likewise.
38288         * modules/utimens (Makefile.am): Likewise.
38289         * modules/vasnprintf (Makefile.am): Likewise.
38290         * modules/vasprintf (Makefile.am): Likewise.
38291         * modules/vsnprintf (Makefile.am): Likewise.
38292         * modules/xalloc (Makefile.am): Likewise.
38293         * modules/xgetcwd (Makefile.am): Likewise.
38294         * modules/xnanosleep (Makefile.am): Likewise.
38295         * modules/xreadlink (Makefile.am): Likewise.
38296         * modules/xstrtod (Makefile.am): Likewise.
38297         * modules/xstrtol (Makefile.am): Likewise.
38298         * modules/xstrtold (Makefile.am): Likewise.
38299         * modules/yesno (Makefile.am): Likewise.
38300         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38301
38302 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38303
38304         * modules/error (Makefile.am): Distribute files through
38305         EXTRA_DIST, not lib_SOURCES.
38306
38307 2006-10-12  Eric Blake  <ebb9@byu.net>
38308
38309         * modules/error (Makefile.am): Distribute files in /lib.
38310         * modules/obstack (Makefile.am): Likewise.
38311
38312 2006-10-12  Bruno Haible  <bruno@clisp.org>
38313
38314         * modules/acl (Makefile.am): Distribute all files in lib/ through
38315         EXTRA_DIST.
38316         * modules/arcfour (Makefile.am): Likewise.
38317         * modules/arctwo (Makefile.am): Likewise.
38318         * modules/argmatch (Makefile.am): Likewise.
38319         * modules/argz (Makefile.am): Likewise.
38320         * modules/atexit (Makefile.am): Likewise.
38321         * modules/backupfile (Makefile.am): Likewise.
38322         * modules/c-strtod (Makefile.am): Likewise.
38323         * modules/c-strtold (Makefile.am): Likewise.
38324         * modules/calloc (Makefile.am): Likewise.
38325         * modules/canon-host (Makefile.am): Likewise.
38326         * modules/canonicalize (Makefile.am): Likewise.
38327         * modules/chdir-long (Makefile.am): Likewise.
38328         * modules/chdir-safer (Makefile.am): Likewise.
38329         * modules/check-version (Makefile.am): Likewise.
38330         * modules/chown (Makefile.am): Likewise.
38331         * modules/cloexec (Makefile.am): Likewise.
38332         * modules/close-stream (Makefile.am): Likewise.
38333         * modules/closeout (Makefile.am): Likewise.
38334         * modules/crc (Makefile.am): Likewise.
38335         * modules/cycle-check (Makefile.am): Likewise.
38336         * modules/des (Makefile.am): Likewise.
38337         * modules/dirfd (Makefile.am): Likewise.
38338         * modules/dirname (Makefile.am): Likewise.
38339         * modules/dup2 (Makefile.am): Likewise.
38340         * modules/euidaccess (Makefile.am): Likewise.
38341         * modules/exclude (Makefile.am): Likewise.
38342         * modules/exitfail (Makefile.am): Likewise.
38343         * modules/fcntl-safer (Makefile.am): Likewise.
38344         * modules/file-type (Makefile.am): Likewise.
38345         * modules/fileblocks (Makefile.am): Likewise.
38346         * modules/filemode (Makefile.am): Likewise.
38347         * modules/filenamecat (Makefile.am): Likewise.
38348         * modules/fnmatch (Makefile.am): Likewise.
38349         * modules/fopen-safer (Makefile.am): Likewise.
38350         * modules/fpending (Makefile.am): Likewise.
38351         * modules/fprintftime (Makefile.am): Likewise.
38352         * modules/free (Makefile.am): Likewise.
38353         * modules/fsusage (Makefile.am): Likewise.
38354         * modules/ftruncate (Makefile.am): Likewise.
38355         * modules/fts (Makefile.am): Likewise.
38356         * modules/gc (Makefile.am): Likewise.
38357         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38358         * modules/getaddrinfo (Makefile.am): Likewise.
38359         * modules/getcwd (Makefile.am): Likewise.
38360         * modules/getdelim (Makefile.am): Likewise.
38361         * modules/getdomainname (Makefile.am): Likewise.
38362         * modules/getgroups (Makefile.am): Likewise.
38363         * modules/gethostname (Makefile.am): Likewise.
38364         * modules/gethrxtime (Makefile.am): Likewise.
38365         * modules/getline (Makefile.am): Likewise.
38366         * modules/getloadavg (Makefile.am): Likewise.
38367         * modules/getlogin_r (Makefile.am): Likewise.
38368         * modules/getopt (Makefile.am): Likewise.
38369         * modules/getpass (Makefile.am): Likewise.
38370         * modules/getpass-gnu (Makefile.am): Likewise.
38371         * modules/getsubopt (Makefile.am): Likewise.
38372         * modules/gettime (Makefile.am): Likewise.
38373         * modules/gettimeofday (Makefile.am): Likewise.
38374         * modules/getugroups (Makefile.am): Likewise.
38375         * modules/getusershell (Makefile.am): Likewise.
38376         * modules/glob (Makefile.am): Likewise.
38377         * modules/group-member (Makefile.am): Likewise.
38378         * modules/hard-locale (Makefile.am): Likewise.
38379         * modules/hash (Makefile.am): Likewise.
38380         * modules/hmac-md5 (Makefile.am): Likewise.
38381         * modules/hmac-sha1 (Makefile.am): Likewise.
38382         * modules/human (Makefile.am): Likewise.
38383         * modules/idcache (Makefile.am): Likewise.
38384         * modules/imaxabs (Makefile.am): Likewise.
38385         * modules/imaxdiv (Makefile.am): Likewise.
38386         * modules/inet_ntop (Makefile.am): Likewise.
38387         * modules/inet_pton (Makefile.am): Likewise.
38388         * modules/inttostr (Makefile.am): Likewise.
38389         * modules/isapipe (Makefile.am): Likewise.
38390         * modules/lchown (Makefile.am): Likewise.
38391         * modules/long-options (Makefile.am): Likewise.
38392         * modules/lstat (Makefile.am): Likewise.
38393         * modules/malloc (Makefile.am): Likewise.
38394         * modules/mathl (Makefile.am): Likewise.
38395         * modules/mbchar (Makefile.am): Likewise.
38396         * modules/md2 (Makefile.am): Likewise.
38397         * modules/md4 (Makefile.am): Likewise.
38398         * modules/md5 (Makefile.am): Likewise.
38399         * modules/memcasecmp (Makefile.am): Likewise.
38400         * modules/memchr (Makefile.am): Likewise.
38401         * modules/memcmp (Makefile.am): Likewise.
38402         * modules/memcoll (Makefile.am): Likewise.
38403         * modules/memcpy (Makefile.am): Likewise.
38404         * modules/memmem (Makefile.am): Likewise.
38405         * modules/memmove (Makefile.am): Likewise.
38406         * modules/mempcpy (Makefile.am): Likewise.
38407         * modules/memrchr (Makefile.am): Likewise.
38408         * modules/memset (Makefile.am): Likewise.
38409         * modules/memxor (Makefile.am): Likewise.
38410         * modules/mkancesdirs (Makefile.am): Likewise.
38411         * modules/mkdir (Makefile.am): Likewise.
38412         * modules/mkdir-p (Makefile.am): Likewise.
38413         * modules/mkdtemp (Makefile.am): Likewise.
38414         * modules/mkstemp (Makefile.am): Likewise.
38415         * modules/mktime (Makefile.am): Likewise.
38416         * modules/modechange (Makefile.am): Likewise.
38417         * modules/mountlist (Makefile.am): Likewise.
38418         * modules/nanosleep (Makefile.am): Likewise.
38419         * modules/openat (Makefile.am): Likewise.
38420         * modules/pagealign_alloc (Makefile.am): Likewise.
38421         * modules/physmem (Makefile.am): Likewise.
38422         * modules/poll (Makefile.am): Likewise.
38423         * modules/posixtm (Makefile.am): Likewise.
38424         * modules/posixver (Makefile.am): Likewise.
38425         * modules/putenv (Makefile.am): Likewise.
38426         * modules/quote (Makefile.am): Likewise.
38427         * modules/quotearg (Makefile.am): Likewise.
38428         * modules/raise (Makefile.am): Likewise.
38429         * modules/read-file (Makefile.am): Likewise.
38430         * modules/readline (Makefile.am): Likewise.
38431         * modules/readlink (Makefile.am): Likewise.
38432         * modules/readtokens (Makefile.am): Likewise.
38433         * modules/readutmp (Makefile.am): Likewise.
38434         * modules/realloc (Makefile.am): Likewise.
38435         * modules/regex (Makefile.am): Likewise.
38436         * modules/rename (Makefile.am): Likewise.
38437         * modules/rename-dest-slash (Makefile.am): Likewise.
38438         * modules/rijndael (Makefile.am): Likewise.
38439         * modules/rmdir (Makefile.am): Likewise.
38440         * modules/rpmatch (Makefile.am): Likewise.
38441         * modules/safe-read (Makefile.am): Likewise.
38442         * modules/safe-write (Makefile.am): Likewise.
38443         * modules/same (Makefile.am): Likewise.
38444         * modules/save-cwd (Makefile.am): Likewise.
38445         * modules/savedir (Makefile.am): Likewise.
38446         * modules/setenv (Makefile.am): Likewise.
38447         * modules/settime (Makefile.am): Likewise.
38448         * modules/sha1 (Makefile.am): Likewise.
38449         * modules/sig2str (Makefile.am): Likewise.
38450         * modules/snprintf (Makefile.am): Likewise.
38451         * modules/stdlib-safer (Makefile.am): Likewise.
38452         * modules/stpcpy (Makefile.am): Likewise.
38453         * modules/stpncpy (Makefile.am): Likewise.
38454         * modules/strcase (Makefile.am): Likewise.
38455         * modules/strcasestr (Makefile.am): Likewise.
38456         * modules/strchrnul (Makefile.am): Likewise.
38457         * modules/strcspn (Makefile.am): Likewise.
38458         * modules/strdup (Makefile.am): Likewise.
38459         * modules/strerror (Makefile.am): Likewise.
38460         * modules/strftime (Makefile.am): Likewise.
38461         * modules/strndup (Makefile.am): Likewise.
38462         * modules/strnlen (Makefile.am): Likewise.
38463         * modules/strpbrk (Makefile.am): Likewise.
38464         * modules/strsep (Makefile.am): Likewise.
38465         * modules/strstr (Makefile.am): Likewise.
38466         * modules/strtod (Makefile.am): Likewise.
38467         * modules/strtoimax (Makefile.am): Likewise.
38468         * modules/strtok_r (Makefile.am): Likewise.
38469         * modules/strtol (Makefile.am): Likewise.
38470         * modules/strtoll (Makefile.am): Likewise.
38471         * modules/strtoul (Makefile.am): Likewise.
38472         * modules/strtoull (Makefile.am): Likewise.
38473         * modules/strtoumax (Makefile.am): Likewise.
38474         * modules/strverscmp (Makefile.am): Likewise.
38475         * modules/time_r (Makefile.am): Likewise.
38476         * modules/timegm (Makefile.am): Likewise.
38477         * modules/tmpfile-safer (Makefile.am): Likewise.
38478         * modules/unistd-safer (Makefile.am): Likewise.
38479         * modules/unlinkdir (Makefile.am): Likewise.
38480         * modules/userspec (Makefile.am): Likewise.
38481         * modules/utime (Makefile.am): Likewise.
38482         * modules/utimecmp (Makefile.am): Likewise.
38483         * modules/utimens (Makefile.am): Likewise.
38484         * modules/vasnprintf (Makefile.am): Likewise.
38485         * modules/vasprintf (Makefile.am): Likewise.
38486         * modules/vsnprintf (Makefile.am): Likewise.
38487         * modules/xalloc (Makefile.am): Likewise.
38488         * modules/xgetcwd (Makefile.am): Likewise.
38489         * modules/xnanosleep (Makefile.am): Likewise.
38490         * modules/xreadlink (Makefile.am): Likewise.
38491         * modules/xstrtod (Makefile.am): Likewise.
38492         * modules/xstrtol (Makefile.am): Likewise.
38493         * modules/xstrtold (Makefile.am): Likewise.
38494         * modules/yesno (Makefile.am): Likewise.
38495
38496 2006-10-12  Jim Meyering  <jim@meyering.net>
38497
38498         * m4/getloadavg.m4: Revert the change below.
38499
38500         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38501         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
38502         fail with a symlink, which is what coreutils' ./bootstrap now
38503         creates by default.
38504
38505 2006-10-12  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38508         mingw.
38509         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38510         MSVC and mingw explicitly.
38511
38512 2006-10-11  Simon Josefsson  <jas@extundo.com>
38513             Bruno Haible  <bruno@clisp.org>
38514
38515         Add support for multiple gnulib-tool invocations in the scope of a
38516         single configure.ac file.
38517         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38518         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38519         with the same contents as the _LIBADD variable.
38520         (func_emit_initmacro_start, func_emit_initmacro_end,
38521         func_emit_initmacro_done): New functions.
38522         (func_import, func_create_testdir): Invoke them. Allow the identifiers
38523         gl_LIBOBJS and gl_LTLIBOBJS.
38524
38525 2006-10-11  Bruno Haible  <bruno@clisp.org>
38526
38527         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38528         (func_create_testdir): Don't create po/Makefile.am, don't invoke
38529         autoreconf. Instead, invoke autopoint explicitly but move back the
38530         *.m4 files from gnulib.
38531
38532 2006-10-11  Bruno Haible  <bruno@clisp.org>
38533
38534         * gnulib-tool (func_usage): Make module names after --create-testdir
38535         optional.
38536         (func_create_testdir): If no module was specified, use nearly all
38537         modules.
38538
38539 2006-10-12  Jim Meyering  <jim@meyering.net>
38540
38541         Big performance improvement for fts-based tools that use FTS_NOSTAT.
38542         Avoid spurious inode-mismatch problems on non-POSIX file systems.
38543         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38544         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38545         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38546         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38547         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38548         (fts_set_stat_required): New function.
38549         (fts_open): Defer the calls to fts_stat, if possible or requested.
38550         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38551         into fts_stat itself.
38552         (fts_read): Perform any required (deferred) fts_stat call.
38553         (fts_build): Likewise, for the directory we're about to open and read.
38554         In the readdir loop, carefully decide whether each entry will require
38555         an eventual call to fts_stat, using dirent.d_type info if available.
38556         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38557         a command line argument into this function.  Update all callers.
38558         Map a return value of FTS_DOT to FTS_D for a command line argument.
38559         * modules/fts (Depends-on): Add d-type.  Alphabetize.
38560         Thanks to Miklos Szeredi for his tenacity and for the initial
38561         bug report about "find" failing on a FUSE-based file system.
38562
38563         * lib/fts.c (fts_open): Use consistent indentation.
38564
38565 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38566
38567         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38568         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38569         reported by Jim Meyering.  All uses of cache variables renamed
38570         to match Autoconf's.
38571         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38572         the other one.
38573
38574         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38575         Fix misspelling in diagnostic.
38576
38577 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38578
38579         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38580         defined.  Problem reported by Matthew Woehlke.
38581
38582         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38583         Add support for Tandem NonStop R series.
38584         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38585         Use new macro.
38586
38587         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38588         (has_trailing_slash): Omit size arg; all callers changed.
38589         Omit 'inline', since it doesn't help performance and we'd
38590         need to configure it.
38591         Don't count //, ///, etc. as having a trailing slash.
38592         As a side effect, this removes a C99ism reported by Matthew Woehlke.
38593         (rpl_rename_dest_slash): On failure, use rename's errno rather
38594         than (in some cases) an incorrect or junk errno.
38595         Simplify code by removing need to compute length; this does
38596         cause it to make two passes instead of one over the file name,
38597         but it's worth it.
38598
38599         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38600         change, since Autoconf's version may no longer be appropriate now
38601         that we are using CVS Autoconf's version.  Add support for Tandem.
38602
38603 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38604             Bruno Haible  <bruno@clisp.org>
38605
38606         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38607         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38608         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38609         gl_AC_TYPE_LONG_LONG.
38610
38611         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38612         instead of HAVE_LONG_LONG.
38613         * lib/printf-args.c (printf_fetchargs): Likewise.
38614         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38615         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38616         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38617         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38618         gl_AC_TYPE_LONG_LONG.
38619
38620 2006-10-11  Bruno Haible  <bruno@clisp.org>
38621
38622         * m4/longlong.m4: Add comments.
38623         * m4/ulonglong.m4: Likewise.
38624
38625 2006-10-10  Bruno Haible  <bruno@clisp.org>
38626
38627         Make it possible to #define stpcpy, strdup to aliases.
38628         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38629         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38630
38631 2006-10-10  Bruno Haible  <bruno@clisp.org>
38632
38633         Make it possible to #define gcd to an alias.
38634         * lib/gcd.c: Include config.h.
38635
38636 2006-10-10  Bruno Haible  <bruno@clisp.org>
38637
38638         Make it possible to #define c_isascii to an alias.
38639         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38640         defined. Undefine the macros before defining them, to avoid gcc
38641         warnings.
38642         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38643         define NO_C_CTYPE_MACROS early.
38644
38645 2006-10-10  Bruno Haible  <bruno@clisp.org>
38646
38647         Make it possible to #define set_program_name to an alias.
38648         * lib/progname.c: Don't undefine set_program_name; instead, undefine
38649         ENABLE_RELOCATABLE early.
38650
38651 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38652
38653         Port to Tandem NSK OSS, which has 64-bit signed int but at most
38654         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
38655         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38656         More generally, don't assume that 64-bit signed int is available
38657         if unsigned int is, and vice versa.
38658         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38659         unsigned symbols, not on their signed counterparts.
38660         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38661         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38662         (UINT64_C, UINTMAX_C):
38663         Likewise.
38664         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38665         unsigned counterparts.
38666         (Have_long_long, Unsigned): New macros.
38667         (Int): Renamed from INT.
38668         (strtoimax): Use the new macros.
38669         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38670         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38671         * modules/inttypes (inttypes.h): Substitute
38672         HAVE_UNSIGNED_LONG_LONG_INT.
38673         * modules/stdint (stdint.h): Likewise.
38674         (Files): Add m4/ulonglong.m4.
38675
38676 2006-10-10  Bruno Haible  <bruno@clisp.org>
38677
38678         Fix a gcc -Wshadow warning.
38679         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38680         to 'bucket'.
38681         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38682         gl_linked_indexof_from_to): Likewise.
38683         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38684         Likewise.
38685         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38686         Likewise.
38687         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38688         Reported by Eric Blake.
38689
38690 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
38691
38692         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38693         for NetBSD.  Problem reported by Bruno Haible.
38694
38695 2006-10-09  Jim Meyering  <jim@meyering.net>
38696
38697         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38698         Patch from Bruno Haible.
38699
38700 2006-10-09  Jim Meyering  <jim@meyering.net>
38701
38702         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38703         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38704         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38705
38706 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38707
38708         Don't include <config.h> twice; this doesn't work in some cases,
38709         e.g., when config.h has "#define intmax_t long long int" and
38710         we include <config.h>, <inttypes.h>, <config.h> in that order.
38711         Problem reported by Matthew Woehlke in:
38712         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38713         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38714         * lib/fts-cycle.c: Don't include config.h.
38715         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38716         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38717         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
38718         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38719         inttypes.h.
38720         * lib/xstrtoumax.c: Likewise.
38721         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
38722         __strtol and the like, so that this module is more like its siblings.
38723         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
38724         Remove; no longer needed now that we assume gnulib inttypes.h.
38725
38726 2006-10-08  Bruno Haible  <bruno@clisp.org>
38727
38728         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
38729         option.
38730
38731 2006-10-07  Jim Meyering  <jim@meyering.net>
38732
38733         * modules/inttypes (inttypes.h): Revert what seems to have been
38734         an inadvertent part of today's change: use "|", not "/" in the
38735         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
38736
38737 2006-10-07  Bruno Haible  <bruno@clisp.org>
38738
38739         * modules/sublist: New file.
38740
38741 2006-10-07  Bruno Haible  <bruno@clisp.org>
38742
38743         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
38744         * modules/argz (argz.h): Likewise.
38745         * modules/arpa_inet (arpa/inet.h): Likewise.
38746         * modules/byteswap (byteswap.h): Likewise.
38747         * modules/configmake (configmake.h): Likewise.
38748         * modules/fcntl (fcntl.h): Likewise.
38749         * modules/fnmatch (fnmatch.h): Likewise.
38750         * modules/getopt (getopt.h): Likewise.
38751         * modules/glob (glob.h): Likewise.
38752         * modules/inttypes (inttypes.h): Likewise.
38753         * modules/netinet_in (netinet/in.h): Likewise.
38754         * modules/poll (poll.h): Likewise.
38755         * modules/stdbool (stdbool.h): Likewise.
38756         * modules/stdint (stdint.h): Likewise.
38757         * modules/sys_select (sys/select.h): Likewise.
38758         * modules/sys_socket (sys/socket.h): Likewise.
38759         * modules/sys_stat (sys/stat.h): Likewise.
38760         * modules/sysexits (sysexits.h): Likewise.
38761         * modules/unistd (unistd.h): Likewise.
38762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38763         Add a "DO NOT EDIT" comment to the generated file.
38764         (func_import): Likewise for gnulib-comp.m4.
38765
38766 2006-10-07  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/gl_sublist.h: New file.
38769         * lib/gl_sublist.c: New file.
38770
38771 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38772
38773         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
38774         name (relative to the original working directory) and the file
38775         name component (relative to the temporary working directory).  All
38776         callers changed.
38777         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
38778         * lib/mkdir-p.c (make_dir_parents): Likewise.
38779         * lib/mkdir-p.h (make_dir_parents): Likewise.
38780
38781 2006-10-06  Eric Blake  <ebb9@byu.net>
38782
38783         Define several macros for use by the clean-temp module.
38784         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
38785         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
38786         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
38787
38788         * lib/clean-temp.h (close_stream_temp): New declaration.
38789         * lib/clean-temp.c (includes): Pull in headers according to what
38790         other modules are in use.
38791         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
38792
38793 2006-10-06  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
38796         instead of fopen, fwriteerror.
38797
38798 2006-10-06  Bruno Haible  <bruno@clisp.org>
38799
38800         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
38801         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
38802         int.
38803         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
38804         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
38805         Return an error indicator.
38806         Suggested by Eric Blake.
38807
38808 2006-10-06  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
38811         Reported by Eric Blake.
38812
38813 2006-10-06  Bruno Haible  <bruno@clisp.org>
38814
38815         * modules/closeout (Description): Mention stderr too.
38816
38817 2006-10-06  Bruno Haible  <bruno@clisp.org>
38818         and Paul Eggert  <eggert@cs.ucla.edu>
38819
38820         * lib/closeout.c (close_stdout): Also close stderr.
38821         * lib/closeout.h: Update comment.
38822
38823 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38824
38825         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
38826         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
38827         * lib/dirchownmod.c: Include lchown.h.
38828         * lib/lchown.c: Don't include files that lchown.h now includes.
38829         Don't declare chown, since lchown.h now does that.
38830         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
38831         (lchown): Define to rpl_chown if lchown is declared but
38832         does not exist.  Declare using a prototype if lchown is not
38833         declared.  Add a copyright notice.
38834         * lib/mkstemp.h: Include <unistd.h>.
38835         * lib/openat.c: Include lchown.h.
38836
38837         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
38838         we now test for that separately.
38839         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
38840         rather than O_NOFOLLOW, when testing whether it's possible to
38841         avoid a race condition reliably.
38842         * lib/savewd.c (savewd_chdir): Likewise.
38843
38844         Remove macros that are no longer needed now that stdint.h is
38845         reliable.
38846         * lib/fsusage.c (UINTMAX_MAX): Remove.
38847         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
38848         * lib/utimecmp.c (SIZE_MAX): Remove.
38849
38850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
38851
38852         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
38853         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
38854         O_NOATIME works.
38855
38856 2006-10-05  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/gl_list.h (gl_sortedlist_search_from_to,
38859         gl_sortedlist_indexof_from_to): New declarations.
38860         (gl_list_implementation): New fields sortedlist_search_from_to,
38861         sortedlist_indexof_from_to.
38862         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
38863         inline functions.
38864         * lib/gl_list.c (gl_sortedlist_search_from_to,
38865         gl_sortedlist_indexof_from_to): New functions.
38866         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
38867         function.
38868         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
38869         (gl_array_sortedlist_search_from_to): New function.
38870         (gl_array_list_implementation): Update.
38871         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
38872         function.
38873         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
38874         (gl_carray_sortedlist_search_from_to): New function.
38875         (gl_carray_list_implementation): Update.
38876         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
38877         gl_linked_sortedlist_indexof_from_to): New functions.
38878         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38879         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38880         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
38881         gl_tree_sortedlist_indexof_from_to): New functions.
38882         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38883         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38884         Update.
38885         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38886         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
38887         Update.
38888
38889 2006-10-05  Bruno Haible  <bruno@clisp.org>
38890
38891         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
38892         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
38893         (struct gl_list_implementation): Add fields search_from_to,
38894         indexof_from_to. Remove fields search, indexof.
38895         (gl_list_search): Use the search_from_to method.
38896         (gl_list_search_from, gl_list_search_from_to): New functions.
38897         (gl_list_indexof): Use the indexof_from_to method.
38898         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
38899         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
38900         (gl_list_search_from, gl_list_search_from_to): New functions.
38901         (gl_list_indexof): Use the indexof_from_to method.
38902         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
38903         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
38904         gl_array_indexof. Add start_index, end_index arguments.
38905         (gl_array_search_from_to): Renamed from gl_array_search. Add
38906         start_index, end_index arguments.
38907         (gl_array_remove, gl_array_list_implementation): Update.
38908         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
38909         gl_carray_indexof. Add start_index, end_index arguments.
38910         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
38911         start_index, end_index arguments.
38912         (gl_carray_remove, gl_carray_list_implementation): Update.
38913         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
38914         gl_linked_search. Add start_index, end_index arguments.
38915         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
38916         start_index, end_index arguments.
38917         (gl_linked_remove): Update.
38918         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38919         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38920         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
38921         field to 'size_t'.
38922         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
38923         gl_tree_search. Add start_index, end_index arguments.
38924         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
38925         start_index, end_index arguments.
38926         (gl_tree_remove): Update.
38927         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38928         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38929         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
38930         function.
38931         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
38932         gl_tree_search. Add start_index, end_index arguments.
38933         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
38934         start_index, end_index arguments.
38935         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38936         Update.
38937         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38938
38939 2006-10-05  Bruno Haible  <bruno@clisp.org>
38940
38941         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
38942
38943         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
38944         fwriteerror_temp): New declarations.
38945         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
38946         (descriptors): New variable.
38947         (cleanup): First, close the descriptors.
38948         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
38949         fclose_temp, fwriteerror_temp): New functions.
38950
38951 2006-10-04  Jim Meyering  <jim@meyering.net>
38952
38953         * lib/fts.c (fts_open): Tiny comment change.
38954
38955 2006-10-04  Bruno Haible  <bruno@clisp.org>
38956
38957         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
38958         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
38959         gl_LOCK_BODY.
38960         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
38961         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
38962         gl_LOCK_EARLY_BODY.
38963         (gl_LOCK): Require gl_LOCK_BODY.
38964
38965 2006-10-04  Bruno Haible  <bruno@clisp.org>
38966
38967         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
38968         (gl_oset_search_atleast): New declaration.
38969         (struct gl_oset_implementation): Add field 'search_atleast'.
38970         (gl_oset_search_atleast): New inline function.
38971         * lib/gl_oset.c (gl_oset_search_atleast): New function.
38972         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
38973         (gl_array_oset_implementation): Update.
38974         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
38975         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
38976         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
38977
38978 2006-10-04  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
38981
38982 2006-10-03  Bruno Haible  <bruno@clisp.org>
38983
38984         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
38985         from gl_avltreehash_list_implementation.
38986
38987 2006-10-03  Bruno Haible  <bruno@clisp.org>
38988
38989         * lib/gl_oset.c (gl_oset_add): Fix return type.
38990
38991 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
38992
38993         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
38994
38995 2006-10-02  Eric Blake  <ebb9@byu.net>
38996
38997         * modules/strnlen (Depends-on): Add extensions.
38998
38999 2006-10-02  Eric Blake  <ebb9@byu.net>
39000
39001         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39002         definition in 2.60+.
39003
39004 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39005
39006         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39007         checks.
39008
39009 2006-10-02  Bruno Haible  <bruno@clisp.org>
39010
39011         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39012         to the AUTOMAKE_OPTIONS.
39013         Reported by Jim Meyering.
39014
39015 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39016
39017         Work around bug in Solaris 10 /proc file system:
39018         /proc/self/fd/NNN/.. isn't the parent directory of
39019         the directory whose file descriptor is NNN.  This needs to
39020         be worked around at run time, not compile time, since a
39021         program might be built on Solaris 8, where things work, and
39022         run on Solaris 10.
39023         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39024         to use the following interface instead:
39025         (OPENAT_BUFFER_SIZE): New macro.
39026         (openat_proc_name): New function.
39027         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39028         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39029         Likewise.
39030         * lib/openat-proc.c: New file.
39031         * modules/openat (Files): Add lib/openat-proc.c.
39032         (Depends-on): Add same-inode, stdbool.
39033         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39034
39035 2006-09-29  Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39038         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39039         argument. Set stdout_closed before testing for ferror, not after.
39040         (fwriteerror, fwriteerror_no_ebadf): New functions.
39041
39042 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39043
39044         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39045
39046 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39047
39048         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39049         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39050
39051 2006-09-28  Jim Meyering  <jim@meyering.net>
39052
39053         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39054         Include <unistd.h>.
39055
39056 2006-09-28  Bruno Haible  <bruno@clisp.org>
39057
39058         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39059         * modules/linkedhash-list (Depends-on): Likewise.
39060         * modules/rbtreehash-list (Depends-on): Likewise.
39061
39062 2006-09-28  Bruno Haible  <bruno@clisp.org>
39063
39064         * lib/strndup.h: Simplify the redefinition of strndup.
39065         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39066         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39067
39068 2006-09-28  Bruno Haible  <bruno@clisp.org>
39069
39070         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39071         * lib/gl_linkedhash_list.c: Likewise.
39072         * lib/gl_rbtreehash_list.c: Likewise.
39073
39074 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39075
39076         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39077         getaddrinfo.
39078
39079         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39080         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39081         it causes <stdio_ext.h> to cause a compile-time error.
39082         Problem reported by Nelson H. F. Beebe.
39083         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39084         of HAVE_DECL___PENDING.
39085
39086         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39087         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39088         declaration.
39089
39090 2006-09-27  Jim Meyering  <jim@meyering.net>
39091
39092         This file could end up with a definition for a function
39093         named __strndup, rather than rpl_strndup on a system with
39094         incomplete weak_alias support.
39095         * lib/strndup.c (strndup): Rename from __strndup.
39096         Remove #defines that used to map __strndup to strndup.
39097         Don't use K&R prototypes.
39098         Remove LIBC-related code, since this file is not sync'd with glibc.
39099         * lib/strndup.h: Revamp, accordingly.
39100         * m4/strndup.m4: Modernize.
39101
39102 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         * modules/savewd (Depends-on): Add 'raise'.
39105         * lib/savewd.c: Include <signal.h>, for 'raise'.
39106
39107 2006-09-26  Jim Meyering  <jim@meyering.net>
39108
39109         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39110         when we detect Darwin 8.7.0's acl_get_file bug.
39111         Rearrange to perform the new (below) run-test while $LIBS
39112         contains any acl-related library.  Set USE_ACL at the end.
39113         (gl_ACL_GET_FILE): New function.
39114
39115 2006-09-26  Eric Blake  <ebb9@byu.net>
39116
39117         * lib/verror.c: Include <config.h> unconditionally.
39118
39119 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39120
39121         * modules/clock-time (Maintainer): Add self.
39122         * modules/getlogin_r (Depends-on): Add extensions.
39123
39124 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39125
39126         * modules/clock-time: New module.
39127         * modules/nanosleep (Depends-on): Add clock-time.
39128         * modules/gethrxtime (Depends-on): Likewise.
39129         * modules/gettime (Depends-on): Likewise.
39130         * modules/settime (Depends-on): Likewise.
39131
39132         * modules/fts-lgpl: Depend on openat.
39133         * modules/mkancesdirs: Depend on savewd.
39134         * modules/mkdir-p: Likewise.
39135
39136 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39137
39138         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39139
39140         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39141         `gl_have_arbitrary_file_name_length_limit' to
39142         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39143         actually works between configure runs.
39144
39145 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39146             Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39149
39150 2006-09-25  Jim Meyering  <jim@meyering.net>
39151
39152         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39153         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39154
39155 2006-09-25  Eric Blake  <ebb9@byu.net>
39156
39157         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39158         exec's in 2006-09-18 patch when shuffling fds.
39159
39160 2006-09-25  Bruno Haible  <bruno@clisp.org>
39161
39162         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39163         Reported by Jim Meyering.
39164
39165 2006-09-24  Jim Meyering  <jim@meyering.net>
39166
39167         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39168         compare a pointer against a literal "0".  That caused failures with
39169         at least HP-UX's hpcc.
39170
39171 2006-09-22  Simon Josefsson  <jas@extundo.com>
39172
39173         * modules/gc-sha1:
39174         * modules/gc-md4:
39175         * modules/gc-hmac-sha1:
39176         * modules/gc-hmac-md5:
39177         * modules/gc-des:
39178         * modules/gc-arcfour: Distribute more files.
39179
39180 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39181
39182         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39183         (gl_linked_iterator_from_to): Initialize struct completely.
39184         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39185         (gl_tree_iterator_from_to): Likewise
39186         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39187         * lib/gl_array_list.c [lint] (gl_array_iterator)
39188         (gl_array_iterator_from_to): Likewise.
39189         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39190         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39191         (gl_carray_iterator_from_to): Likewise.
39192
39193         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39194         * lib/md4.c (md4_process_block): Remove unused variable.
39195         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39196         parentheses for clarity.
39197
39198 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39199
39200         * modules/bison-i18n (Depends-on): Add gettext.
39201
39202 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39203
39204         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39205         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39206         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39207         also add missing comma that caused broken test.
39208         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39209         stdlib.h, for `abort'.
39210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39211         variables.
39212         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39213         include unistd.h if present, for `rmdir'.
39214         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39215         variables.
39216         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39217         in the process include standard headers for prototypes.
39218         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39219         gets declared on GNU/Linux.
39220         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39221         unistd.h, for `rmdir'.
39222         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39223
39224         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39225         always true.
39226         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39227
39228         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39229
39230 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39231
39232         * gnulib-tool (func_version): Create output all at once.  This
39233         may help avoid triggering unnecessary SIGPIPEs, and at any
39234         rate it doesn't hurt.
39235
39236 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39237             Bruno Haible  <bruno@clisp.org>
39238
39239         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39240         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39241         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39242
39243         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39244         (gl_FUNC_VASPRINTF): Invoke it.
39245
39246 2006-09-22  Bruno Haible  <bruno@clisp.org>
39247
39248         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39249         getloadavg.c as first argument.
39250
39251 2006-09-22  Bruno Haible  <bruno@clisp.org>
39252
39253         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39254         at the beginning of the gl_INIT macro.
39255         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39256         gl_GETLOADAVG.
39257
39258 2006-09-22  Bruno Haible  <bruno@clisp.org>
39259
39260         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39261         module.
39262         Suggested by Ralf Wildenhues.
39263
39264 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39265
39266         Import this patch from libc:
39267
39268         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39269
39270         * lib/regex_internal.c (re_string_reconstruct): Handle
39271         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39272         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39273         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39274         re_string_context_at.
39275
39276         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39277         now requires it.
39278         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39279         gl_REGEX now does it for us.
39280         (gl_REGEX): Add test taken from
39281         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39282
39283         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39284         Check that large offsets work.  Modernize Autoconf usages.
39285         Prefer "yes" to mean a good thing rather than a bad.
39286         Don't put "#define mkstemp" in config.h, as this might interfere
39287         with standard system headers that "#define mkstemp mkstemp64".
39288
39289         * modules/mkstemp (Depends-on): Add extensions, so that
39290         mkstemp is visible on some platforms.
39291         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39292         (Include): Change to "mkstemp.h" from <stdlib.h>.
39293         (Files): Add mkstemp.h.
39294
39295         * lib/mkstemp.h: New file, since some standard headers
39296         #define mkstemp.
39297         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39298         Include "mkstemp.h".
39299         Make the _LIBC code resemble glibc original more,
39300         e.g., use K&R style.
39301         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39302         (mkstemp): Remove, since mkstemp.h does this for us.
39303         * lib/stdlib--.h: Include mkstemp.h.
39304
39305         Import this patch from libc:
39306
39307         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39308
39309         * lib/tempname.c (__gen_tempname): Change attempts_min
39310         into a macro.  Use preprocessor to decide how to initialize
39311         attempts [Coverity CID 67].
39312
39313 2006-09-20  Bruno Haible  <bruno@clisp.org>
39314
39315         * lib/mkdtemp.c: Import from libc.
39316         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39317                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39318                 attempts_min into a macro.  Use preprocessor to decide how to
39319                 initialize attempts [Coverity CID 67].
39320         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39321                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39322                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39323
39324 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39325
39326         * gnulib-tool (func_exit): New function, to allow to pass the
39327         exit status portably through the trap.  Use everywhere.
39328         (--help, --version): Signal a write error.
39329         (trap): catch SIGPIPE, for write errors.
39330         Exit at the end of the trap, with the correct exit status.
39331
39332 2006-09-19  Karl Berry  <karl@gnu.org>
39333
39334         * doc/gnulib.texi: note about the license texinfo files.
39335
39336 2006-09-19  Eric Blake  <ebb9@byu.net>
39337
39338         * gnulib-tool: Avoid space-tab.
39339
39340 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39341
39342         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39343         that prevented coreutils 6.1 from building.  Problem reported
39344         by Petter Reinholdtsen.
39345
39346 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39347
39348         * gnulib-tool (avoidlist): Fix typo that broke options like
39349         --avoid=lock that are used by coreutils bootstrap.
39350
39351 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39352
39353         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39354         more systematically.
39355
39356 2006-09-18  Jim Meyering  <jim@meyering.net>
39357
39358         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39359
39360 2006-09-18  Bruno Haible  <bruno@clisp.org>
39361
39362         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39363
39364 2006-09-18  Bruno Haible  <bruno@clisp.org>
39365
39366         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39367         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39368         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39369         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39370         * m4/gettext.m4: Require autoconf >= 2.52.
39371         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39372         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39373         of gl_cv_header_inttypes_h.
39374
39375 2006-09-18  Bruno Haible  <bruno@clisp.org>
39376
39377         * lib/javaversion.c: Include configmake.h.
39378
39379 2006-09-18  Bruno Haible  <bruno@clisp.org>
39380
39381         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39382         avoid that the while loops be executed in a subshell.
39383
39384 2006-09-18  Bruno Haible  <bruno@clisp.org>
39385
39386         * MODULES.html.sh (func_module): Break long lines.
39387         Suggested by Bruce Korb <bkorb@gnu.org>.
39388
39389 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39390
39391         Speed up by a factor of 1.12.
39392         * gnulib-tool (nl): New variable.
39393         (func_import): Rewrite include directive extraction to only read each
39394         directive once.
39395
39396 2006-09-17  Bruno Haible  <bruno@clisp.org>
39397
39398         * modules/javaversion (Makefile.am): Remove DEFS setting.
39399         (Depends-on): Add configmake, for PKGDATADIR definition.
39400
39401 2006-09-17  Bruno Haible  <bruno@clisp.org>
39402
39403         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39404
39405 2006-09-17  Bruno Haible  <bruno@clisp.org>
39406
39407         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39408         (func_modules_transitive_closure, func_modules_add_dummy,
39409         func_modules_to_filelist, func_import, func_create_testdir,
39410         func_create_megatestdir, ...): Use it wherever possible.
39411         Suggested by Ralf Wildenhues.
39412
39413 2006-09-16  Karl Berry  <karl@gnu.org>
39414
39415         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39416         to avoid sectioning errors.
39417         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39418         [ifinfo]: blank line after @center-ed titles.
39419         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39420         Spell FSF address consistently with others.
39421         (These changes approved by rms.)
39422
39423 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39424
39425         Speed up by a factor of 1.61.
39426         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39427         already checked module names again.
39428
39429 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39430
39431         Speed up by a factor of 1.13.
39432         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39433         for new_files, and the input to func_add_or_update.
39434
39435 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39436
39437         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39438         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39439
39440 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39441
39442         * modules/mkancesdirs (Depends-on): Add fcntl.
39443         * modules/savewd: New file.
39444         * MODULES.html.sh (File system functions): Add savewd.
39445
39446         * modules/configmake (Makefile.am): Add support for the
39447         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39448
39449 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39450
39451         * m4/savewd.m4: New file.
39452
39453 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39454
39455         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39456         (dirchownmod): New arg FD.  All callers changed.
39457         Use FD rather than opening the directory ourself, as opening is
39458         now the caller's responsibility.
39459         * lib/dirchownmod.h: Likewise.
39460         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39461         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39462         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39463         (test_dir): Remove.
39464         (mkancesdirs): Return length of prefix of FILE that has already
39465         been made, or -2 if there is a child doing the work.  Redo
39466         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39467         ".", and treat ".." specially since it might stray back into
39468         already-created areas.  Use a subprocess if necessary.  New arg
39469         WD; all users changed.  MAKE_DIR function should now return 1
39470         if it creates a directory that is not readable.  Return -2 if
39471         a child process is spun off.
39472         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39473         Adjust signature to match code.
39474         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39475         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
39476         all users changed.
39477         * lib/savewd.c, lib/savewd.h: New files.
39478
39479 2006-09-15  Jim Meyering  <jim@meyering.net>
39480
39481         * modules/rename-dest-slash: New module.
39482         * MODULES.html.sh (posix_compat): Add it here.
39483
39484         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39485
39486 2006-09-15  Jim Meyering  <jim@meyering.net>
39487
39488         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39489         file.
39490
39491         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39492
39493 2006-09-15  Jim Meyering  <jim@meyering.net>
39494
39495         * lib/rename-dest-slash.c (has_trailing_slash): Use
39496         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39497         (rpl_rename_dest_slash): Perform the cheaper trailing slash
39498         test before testing whether SRC is a directory.
39499         Suggestions from Bruno Haible.
39500
39501         Avoid a warning about an unused variable.
39502         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39503         into the #ifdef block where it's used.
39504
39505         * lib/rename-dest-slash.c: New file.
39506
39507 2006-09-14  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/allocsa.c: Include <config.h> unconditionally.
39510         * lib/asnprintf.c: Likewise.
39511         * lib/asprintf.c: Likewise.
39512         * lib/c-strcasecmp.c: Likewise.
39513         * lib/c-strcasestr.c: Likewise.
39514         * lib/c-strncasecmp.c: Likewise.
39515         * lib/c-strstr.c: Likewise.
39516         * lib/classpath.c: Likewise.
39517         * lib/clean-temp.c: Likewise.
39518         * lib/concatpath.c: Likewise.
39519         * lib/copy-file.c: Likewise.
39520         * lib/csharpcomp.c: Likewise.
39521         * lib/csharpexec.c: Likewise.
39522         * lib/execute.c: Likewise.
39523         * lib/fatal-signal.c: Likewise.
39524         * lib/findprog.c: Likewise.
39525         * lib/fwriteerror.c: Likewise.
39526         * lib/gl_array_list.c: Likewise.
39527         * lib/gl_array_oset.c: Likewise.
39528         * lib/gl_avltree_list.c: Likewise.
39529         * lib/gl_avltree_oset.c: Likewise.
39530         * lib/gl_avltreehash_list.c: Likewise.
39531         * lib/gl_carray_list.c: Likewise.
39532         * lib/gl_linked_list.c: Likewise.
39533         * lib/gl_linkedhash_list.c: Likewise.
39534         * lib/gl_list.c: Likewise.
39535         * lib/gl_oset.c: Likewise.
39536         * lib/gl_rbtree_list.c: Likewise.
39537         * lib/gl_rbtree_oset.c: Likewise.
39538         * lib/gl_rbtreehash_list.c: Likewise.
39539         * lib/imaxabs.c: Likewise.
39540         * lib/imaxdiv.c: Likewise.
39541         * lib/javacomp.c: Likewise.
39542         * lib/javaexec.c: Likewise.
39543         * lib/javaversion.c: Likewise.
39544         * lib/linebreak.c: Likewise.
39545         * lib/localcharset.c: Likewise.
39546         * lib/lock.c: Likewise.
39547         * lib/mbchar.c: Likewise.
39548         * lib/mbswidth.c: Likewise.
39549         * lib/mkdtemp.c: Likewise.
39550         * lib/pipe.c: Likewise.
39551         * lib/printf-args.c: Likewise.
39552         * lib/printf-parse.c: Likewise.
39553         * lib/progname.c: Likewise.
39554         * lib/progreloc.c: Likewise.
39555         * lib/readlink.c: Likewise.
39556         * lib/sh-quote.c: Likewise.
39557         * lib/stpcpy.c: Likewise.
39558         * lib/stpncpy.c: Likewise.
39559         * lib/strcasecmp.c: Likewise.
39560         * lib/strcasestr.c: Likewise.
39561         * lib/strcspn.c: Likewise.
39562         * lib/striconv.c: Likewise.
39563         * lib/strncasecmp.c: Likewise.
39564         * lib/strnlen1.c: Likewise.
39565         * lib/strstr.c: Likewise.
39566         * lib/strtok_r.c: Likewise.
39567         * lib/tls.c: Likewise.
39568         * lib/tmpdir.c: Likewise.
39569         * lib/unicodeio.c: Likewise.
39570         * lib/unsetenv.c: Likewise.
39571         * lib/vasnprintf.c: Likewise.
39572         * lib/vasprintf.c: Likewise.
39573         * lib/wait-process.c: Likewise.
39574         * lib/xallocsa.c: Likewise.
39575         * lib/xsetenv.c: Likewise.
39576         * lib/xstriconv.c: Likewise.
39577
39578 2006-09-13  Simon Josefsson  <jas@extundo.com>
39579
39580         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39581         that internally, suggested by Ralf Wildenhues
39582         <Ralf.Wildenhues@gmx.de>.
39583
39584 2006-09-13  Simon Josefsson  <jas@extundo.com>
39585
39586         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39587         @LIBOBJS@.
39588         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39589
39590 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39591
39592         * lib/_fpending.c: Include <config.h> unconditionally, since we no
39593         longer worry about uses that don't define HAVE_CONFIG_H.
39594         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39595         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39596         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39597         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39598         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39599         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39600         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39601         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39602         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39603         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39604         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39605         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39606         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39607         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39608         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39609         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39610         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39611         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39612         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39613         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39614         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39615         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39616         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39617         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39618         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39619         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39620         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39621         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39622         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39623         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39624         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39625         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39626         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39627         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39628         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39629         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39630         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39631         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39632         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39633         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39634         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39635         Likewise.
39636
39637 2006-09-13  Eric Blake  <ebb9@byu.net>
39638
39639         * lib/getopt.c: Fix typo in last commit.
39640
39641 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39642
39643         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39644         dgettext.
39645
39646 2006-09-12  Jim Meyering  <jim@meyering.net>
39647
39648         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39649         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39650         Reported by Nelson H. F. Beebe.
39651
39652 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39653
39654         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39655         program_invocation_name and program_invocation_short_name are
39656         initialized.
39657         * lib/argp-namefrob.h: Move declarations of program_invocation_name
39658         and program_invocation_short_name to argp.h, so they are visible
39659         to user programs.
39660         * lib/argp.h: Likewise
39661
39662 2006-09-10  Bruno Haible  <bruno@clisp.org>
39663
39664         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39665         m4/inttypes_h.m4, m4/uintmax_t.m4.
39666
39667 2006-09-10  Bruno Haible  <bruno@clisp.org>
39668
39669         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39670         gl_AC_TYPE_UINTMAX_T.
39671
39672 2006-09-10  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39675
39676 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39677
39678         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39679         convention.  Text proposed by Bruno Haible.
39680         (struct argp_option): Document the use of N_() wrappers.
39681
39682         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39683         '\v', and translate the two parts separately, instead of feeding
39684         the whole string to gettext.  This allows to exclude
39685         '\v' from the strings visible to the translator by writing doc
39686         strings as N_("..") "\v" N_("..").
39687
39688 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
39689
39690         * config/srclist.txt: Undo latest change; the bug was fixed.
39691
39692 2006-09-09  Bruno Haible  <bruno@clisp.org>
39693
39694         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39695         assignments if building a library without libtool.
39696         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39697         in func_emit_lib_Makefile_am.
39698         (func_import): When building a static library libfoo.a, arrange to
39699         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39700         (func_create_testdir): Likewise.
39701         * modules/gc (configure.ac, Makefile.am): If building statically,
39702         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39703         * modules/iconvme (configure.ac, Makefile.am): Likewise.
39704         * modules/striconv (configure.ac, Makefile.am): Likewise.
39705         Based on a suggestion by Ralf Wildenhues.
39706
39707 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39708
39709         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39710         Check for unistd.h too, since Autoconf doesn't assume POSIX.
39711         Also:
39712
39713         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39714         Add year_2050_test to catch glibc bug 2821
39715         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39716
39717         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39718         Prefer #ifdef to #if.
39719
39720         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
39721         Return from 'main' instead of calling 'exit'.
39722
39723 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39724
39725         * lib/mktime.c (guess_time_tm): Fix bug where mktime
39726         returned the maximum time_t value rather than (time_t) -1.
39727         Problem originally reported by William Bardwell
39728         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39729
39730         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39731         Moved to here ...
39732         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39733         ... from here.
39734
39735 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39736
39737         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
39738         2821 is fixed.
39739
39740 2006-09-08  Jim Meyering  <jim@meyering.net>
39741
39742         Don't make generated files read-only.  That would bother too many
39743         people.  However, do retain the ability to work when targets are
39744         read-only: remove the destination and temporary files before writing
39745         them (when generated via sed or echo), or by using the -f option for
39746         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
39747         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39748         * modules/byteswap, modules/configmake, modules/fcntl:
39749         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39750         * modules/localcharset, modules/netinet_in, modules/poll:
39751         * modules/stdbool, modules/stdint, modules/sys_select:
39752         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39753
39754 2006-09-08  Jim Meyering  <jim@meyering.net>
39755
39756         Avoid new build failure on FreeBSD 6.0.
39757         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
39758         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
39759         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
39760
39761 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39762
39763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
39764
39765 2006-09-07  Jim Meyering  <jim@meyering.net>
39766
39767         Fix global typo in last change: use chmod u-w, not chmod u-x.
39768         Spotted by Paul Eggert and Bruce Korb.
39769         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39770         * modules/byteswap, modules/configmake, modules/fcntl:
39771         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39772         * modules/localcharset, modules/netinet_in, modules/poll:
39773         * modules/stdbool, modules/stdint, modules/sys_select:
39774         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39775
39776 2006-09-06  Jim Meyering  <jim@meyering.net>
39777
39778         Make generated files be read-only.
39779         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
39780         Ensure that each generated file is now read-only.
39781         * modules/argz: Likewise.
39782         * modules/arpa_inet: Likewise.
39783         * modules/byteswap: Likewise.
39784         * modules/configmake: Likewise.
39785         * modules/fcntl: Likewise.
39786         * modules/fnmatch: Likewise.
39787         * modules/getopt: Likewise.
39788         * modules/glob: Likewise.
39789         * modules/inttypes: Likewise.
39790         * modules/netinet_in: Likewise.
39791         * modules/poll: Likewise.
39792         * modules/stdbool: Likewise.
39793         * modules/stdint: Likewise.
39794         * modules/sys_select: Likewise.
39795         * modules/sys_socket: Likewise.
39796         * modules/sys_stat: Likewise.
39797         * modules/sysexits: Likewise.
39798         * modules/localcharset: Same as above, but continue using temporary
39799         file named "t-$@" (why different?) rather than the "$@-t" used
39800         everywhere else.
39801
39802         * modules/sysexits (Makefile.am): Replace literal occurrences
39803         of "sysexit.h" more readable, and more consistent, "$@".
39804
39805 2006-09-06  Bruno Haible  <bruno@clisp.org>
39806
39807         * modules/striconv: New file.
39808         * modules/xstriconv: New file.
39809         * MODULES.html.sh (Internationalization functions): Add striconv,
39810         xstriconv.
39811
39812 2006-09-06  Bruno Haible  <bruno@clisp.org>
39813
39814         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
39815         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
39816         not using libtool correctly.
39817
39818 2006-09-06  Bruno Haible  <bruno@clisp.org>
39819
39820         * lib/striconv.h: New file.
39821         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
39822         iconvstring.c.
39823         * lib/xstriconv.h: New file.
39824         * lib/xstriconv.c: New file.
39825
39826 2006-09-06  Bruno Haible  <bruno@clisp.org>
39827
39828         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39829         lib_..._LDFLAGS.
39830
39831 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39832
39833         * lib/argz_.h: Sync from Libtool.
39834
39835         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
39836                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39837
39838         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
39839
39840 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
39841
39842         * modules/trim: New file.
39843
39844 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
39845
39846         * lib/trim.h: New file.
39847         * lib/trim.c: New file.
39848
39849 2006-09-05  Bruno Haible  <bruno@clisp.org>
39850
39851         * MODULES.html.sh (String handling): Add trim.
39852
39853 2006-09-04  Karl Berry  <karl@gnu.org>
39854
39855         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
39856         until next release.
39857
39858 2006-09-03  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
39861         correctly.
39862
39863 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39864
39865         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
39866         not gl_GETLOADAVG.  Omit unneeded semicolons.
39867         Problems reported by Ralf Wildenhues in
39868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
39869         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
39870         at the end, which is the usual gnulib style.
39871
39872         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
39873         of doing all the work ourselves.
39874         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
39875         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
39876
39877 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39878
39879         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
39880         Problem reported by Ralf Wildenhues in
39881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
39882
39883         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
39884         HAVE_STRUCT_STATFS_F_FSTYPENAME.
39885
39886 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39887
39888         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
39889         yesterday's patch by changing test -n to test -z.
39890
39891 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39892
39893         * modules/getloadavg (Files): Add m4/getloadavg.m4.
39894         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
39895         the former is now obsolescent.
39896
39897         * modules/chdir-long (Depends-on): Add fcntl.
39898
39899 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39900
39901         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
39902         obsolescent, and programs should use gnulib instead.
39903         * m4/getloadavg.m4: New file, with contents taken from Autoconf
39904         but with prefixes changed.
39905
39906 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39907
39908         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
39909         or stdbool.h, because they might not exist while configuring.
39910
39911         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
39912         Don't include unistd.h or limits.h; not needed, since chdir-long.h
39913         does that for us.
39914         (O_DIRECTORY): Remove.
39915
39916 2006-08-31  Eric Blake  <ebb9@byu.net>
39917
39918         * gnulib-tool: Don't let emacs change spaces to TAB.
39919
39920 2006-08-31  Bruno Haible  <bruno@clisp.org>
39921
39922         * gnulib-tool: When calling func_import more than once, do it in a
39923         subshell.
39924         Reported by Eric Blake <ebb9@byu.net>.
39925
39926 2006-08-31  Bruno Haible  <bruno@clisp.org>
39927
39928         * gnulib-tool (nl): Remove variable.
39929         (sed_transform_lib_file): Use more robust test for config-h module.
39930         (func_import): Fix typo in 2006-08-25 patch.
39931
39932 2006-08-31  Bruno Haible  <bruno@clisp.org>
39933
39934         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
39935         specified, augment Makefile.am variables instead of assigning them.
39936
39937 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39938
39939         Work around a bug in both the Linux and SunOS 64-bit kernels:
39940         nanosleep mishandles sleeps for longer than 2**31 seconds.
39941         Problem reported by Frank v Waveren in
39942         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
39943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
39944         Check for nanosleep bug.
39945         (LIB_NANOSLEEP): Append clock_gettime library if needed.
39946
39947 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         Work around a bug in both the Linux and SunOS 64-bit kernels:
39950         nanosleep mishandles sleeps for longer than 2**31 seconds.
39951         Problem reported by Frank v Waveren in
39952         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
39953         * lib/nanosleep.c (BILLION): New constant.
39954         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
39955         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
39956         implementation.
39957
39958 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39959
39960         * modules/nanosleep (Depends-on): Add gettime.
39961
39962 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39963         and Simon Josefsson  <jas@extundo.com>
39964         and Oskar Liljeblad  <oskar@osk.mine.nu>
39965
39966         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
39967         * gnulib-tool (func_import): New license type 'unmodifiable license
39968         text'.
39969         * modules/fdl: Use it.  Longer description.
39970         * module/gpl, module/lgpl: New files.
39971
39972 2006-08-30  Jim Meyering  <jim@meyering.net>
39973
39974         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
39975         shadowing the parameter.
39976
39977 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39978
39979         Sync from Libtool:
39980
39981         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39982
39983         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
39984         sharing with gnulib.  Report by Eric Blake.
39985
39986 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39987
39988         * modules/isapipe: New file.
39989         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
39990
39991 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39992
39993         * modules/configmake (Makefile.am): Add a comment, and omit
39994         the CONFIGMAKE_ prefix from generated macro names.  Suggested
39995         by Bruno Haible.
39996
39997 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39998
39999         * m4/isapipe.m4: New file.
40000
40001 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40002
40003         * lib/isapipe.c, lib/isapipe.h: New files.
40004
40005 2006-08-29  Jim Meyering  <jim@meyering.net>
40006
40007         * modules/configmake (Makefile.am): Make configmake.h depend on
40008         Makefile.  Otherwise, a stale configmake.h could hang around.
40009
40010 2006-08-29  Eric Blake  <ebb9@byu.net>
40011
40012         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40013         resolution of upstream bug 3044.
40014
40015 2006-08-29  Bruno Haible  <bruno@clisp.org>
40016
40017         * modules/localcharset (Depends-on): Add configmake.
40018         (Makefile.am): Remove setting of LIBDIR through DEFS.
40019
40020 2006-08-29  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40023         defined.
40024
40025 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40026
40027         * modules/fcntl: New file.
40028         * modules/chdir-safer (Depends-on): Add fcntl.
40029         * modules/fts: Likewise.
40030         * modules/mkdir-p: Likewise.
40031
40032         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40033         This undoes the most recent change, since we're now addressing the
40034         problem in a different way.
40035
40036         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40037         into output, since the output might be called Makefile.am even
40038         if $makefile_name is something different.
40039         (func_import): Use $makefile_am rather than
40040         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40041         empty.
40042
40043         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40044
40045 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40046
40047         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40048         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40049         recent change to stdint.m4, since we're now addressing the problem in a
40050         different way.
40051
40052 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40053
40054         * m4/fcntl_h.m4: New file.
40055
40056 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * lib/fcntl_.h: New file.
40059         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40060         the fcntl module.
40061         * lib/dirchownmod.c: Likewise.
40062         * lib/fts.c: Likewise.
40063
40064         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40065         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40066         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40067         just before including <inttypes.h>, to avoid circular inclusion.
40068
40069 2006-08-28  Jim Meyering  <jim@meyering.net>
40070
40071         * doc/visibility.texi: Actually read and correct the grammar of the
40072         sentence affected by yesterday's change.
40073
40074 2006-08-28  Eric Blake  <ebb9@byu.net>
40075
40076         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40077         needs wrapper.
40078
40079 2006-08-28  Eric Blake  <ebb9@byu.net>
40080
40081         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40082
40083 2006-08-28  Eric Blake  <ebb9@byu.net>
40084
40085         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40086
40087 2006-08-28  Bruno Haible  <bruno@clisp.org>
40088
40089         * modules/c-strstr: New file, from GNU gettext.
40090         * MODULES.html.sh (String handling): Add c-strstr.
40091
40092 2006-08-28  Bruno Haible  <bruno@clisp.org>
40093
40094         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40095         macros.
40096         Reported by Eric Blake.
40097
40098 2006-08-28  Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40101         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40102         * lib/vasprintf.c: Include errno.h, limits.h.
40103         (EOVERFLOW): New fallback definition.
40104         (vasprintf): Test here whether the string length is > INT_MAX.
40105         * lib/vsnprintf.c: Include errno.h, limits.h.
40106         (EOVERFLOW): New fallback definition.
40107         (vsnprintf): Fix bug when generated string was too long for the buffer.
40108         Test here whether the string length is > INT_MAX.
40109
40110 2006-08-28  Bruno Haible  <bruno@clisp.org>
40111
40112         * lib/inttypes_.h (SCNX*): Remove definitions.
40113         Reported by Eric Blake.
40114
40115 2006-08-28  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/c-strstr.h: New file, from GNU gettext.
40118         * lib/c-strstr.c: New file, from GNU gettext.
40119
40120 2006-08-28  Bruno Haible  <bruno@clisp.org>
40121
40122         * gnulib-tool: Reorder some statements.
40123
40124 2006-08-28  Bruno Haible  <bruno@clisp.org>
40125
40126         * gnulib-tool: New option --makefile-name.
40127         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40128         $makefile_name.
40129         (func_import): Write $makefile_name to the cache file, and read it from
40130         there unless explicitly specified. Use $makefile_name as file name
40131         instead of Makefile.am. Adjust the recommendations accordingly.
40132
40133 2006-08-28  Bruno Haible  <bruno@clisp.org>
40134
40135         * gnulib-tool (func_verify_module): Check against misapplying patch.
40136
40137 2006-08-28  Bruno Haible  <bruno@clisp.org>
40138
40139         * gnulib-tool (func_relativize, func_relconcat): New functions.
40140         Give an error if --local-dir is given with --update.
40141         Remove trailing slashes from $local_gnulib_dir.
40142         (func_import): Store the relativized $local_gnulib_dir in
40143         gnulib-cache.m4, and read it from there if not specified explicitly.
40144
40145 2006-08-28  Bruno Haible  <bruno@clisp.org>
40146
40147         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40148         is the current directory. Respect also $local_gnulib_dir.
40149
40150 2006-08-28  Bruno Haible  <bruno@clisp.org>
40151             Simon Josefsson  <jas@extundo.com>
40152
40153         BeOS portability.
40154         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40155
40156 2006-08-27  Jim Meyering  <jim@meyering.net>
40157
40158         * doc/visibility.texi: Remove duplicate word: "pointer".
40159
40160 2006-08-26  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40163         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40164         (Makefile.am): Create inttypes.h from inttypes_.h.
40165         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40166
40167         * modules/imaxabs: New file.
40168
40169         * modules/imaxdiv: New file.
40170
40171 2006-08-26  Bruno Haible  <bruno@clisp.org>
40172
40173         * m4/inttypes.m4: New file.
40174         * m4/_inttypes_h.m4: Remove file.
40175         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40176         PRI_MACROS_BROKEN.
40177         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40178
40179         * m4/imaxabs.m4: New file.
40180
40181         * m4/imaxdiv.m4: New file.
40182
40183 2006-08-26  Bruno Haible  <bruno@clisp.org>
40184
40185         * lib/inttypes_.h: New file.
40186         * lib/inttypes.h: Remove file.
40187         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40188
40189         * lib/imaxabs.c: New file.
40190
40191         * lib/imaxdiv.c: New file.
40192
40193 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40194
40195         New config-h module, so that "make" output needn't be cluttered
40196         by -DHAVE_CONFIG_H.
40197         * MODULES.html.sh (Support for building libraries and executables):
40198         Add config-h.
40199         * modules/config-h: New file.
40200         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40201         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40202         the config-h module is used.
40203
40204         New configmake module, so that "make" output needn't be cluttered
40205         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40206         * MODULES.html.sh (Support for building libraries and executables):
40207         Add configmake.
40208         * modules/configmake: New file.
40209
40210 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40211
40212         * m4/config-h.m4: New file.
40213
40214 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40215
40216         * config/srclist.txt: Add elisp-comp.
40217
40218 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40219
40220         * MODULES.html.sh (Support for building libraries and executables):
40221         Add elisp-comp.
40222         * build-aux/elisp-comp: New file.
40223         * modules/elisp-comp: New file.
40224
40225 2006-08-24  Bruno Haible  <bruno@clisp.org>
40226
40227         * gnulib-tool (func_create_testdir): Use non-default values of
40228         sourcebase and m4base.
40229
40230 2006-08-24  Bruno Haible  <bruno@clisp.org>
40231
40232         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40233         HTML structure.
40234
40235 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40236
40237         * modules/openat (Depends-on): Add lchown.
40238
40239 2006-08-23  Bruno Haible  <bruno@clisp.org>
40240
40241         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40242         of gl_LOCK_EARLY instead of gl_LOCK.
40243
40244 2006-08-23  Bruno Haible  <bruno@clisp.org>
40245
40246         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40247         on OSF/1 to no.
40248         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40249
40250 2006-08-23  Bruno Haible  <bruno@clisp.org>
40251
40252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40253         as unusable.
40254
40255         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40256         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40257         (gl_LOCK): New macro.
40258
40259 2006-08-22  Simon Josefsson  <jas@extundo.com>
40260
40261         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40262         to md5 module.
40263
40264 2006-08-22  Simon Josefsson  <jas@extundo.com>
40265
40266         * MODULES.html.sh: Add "Support for maintaining and release
40267         projects".
40268
40269         * build-aux/gnupload: New file, from coreutils.
40270
40271 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40272
40273         Avoid the need for AC_LIBSOURCES in m4 macros.
40274         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40275         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40276         * modules/check-version (EXTRA_DIST): Add check-version.h.
40277         * modules/crc (EXTRA_DIST): Add crc.h.
40278         * modules/des (EXTRA_DIST): Add des.h.
40279         * modules/gc (EXTRA_DIST): Add gc.h.
40280         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40281         * modules/getline (EXTRA_DIST): Add getline.h.
40282         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40283         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40284         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40285         * modules/md2 (EXTRA_DIST): Add md2.h.
40286         * modules/md4 (EXTRA_DIST): Add md4.h.
40287         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40288         * modules/read-file (EXTRA_DIST): Add read-file.h.
40289         * modules/readline (EXTRA_DIST): Add readline.h.
40290         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40291         rijndael-api-fst.h.
40292
40293 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40294
40295         * m4/rijndael.m4 (gl_ARCFOUR):
40296         * m4/arctwo.m4 (gl_ARCTWO):
40297         * m4/check-version.m4 (gl_CHECK_VERSION):
40298         * m4/crc.m4 (gl_CRC):
40299         * m4/des.m4 (gl_DES):
40300         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40301         * m4/gc.m4 (gl_GC):
40302         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40303         * m4/getline.m4 (gl_FUNC_GETLINE):
40304         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40305         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40306         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40307         * m4/md2.m4 (gl_MD2):
40308         * m4/md4.m4 (gl_MD4):
40309         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40310         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40311         * m4/readline.m4 (gl_FUNC_READLINE):
40312         * m4/rijndael.m4 (gl_RIJNDAEL):
40313         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40314         to get the necessary .h files and whatnot.
40315
40316 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40317
40318         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40319         gnulib rather than the other way around.
40320         * config/srclistvars.sh (COREUTILS): Remove.
40321
40322 2006-08-22  Jim Meyering  <jim@meyering.net>
40323
40324         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40325
40326         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40327
40328 2006-08-22  Eric Blake  <ebb9@byu.net>
40329
40330         * modules/regexprops-generic: New file.
40331         * MODULES.html.sh (Support for building documentation): List it.
40332
40333 2006-08-22  Eric Blake  <ebb9@byu.net>
40334
40335         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40336         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40337         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40338         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40339
40340 2006-08-22  Bruno Haible  <bruno@clisp.org>
40341
40342         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40343         and lib_LTLIBRARIES like the other lib_* variables.
40344
40345 2006-08-22  Bruno Haible  <bruno@clisp.org>
40346
40347         * build-aux/x-to-1.in: New file, from GNU gettext.
40348
40349 2006-08-22  Bruno Haible  <bruno@clisp.org>
40350
40351         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40352         <utmpx.h> exists.
40353
40354 2006-08-22  Bruno Haible  <bruno@clisp.org>
40355
40356         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40357         <utmpx.h> exists.
40358
40359 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40360
40361         BeOS portability.
40362         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40363         exist.
40364         Problem reported by Bruno Haible.
40365
40366 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40367
40368         Avoid the need for AC_LIBSOURCES in m4 macros.
40369         * modules/acl (EXTRA_DIST): Add acl.h.
40370         * modules/argmatch (Files): Add m4/argmatch.m4.
40371         (configure.ac): Add gl_ARGMATCH.
40372         (EXTRA_DIST): Renamed from lib_SOURCES, for
40373         consistency with the other modules.  Remove argmatch.c.
40374         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40375         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40376         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40377         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40378         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40379         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40380         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40381         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40382         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40383         * modules/closeout (EXTRA_DIST): Add closeout.h.
40384         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40385         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40386         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40387         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40388         dirname.h; remove basename.c and stripslash.c.
40389         * modules/exclude (EXTRA_DIST): Add exclude.h.
40390         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40391         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40392         * modules/file-type (EXTRA_DIST): Add file-type.h.
40393         * modules/filemode (EXTRA_DIST): Add filemode.h.
40394         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40395         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40396         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40397         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40398         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40399         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40400         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40401         * modules/getdate (EXTRA_DIST): Add getdate.c.
40402         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40403         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40404         * modules/getpass (EXTRA_DIST): Add getpass.h.
40405         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40406         * modules/group-member (EXTRA_DIST): Add group-member.h.
40407         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40408         * modules/hash (EXTRA_DIST): Add hash.h.
40409         * modules/human (EXTRA_DIST): Add human.h.
40410         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40411         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40412         * modules/lchown (EXTRA_DIST): Add lchown.h.
40413         * modules/long-options (EXTRA_DIST): Add long-options.h.
40414         * modules/lstat (EXTRA_DIST): Add lstat.h.
40415         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40416         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40417         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40418         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40419         * modules/memxor (EXTRA_DIST): Add memxor.h.
40420         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40421         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40422         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40423         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40424         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40425         * modules/physmem (EXTRA_DIST): Add physmem.h.
40426         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40427         * modules/posixver (EXTRA_DIST): Add posixver.h.
40428         * modules/quote (EXTRA_DIST): Add quote.h.
40429         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40430         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40431         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40432         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40433         regex_internal.h regexec.c.
40434         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40435         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40436         * modules/same (EXTRA_DIST): Add same.h.
40437         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40438         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40439         * modules/savedir (EXTRA_DIST): Add savedir.h.
40440         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40441         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40442         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40443         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40444         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40445         * modules/strdup (EXTRA_DIST): Add strdup.h.
40446         * modules/strftime (EXTRA_DIST): Add strftime.h.
40447         * modules/strndup (EXTRA_DIST): Add strndup.h.
40448         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40449         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40450         * modules/time_r (EXTRA_DIST): Add time_r.h.
40451         * modules/timespec (EXTRA_DIST): Add timespec.h.
40452         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40453         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40454         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40455         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40456         * modules/userspec (EXTRA_DIST): Add userspec.h.
40457         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40458         * modules/utimens (EXTRA_DIST): Add utimens.h.
40459         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40460         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40461         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40462         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40463         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40464         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40465         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40466         * modules/yesno (EXTRA_DIST): Add yesno.h.
40467
40468 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40469
40470         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40471
40472         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40473         * m4/dev-ino.m4, same-inode.m4: Remove.
40474
40475         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40476         * m4/acl.m4 (AC_FUNC_ACL):
40477         * m4/backupfile.m4 (gl_BACKUPFILE):
40478         * m4/c-strtod.m4 (gl_C99_STRTOLD):
40479         * m4/canon-host.m4 (gl_CANON_HOST):
40480         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40481         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40482         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40483         * m4/cloexec.m4 (gl_CLOEXEC):
40484         * m4/close-stream.m4 (gl_CLOSE_STREAM):
40485         * m4/closeout.m4 (gl_CLOSEOUT):
40486         * m4/dirfd.m4 (gl_FUNC_DIRFD):
40487         * m4/dirname.m4 (gl_DIRNAME):
40488         * m4/exclude.m4 (gl_EXCLUDE):
40489         * m4/exitfail.m4 (gl_EXITFAIL):
40490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40491         * m4/file-type.m4 (gl_FILE_TYPE):
40492         * m4/filemode.m4 (gl_FILEMODE):
40493         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40494         * m4/fpending.m4 (gl_FUNC_FPENDING):
40495         * m4/fprintftime.m4 (gl_FPRINTFTIME):
40496         * m4/fts.m4 (gl_FUNC_FTS):
40497         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40498         * m4/getdate.m4 (gl_GETDATE):
40499         * m4/gethrxtime.m4 (gl_GETHRXTIME):
40500         * m4/getpagesize.m4 (gl_GETPAGESIZE):
40501         * m4/getpass.m4 (gl_FUNC_GETPASS):
40502         * m4/gettime.m4 (gl_GETTIME):
40503         * m4/getugroups.m4 (gl_GETUGROUPS):
40504         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40505         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40506         * m4/hard-locale.m4 (gl_HARD_LOCALE):
40507         * m4/hash.m4 (gl_HASH):
40508         * m4/idcache.m4 (gl_IDCACHE):
40509         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40510         * m4/lchown.m4 (gl_FUNC_LCHOWN):
40511         * m4/long-options.m4 (gl_LONG_OPTIONS):
40512         * m4/lstat.m4 (gl_FUNC_LSTAT):
40513         * m4/md5.m4 (gl_MD5):
40514         * m4/memcasecmp.m4 (gl_MEMCASECMP):
40515         * m4/memcoll.m4 (gl_MEMCOLL):
40516         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40518         * m4/memxor.m4 (gl_MEMXOR):
40519         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40520         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40521         * m4/modechange.m4 (gl_MODECHANGE):
40522         * m4/mountlist.m4 (gl_MOUNTLIST):
40523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40524         * m4/openat.m4 (gl_FUNC_OPENAT):
40525         * m4/pathmax.m4 (gl_PATHMAX):
40526         * m4/physmem.m4 (gl_PHYSMEM):
40527         * m4/posixtm.m4 (gl_POSIXTM):
40528         * m4/posixver.m4 (gl_POSIXVER):
40529         * m4/quote.m4 (gl_QUOTE):
40530         * m4/quotearg.m4 (gl_QUOTEARG):
40531         * m4/readtokens.m4 (gl_READTOKENS):
40532         * m4/readutmp.m4 (gl_READUTMP):
40533         * m4/regex.m4 (gl_REGEX):
40534         * m4/safe-read.m4 (gl_SAFE_READ):
40535         * m4/safe-write.m4 (gl_SAFE_WRITE):
40536         * m4/same.m4 (gl_SAME):
40537         * m4/save-cwd.m4 (gl_SAVE_CWD):
40538         * m4/savedir.m4 (gl_SAVEDIR):
40539         * m4/settime.m4 (gl_SETTIME):
40540         * m4/sha1.m4 (gl_SHA1):
40541         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40542         * m4/stat-macros.m4 (gl_STAT_MACROS):
40543         * m4/stat-time.m4 (gl_STAT_TIME):
40544         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40545         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40546         * m4/strdup.m4 (gl_FUNC_STRDUP):
40547         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40548         * m4/strndup.m4 (gl_FUNC_STRNDUP):
40549         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40550         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40551         * m4/time_r.m4 (gl_TIME_R):
40552         * m4/timespec.m4 (gl_TIMESPEC):
40553         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40554         * m4/unlinkdir.m4 (gl_UNLINKDIR):
40555         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40556         * m4/userspec.m4 (gl_USERSPEC):
40557         * m4/utimecmp.m4 (gl_UTIMECMP):
40558         * m4/utimens.m4 (gl_UTIMENS):
40559         * m4/xalloc.m4 (gl_XALLOC):
40560         * m4/xgetcwd.m4 (gl_XGETCWD):
40561         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40562         * m4/xreadlink.m4 (gl_XREADLINK):
40563         * m4/xstrtod.m4 (gl_XSTRTOD):
40564         * m4/yesno.m4 (gl_YESNO):
40565         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40566         to get the necessary .h files and whatnot.
40567
40568 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
40569             Bruno Haible  <bruno@clisp.org>
40570
40571         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40572         /bin/sh understanding of '!' conditional negation.
40573
40574 2006-08-21  Jim Meyering  <jim@meyering.net>
40575
40576         * modules/openat (Depends-on): Really alphabetize.
40577
40578         * modules/acl (Depends-on): Add error and quote.
40579
40580         * check-module (find_included_lib_files): Add at-func.c to the
40581         ok-to-include-more-than-once white list.
40582
40583         * modules/openat (Depends-on): Add lstat.  Alphabetize.
40584
40585 2006-08-21  Bruno Haible  <bruno@clisp.org>
40586
40587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40588         Emit a pkgdata_DATA variable only if some snippets add contents to it.
40589         Reported by Martin Lambers <marlam@marlam.de>.
40590
40591 2006-08-21  Bruno Haible  <bruno@clisp.org>
40592
40593         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40594         specify an installation location, don't emit a noinst_LIBRARIES or
40595         noinst_LTLIBRARIES assignment.
40596
40597 2006-08-21  Bruno Haible  <bruno@clisp.org>
40598
40599         BeOS portability.
40600         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40601         BeOS has mbrtowc() but no <wctype.h>.
40602
40603 2006-08-21  Bruno Haible  <bruno@clisp.org>
40604
40605         BeOS portability.
40606         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40607         exist.
40608
40609 2006-08-21  Bruno Haible  <bruno@clisp.org>
40610
40611         BeOS portability.
40612         * lib/mbchar.h: Include <wctype.h> only if it exists.
40613
40614 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40615
40616         Remove files that are no longer needed by their respective modules.
40617         * m4/obstack.m4: Remove.
40618         * m4/strerror_r.m4: Remove.
40619         * m4/uint32_t.m4: Remove.
40620         * m4/uintptr_t.m4: Remove.
40621         * m4/ullong_max.m4: Remove.
40622         * m4/xstrtoimax.m4: Remove.
40623         * m4/xstrtoumax.m4: Remove.
40624
40625         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40626         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40627         dependencies now capture this.
40628
40629         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40630         Do not use AC_LIBSOURCES, since gnulib modules now do this.
40631         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40632         * m4/human.m4 (gl_HUMAN): Likewise.
40633         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40634         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40635
40636         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40637
40638         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40639         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40640         stdint.
40641         * m4/human.m4 (gl_HUMAN): Likewise.
40642         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40643         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40644         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40645         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40646         * m4/xstrtol (gl_XSTRTOL): Likewise.
40647
40648         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40649         AC_TYPE_LONG_LONG_INT.
40650         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40651         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40652         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40653         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40654
40655         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40656         on stdbool.
40657
40658         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40659         (gl_PREREQ_XSTRTOUL): Remove.
40660
40661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40662
40663         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40664         mode.
40665
40666 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40667
40668         Add and change modules to make it easier for coreutils to use
40669         gnulib-tool.
40670         * modules/backupfile (Files): Remove m4/d-ino.m4.
40671         (Depends-on): Add d-ino.
40672         * modules/cycle-check (Depends-on): Add stdint.
40673         (lib_SOURCES): Add cycle-check.h.
40674         * modules/d-ino: New module.
40675         * modules/d-type: New module.
40676         * modules/error (Files): Remove m4/strerror_r.m4.
40677         * modules/filemode (Files): Add m4/st_dm_mode.m4.
40678         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40679         m4/inttypes_h.m4, m4/uintmax_t.m4.
40680         (Depends-on): Add stdint.
40681         (lib_SOURCES): Add fsusage.h.
40682         * modules/getcwd (Files): Remove d-ino.m4.
40683         (Depends-on): Add d-ino.
40684         * modules/getndelim2 (Depends-on): Add stdint.
40685         * modules/glob (Files): Remove m4/d-type.m4.
40686         (Depends-on): Add d-type.
40687         * modules/host-os: New module.
40688         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
40689         m4/inttypes_h.m4, m4/uintmax_t.m4.
40690         * Depends-on: Add stdint.
40691         (lib_SOURCES): Add human.h.
40692         * modules/inttostr (Files): Remove m4/intmax_t.m4,
40693         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40694         m4/uintmax_t.m4, m4/ulonglong.m4.
40695         (Depends-on): Add stdint.
40696         (EXTRA_DIST): Add inttostr.h.
40697         * modules/lchmod: New module.
40698         * modules/link-follow: New module.
40699         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40700         (Depends-on): Add lchmod.
40701         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40702         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40703         (Depends-on): Add stdint.
40704         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40705         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40706         (Depends-on): Add stdint.
40707         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40708         * modules/perl: New module.
40709         * modules/regex (Depends-on): Add stdint.
40710         * modules/rmdir-errno: New module.
40711         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40712         m4/intmax_t.m4.
40713         (Depends-on): Add stdint.
40714         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40715         m4/uintmax_t.m4.
40716         (Depends-on): Add stdint.
40717         * modules/unlink-busy: New module.
40718         * modules/utimecmp (Depends-on): Add stdint.
40719         * modules/uptime: New module.
40720         * modules/winsz-ioctl: New module.
40721         * modules/winsz-termios: New module.
40722         * modules/xnanosleep (Depends-on): Add nanosleep.
40723         * modules/ullong_max: Remove.
40724         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
40725         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
40726         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
40727         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
40728         (Depends-on): Add inttypes.
40729         (lib_SOURCES): Add xstrtol.h.
40730         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
40731         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
40732         * MODULES.html.sh: Move 'assert' into the assert section.
40733         Move 'dummy' into the linking section.
40734         Remove ullong_max.
40735         Add section for compatibility checks for POSIX:2001 functions,
40736         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
40737         winsz-ioctl, and winsz-termios into it.
40738         Add lchmod.
40739         Add top-level Misc section and put host-os, perl, and uptime
40740         into it.
40741
40742 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40743
40744         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
40745         now assume the stdint module.  Do not include inttypes.h.
40746         * lib/fsusage.h: Likewise.
40747         * lib/getndelim2.c: Likewise.
40748         * lib/human.h: Likewise.
40749         * lib/inttostr.h: Likewise.
40750         * lib/obstack.c: Likewise.
40751         * lib/regex_internal.h: Likewise.
40752         * lib/tempname.c: Likewise.
40753         * lib/utimecmp.c: Likewise.
40754         * lib/xstrtol.h: Likewise.
40755
40756         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
40757
40758         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
40759         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
40760         * lib/xtime.h: Likewise.
40761
40762 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40763
40764         * modules/openat (Files): Add lib/fchmodat.c.
40765         Fixes problem reported by Jay Youngman.
40766
40767 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40768
40769         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
40770         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
40771
40772 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
40773             Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
40776         and is a script that invokes bison. Tighten the code. Add comments.
40777
40778 2006-08-18  Jim Meyering  <jim@meyering.net>
40779
40780         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
40781         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
40782         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
40783         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
40784
40785 2006-08-18  Bruno Haible  <bruno@clisp.org>
40786
40787         * modules/bison-i18n: New file.
40788         * MODULES.html.sh (Internationalization functions): Add it.
40789
40790 2006-08-18  Bruno Haible  <bruno@clisp.org>
40791
40792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
40793         sys/statvfs.h. When getmntinfo was found, check its declaration and
40794         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
40795
40796 2006-08-18  Bruno Haible  <bruno@clisp.org>
40797
40798         * m4/bison-i18n.m4: New file, from bison.
40799
40800 2006-08-18  Bruno Haible  <bruno@clisp.org>
40801
40802         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
40803         (ME_DUMMY): Treat "kernfs" as a dummy.
40804         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
40805
40806 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40807
40808         Update from coreutils.
40809
40810         2006-08-15  Jim Meyering  <jim@meyering.net>
40811
40812         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
40813
40814         2006-01-17  Jim Meyering  <jim@meyering.net>
40815
40816         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
40817
40818         2006-01-11  Jim Meyering  <jim@meyering.net>
40819
40820         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
40821         Check for the lchmod function.
40822
40823 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40824
40825         Update from coreutils.
40826
40827         * lib/__fpending.h: Add copyright notice.
40828         * lib/fprintftime.h: Likewise.
40829         * lib/savedir.c: Use (C) in copyright notice.
40830         * lib/savedir.h: Likewise.
40831
40832         2006-08-15  Jim Meyering  <jim@meyering.net>
40833
40834         * lib/at-func.c: New file, with the logic of all emulated at-functions.
40835         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
40836         in support of the EXPECTED_ERRNO macro.
40837         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
40838         definitions.  Instead, define the appropriate symbols and include
40839         "at-func.c".
40840         * lib/mkdirat.c (mkdirat): Likewise.
40841         * lib/fchmodat.c (fchmodat): Likewise.
40842         (ENOSYS): Remove definition.
40843         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
40844         it.  Don't include "unistd--.h" -- it wasn't ever used.
40845
40846         2006-01-17  Jim Meyering  <jim@meyering.net>
40847
40848         Rewrite fts.c not to change the current working directory,
40849         by using openat, fstatat, fdopendir, etc..
40850
40851         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
40852         (HAVE_OPENAT_SUPPORT): Define.
40853         [_LIBC] (fchdir): Don't undef or define; no longer used.
40854         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
40855         Now, this `function' always succeeds, and consumes its file descriptor
40856         parameter -- so callers must not close such FDs.  Update callers.
40857         (diropen_fd, opendirat, cwd_advance_fd): New functions.
40858         (diropen): Add parameter, SP.  Adjust all callers.
40859         Implement using diropen_fd, rather than open.
40860         (fts_open): Initialize new member, fts_cwd_fd.
40861         Remove fts_rft-setting code.
40862         (fts_close): Close fts_cwd_fd, if necessary.
40863         (__opendir2): Define in terms of opendir or opendirat,
40864         depending on whether the FST_NOCHDIR flag is set.
40865         (fts_build): Since fts_safe_changedir consumes its FD, and since
40866         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
40867         and close the dup'd file descriptor upon failure.
40868         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
40869         (fts_safe_changedir): Tweak semantics to reflect that this function
40870         now calls cwd_advance_fd and hence consumes its FD argument.
40871         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
40872         [struct FTS] (fts_rft): Remove now-unused member.
40873         [struct FTS] (fts_cycle.state): Improve comment.
40874
40875         * lib/openat.c (openat_needs_fchdir): New function.
40876         * lib/openat.h (openat_needs_fchdir): Declare it.
40877
40878 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40879
40880         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
40881         Problem and fix reported by Pádraig Brady in
40882         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
40883
40884 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
40887
40888 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40889
40890         * lib/memcoll.c (memcoll): Optimize for the common case where the
40891         arguments are bytewise equal.
40892
40893 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40894
40895         * doc/regexprops-generic.texi: Add a copyright notice.
40896
40897 2006-08-15  Bruno Haible  <bruno@clisp.org>
40898
40899         * modules/tmpdir (License): Change to LGPL.
40900
40901 2006-08-15  Bruno Haible  <bruno@clisp.org>
40902
40903         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
40904         module.
40905
40906 2006-08-14  Simon Josefsson  <jas@extundo.com>
40907
40908         * config/srclist.txt: Add gnupload.
40909
40910 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40911
40912         Change copyright notice from LGPL 2 to GPL 2, since that's the
40913         standard form used in the gnulib repository.
40914         * tests/test-lock.c: Likewise.
40915         * tests/test-stdint.c: Likewise.
40916         * tests/test-tls.c: Likewise.
40917
40918         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
40919         prelude-manager.  User shorter URLs for GNU projects, without '?'.
40920         Add copyright notice.
40921
40922         * check-module: Add copyright notice.  Output a copyright
40923         notice if "--version" is specified.
40924         * modules/COPYING: New file.
40925         * tests/test-getaddrinfo.c: Add copyright notice.
40926         * tests/test-verify.c: Likewise.
40927
40928 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40929
40930         Change copyright notice from LGPL 2 to GPL 2, since that's the
40931         standard form used in the gnulib repository.
40932         * lib/lock.c: LGPL -> GPL.
40933         * lib/lock.h: Likewise.
40934         * lib/strnlen1.c: Likewise.
40935         * lib/strnlen1.h: Likewise.
40936         * lib/tls.c: Likewise.
40937         * lib/tls.h: Likewise.
40938         * lib/tmpdir.c: Likewise.
40939
40940         * lib/TODO: Remove; this belongs only in coreutils.
40941
40942 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40943
40944         Add copyright notices to long-enough files that lack them, since
40945         otherwise the files aren't clearly free.  Use the same notice that
40946         getdate.texi already uses.
40947         * doc/alloca-opt.texi: Add copyright notice.
40948         * doc/alloca.texi: Likewise.
40949         * doc/ctime.texi: Likewise.
40950         * doc/functions.texi: Likewise.
40951         * doc/gcd.texi: Likewise.
40952         * doc/gnulib-tool.texi: Likewise.
40953         * doc/inet_ntoa.texi: Likewise.
40954         * doc/visibility.texi: Likewise.
40955
40956         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
40957         * doc/quote.texi: Add copyright notice.
40958
40959         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
40960         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
40961         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
40962         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
40963         is now obsolete, and give a pointer to the Sun list.
40964         Add copyright notice.
40965
40966 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40967
40968         * config/srclistvars.sh: Add copyright notice.
40969
40970 2006-08-14  Eric Blake  <ebb9@byu.net>
40971
40972         Import the following change from libc:
40973
40974         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
40975
40976         Upstream bug 2997.
40977         * lib/misc/error.c: Add space between program name and message if file
40978         name is missing.
40979
40980 2006-08-12  Karl Berry  <karl@gnu.org>
40981
40982         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
40983         remove, these originate in gnulib now.
40984
40985 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40986
40987         * doc/Makefile (standards.info standards.html standards.dvi):
40988         Also depend on make-stds.texi.
40989
40990 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40991
40992         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
40993         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
40994
40995         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
40996         in wchar_t.  Problem reported by Eric Blake.
40997
40998         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
40999         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41000         Also, help the compiler to keep LEN in a register.
41001
41002 2006-08-11  Eric Blake  <ebb9@byu.net>
41003
41004         * users.txt: Sort.  Add tar.
41005
41006 2006-08-11  Bruno Haible  <bruno@clisp.org>
41007
41008         * users.txt: New file.
41009
41010 2006-08-11  Bruno Haible  <bruno@clisp.org>
41011
41012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41013         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41014
41015 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41016
41017         * modules/snprintf (Depends-on): Remove minmax.
41018         (Maintainer): Add self and Bruno.
41019
41020 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41021
41022         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41023         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41024         (EOVERFLOW): Define if the system does not.
41025         Do not include "minmax.h"; it wasn't used.
41026         (snprintf): Don't assume size_t promotes to an unsigned type.
41027         Fix bug when generated string was too long for the buffer: the
41028         buffer's contents are supposed to be the initial prefix of the
41029         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41030         exceeds INT_MAX; do the check ourselves.
41031
41032         Import the following changes from libc:
41033
41034         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41035
41036         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41037         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41038         set wc to the byte which couldn't be converted.
41039         (re_string_reconstruct): Don't clear valid_raw_len before calling
41040         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41041         tip_context using re_string_context_at.
41042
41043         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41044
41045         * lib/posix/regex.h: g++ still cannot handled [restrict].
41046
41047         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41048
41049         * lib/posix/regex.h: Remove special handling for VMS.
41050
41051 2006-08-10  Jim Meyering  <jim@meyering.net>
41052
41053         * modules/same-inode: New module.
41054         * modules/dev-ino: New module.
41055         * modules/cycle-check: Depend on these modules, rather than simply
41056         including their .h files.
41057         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41058         required via m4/cycle-check.m4.
41059         * modules/same: Depend on new same-inode module, rather than
41060         including same-inode.h.
41061         * modules/chdir-safer: New file.
41062
41063         * modules/chown (Depends-on): Add stat-macros.
41064
41065 2006-08-10  Jim Meyering  <jim@meyering.net>
41066
41067         * m4/cycle-check.m4: New file.
41068         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41069         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41070
41071 2006-08-10  Eric Blake  <ebb9@byu.net>
41072
41073         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41074         in from original proposal.
41075
41076 2006-08-10  Eric Blake  <ebb9@byu.net>
41077         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41078
41079         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41080         namespace.
41081
41082 2006-08-10  Bruno Haible  <bruno@clisp.org>
41083
41084         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41085         as well.
41086
41087 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41088
41089         Sync from coreutils.
41090
41091         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41092
41093         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41094         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41095
41096 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41097
41098         * modules/restrict: Remove; no longer needed now that we assume
41099         Autoconf 2.59 or later.
41100         * MODULES.html.sh: Remove 'restrict'.
41101         * modules/argp (Depends-on): Remove 'restrict'.
41102         * modules/base64 (Depends-on): Likewise.
41103         * modules/gc (Depends-on): Likewise.
41104         * modules/getaddrinfo (Depends-on): Likewise.
41105         * modules/glob (Depends-on): Likewise.
41106         * modules/inet_ntop (Depends-on): Likewise.
41107         * modules/inet_pton (Depends-on): Likewise.
41108         * modules/memxor (Depends-on): Likewise.
41109         * modules/regex (Depends-on): Likewise.
41110         * modules/strtok_r (Depends-on): Likewise.
41111         * modules/time_r (Depends-on): Likewise.
41112
41113 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41114
41115         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41116         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41117         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41118         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41119         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41120         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41121         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41122         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41123
41124         Merge from coreutils.
41125         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41126         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41127         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41128         * m4/time_r.m4 (gl_TIME_R): Likewise.
41129
41130 2006-08-09  Karl Berry  <karl@gnu.org>
41131
41132         * config/srclist.txt: no more gettext-tools, per Bruno.
41133
41134 2006-08-08  Eric Blake  <ebb9@byu.net>
41135
41136         * modules/verror: New module.
41137         * MODULES.html.sh: Document it.
41138
41139 2006-08-08  Eric Blake  <ebb9@byu.net>
41140
41141         * lib/verror.h, lib/verror.c: New files.
41142
41143 2006-08-08  Eric Blake  <ebb9@byu.net>
41144
41145         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41146         verror_at_line output complies with GNU Coding Standards even when
41147         file is NULL.
41148
41149 2006-08-07  Bruno Haible  <bruno@clisp.org>
41150
41151         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41152         versions of AIX.
41153         Reported by Ralf Wildenhues.
41154
41155 2006-08-07  Bruno Haible  <bruno@clisp.org>
41156
41157         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41158         in an AC_DEFUN. Needed so that the autoconf snippets can use
41159         AC_REQUIRE.
41160
41161 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41162
41163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41164         Initialize pkgdata_DATA.
41165         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41166         overriding it.
41167
41168 2006-08-06  Eric Blake  <ebb9@byu.net>
41169
41170         * lib/error.h: Fold in some upstream changes from glibc.
41171         * lib/error.c: Likewise.
41172
41173 2006-08-04  Bruno Haible  <bruno@clisp.org>
41174
41175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41176         Make the mostlyclean-local rule depend on mostlyclean-generic.
41177         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41178
41179 2006-07-31  Bruno Haible  <bruno@clisp.org>
41180
41181         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41182         <stdlib.h>, <string.h>.
41183
41184 2006-07-30  Bruno Haible  <bruno@clisp.org>
41185
41186         * modules/readlink (License): Change to LGPL.
41187
41188 2006-07-30  Bruno Haible  <bruno@clisp.org>
41189
41190         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41191         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41192         set PKGDATADIR to point to it.
41193
41194 2006-07-30  Bruno Haible  <bruno@clisp.org>
41195
41196         * modules/csharpexec (configure.ac): Comment out macro invocation.
41197         * modules/javaexec (configure.ac): Likewise.
41198         * modules/javacomp-script (configure.ac): Likewise.
41199
41200         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41201
41202 2006-07-30  Bruno Haible  <bruno@clisp.org>
41203
41204         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41205         linked-list.
41206
41207 2006-07-30  Bruno Haible  <bruno@clisp.org>
41208
41209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41210
41211 2006-07-30  Bruno Haible  <bruno@clisp.org>
41212
41213         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41214         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41215         get removed.
41216
41217 2006-07-29  Bruno Haible  <bruno@clisp.org>
41218
41219         Make it possible for gnulib-tool to work with locally modified or
41220         augmented gnulib repositories.
41221         * gnulib-tool (func_usage): Document --local-dir option.
41222         (local_gnulib_dir): New variable.
41223         Handle --local-dir option.
41224         (func_lookup_file): New function.
41225         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41226         (func_get_description, func_get_filelist, func_get_description,
41227         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41228         func_get_automake_snippet, func_get_include_directive,
41229         func_get_license, func_get_maintainer): Use func_lookup_file.
41230         (func_import, func_create_testdir): Use func_lookup_file.
41231
41232 2006-07-29  Bruno Haible  <bruno@clisp.org>
41233
41234         * modules/setenv (Depends-on): Add unistd.
41235
41236 2006-07-29  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41239
41240 2006-07-29  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41243
41244 2006-07-29  Bruno Haible  <bruno@clisp.org>
41245
41246         * gnulib-tool (import, update): If there is no Makefile.am, look at
41247         aclocal.m4, instead of bailing out.
41248
41249 2006-07-29  Bruno Haible  <bruno@clisp.org>
41250
41251         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41252         Categorize the options by when they are useful.
41253
41254 2006-07-29  Bruno Haible  <bruno@clisp.org>
41255
41256         * gnulib-tool (func_usage): Document option --no-libtool.
41257         Handle option --no-libtool.
41258         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41259         for changed semantics of $libtool variable.
41260         (func_import): Likewise. If libtool is not used, show this through
41261         an option --no-libtool.
41262         (func_create_testdir): Update.
41263
41264 2006-07-29  Bruno Haible  <bruno@clisp.org>
41265
41266         * gnulib-tool (func_import): Extend error message about missing
41267         --doc-base.
41268
41269 2006-07-29  Bruno Haible  <bruno@clisp.org>
41270
41271         * gnulib-tool (func_import): Don't create the $docbase directory if
41272         there is no file to store there.
41273
41274 2006-07-29  Bruno Haible  <bruno@clisp.org>
41275
41276         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41277         relevant, look for configure.ac there, not in the current directory.
41278         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41279
41280 2006-07-29  Bruno Haible  <bruno@clisp.org>
41281
41282         * gnulib-tool (SORT): New variable.
41283         (func_usage): Undocument --assume-autoconf option.
41284         Remove --assume-autoconf option handling.
41285         (autoconf_minversion): Determine from the contents of configure.ac.
41286         (func_import): Remove autoconf_minversion handling.
41287         Suggested by Eric Blake.
41288
41289 2006-07-29  Bruno Haible  <bruno@clisp.org>
41290
41291         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41292
41293 2006-07-29  Bruno Haible  <bruno@clisp.org>
41294
41295         * config/srclist.txt (*setenv.[ch]): Remove rules.
41296
41297 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41298
41299         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41300
41301 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41302
41303         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41304         arpa/inet.h.
41305
41306 2006-07-28  Simon Josefsson  <jas@extundo.com>
41307
41308         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41309         * modules/inet_pton (Depends-on): Likewise.
41310
41311 2006-07-28  Simon Josefsson  <jas@extundo.com>
41312
41313         * m4/netinet_in_h.m4: New file.
41314
41315 2006-07-28  Simon Josefsson  <jas@extundo.com>
41316
41317         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41318         #include's.
41319
41320 2006-07-28  Simon Josefsson  <jas@extundo.com>
41321
41322         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41323         #include's.
41324
41325 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41326
41327         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41328         setgid on directories only if they set these bits.
41329         * lib/modechange.h: Remove obsolete comment about masks.
41330
41331 2006-07-28  Eric Blake  <ebb9@byu.net>
41332
41333         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41334         macro expansion.
41335
41336 2006-07-28  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41339
41340 2006-07-28  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41343
41344 2006-07-28  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41347         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41348         Define fallbacks.
41349         Avoids link error on FreeBSD 4.x.
41350         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41351
41352         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41353         encoding.
41354         * lib/mbswidth.c (iswcntrl): Likewise.
41355
41356 2006-07-27  Bruno Haible  <bruno@clisp.org>
41357
41358         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41359         test.
41360
41361 2006-07-27  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41364         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41365         defined.
41366
41367 2006-07-26  Eric Blake  <ebb9@byu.net>
41368
41369         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41370
41371 2006-07-26  Eric Blake  <ebb9@byu.net>
41372
41373         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41374         like mingw that lack mkstemp.
41375         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41376         avoid compilation warning on mingw.
41377
41378 2006-07-26  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41381         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41382         INT_FAST*_MIN, INTPTR_MIN.
41383
41384 2006-07-25  Bruno Haible  <bruno@clisp.org>
41385
41386         * modules/version-etc (Depends-on): Add stdarg.
41387
41388 2006-07-25  Bruno Haible  <bruno@clisp.org>
41389
41390         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41391         complex commands.
41392
41393 2006-07-25  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41396         defined in <stdarg.h> or config.h.
41397
41398 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41399
41400         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41401         (gl_STDIO_SAFER): Remove.
41402
41403 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41404
41405         * MODULES.html.sh (File stream based Input/Output):
41406         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41407         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41408         * modules/fopen-safer, modules/tmpfile-safer: New files.
41409         * modules/stdio-safer: Remove.
41410
41411 2006-07-24  Bruno Haible  <bruno@clisp.org>
41412
41413         * modules/tmpdir: New file.
41414         * MODULES.html.sh (File system functions): Add it.
41415
41416 2006-07-24  Bruno Haible  <bruno@clisp.org>
41417
41418         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41419         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41420
41421 2006-07-24  Bruno Haible  <bruno@clisp.org>
41422
41423         * modules/clean-temp: New file.
41424
41425 2006-07-24  Bruno Haible  <bruno@clisp.org>
41426
41427         * m4/tmpdir.m4: New file, from GNU gettext.
41428
41429 2006-07-24  Bruno Haible  <bruno@clisp.org>
41430
41431         * lib/tmpdir.h: New file, from GNU gettext.
41432         * lib/tmpdir.c: New file, from GNU gettext.
41433
41434 2006-07-24  Bruno Haible  <bruno@clisp.org>
41435
41436         * lib/clean-temp.h: New file, from GNU gettext.
41437         * lib/clean-temp.c: New file, from GNU gettext.
41438
41439 2006-07-23  Eric Blake  <ebb9@byu.net>
41440
41441         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41442         (Depends-on): Add binary-io.
41443
41444 2006-07-23  Eric Blake  <ebb9@byu.net>
41445
41446         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41447
41448 2006-07-23  Eric Blake  <ebb9@byu.net>
41449
41450         * lib/tmpfile-safer.c: New file.
41451         * lib/stdio-safer.h (fopen_safer): Add prototype.
41452         * lib/stdio--.h (tmpfile): Make safer.
41453
41454 2006-07-23  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41457         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41458         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41459         gl_linked_remove_at): Use it.
41460
41461 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41462         and Simon Josefsson <jas@extundo.com>
41463
41464         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41465
41466         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41467
41468 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41469
41470         * modules/close-stream: New file.
41471         * modules/closeout (Description): Make it clear that it exits
41472         with a diagnostic on error.
41473         (Depends-on): Add close-stream.  Remove fpending, stdbool.
41474         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41475
41476 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41477
41478         * m4/close-stream.m4: New file.
41479
41480 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41481
41482         * lib/close-stream.c, lib/close-stream.h: New files.
41483
41484 2006-07-22  Bruno Haible  <bruno@clisp.org>
41485
41486         Merge from GNU gettext 0.15.
41487
41488         2006-05-01  Bruno Haible  <bruno@clisp.org>
41489
41490                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41491
41492         2006-07-22  Bruno Haible  <bruno@clisp.org>
41493
41494                 * modules/javaversion: New file.
41495                 * MODULES.html.sh (Java): Add javaversion.
41496
41497         2006-03-12  Bruno Haible  <bruno@clisp.org>
41498
41499                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41500
41501         2005-12-04  Bruno Haible  <bruno@clisp.org>
41502
41503                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41504                 (untested).
41505
41506         2006-06-21  Bruno Haible  <bruno@clisp.org>
41507
41508                 Avoid warnings from recent versions of mcs.
41509                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41510                 -o, -L, -r any more. Use options documented since mcs-1.0
41511                 instead. Similarly for -g.
41512
41513         2005-12-04  Bruno Haible  <bruno@clisp.org>
41514
41515                 * build-aux/csharpcomp.sh.in: Suffix for resources is
41516                 .resources, not .resource.
41517
41518         2005-07-09  Bruno Haible  <bruno@clisp.org>
41519
41520                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41521                 add a .dll suffix.
41522                 Reported by Mark Junker <mjscod@gmx.de>.
41523
41524         2006-07-22  Bruno Haible  <bruno@clisp.org>
41525
41526                 * modules/gettext: Upgrade to gettext-0.15.
41527                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41528                 m4/visibility.m4.
41529                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41530
41531 2006-07-22  Bruno Haible  <bruno@clisp.org>
41532
41533         Merge from GNU gettext 0.15.
41534
41535         2006-03-25  Bruno Haible  <bruno@clisp.org>
41536
41537                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41538
41539         2006-07-21  Bruno Haible  <bruno@clisp.org>
41540
41541                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41542                 "1.1".
41543
41544         2006-05-09  Bruno Haible  <bruno@clisp.org>
41545
41546                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41547                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41548                 for the conftestver execution.
41549
41550         2006-05-01  Bruno Haible  <bruno@clisp.org>
41551
41552                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41553                 optional target-version argument. Verify that the compiler
41554                 groks source of the specified source-version, or add -source
41555                 option as necessary. Verify that the compiler produces
41556                 bytecode in the specified target-version, or add -target and
41557                 -source options as necessary. Make the result of the test
41558                 available as variable CONF_JAVAC. Also log error output in
41559                 config.log.
41560
41561         2006-03-11  Bruno Haible  <bruno@clisp.org>
41562
41563                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41564
41565         2006-05-09  Bruno Haible  <bruno@clisp.org>
41566
41567                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41568                 CLASSPATH_SEPARATOR to a semicolon.
41569
41570         2006-03-12  Bruno Haible  <bruno@clisp.org>
41571
41572                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41573                 available as variable CONF_JAVA, for subsequent autoconf
41574                 tests. Also log error output in config.log.
41575
41576         2006-07-19  Bruno Haible  <bruno@clisp.org>
41577
41578                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41579                 that getline works on glibc2 systems. Needed to avoid trouble
41580                 in relocatable.c.
41581                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41582
41583         2005-12-04  Bruno Haible  <bruno@clisp.org>
41584
41585                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41586                 launcher (untested).
41587
41588         2005-12-04  Bruno Haible  <bruno@clisp.org>
41589
41590                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41591
41592         2006-07-22  Bruno Haible  <bruno@clisp.org>
41593
41594                 * gettext.m4: Update from GNU gettext-0.15.
41595                 * nls.m4: Likewise.
41596                 * po.m4: Likewise.
41597                 * inttypes-pri.m4: Likewise.
41598                 * inttypes-h.m4: Renamed from inttypes.m4.
41599                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41600
41601 2006-07-22  Bruno Haible  <bruno@clisp.org>
41602
41603         Merge from GNU gettext 0.15.
41604
41605         2005-07-05  Bruno Haible  <bruno@clisp.org>
41606
41607                 * printf-args.c (printf_fetchargs): Work around broken
41608                 definition of wint_t on mingw.
41609
41610         2005-02-12  Bruno Haible  <bruno@clisp.org>
41611
41612                 * xallocsa.h: Add extern "C" for C++.
41613
41614         2006-05-17  Bruno Haible  <bruno@clisp.org>
41615
41616                 Cygwin portability.
41617                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41618
41619         2006-04-30  Bruno Haible  <bruno@clisp.org>
41620
41621                 * progreloc.c: Include <mach-o/dyld.h> if available.
41622                 (find_executable): Use _NSGetExecutablePath when possible.
41623
41624         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41625
41626                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41627                 function.
41628
41629         2005-12-29  Bruno Haible  <bruno@clisp.org>
41630
41631                 * progreloc.c (set_program_name_and_installdir): Fix
41632                 compilation error.
41633
41634         2005-12-04  Bruno Haible  <bruno@clisp.org>
41635
41636                 Cygwin portability.
41637                 * progreloc.c: Include <windows.h> also on Cygwin.
41638                 (find_executable): Add support for Cygwin.
41639                 (set_program_name_and_installdir): Handle also platforms with
41640                 nonempty EXEEXT.
41641
41642         2006-07-11  Bruno Haible  <bruno@clisp.org>
41643
41644                 * javacomp.c: Fix a comment.
41645                 Reported by Jim Meyering.
41646
41647         2006-04-30  Bruno Haible  <bruno@clisp.org>
41648
41649                 * javacomp.h (compile_java_class): Add source_version,
41650                 target_version arguments.
41651                 * javacomp.c: Rewritten to choose only a compiler that
41652                 respects the specified source_version and target_version.
41653
41654         2006-06-27  Bruno Haible  <bruno@clisp.org>
41655
41656                 Assume correct S_ISDIR macro.
41657                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41658
41659         2006-07-22  Bruno Haible  <bruno@clisp.org>
41660
41661                 * javaversion.h: New file, from GNU gettext.
41662                 * javaversion.c: New file, from GNU gettext.
41663                 * javaversion.java: New file, from GNU gettext.
41664                 * javaversion.class: New file, from GNU gettext.
41665
41666         2006-05-17  Bruno Haible  <bruno@clisp.org>
41667
41668                 Cygwin portability.
41669                 * javaexec.c (execute_java_class): Test for jview program
41670                 also on Cygwin.
41671
41672         2006-04-09  Bruno Haible  <bruno@clisp.org>
41673
41674                 * fatal-signal.c: Don't include string.h.
41675                 (at_fatal_signal): Use a copying loop instead of memcpy.
41676
41677         2005-12-04  Bruno Haible  <bruno@clisp.org>
41678
41679                 * csharpexec.c: Add support for 'clix' launcher (untested).
41680                 (execute_csharp_using_sscli): New function.
41681                 (execute_csharp_program): Call it.
41682
41683         2006-06-21  Bruno Haible  <bruno@clisp.org>
41684
41685                 Avoid warnings from recent versions of mcs.
41686                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41687                 -o, -L, -r any more. Use options documented since mcs-1.0
41688                 instead. Similarly for -g.
41689
41690         2005-07-09  Bruno Haible  <bruno@clisp.org>
41691
41692                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41693                 add a .dll suffix.
41694                 Reported by Mark Junker <mjscod@gmx.de>.
41695
41696         2006-06-17  Bruno Haible  <bruno@clisp.org>
41697
41698                 * config.charset: Update for NetBSD 3.0.
41699
41700         2006-05-17  Bruno Haible  <bruno@clisp.org>
41701
41702                 Cygwin portability.
41703                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41704
41705         2006-05-16  Bruno Haible  <bruno@clisp.org>
41706
41707                 * localcharset.c [CYGWIN]: Include <windows.h>.
41708                 (get_charset_aliases): For Cygwin, return the same CPxxx
41709                 aliases list as under WIN32.
41710                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41711                 the environment variables. Fall back to GetACP().
41712
41713         2006-04-05  Bruno Haible  <bruno@clisp.org>
41714
41715                 * config.charset: Update Juan Manuel Guerrero's address.
41716
41717         2005-02-12  Bruno Haible  <bruno@clisp.org>
41718
41719                 * allocsa.h: Add extern "C" for C++.
41720
41721         2005-02-10  Bruno Haible  <bruno@clisp.org>
41722
41723                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
41724                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
41725
41726         2006-07-22  Bruno Haible  <bruno@clisp.org>
41727
41728                 * gettext.h: Update to GNU gettext-0.15.
41729
41730 2006-07-22  Bruno Haible  <bruno@clisp.org>
41731
41732         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
41733         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
41734         lib-prefix.m4, longdouble.m4, ssize_t.m4.
41735
41736 2006-07-21  Eric Blake  <ebb9@byu.net>
41737
41738         * modules/stdlib-safer: New file.
41739         * MODULES.html.sh (File stream based Input/Output): Add
41740         stdlib-safer.
41741
41742 2006-07-21  Eric Blake  <ebb9@byu.net>
41743
41744         * lib/stdlib-safer.h: New file from coreutils, required by
41745         stdlib--.h.
41746
41747 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
41748
41749         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
41750
41751 2006-07-20  Bruno Haible  <bruno@clisp.org>
41752
41753         * gnulib-tool: Recognize new option --assume-autoconf.
41754         (autoconf_minversion): New variable.
41755         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
41756
41757 2006-07-20  Bruno Haible  <bruno@clisp.org>
41758
41759         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
41760
41761 2006-07-19  Derek R. Price  <derek@ximbiot.com>
41762
41763         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
41764         Reindent and repaginate.
41765
41766 2006-07-19  Derek Price  <derek@ximbiot.com>
41767
41768         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
41769         Correct grammar.
41770
41771 2006-07-17  Bruno Haible  <bruno@clisp.org>
41772
41773         * modules/list: New file.
41774         * modules/array-list: New file.
41775         * modules/carray-list, modules/carray-list-tests: New files.
41776         * modules/linked-list, modules/linked-list-tests: New files.
41777         * modules/avltree-list, modules/avltree-list-tests: New files.
41778         * modules/rbtree-list, modules/rbtree-list-tests: New files.
41779         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
41780         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
41781         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
41782         * modules/oset: New file.
41783         * modules/array-oset: New file.
41784         * modules/avltree-oset, modules/avltree-oset-tests: New files.
41785         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
41786         * tests/test-carray_list.c: New file.
41787         * tests/test-linked_list.c: New file.
41788         * tests/test-avltree_list.c: New file.
41789         * tests/test-rbtree_list.c: New file.
41790         * tests/test-linkedhash_list.c: New file.
41791         * tests/test-avltreehash_list.c: New file.
41792         * tests/test-rbtreehash_list.c: New file.
41793         * tests/test-avltree_oset.c: New file.
41794         * tests/test-rbtree_oset.c: New file.
41795         * MODULES.html.sh (Container data structures): New section.
41796
41797 2006-07-17  Bruno Haible  <bruno@clisp.org>
41798
41799         * m4/gl_list.m4: New file.
41800
41801 2006-07-17  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/gl_list.h: New file.
41804         * lib/gl_list.c: New file.
41805         * lib/gl_array_list.h: New file.
41806         * lib/gl_array_list.c: New file.
41807         * lib/gl_carray_list.h: New file.
41808         * lib/gl_carray_list.c: New file.
41809         * lib/gl_linked_list.h: New file.
41810         * lib/gl_linked_list.c: New file.
41811         * lib/gl_anylinked_list1.h: New file.
41812         * lib/gl_anylinked_list2.h: New file.
41813         * lib/gl_avltree_list.h: New file.
41814         * lib/gl_avltree_list.c: New file.
41815         * lib/gl_anyavltree_list1.h: New file.
41816         * lib/gl_anyavltree_list2.h: New file.
41817         * lib/gl_rbtree_list.h: New file.
41818         * lib/gl_rbtree_list.c: New file.
41819         * lib/gl_anyrbtree_list1.h: New file.
41820         * lib/gl_anyrbtree_list2.h: New file.
41821         * lib/gl_anytree_list1.h: New file.
41822         * lib/gl_anytree_list2.h: New file.
41823         * lib/gl_linkedhash_list.h: New file.
41824         * lib/gl_linkedhash_list.c: New file.
41825         * lib/gl_anyhash_list1.h: New file.
41826         * lib/gl_anyhash_list2.h: New file.
41827         * lib/gl_avltreehash_list.h: New file.
41828         * lib/gl_avltreehash_list.c: New file.
41829         * lib/gl_rbtreehash_list.h: New file.
41830         * lib/gl_rbtreehash_list.c: New file.
41831         * lib/gl_anytreehash_list1.h: New file.
41832         * lib/gl_anytreehash_list2.h: New file.
41833
41834         * lib/gl_oset.h: New file.
41835         * lib/gl_oset.c: New file.
41836         * lib/gl_array_oset.h: New file.
41837         * lib/gl_array_oset.c: New file.
41838         * lib/gl_avltree_oset.h: New file.
41839         * lib/gl_avltree_oset.c: New file.
41840         * lib/gl_rbtree_oset.h: New file.
41841         * lib/gl_rbtree_oset.c: New file.
41842         * lib/gl_anytree_oset.h: New file.
41843
41844 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41845
41846         * m4/mkancesdirs.m4: New file.
41847         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
41848         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
41849         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
41850         it.
41851
41852 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41853
41854         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
41855         * lib/mkancesdirs.h: New files.
41856         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
41857         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
41858         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
41859         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
41860         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
41861         callers changed.  Revamp internals significantly, by not
41862         attempting to create directories that are temporarily more
41863         permissive than the final results.  Do not attempt to use
41864         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
41865         This removes some race conditions, fixes some bugs, and simplifies
41866         things.  Use new dirchownmod function to do owner and mode changes.
41867         * lib/mkdir-p.h: Likewise.
41868         * lib/modechange.c (octal_to_mode): New function.
41869         (struct mode_change): New member mentioned.
41870         (make_node_op_equals): New arg mentioned.  All callers changed.
41871         (mode_compile): Keep track of which mode bits the user has explicitly
41872         mentioned.
41873         (mode_adjust): New arg DIR, so that we implement the X op correctly.
41874         New arg PMODE_BITS, to keep track of which mode bits the user
41875         mentioned; it treats S_ISUID and S_ISGID speciall.
41876         All callers changed.
41877         * lib/modechange.h: Likewise.
41878
41879 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41880
41881         * MODULES.html.sh: Add mkancestors.
41882         * modules/mkancesdirs: New module.
41883         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
41884         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
41885         The chdir-safer and afs files are now orphans; I'll remove them
41886         unless someone speaks up.
41887         Add lib/dirchownmod.c, lib/dirchownmod.h.
41888         (Depends-on): Remove alloca, chown, save-cwd, dirname.
41889         Add lchown, mkancesdirs.
41890         (Maintainer): Add self.
41891
41892 2006-07-15  Karl Berry  <karl@gnu.org>
41893
41894         * gnulib-tool: help message wording/arrangement.
41895
41896 2006-07-14  Simon Josefsson  <jas@extundo.com>
41897
41898         * doc/gnulib.texi (Libtool and Windows): New section.
41899
41900 2006-07-12  Simon Josefsson  <jas@extundo.com>
41901
41902         * modules/gendocs (License): Fix license, approved by Karl.
41903
41904 2006-07-12  Eric Blake  <ebb9@byu.net>
41905
41906         * MODULES.html.sh: Add gendocs.
41907
41908 2006-07-11  Eric Blake  <ebb9@byu.net>
41909
41910         * modules/fdl: New module, to install doc/fdl.texi.
41911         * MODULES.html.sh: Add new section for documentation modules.
41912         * gnulib-tool: Avoid space-tab.
41913         (--doc-base): New option, to manage files from doc.
41914
41915 2006-07-11  Eric Blake  <ebb9@byu.net>
41916
41917         * m4/absolute-header.m4: Fix comments to match recent change.
41918
41919 2006-07-11  Eric Blake  <ebb9@byu.net>
41920
41921         * gnulib-tool: List --doc-base before --tests-base.
41922
41923 2006-07-11  Derek R. Price  <derek@ximbiot.com>
41924
41925         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
41926
41927 2006-07-11  Bruno Haible  <bruno@clisp.org>
41928
41929         * README: Mention where to put documentation.
41930
41931 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41932
41933         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
41934
41935 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
41936
41937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
41938         to stdint.m4.
41939
41940 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
41941
41942         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
41943         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
41944         "no/such/file/stdint.h" when there is no such file, so that
41945         the resulting C code can be parsed by dodgy compilers.
41946         Problems reported by Bob Proulx.
41947
41948 2006-07-10  Derek R. Price  <derek@ximbiot.com>
41949
41950         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
41951         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
41952         macros into the GNU _D_EXACT_NAMLEN.
41953         * lib/savedir.c:  Likewise.
41954         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
41955
41956 2006-07-10  Derek R. Price  <derek@ximbiot.com>
41957         and Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
41960         * m4/savedir.m4:
41961         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
41962         macros into the GNU _D_EXACT_NAMLEN.
41963
41964 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
41967         around the absolute name, to work around a problem with the HP-UX
41968         11.23 native C compiler, reported by Bob Proulx.
41969
41970 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41971
41972         * doc/maintain.texi, make-stds.texi: Sync from
41973         <http://savannah.gnu.org/projects/gnustandards>.
41974
41975 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41976
41977         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
41978
41979 2006-07-09  Jim Meyering  <jim@meyering.net>
41980
41981         * m4/glob.m4: Remove a doubled word in a comment.
41982
41983 2006-07-09  Jim Meyering  <jim@meyering.net>
41984
41985         * lib/argp-pv.c: Remove a doubled word in a comment.
41986         * lib/check-version.c (check_version): Likewise.
41987         * lib/javacomp.c (compile_java_class): Likewise.
41988
41989 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41990
41991         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
41992         for the benefit of people using Autoconf 2.60.  If you want to
41993         support older Autoconf versions you can copy m4/onceonly_2_57.m4
41994         (or m4/onceonly.m4, if pre-2.57) manually.
41995
41996 2006-07-08  Jim Meyering  <jim@meyering.net>
41997
41998         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
41999         comment.
42000         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42001         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42002         comment.
42003
42004 2006-07-08  Jim Meyering  <jim@meyering.net>
42005
42006         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42007
42008 2006-07-07  Simon Josefsson  <jas@extundo.com>
42009
42010         * tests/test-crc.c: Change expected crc value, the test vector
42011         were probably computed using the old broken crc.c?
42012
42013 2006-07-06  Simon Josefsson  <jas@extundo.com>
42014
42015         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42016         now the canonical place for the M4 file).
42017
42018         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42019         from the sys_socket dependency now.
42020
42021         * modules/inet_pton (Files): Ditto.
42022
42023         * modules/inet_ntop (Files): Ditto.
42024
42025 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42026
42027         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42028         not gl_PREREQ_GETUSERSHELL.
42029
42030 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42031
42032         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42033         with only one argument, for Autoconf 2.60.
42034         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42035         expand to nothing, so add a shell command to avoid syntax error.
42036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42037
42038 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42039
42040         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42041
42042 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42043
42044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42045         no longer needed.  Check for isblank decl.
42046         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42047         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42048         of existence.
42049
42050 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42051
42052         * lib/getloadavg.c: Use __VMS, not VMS.
42053         * lib/getopt.c: Likewise.
42054         * lib/getpagesize.h: Likewise.
42055         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42056         and probably does not work.
42057
42058 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42059
42060         * lib/.cppi-disable: Add wcwidth.
42061         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42062         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42063         (ISGRAPH): Remove.  All uses changed to isgraph.
42064         (FOLD) [!defined _LIBC]: Remove special case.
42065         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42066         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42067         HAVE_ISBLANK.
42068         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42069         case.
42070
42071 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42072
42073         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42074         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42075         brackets.  Other minor changes to suppress some compiler
42076         warnings.
42077
42078 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42079         and Paul Eggert  <eggert@cs.ucla.edu>
42080
42081         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42082         of invoking obsolescent AC_HEADER_DIRENT macro.
42083         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42084         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42085         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42087         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42088         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42089         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42090         * m4/readdir.m4: Remove; no longer needed.
42091
42092 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42093         and Paul Eggert  <eggert@cs.ucla.edu>
42094
42095         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42096         Don't worry about this obsolete case any more.
42097         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42098         directories.
42099         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42100         worry about this obsolete case any more.
42101         * lib/fts.c: Likewise.
42102         * lib/getcwd.c: Likewise.
42103         * lib/glob.h: Likewise.
42104         * lib/savedir.c: Likewise.
42105
42106 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42107
42108         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42109         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42110         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42111         needed.
42112         All uses removed.
42113         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42114         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42115         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42116         needed.
42117         * m4/getdate.m4 (gl_GETDATE): Likewise.
42118         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42119         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42120         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42121         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42122         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42124         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42125         needed.
42126
42127 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42128
42129         * lib/memcasecmp.c: Include <limits.h>.
42130         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42131         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42132         Don't assume isdigit succeeds only on '0' through '9'.
42133
42134 2006-07-05  Eric Blake  <ebb9@byu.net>
42135
42136         * modules/getaddrinfo (Depends-on): Add snprintf.
42137
42138 2006-07-05  Eric Blake  <ebb9@byu.net>
42139
42140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42141         to avoid 'header present but could not be compiled' on cygwin.
42142
42143 2006-07-05  Eric Blake  <ebb9@byu.net>
42144
42145         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42146         missing from netdb.h.
42147         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42148
42149 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42150
42151         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42152         no longer needed.
42153         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42154         * m4/getdate.m4 (gl_GETDATE): Likewise.
42155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42156         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42157         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42158         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42159         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42160
42161 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42162
42163         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42164         All uses of is_space replaced by isspace.
42165         * lib/exit.h: Don't talk about STDC_HEADERS.
42166         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42167         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42168         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42169         replaced by isprint etc.
42170         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42171         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42172         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42173         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42174         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42175         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42176
42177 2006-07-05  Bruno Haible  <bruno@clisp.org>
42178
42179         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42180         the function exists, before testing against AIX.
42181         Reported by Martin Lambers <marlam@marlam.de>.
42182
42183 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42184
42185         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42186         From Mark D. Baushke.
42187
42188 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42189
42190         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42191         to the absolute name, not just one, to bypass Sun C 5.8's
42192         "warning: #include of /usr/include/... may be non-portable".
42193
42194 2006-07-04  Eric Blake  <ebb9@byu.net>
42195
42196         * modules/dirname-tests: New test module.
42197         * tests/test-dirname.c: New file, replacing dirname.c
42198         TEST_DIRNAME section that was recently deleted.
42199
42200 2006-07-04  Bruno Haible  <bruno@clisp.org>
42201
42202         Assume ANSI C header files and <ctype.h> functions.
42203         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42204         (mbsnwidth): Use isprint, iscntrl instead.
42205
42206 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42207
42208         Merge from coreutils.
42209         * MODULES.html.sh: Add xstrtold.
42210         * modules/xstrtold: New file.
42211         * modules/cycle-check (Files): Add lib/same-inode.h.
42212         * modules/dirname (Files): Add m4/double-slash-root.m4.
42213         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42214         * modules/mkdir-p (Files): Add lib/same-inode.h.
42215         * modules/same (Files): Add lib/same-inode.h.
42216
42217 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42218
42219         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42220         This is to keep the terminology clean; POSIX talks about
42221         "absolute pathnames", not "full pathnames", but the GNU
42222         Coding Standards say to use "path" for something else;
42223         so use "absolute" to keep both sides happy.
42224         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42225         Set gl_absolute_header, not gl_full_header_path.
42226         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42227         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42228         All uses changed.
42229
42230         Merge from coreutils.
42231
42232         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42233
42234         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42235         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42236         want to require the building of c-strtod.o.
42237         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42238         needs -lm directly.
42239         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42240
42241         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42242
42243         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42244         --as-needed option if available.  Problem reported by Albert Chin in
42245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42246         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42247         cc merely issues a bunch of annoying warnings for --as-needed
42248         (this problem was reported by Bob Proulx).  Also, try linking with
42249         -lm to detect a bug in binutils 2.16 (this problem was reported
42250         by Ralf Wildenhues).
42251
42252         2006-06-18  Jim Meyering  <jim@meyering.net>
42253
42254         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42255         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42256         macro.
42257         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42258         also check for glibc-2.4's abort-inducing bug.
42259
42260         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42261         Low-probability clean-up should be to use rmdir to get rid of
42262         the just-created directory, not unlink.
42263
42264         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42265         configure fail, and request a bug report to inform us about it.
42266         Add a comment that, barring reports to the contrary, in 2007 we'll
42267         assume ftruncate is universally available.
42268
42269         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42270
42271         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42272
42273         2006-03-12  Jim Meyering  <jim@meyering.net>
42274
42275         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42276         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42277         * m4/same.m4 (gl_SAME): Likewise.
42278         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42279
42280         2006-03-11  Eric Blake  <ebb9@byu.net>
42281
42282         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42283         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42284         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42285         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42286
42287 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42288
42289         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42290         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42291         reported by Mark D. Baushke, one in
42292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42293
42294         Merge from coreutils.
42295
42296         * lib/.cppi-disable: Add stdint_.h.
42297         * lib/.cvsignore: Add stdint.h.
42298
42299         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42300
42301         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42302         both double and long double versions.
42303         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42304         * lib/xstrtold.c: New file.
42305         * lib/xstrtod.h (xstrtold): New decl.
42306
42307         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42308
42309         * lib/filemode.c (setst): Remove.
42310         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42311         (arguably) clearer, and the generated code is a bit smaller on my
42312         Debian GNU/Linux stable x86 host.
42313
42314         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42315
42316         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42317         Assume that filemode.h includes sys/types.h and sys/stat.h.
42318         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42319         (ftypelet): Reorder to put common cases first, for efficiency.
42320         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42321         to do 'M'.
42322         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42323         of 10, for compatibility with FreeBSD.  All callers changed.
42324         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42325         types that can't be deduced solely from st_mode.  First arg is now a
42326         const pointer.
42327         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42328         (strmode): Renamed from mode_string.
42329         (filemodestring): New decl.
42330         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42331         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42332         needed.
42333         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42334
42335         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42338         fsusage.h now does that.  Include fsusage.h first, to test interface.
42339         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42340         at most one method (the old code could have generated decls that
42341         didn't conform to C89, not that this was ever exercised).
42342         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42343
42344         2006-03-19  Jim Meyering  <jim@meyering.net>
42345
42346         Work even in a chroot where d_ino values for entries in "/"
42347         don't match the stat.st_ino values for the same names.
42348         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42349         number, iterate through all entries again, using lstat instead.
42350         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42351         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42352
42353         * lib/getcwd.c (__getcwd): Clarify a comment.
42354         Use memcpy in place of a call to strcpy.
42355
42356         2006-03-12  Jim Meyering  <jim@meyering.net>
42357
42358         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42359         matches that of the current directory (which we're about to chdir ".."
42360         out of), then save the dev-ino of the parent, instead.
42361
42362         * lib/same-inode.h (SAME_INODE): New file/macro.
42363         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42364         Include "same-inode.h", instead.
42365         * lib/same.c: Likewise.
42366         * lib/cycle-check.h: Include "same-inode.h".
42367         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42368         * lib/cycle-check.c (SAME_INODE): Remove definition.
42369         * lib/root-dev-ino.h: Include "same-inode.h".
42370
42371         2006-03-11  Eric Blake  <ebb9@byu.net>
42372
42373         * lib/same.c (same_name): s/base_name/last_component/
42374         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42375         * lib/filenamecat.c (file_name_concat): Likewise.
42376
42377         2006-03-11  Eric Blake  <ebb9@byu.net>,
42378                     Paul Eggert  <eggert@cs.ucla.edu>
42379
42380         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42381         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42382         drive prefix.
42383         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42384         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42385         (last_component): New method.
42386         * lib/dirname.c (dir_len): Determine when drive letters need a
42387         subsequent slash.  Preserve // when it is special.
42388         (dir_name): Don't append dot when drive letter is absolute.
42389         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42390         * lib/basename.c (base_name): New semantics - malloc the result.
42391         Preserve // when it is special.  Preserve relative files that look
42392         like drive letters.
42393         (base_len): Preserve // when it is special.
42394         (last_component): New method, similar to old base_name semantics.
42395         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42396         base_name.  Strip redundant slashes from ///.
42397
42398 2006-07-03  Jim Meyering  <jim@meyering.net>
42399
42400         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42401         macro is used before the first cycle_check call.
42402
42403 2006-07-03  Eric Blake  <ebb9@byu.net>
42404
42405         * modules/dirname (Depends-on): Add xstrndup.
42406
42407 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42410         test cases, so that config.log is a bit easier to follow.
42411
42412 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42413
42414         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42415         both are 64 bits, since this seems to be the tradition, and this
42416         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42417         we ever run into a host that prefers long long to long in this
42418         case, we'll need another configure-time test.  Problem reported by
42419         Jim Meyering.
42420
42421 2006-07-02  Eric Blake  <ebb9@byu.net>
42422
42423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42424
42425 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         * modules/inttypes (Depends-on): No longer depends on stdint.
42428         * modules/stdint (Description): Say more about assumptions.
42429         Say that the fast types might differ.  Say macros are used.
42430         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42431         (Makefile.am): Revise list of substituted symbols to match
42432         new stdint.m4.
42433         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42434         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42435         * tests/test-stdint.c (verify_same_types)
42436         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42437         the code conforms to C99/C89.
42438         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42439         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42440
42441 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42442
42443         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42444         but fix a bug, by requiring at least 64 bits.
42445         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42446         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42447         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42448         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42449
42450         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42451         changes.  Make 2.59 a prerequisite.  Check and substitute for
42452         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42453         inttypes.h.  Do not use special include files; just use the
42454         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42455         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42456         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42457         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42458         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42459         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42460         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42461         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42462         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42463         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42464         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42465         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42466         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42467         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42468         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42469         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42470         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42471         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42472         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42473         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42474         WINT_MAX.  Check for C99 conformance more strictly, by detecting
42475         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
42476         not check for things that C99 does not require, e.g., int8_t.  If
42477         a test isn't needed unless <stdint.h> isn't working, and is
42478         unlikely to be needed for any other reason, then don't do it
42479         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
42480         size_t, since we assume C89 freestanding at least.  Do not check
42481         for sig_atomic_t, wchar_t, or wint_t, since the code now does
42482         the right thing even if the types are not defined.  Instead use:
42483         (gl_STDINT_TYPE_PROPERTIES): New macro.
42484         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
42485         testing whether <sys/types.h> clashes, as Autoconf does this for
42486         us now.  All uses removed.
42487         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42488         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42489         (gl_CHECK_TYPE_SAME):
42490         Remove; no longer needed.
42491         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42492         exists, since we'll return 0 anyway in that case.
42493         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42494
42495 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42496
42497         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42498         possible collision with system files.
42499         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42500         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42501         WCHAR_MIN and WCHAR_MAX in this case.
42502         (<stddef.h>): Do not include; no longer needed.
42503         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42504         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42505         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42506         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42507         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42508         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42509         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42510         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42511         !defined(__c99))]: Include in this case too, since it's harmless
42512         now.
42513         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42514         dangerous to do so.
42515         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42516         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42517         (_STDINT_MIN, _STDINT_MAX): New macros.
42518         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42519         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42520         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42521         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42522         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42523         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42524         macros, not typedefs; this simplifies things quite a bit.
42525         Use long int for all types narrower than int64_t.
42526         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42527         Define in terms of long long int or int64_t or long int,
42528         not int64_t or int32_t.  This saves some compile-time testing.
42529         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42530         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42531         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42532         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42533         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42534         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42535         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42536         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42537         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42538         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42539         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42540         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42541         undef any previous version and define our own version, for
42542         simplicity and consistency with the new macros for types.
42543         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42544         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42545         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42546         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
42547         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42548         @WINT_T_SUFFIX@ to keep things simple here.
42549         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42550         Simplify by assuming typical 8/16/32/64 host, since we're
42551         already doing that elsewhere anyway.
42552         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42553         and assume long long int is 64 bits if available.  This
42554         speeds up 'configure'.
42555
42556 2006-07-01  Eric Blake  <ebb9@byu.net>
42557
42558         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42559         Reported by Andreas Buening.
42560
42561 2006-07-01  Eric Blake  <ebb9@byu.net>
42562
42563         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42564
42565 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42566
42567         * lib/getaddrinfo.c: fixed typo
42568
42569 2006-06-29  Jim Meyering  <jim@meyering.net>
42570
42571         * modules/strftime (Maintainer): Add my name, since with the
42572         FPRINTFTIME changes strftime.c has forked from glibc.
42573
42574 2006-06-29  Eric Blake  <ebb9@byu.net>
42575
42576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42577
42578 2006-06-29  Eric Blake  <ebb9@byu.net>
42579
42580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42581
42582 2006-06-29  Eric Blake  <ebb9@byu.net>
42583
42584         * lib/stat_.h: New file.
42585
42586 2006-06-29  Eric Blake  <ebb9@byu.net>
42587
42588         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42589         unused static function.
42590
42591 2006-06-29  Eric Blake  <ebb9@byu.net>
42592
42593         * doc/functions.texi (Function Portability): Document missing lstat
42594         on mingw.
42595
42596 2006-06-29  Eric Blake  <ebb9@byu.net>
42597
42598         * MODULES.html.sh: Add sys_stat.
42599         * modules/sys_stat: New module.
42600         * modules/mkstemp (Depends-on): Add sys_stat.
42601
42602 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42603
42604         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42605
42606 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42607
42608         * m4/c-bs-a.m4: Removed.
42609
42610 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42611
42612         * lib/strftime.c: Assume strftime() exists.
42613
42614 2006-06-29  Derek Price  <derek@ximbiot.com>
42615
42616         * modules/c-bs-a: Removed - \a is C89.
42617         * MODULES.html.sh: Remove c-bs-a.
42618
42619 2006-06-29  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/wcwidth (License): Change to LGPL.
42622
42623 2006-06-28  Simon Josefsson  <jas@extundo.com>
42624
42625         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
42626         on _WIN32.
42627
42628         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42629         getnameinfo.
42630
42631 2006-06-28  Simon Josefsson  <jas@extundo.com>
42632
42633         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42634
42635 2006-06-28  Simon Josefsson  <jas@extundo.com>
42636
42637         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42638         functions there.  It will succeed on Windows XP, but on Windows
42639         2000 and (presumably) earlier, it will fail, and use the internal
42640         re-implementation.
42641         (use_win32_p): New function.
42642         (getaddrinfo): Use strtoul on servname, to support numeric ports.
42643         Support AI_NUMERICSERV to disable getservbyname.
42644         (getnameinfo): New function, only supports
42645         NI_NUMERICHOST|NI_NUMERICSERV for now.
42646
42647         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42648         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
42649         getnameinfo.
42650
42651 2006-06-28  Eric Blake  <ebb9@byu.net>
42652
42653         * modules/wcwidth: New file.
42654         * modules/mbchar (Depends-on): Add wcwidth.
42655         * modules/mbswidth (Depends-on): Add wcwidth.
42656         * MODULES.html.sh: Add wcwidth.
42657
42658 2006-06-28  Eric Blake  <ebb9@byu.net>
42659
42660         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42662
42663 2006-06-28  Eric Blake  <ebb9@byu.net>
42664
42665         * lib/xvasprintf.h: Fix comments.
42666
42667 2006-06-28  Eric Blake  <ebb9@byu.net>
42668
42669         * lib/mbchar.h (wcwidth): Include wcwidth.h.
42670         * lib/mbswidth.c (wcwidth): Move from here...
42671         * lib/wcwidth.h: ...to this new file.
42672
42673 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42674
42675         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42676
42677         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42678         it's obsolete.
42679         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42680
42681 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42682
42683         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
42684         Autoconf 2.60 says this stuff was obsolete.
42685
42686 2006-06-28  Bruno Haible  <bruno@clisp.org>
42687
42688         * modules/wcwidth (Files): Add m4/wchar_t.m4.
42689
42690 2006-06-28  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42693         gt_TYPE_WCHAR_T.
42694
42695 2006-06-28  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42698         declaration for wcwidth.
42699         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42700
42701 2006-06-28  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/mkdtemp.c [MINGW]: Include <io.h>.
42704         (mkdir): Define using _mkdir.
42705
42706 2006-06-28  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/getaddrinfo.h: Fix POSIX URL.
42709         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42710         _WIN32.
42711         (use_win32_p): Make static.
42712         (getaddrinfo): Reject service name if it is empty or does not consist
42713         solely of decimal digits, or if its value is > 65535.
42714         (getnameinfo): Remove useless casts.
42715
42716 2006-06-27  Simon Josefsson  <jas@extundo.com>
42717
42718         * modules/sys_select: New file, suggested by Bruno Haible, Paul
42719         Eggert and Martin Lambers.
42720
42721 2006-06-27  Simon Josefsson  <jas@extundo.com>
42722
42723         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
42724         Eggert and Martin Lambers.
42725
42726 2006-06-27  Bruno Haible  <bruno@clisp.org>
42727
42728         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
42729         result to 0, not to empty.
42730         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
42731
42732 2006-06-27  Bruno Haible  <bruno@clisp.org>
42733
42734         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
42735
42736 2006-06-26  Simon Josefsson  <jas@extundo.com>
42737
42738         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
42739         present.
42740
42741 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42742
42743         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
42744         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
42745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
42746
42747 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
42748
42749         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
42750
42751 2006-06-26  Bruno Haible  <bruno@clisp.org>
42752
42753         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
42754
42755 2006-06-26  Bruno Haible  <bruno@clisp.org>
42756
42757         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
42758
42759 2006-06-26  Bruno Haible  <bruno@clisp.org>
42760
42761         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
42762         SGI C compiler in pre-C99 mode.
42763         Suggested by Mark D. Baushke and Larry Jones.
42764
42765 2006-06-26  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
42768         WCHAR_MAX.
42769         Reported by Mark D. Baushke and Larry Jones.
42770
42771 2006-06-26  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
42774         in pre-C99 mode.
42775         Suggested by Mark D. Baushke and Larry Jones.
42776
42777 2006-06-23  Simon Josefsson  <jas@extundo.com>
42778             Bruno Haible  <bruno@clisp.org>
42779
42780         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
42781         Emit mostlyclean-local rule.
42782         (func_emit_tests_Makefile_am): Likewise.
42783         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
42784
42785 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
42786
42787         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
42788
42789 2006-06-23  Bruno Haible  <bruno@clisp.org>
42790
42791         * tests/test-stdint.c: Update to match ISO C 99 Technical
42792         Corrigendum 1.
42793
42794 2006-06-23  Bruno Haible  <bruno@clisp.org>
42795
42796         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
42797
42798 2006-06-23  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/stdint_.h: Treat IRIX like OpenBSD.
42801
42802 2006-06-23  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
42805         ISO C 99 Technical Corrigendum 1.
42806
42807 2006-06-22  Simon Josefsson  <jas@extundo.com>
42808
42809         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
42810         MinGW.
42811
42812 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42813
42814         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
42815         needed.  Some compiler complained about some of them.  Problem reported
42816         by Larry Jones in
42817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
42818
42819 2006-06-21  Simon Josefsson  <jas@extundo.com>
42820
42821         * tests/test-getaddrinfo.c: New file.
42822
42823         * modules/getaddrinfo-tests: New file.
42824
42825         * MODULES.html.sh: Add inet_pton.
42826
42827         * modules/inet_pton: New file.
42828
42829 2006-06-21  Simon Josefsson  <jas@extundo.com>
42830
42831         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
42832         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
42833         of using the (limited) gnulib implementation on Windows XP.
42834
42835         * m4/inet_pton.m4: New file.
42836
42837 2006-06-21  Simon Josefsson  <jas@extundo.com>
42838
42839         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
42840         variable.
42841
42842         * lib/socket_.h: Don't define WINVER.
42843
42844         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
42845         slightly modified to work in gnulib.
42846
42847 2006-06-21  Simon Josefsson  <jas@extundo.com>
42848
42849         * doc/gnulib.texi (Windows sockets): Add.
42850
42851 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42852
42853         * lib/read-file.c (fread_file): Start with buffer allocation of
42854         0 bytes rather than 1 byte; this simplifies the code.
42855         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
42856         code to free buffer and save/restore errno.
42857         (internal_read_file): Remove unused local.
42858
42859 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42860
42861         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
42862         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
42863         Problem reported by Denis Excoffier in
42864         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
42865
42866 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42867
42868         * modules/sys_socket, modules/socklen: Include sys/types since
42869         FreeBSD 4.x's sys/socket.h needs it.
42870
42871 2006-06-19  Simon Josefsson  <jas@extundo.com>
42872
42873         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
42874
42875 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42876
42877         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
42878
42879 2006-06-19  Bruno Haible  <bruno@clisp.org>
42880
42881         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
42882         and FULL_PATH_INTTYPES_H in angle brackets.
42883         Reported by Mark D. Baushke <mdb@gnu.org>.
42884
42885 2006-06-17  Eric Blake  <ebb9@byu.net>
42886
42887         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
42888         errno.
42889
42890 2006-06-17  Bruno Haible  <bruno@clisp.org>
42891
42892         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
42893         <sys/inttypes.h>.
42894
42895 2006-06-17  Bruno Haible  <bruno@clisp.org>
42896
42897         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
42898         whether errno is declared. Assume <errno.h> declares errno.
42899
42900 2006-06-17  Bruno Haible  <bruno@clisp.org>
42901
42902         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
42903
42904 2006-06-17  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
42907         problem on Solaris 2.5.1.
42908
42909 2006-06-16  Eric Blake  <ebb9@byu.net>
42910
42911         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
42912         * lib/unicodeio.c [!defined errno]: Likewise.
42913         * lib/strtol.c [!defined errno]: Likewise.
42914         * lib/strtod.c [!defined errno]: Likewise.
42915
42916 2006-06-15  Eric Blake  <ebb9@byu.net>
42917
42918         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
42919
42920 2006-06-15  Eric Blake  <ebb9@byu.net>
42921
42922         * config/srclist.txt (ssize_t.m4): Lose sync.
42923
42924 2006-06-15  Bruno Haible  <bruno@clisp.org>
42925
42926         * modules/stdint (Files): Include m4/full-header-path.m4,
42927         m4/size_max.m4, m4/wchar_t.m4.
42928         (Makefile.am): Many more substitutions.
42929         * modules/stdint-tests: New file.
42930         * tests/test-stdint.c: New file.
42931
42932 2006-06-15  Bruno Haible  <bruno@clisp.org>
42933
42934         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
42935         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
42936         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
42937         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
42938         gl_CHECK_TYPE_SAME): New macros.
42939
42940 2006-06-15  Bruno Haible  <bruno@clisp.org>
42941
42942         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
42943
42944 2006-06-15  Bruno Haible  <bruno@clisp.org>
42945
42946         * lib/stdint_.h: Rewritten to be fully auto-configured.
42947         Fixes bug on HP-UX/IA64.
42948
42949 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         * lib/getdate.y (__attribute__): Don't define if already defined.
42952         Problem reported by Larry Jones.
42953         * lib/utimens.c (__attribute__): Likewise.
42954
42955 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
42956
42957         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
42958         reported by Andreas Schwab.
42959
42960 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42961             Bruno Haible  <bruno@clisp.org>
42962
42963         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
42964         check for the declaration of strnlen and a run test that exposes the
42965         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
42966         rpl_strndup.
42967
42968 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42969             Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
42972
42973 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42974
42975         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
42976         compile test, for Tru64 4.0D.
42977
42978 2006-05-28  Karl Berry  <karl@gnu.org>
42979
42980         * config/srclist.txt (printf-args.c): lose sync.
42981
42982 2006-05-26  Martin Lambers  <marlam@marlam.de>
42983
42984         * lib/getpass.c: Updates the test for the native W32 API, and adds
42985         missing includes, thus fixing compilation warnings.
42986
42987 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42988
42989         * lib/exclude.c (exclude_fnmatch): New function.
42990         (excluded_file_name): Call exclude_fnmatch.
42991         * lib/exclude.h (excluded_file_name): New prototype
42992
42993 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
42994
42995         * lib/tempname.c (small_open, large_open): New macros.
42996         (__open, __open64) [!_LIBC]: Remove.
42997         (__gen_tempname): Use small_open and large_open instead of __open
42998         and __open64.  This fixes a portability bug on HP-UX 11.11i
42999         reported by Simon Wing-Tang in
43000         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43001
43002 2006-05-24  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43005         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43006         Reported by Thorsten Maerz <torte@netztorte.de> via
43007         Aaron Stone <aaron@serendipity.cx>.
43008
43009 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43010
43011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43012         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43013         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43014         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43015         not really conditional on the cache.
43016         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43017
43018 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43019
43020         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43021         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43022         (my_usleep): Don't mishandle maximum value.
43023
43024 2006-05-19  Jim Meyering  <jim@meyering.net>
43025
43026         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43027
43028 2006-05-17  Bruno Haible  <bruno@clisp.org>
43029
43030         Cygwin portability.
43031         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43032
43033 2006-05-17  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/stdint_.h: Fix recognition of Cygwin.
43036
43037 2006-05-15  Bruno Haible  <bruno@clisp.org>
43038
43039         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43040         on libtool patch by Ralf Wildenhues.
43041
43042 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43043
43044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43045         test for C99 conformance; (bool) 0.5 is an integer constant
43046         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43047         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43048
43049 2006-05-11  Simon Josefsson  <jas@extundo.com>
43050
43051         * m4/xvasprintf.m4: Fix obvious typo.
43052
43053 2006-05-11  Jim Meyering  <jim@meyering.net>
43054
43055         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43056         James Lemley.
43057
43058 2006-05-10  Simon Josefsson  <jas@extundo.com>
43059
43060         * lib/md4.c: Typo fix, update copyright years.
43061         (K1, K2): Don't use L because it turn computations into 64-bit on
43062         64-bit platforms.
43063
43064 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43067         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43068         unwanted sign propagation, e.g., on hosts with 64-bit int.
43069         There still are some problems with reeelly weird theoretical hosts
43070         (e.g., 33-bit int) but it's not worth worrying about now.
43071         * lib/sha1.c (rol): Likewise.
43072         (K1, K2, K3, K4): Remove unnecessary L suffix.
43073
43074 2006-05-10  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/des.c: Cast to avoid warnings.
43077
43078 2006-05-09  Bruno Haible  <bruno@clisp.org>
43079
43080         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43081         (Depends-on): Depend also on xsize, stdarg.
43082         (configure.ac): Add gl_XVASPRINTF.
43083
43084 2006-05-09  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/xvasprintf.m4: New file.
43087
43088 2006-05-09  Bruno Haible  <bruno@clisp.org>
43089
43090         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43091         (EOVERFLOW): Define fallback value.
43092         (xstrcat): New function.
43093         (xvasprintf): Recognize the special case of a string concatenation.
43094
43095 2006-05-08  Eric Blake  <ebb9@byu.net>
43096
43097         * gnulib-tool (func_version): Base copyright year on CVS date.
43098         (func_emit_copyright_notice): New function.
43099         (func_emit_lib_Makefile_am): Use it.
43100         (func_emit_tests_Makefile_am): Likewise.
43101         (func_import): Likewise.
43102
43103 2006-05-08  Bruno Haible  <bruno@clisp.org>
43104
43105         * modules/stdarg: New file.
43106         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43107
43108 2006-05-08  Bruno Haible  <bruno@clisp.org>
43109
43110         * m4/stdarg.m4: New file, from GNU gettext.
43111
43112 2006-05-08  Bruno Haible  <bruno@clisp.org>
43113
43114         * config/srclist.txt (build-aux/config.rpath): different from latest
43115         release.
43116
43117 2006-05-08  Bruno Haible  <bruno@clisp.org>
43118
43119         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43120
43121 2006-05-05  Jim Meyering  <jim@meyering.net>
43122
43123         * m4/warning.m4: New file, derived from bison's file by the same name.
43124
43125 2006-05-03  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/stdint_.h: Shorter URL.
43128         * lib/inttypes.h: Likewise.
43129
43130 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43131
43132         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43133
43134 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43135
43136         * lib/verify.h: Document the internals better.  Most of this change
43137         was written by Bruno Haible.
43138
43139 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43140
43141         * doc/verify.texi: New file, partly based on a proposal by
43142         Bruno Haible.
43143
43144 2006-05-02  Bruno Haible  <bruno@clisp.org>
43145
43146         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43147         test from here...
43148         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43149
43150 2006-04-29  Bruno Haible  <bruno@clisp.org>
43151
43152         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43153         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43154
43155 2006-04-29  Bruno Haible  <bruno@clisp.org>
43156
43157         * gnulib-tool: Make --update option actually work.
43158
43159 2006-04-29  Bruno Haible  <bruno@clisp.org>
43160
43161         * doc/gcd.texi: New file.
43162         * doc/gnulib.texi: Include it.
43163
43164 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43165
43166         * lib/getdate.y (get_date): When adding relative date, start with the
43167         initial time, not with the result of the first mktime call.
43168
43169 2006-04-25  Bruno Haible  <bruno@clisp.org>
43170
43171         * gnulib-tool (func_import): Output the include directives in three
43172         blocks, sorted separately.
43173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43174
43175 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43176
43177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43178         to define main with arguments, for C++.  Reported by Eric Blake.
43179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43180         Prefer 'int main ()' to 'int main (void)', for C++.
43181         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43182         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43183         for 'main', for C99 and C++.
43184
43185 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43186
43187         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43188         Don't assume that exit status -1 is valid.
43189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43190         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43191         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43192         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43193         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43194         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43195         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43196         functions can be used without declaring them, or that you can
43197         exit with status -1.
43198         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43199
43200 2006-04-24  Karl Berry  <karl@gnu.org>
43201
43202         * config/srclist.txt (longdouble.m4): sync lost.
43203
43204 2006-04-24  Eric Blake  <ebb9@byu.net>
43205
43206         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43207
43208 2006-04-24  Bruno Haible  <bruno@clisp.org>
43209
43210         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43211         poll() implementation in AIX.
43212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43213
43214 2006-04-24  Bruno Haible  <bruno@clisp.org>
43215
43216         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43217         assigned exactly once.
43218
43219 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43220             Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43223         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43224         for AM_CPPFLAGS.
43225
43226 2006-04-23  Bruno Haible  <bruno@clisp.org>
43227
43228         * modules/copy-file: Depend on unistd.
43229         * modules/execute: Likewise.
43230         * modules/fatal-signal: Likewise.
43231         * modules/findprog: Likewise.
43232         * modules/mkdtemp : Likewise.
43233         * modules/pipe: Likewise.
43234         * modules/wait-process: Likewise.
43235
43236 2006-04-23  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43239         condition was already detected.
43240         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43241
43242 2006-04-23  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/copy-file.c: Include <unistd.h> unconditionally.
43245         * lib/execute.c: Likewise.
43246         * lib/fatal-signal.c: Likewise.
43247         * lib/findprog.c: Likewise.
43248         * lib/mkdtemp.c: Likewise.
43249         * lib/pipe.h: Likewise.
43250         * lib/pipe.c: Likewise.
43251         * lib/wait-process.h: Likewise.
43252
43253 2006-04-23  Bruno Haible  <bruno@clisp.org>
43254
43255         * gnulib-tool (func_usage): Fix --import description. Document
43256         --update.
43257         (func_import): Create temporary file in a temporary directory, if
43258         --dry-run is specified. Silence errors from 'grep' when there are no
43259         m4 files in $m4dir.
43260         (func_create_testdir): Silence errors from 'grep' when there are no
43261         m4 files in $m4dir.
43262         Reported by Karl Berry <karl@freefriends.org>.
43263
43264 2006-04-20  Bruno Haible  <bruno@clisp.org>
43265
43266         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43267         one argument, so that the code will be portable to Autoconf 2.60.
43268         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43269         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43270         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43271
43272 2006-04-19  Derek Price  <derek@ximbiot.com>
43273             Eric Blake  <ebb9@byu.net>
43274
43275         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43276         rather than "/full/path.h".  Update comment to match.  Shorten &
43277         generalize m4_translit call via AS_TR_CPP.
43278
43279 2006-04-19  Derek Price  <derek@ximbiot.com>
43280             Eric Blake  <ebb9@byu.net>
43281
43282         * lib/inttypes.h: Correct grammar in comment.
43283
43284 2006-04-18  Derek Price  <derek@ximbiot.com>
43285             Paul Eggert  <eggert@cs.ucla.edu>
43286
43287         * modules/inttypes: New file.
43288         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43289
43290 2006-04-18  Derek Price  <derek@ximbiot.com>
43291             Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43294         New files.
43295
43296 2006-04-18  Derek Price  <derek@ximbiot.com>
43297             Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         * lib/inttypes.h: New file.
43300         * lib/strtoimax.c: Assume <inttypes.h>.
43301
43302 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43303
43304         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43305         isn't mounted.  Problem reported by Kir Kolyshkin.
43306
43307 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43308
43309         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43310         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43311         Derek R. Price.
43312         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43313         implementation.
43314
43315 2006-04-12  Eric Blake  <ebb9@byu.net>
43316
43317         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43318         is now done automatically by the corresponding Autoconf macro.
43319
43320 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43321
43322         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43323         time_r.h.
43324
43325 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43326
43327         Merge regex changes from libc, removing some of our
43328         POSIX-conformance changes that were rejected and redoing them in a
43329         less-intrusive way.
43330
43331         * lib/regcomp.c (re_compile_internal, init_dfa):
43332         Length arg is now size_t, not Idx.  All uses changed.
43333         (peek_token): Forward decl now says internal_function.
43334         (__re_error_msgid, __re_error_msgid_idx):
43335         Now static rather than extern with attribute_hidden.
43336         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43337         For some reason libc prefers K&R style defns for external functions.
43338         (regerror) [!defined _LIBC]: Likewise.
43339         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43340         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43341         (build_range_exp, build_collating_symbol):
43342         Use K&R-style defn.
43343         (re_compile_fastmap): Use '\0' to memset, not 0.
43344         (utf8_sb_map): Make the calculations more obvious.
43345         (init_dfa, parse_bracket_exp, build_charclass_op):
43346         Call calloc and cast result, as glibc does.
43347         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43348         (build_range_exp, build_collating_symbol):
43349         Now internal functions.
43350
43351         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43352
43353         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43354         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43355         Don't depend on VMS; depend on __VMS instead, for POSIX
43356         namespace cleanness.
43357         (regoff_t): Define to ssize_t, not long int.
43358
43359         Remove the REG_ macros named below.  Instead, make the old names
43360         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43361         __USE_GNU_REGEX.
43362         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43363         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43364         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43365         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43366         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43367         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43368         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43369         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43370         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43371         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43372         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43373         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43374         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43375         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43376         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43377         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43378         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43379         (REG_NREGS):
43380         Remove.  All uses replaced by the old RE_* names.
43381         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43382         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43383         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43384         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43385         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43386         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43387         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43388         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43389         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43390         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43391         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43392         Don't bother having these macros be independent of each others'
43393         values, since they no longer exist in the POSIX name space.
43394
43395         Rename the following member names back to their old names,
43396         unless !__USE_GNU_REGEX.  All uses changed back.
43397         (buffer): Renamed from re_buffer.
43398         (allocated): Renamed from re_allocated.
43399         (used): Renamed from re_used.
43400         (syntax): Renamed from re_syntax.
43401         (fastmap): Renamed from re_fastmap.
43402         (translate): Renamed from re_translate.
43403         (can_be_null): Renamed from re_can_be_null.
43404         (regs_allocated): Renamed from re_regs_allocated.
43405         (fastmap_accurate): Renamed from re_fastmap_accurate.
43406         (no_sub): Renamed from re_no_sub.
43407         (not_bol): Renamed from re_not_bol.
43408         (not_eol): Renamed from re_not_eol.
43409         (newline_anchor): Renamed from re_newline_anchor.
43410         (num_regs): Renamed from rm_num_regs.
43411         (start): Renamed from rm_start.
43412         (end): Renamed from rm_end.
43413
43414         (free_state): Move up a bit.
43415
43416         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43417         #define to be empty.
43418         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43419         when that is what is intended.
43420         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43421         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43422         (MAX): New macro.
43423         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43424         All uses changed back to re_malloc, etc.  It's now the caller's
43425         responsibility to check for overflow; all callers changed.
43426         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43427         (re_x2nrealloc): Remove.
43428         (free_state): Remove decl.
43429
43430         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43431         (re_set_registers, re_exec):
43432         Use K&R-style defn.
43433
43434         2006-01-31  Roland McGrath  <roland@redhat.com>
43435
43436         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43437         Reported by Mike Frysinger <vapier@gentoo.org>.
43438
43439         2006-01-15  Andreas Jaeger  <aj@suse.de>
43440
43441         [BZ #1950]
43442         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43443         build_wcs_upper_buffer change.
43444         (build_wcs_upper_buffer): Change return type.
43445
43446         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43447
43448         * lib/regex_internal.h: Include <stdint.h> if available.
43449
43450         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43451
43452         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43453
43454         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43455
43456         * lib/regcomp.c: Adjust for changed secondary hash function.
43457
43458         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43459
43460         * lib/regex.h: Pretty printing.
43461         Clean up namespace a bit.
43462
43463         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43464
43465         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43466         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43467
43468         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43469                     Ulrich Drepper  <drepper@redhat.com>
43470
43471         [BZ #1302]
43472         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
43473         changed.
43474         (bitset_word_t): Renamed from bitset_word.  All uses changed.
43475
43476         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
43477
43478         [BZ #281]
43479         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43480         * lib/regcomp.c: Remove unnecessary uses of
43481         unsigned RE_TRANSLATE_TYPE.
43482         * lib/regex_internal.h: Likewise.
43483         * lib/regex_internal.c: Likewise.
43484         * lib/regexec.c: Likewise.
43485         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43486
43487         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
43488
43489         * lib/regexec.c (find_recover_state): Remove unnecessary
43490         initialization.
43491         (transit_state_bkref): Make DFA a const pointer.
43492         (get_subexp): Likewise.
43493         (check_arrival): Likewise.
43494         (update_cur_sifted_state): Likewise.
43495         (re_search_internal): Likewise.
43496         (prune_impossible_nodes): Likewise.
43497         (acquire_init_state_context): Likewise.
43498         (proceed_next_node): Likewise.
43499         (set_regs): Likewise.
43500         (free_fail_stack_return): Likewise.
43501         (check_arrival_expand_ecl): Mark DFA parameter as const.
43502         (check_arrival_expand_ecl_sub): Likewise.
43503         (check_subexp_limits): Likewise.
43504         (sub_epsilon_src_nodes):  Likewise.
43505         (add_epsilon_src_nodes):  Likewise.
43506         (merge_state_array): Likewise.
43507         (update_regs): Likewise.
43508         (build_trtable): Likewise.
43509         (sift_states_backward): Mark MCTX parameter as const.
43510         (build_sifted_states): Likewise.
43511         (update_cur_sifted_state): Likewise.
43512         (sift_states_mkref): Likewise.
43513         (check_arrival_expand_ecl): Mark eclosure as const.
43514         (check_dst_limits_calc_pos_1): Likewise.
43515         * lib/regex_internal.h (re_match_context_t): Make dfa a const
43516         pointer.
43517
43518         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
43519
43520         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43521         (transit_state_sb): Likewise.
43522         (transit_state_mb): Likewise.
43523         (sift_states_iter_mb): Likewise.
43524         (check_arrival_add_next_nodes): Likewise.
43525         (check_node_accept_bytes): Change first parameter to pointer-to-const.
43526         [_LIBC] (re_search_2_stub): Use mempcpy.
43527
43528         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43529         mbrtowc for very simple UTF-8 case.
43530
43531         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43532         a pointer-to-const.
43533         (re_acquire_state_context): Likewise.
43534         * lib/regex_internal.h: Adjust prototypes.
43535
43536         * lib/regex.c: Prevent using C++ compilers.
43537
43538         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43539         (re_acquire_state_context): Likewise.
43540
43541 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43542
43543         * modules/regex (Depends-on): Add ssize_t.
43544
43545 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43546
43547         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43548         translation table.
43549
43550 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43551
43552         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43553
43554 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
43555             Bruno Haible  <bruno@clisp.org>
43556
43557         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43558         <sys/types.h> and <inttypes.h>.
43559
43560 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43561
43562         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43563         `__error_t_defined', so argp.h will not typedef the former.
43564
43565 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43566
43567         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43568         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
43569         glibc names.  Even if glibc is changed to conform to POSIX, the
43570         traditional names will be available anyway, since regex depends on
43571         the extensions module.  Also, fix a longstanding typo in the
43572         implementation of Spencer ERE test #75 from grep 2.3.  Problems
43573         reported by Emanuele Giaquinta.  Also, change sense of cached
43574         variable, so that the message makes sense.
43575
43576 2006-03-24  Simon Josefsson  <jas@extundo.com>
43577
43578         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43579         including some doc fixes.
43580         (base64_encode_alloc): Fix +1 bug on allocation failures.
43581
43582 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43583
43584         * lib/base64.c (base64_encode): Do not read past end of array with
43585         unsanitized input on systems with CHAR_BIT > 8.
43586
43587 2006-03-24  Eric Blake  <ebb9@byu.net>
43588
43589         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43590
43591 2006-03-22  Karl Berry  <karl@gnu.org>
43592
43593         * config/srclist.txt (*setenv.[ch]): get from coreutils.
43594         * config/srclistvars.sh (COREUTILS): new var.
43595
43596 2006-03-17  Jim Meyering  <jim@meyering.net>
43597
43598         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43599         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43600
43601 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43602
43603         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43604         no longer needs it.  Instead, check that regoff_t is as least
43605         as wide as ptrdiff_t.
43606
43607         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43608         so that our regex.h stays compatible with the installed regex.
43609         This is helpful for installers who configure --without-included-regex.
43610         Problem reported by Emanuele Giaquinta.
43611
43612 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43613
43614         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43615         Typedef to long int, not to off_, as POSIX will likely change
43616         in that direction.
43617
43618 2006-03-15  Eric Blake  <ebb9@byu.net>
43619
43620         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43621
43622 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43623
43624         * lib/argp-help.c (validate_uparams): Fix typo
43625         * lib/argp-parse.c (argp_default_options): Consistently begin help
43626         messages with a lowercase letter.
43627
43628 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
43629
43630         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
43631         overrun buffers and shouldn't be used (much as gets shouldn't be
43632         used).
43633         * lib/time_r.c (asctime_r, ctime_r): Likewise.
43634
43635 2006-03-08  Simon Josefsson  <jas@extundo.com>
43636
43637         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43638         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43639
43640 2006-03-08  Simon Josefsson  <jas@extundo.com>
43641
43642         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43643         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43644
43645 2006-03-08  Simon Josefsson  <jas@extundo.com>
43646
43647         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43648         signal that configure disabled the device.
43649
43650 2006-03-08  Simon Josefsson  <jas@extundo.com>
43651
43652         * build-aux/maint.mk: Fix refresh-po, to handle no translated
43653         languages.
43654
43655 2006-03-07  Simon Josefsson  <jas@extundo.com>
43656
43657         * modules/getopt (Depends-on): Add unistd.
43658
43659         * modules/unistd: New file.
43660
43661 2006-03-07  Simon Josefsson  <jas@extundo.com>
43662
43663         * modules/gc-random: New file.
43664
43665 2006-03-07  Simon Josefsson  <jas@extundo.com>
43666
43667         * m4/unistd_h.m4: New file.
43668
43669 2006-03-07  Simon Josefsson  <jas@extundo.com>
43670
43671         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43672         test to be side-effect free by storing the result in the cache
43673         variable gl_cv_lib_readline, and moving the assignment of
43674         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43675         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43676
43677 2006-03-07  Simon Josefsson  <jas@extundo.com>
43678
43679         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
43680         error on missing devices (the functions will return an error).
43681
43682         * m4/gc.m4: Move random stuff to gc-random.m4
43683
43684 2006-03-07  Simon Josefsson  <jas@extundo.com>
43685
43686         * lib/unistd_.h: New file.
43687
43688 2006-03-07  Simon Josefsson  <jas@extundo.com>
43689
43690         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43691
43692 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43693
43694         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43695         Problem reported by Juan Manuel Guerrero.
43696
43697 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43698
43699         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43700         the unistd module.
43701         * lib/getlogin_r.c: Likewise.
43702         * lib/getlogin_r.h: Likewise.
43703         * lib/glob.c: Likewise.
43704         * lib/pagealign_alloc.c: Likewise.
43705         * lib/unistd_.h: Remove; no longer needed.
43706
43707 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43708
43709         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43710         Add unistd.
43711         * modules/c-stack (Depends-on): Add unistd.
43712         * modules/getlogin_r: Likewise.
43713         * modules/glob: Likewise.
43714         * modules/pagealign_alloc: Likewise.
43715         * modules/unistd (Files): Remove lib/unistd_.h.
43716         (EXTRA_DIST): Remove.
43717         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43718         need unistd_.h.
43719         (MOSTLYCLEANFILES): Remove unistd.h-t.
43720
43721 2006-03-03  Simon Josefsson  <jas@extundo.com>
43722
43723         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
43724
43725 2006-03-03  Simon Josefsson  <jas@extundo.com>
43726
43727         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
43728         libidn and bison.
43729
43730 2006-03-03  Simon Josefsson  <jas@extundo.com>
43731
43732         * build-aux/maint.mk: Add indent target.
43733
43734 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
43735
43736         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
43737         our replacement poll.h in any case, to avoid a differing
43738         declaration from a system header.  Seen on AIX.
43739
43740 2006-03-01  Simon Josefsson  <jas@extundo.com>
43741
43742         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
43743         <kasal@ucw.cz>.
43744
43745 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43746
43747         * modules/gettime (Depends-on): Add extensions module.
43748         * modules/nanosleep (Depends-on): Likewise.
43749         * modules/settime (Depends-on): Likewise.
43750
43751 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43752
43753         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
43754         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
43755         pedantically.
43756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43757         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
43758
43759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
43760         not "==".  Reported by Ralf Wildenhues.
43761
43762 2006-03-01  Karl Berry  <karl@gnu.org>
43763
43764         * doc/Copyright/request-*: new files, synced from gnuorg.
43765
43766 2006-03-01  Karl Berry  <karl@gnu.org>
43767
43768         * config/srclist.txt (Copyright/*): new entries.
43769
43770 2006-02-28  Simon Josefsson  <jas@extundo.com>
43771
43772         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
43773
43774 2006-02-27  Simon Josefsson  <jas@extundo.com>
43775
43776         * lib/base64.h: Indent #define's.  From Jim Meyering
43777         <jim@meyering.net>.
43778
43779 2006-02-27  Jim Meyering  <jim@meyering.net>
43780
43781         Revert the change of 2006-02-24, so these files can continue
43782         to be sync'd from gettext.
43783         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
43784         of `config.h'.
43785
43786 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43787
43788         * modules/intprops: New file.
43789         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
43790         Add intprops.
43791         * modules/getloadavg (Files): Remove lib/intprops.h.
43792         (Depends-on): Add intprops.
43793         * modules/human: Likewise.
43794         * modules/inttostr: Likewise.
43795         * modules/openat: Likewise.
43796         * modules/sig2str: Likewise.
43797         * modules/userspec: Likewise.
43798         * modules/utimecmp: Likewise.
43799         * modules/xnanosleep: Likewise.
43800         * modules/xstrtol: Likewise.
43801
43802 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
43803
43804         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
43805         * modules/lock-tests (TESTS): Use $(EXEEXT).
43806         * modules/tls-tests: Likewise.
43807         * modules/argp-tests: Likewise.
43808         (check_PROGRAMS): New var, replacing...
43809         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
43810
43811 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812
43813         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
43814         `config.h'.
43815
43816 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43817
43818         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
43819
43820 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43821
43822         Sync from coreutils.
43823         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
43824         gl_CHDIR_SAFER.
43825
43826 2006-02-22  Jim Meyering  <jim@meyering.net>
43827
43828         Sync from coreutils.
43829         * m4/chdir-safer.m4: New file.
43830
43831 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
43834         AT_FDCWD exceeds INT_MAX.
43835         * lib/openat.h (AT_FDCWD): Likewise.
43836
43837 2006-02-17  Eric Blake  <address@hidden>
43838
43839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
43840
43841 2006-02-16  Simon Josefsson  <jas@extundo.com>
43842
43843         * modules/getaddrinfo (Depends-on): Add sys_socket.
43844
43845 2006-02-15  Simon Josefsson  <jas@extundo.com>
43846
43847         * build-aux/maint.mk: Add dsyntax-check rule.
43848
43849 2006-02-15  Eric Blake  <ebb9@byu.net>
43850
43851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
43852         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
43853         'present but cannot compile' warnings on cygwin.
43854         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
43855         use ws2tcpip.h if sys/socket.h works.
43856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
43857         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
43858
43859 2006-02-14  Simon Josefsson  <jas@extundo.com>
43860
43861         * modules/maintainer-makefile (Files): Rename.
43862
43863         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
43864         and (the local) Makefile.cfg to maint-cfg.mk.
43865
43866         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
43867         to the latter.
43868
43869         * modules/maintainer-makefile: New module.
43870
43871         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
43872         severaly stripped to make it possible to build it up from scratch
43873         with reliable tests.
43874
43875         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
43876         fixes to permit overriding the default actions when configure and
43877         makefile are not available.
43878
43879 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43880
43881         Sync from coreutils.
43882         * modules/lstat (Depends-on): Don't depend on xalloc.
43883         (License): Change from GPL to LGPL, since this is now simply a
43884         replacement for a libc function.
43885
43886 2006-02-14  Jim Meyering  <jim@meyering.net>
43887
43888         Sync from coreutils.
43889
43890         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
43891         failure on deficient systems, and simplify gnulib lgpl dependencies.
43892         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
43893         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
43894
43895         * lib/xalloc-die.c: Remove unused definition of N_.
43896
43897 2006-02-14  Jim Meyering  <jim@meyering.net>
43898
43899         Sync from coreutils.
43900         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
43901         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
43902         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
43903         double-quote uses of that variable, to accommodate the rare case in
43904         which getmntent is available in none of the libraries checked.  This
43905         happens at least on FreeBSD 5.0.
43906
43907 2006-02-13  Simon Josefsson  <jas@extundo.com>
43908
43909         * gnulib-tool (Usage): Fix --import, from
43910         karl@freefriends.org (Karl Berry).
43911
43912 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43913
43914         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
43915
43916 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
43917
43918         * lib/argp-namefrob.h: Restore changes accidentally lost during the
43919         "autoupdate" on 2005-12-12.
43920
43921 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43922
43923         * modules/closeout (Depends-on): Remove atexit.
43924
43925 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
43928         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
43929
43930 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
43933         __EXTENSIONS__ if this causes compilation to fail.  Problem
43934         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
43935         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
43936
43937 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43938
43939         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
43940         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
43941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
43942         All uses changed.
43943
43944 2006-01-26  Simon Josefsson  <jas@extundo.com>
43945
43946         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
43947         prototype is visible on mingw32.
43948
43949         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
43950         for mingw32.
43951
43952         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
43953         mingw32).
43954
43955 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43956
43957         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
43958         attempt to open for write; this always fails, at least on POSIX
43959         hosts.  This reinstates the 2006-01-09 change, which was
43960         inadvertently removed.
43961
43962 2006-01-26  Bruno Haible  <bruno@clisp.org>
43963
43964         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
43965         Reported by Paul Eggert.
43966
43967 2006-01-26  Bruno Haible  <bruno@clisp.org>
43968             Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * lib/stdbool_.h (_Bool)
43971         [(! (defined __cplusplus || defined __BEOS__)
43972           && !defined __GNUC__
43973           && !(defined __HP_cc || defined __xlc__
43974                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
43975                || defined __sgi))]:
43976         #define to signed char in these cases too; this simplifies
43977         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
43978         etc., separately) and makes it more conservative.
43979
43980 2006-01-25  Simon Josefsson  <jas@extundo.com>
43981
43982         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
43983         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
43984         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
43985
43986 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43987
43988         * lib/argp-namefrob.h: Bugfix. Remove stray #
43989
43990 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43991
43992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
43993         so that we test the test.
43994         Check for yet another HP-UX cc bug involving *bool |= bool.
43995
43996 2006-01-25  Karl Berry  <karl@gnu.org>
43997
43998         * config/srclist.txt (vasnprintf.c): sync lost.
43999
44000 2006-01-25  Jim Meyering  <jim@meyering.net>
44001
44002         Sync from the stable (b5) branch of coreutils:
44003
44004         * lib/fts.c (fts_children): Don't let close() clobber errno from
44005         failed fchdir().
44006
44007         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44008         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44009         a dangling symlink.  That can also happen at least for ELOOP.
44010         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44011         FYI, this bug predates the inclusion of fts.c in coreutils.
44012
44013         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44014         in their own block, so pre-c99 compilers don't object.
44015
44016         Avoid the double-free (first in fts_read, second in fts_close) that
44017         would occur when an `active' directory is made inaccessible (e.g.,
44018         via chmod a-x) during a traversal.
44019         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44020         before returning.  Reproduce this failure by
44021         mkdir -p a/b; cd a; chmod a-x . b
44022         Reported by Stavros Passas.
44023
44024 2006-01-25  Jim Meyering  <jim@meyering.net>
44025
44026         * lib/fileblocks.c: Remove more useless parentheses.
44027         * lib/readutmp.h: Likewise.
44028
44029 2006-01-25  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44032         warnings.
44033         Reported by Paul Eggert.
44034
44035 2006-01-25  Bruno Haible  <bruno@clisp.org>
44036
44037         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44038         rid of a trap command. For Solaris sh.
44039         Reported by Mark D. Baushke <mdb@gnu.org>.
44040
44041 2006-01-24  Simon Josefsson  <jas@extundo.com>
44042
44043         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44044         Bruno.
44045
44046 2006-01-24  Karl Berry  <karl@gnu.org>
44047
44048         * config/srclist.txt (argp-namefrob.h): sync lost.
44049
44050 2006-01-24  Jim Meyering  <jim@meyering.net>
44051
44052         * modules/openat (Files): Add lib/intprops.h.
44053         From Mark D. Baushke.
44054
44055 2006-01-24  Jim Meyering  <jim@meyering.net>
44056
44057         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44058         Reported by Mark D. Baushke.
44059
44060 2006-01-24  Jim Meyering  <jim@meyering.net>
44061
44062         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44063
44064 2006-01-24  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/strnlen (Maintainer): Change from glibc to all.
44067
44068 2006-01-24  Bruno Haible  <bruno@clisp.org>
44069
44070         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44071         Patch by Paul Eggert.
44072
44073 2006-01-24  Bruno Haible  <bruno@clisp.org>
44074
44075         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44076         already has it.
44077         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44078         2005-11-26.
44079
44080         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44081         'signed char' to avoid problems with the built-in _Bool type.
44082         Reported by Paul Eggert on 2005-11-26.
44083
44084 2006-01-24  Bruno Haible  <bruno@clisp.org>
44085
44086         * gnulib-tool (func_import): Avoid constructing complicated sed
44087         expressions inside backquote.
44088         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44089
44090 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44091
44092         These changes imported from libc.
44093         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44094         test and two separate function calls.
44095         * lib/strndup.c (__strndup): Add libc_hidden_def.
44096
44097 2006-01-23  Simon Josefsson  <jas@extundo.com>
44098
44099         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44100         Remove the test_*_SOURCES variable: automake infers it by default.
44101         * modules/tls-tests: Likewise.
44102
44103 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44104
44105         Work around porting bugs reported by Dieter in
44106         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44107         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44108         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44109         Include "getopt.h" first, to check interface.
44110         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44111         !HAVE_DECL_GETENV.
44112         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44113         (__strndup): Revert to K&R-style function dfns, the glibc style.
44114         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44115         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44116         Include strnlen.h first, to get prototype properly.
44117         (strnlen): Renamed from __strnlen.
44118         Remove weak alias.
44119
44120 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44121
44122         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44123
44124 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * config/srclist.txt: Adjust to reflect glibc reorganization.
44127         This affects only comments.
44128
44129 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44130
44131          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44132          Reported by Bruce Korb <bkorb@gnu.org>.
44133
44134 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44137         to pacify gcc -Wswitch-default.
44138
44139 2006-01-22  Bruno Haible  <bruno@clisp.org>
44140
44141         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44142         temporary buffer for sprintf, take into account the precision also
44143         for 'd', 'i', 'u', 'o', 'x', 'X'.
44144
44145 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44146
44147         * modules/argp-tests: New module
44148         * tests/test-argp.c: New file
44149         * tests/test-argp-2.sh: New file
44150
44151 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44152
44153         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44154         (__argp_base_name): Removed
44155         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44156         typo.
44157         (__argp_base_name): Provide macro definition or extern declaration
44158         depending on the configuration
44159
44160 2006-01-20  Simon Josefsson  <jas@extundo.com>
44161
44162         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44163
44164 2006-01-20  Simon Josefsson  <jas@extundo.com>
44165
44166         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44167
44168 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44169
44170         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44171         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44172         Suggested by Bruno Haible.
44173
44174 2006-01-20  Karl Berry  <karl@gnu.org>
44175
44176         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44177         until changes propagate, I guess.
44178
44179 2006-01-19  Simon Josefsson  <jas@extundo.com>
44180
44181         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44182
44183 2006-01-19  Simon Josefsson  <jas@extundo.com>
44184
44185         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44186
44187 2006-01-19  Simon Josefsson  <jas@extundo.com>
44188
44189         * gnulib-tool: Set check_PROGRAMS.
44190
44191         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44192         modules/des-tests, modules/gc-arcfour-tests,
44193         modules/gc-arctwo-tests, modules/gc-des-tests,
44194         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44195         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44196         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44197         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44198         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44199         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44200         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44201         test_*_SOURCES.
44202
44203 2006-01-18  Simon Josefsson  <jas@extundo.com>
44204
44205         * modules/socklen (Depends-on): Depend on sys_socket.
44206
44207 2006-01-18  Simon Josefsson  <jas@extundo.com>
44208
44209         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44210         modules/des-tests, modules/gc-arcfour-tests,
44211         modules/gc-arctwo-tests, modules/gc-des-tests,
44212         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44213         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44214         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44215         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44216         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44217         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44218         $(EXEEXT) to automake TESTS variable, for mingw32.
44219
44220 2006-01-17  Simon Josefsson  <jas@extundo.com>
44221
44222         * modules/socklen (Include): Need sys/socket.h.
44223
44224 2006-01-17  Bruno Haible  <bruno@clisp.org>
44225
44226         * modules/ssize_t (Include): Add <sys/types.h>.
44227
44228 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44229
44230         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44231         it's not portable and it doesn't work with cross-compiles.
44232         Problem reported by Bruno Haible.  Fix missing-$ typo in
44233         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44234         -zignore from being used with Sun's C compiler.
44235
44236 2006-01-12  Simon Josefsson  <jas@extundo.com>
44237
44238         * lib/base64.c: Fix warning, reported by Bruno Haible
44239         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44240
44241 2006-01-12  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/ldd: New file.
44244         * build-aux/ldd.sh.in: New file.
44245         * MODULES.html.sh (Support for building libraries and executables): Add
44246         ldd.
44247
44248 2006-01-12  Bruno Haible  <bruno@clisp.org>
44249
44250         * m4/ldd.m4: New file.
44251
44252 2006-01-12  Bruno Haible  <bruno@clisp.org>
44253
44254         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44255         endless loop while replacing $auxdir with build-aux.
44256
44257 2006-01-11  Simon Josefsson  <jas@extundo.com>
44258
44259         * lib/stdint_.h (SIZE_MAX): Add missing (.
44260
44261 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         Sync from coreutils.
44264         * lib/md5.c: Fix commentary typos.
44265         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44266         * lib/md5.h (__attribute__): Remove; unused.
44267         * lib/sha1.c: Fix commentary to match md5 better.
44268         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44269         so that we don't need to worry about alignment.  All uses changed.
44270         This merges the 2005-10-28 md5 change into sha1.
44271
44272 2006-01-11  Jim Meyering  <jim@meyering.net>
44273
44274         Sync from coreutils.
44275         * lib/md5.c (OP): Fix spacing.
44276
44277 2006-01-11  Bruno Haible  <bruno@clisp.org>
44278
44279         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44280         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44281         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44282
44283 2006-01-11  Bruno Haible  <bruno@clisp.org>
44284
44285         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44286         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44287         the "early" section as well.
44288
44289 2006-01-11  Bruno Haible  <bruno@clisp.org>
44290
44291         Avoid "ar: no archive members specified" error on MacOS X.
44292         * gnulib-tool (func_modules_add_dummy): New function.
44293         (func_import, func_create_testdir): Invoke it.
44294
44295 2006-01-11  Bruno Haible  <bruno@clisp.org>
44296
44297         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44298         with $auxdir in AC_CONFIG_FILES statements.
44299
44300 2006-01-11  Bruno Haible  <bruno@clisp.org>
44301
44302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44303         Initialize also noinst_HEADERS to empty.
44304
44305 2006-01-11  Bruno Haible  <bruno@clisp.org>
44306
44307         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44308         variables.
44309         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44310         autoreconf.
44311
44312 2006-01-11  Bruno Haible  <bruno@clisp.org>
44313
44314         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44315         overridable by the user.
44316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44317
44318 2006-01-10  Simon Josefsson  <jas@extundo.com>
44319
44320         * modules/sys_socket: New file.
44321
44322 2006-01-10  Simon Josefsson  <jas@extundo.com>
44323
44324         * m4/sys_socket_h.m4: New file.
44325
44326 2006-01-10  Simon Josefsson  <jas@extundo.com>
44327
44328         * lib/socket_.h: New file.
44329
44330 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44331
44332         * modules/readutmp (Maintainer): Add myself.
44333
44334 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44335
44336         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44337         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44338         People who are still concerned with buggy memcmp implementations
44339         can invoke gl_FUNC_MEMCMP themselves.
44340
44341 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44342
44343         * lib/regex_internal.h (BITSET_WORD_BITS):
44344         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44345         preprocessor mishandles large unsigned values as if they were signed.
44346         Problem reported by Claudio Fontana in
44347         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44348
44349 2006-01-10  Jim Meyering  <jim@meyering.net>
44350
44351         Avoid the double-free (first in fts_read, second in fts_close) that
44352         would occur when an `active' directory is made inaccessible (e.g.,
44353         via chmod a-x) during a traversal.
44354         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44355         before returning.  Reproduce this failure by
44356         mkdir -p a/b; cd a; chmod a-x . b
44357         Reported by Stavros Passas.
44358
44359         Sync from coreutils.
44360         * lib/sha1.c: Tweak grammar in a comment.
44361
44362 2006-01-10  Jim Meyering  <jim@meyering.net>
44363
44364         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44365         Patch by Joerg Sonnenberger.
44366
44367 2006-01-10  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/readutmp: Depend on module free.
44370         * modules/strtok_r: Depend on module restrict.
44371
44372 2006-01-10  Bruno Haible  <bruno@clisp.org>
44373
44374         * modules/gettext (configure.ac): Add an invocation of
44375         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44376
44377 2006-01-10  Bruno Haible  <bruno@clisp.org>
44378
44379         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44380         Reported by Werner Lemberg <wl@gnu.org>.
44381
44382 2006-01-10  Bruno Haible  <bruno@clisp.org>
44383
44384         * lib/localcharset.c: Update from GNU gettext.
44385
44386 2006-01-10  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/argp.h (__const): Remove macro. Use const instead.
44389         * lib/argp-fmtstream.h (__const): Likewise.
44390         * lib/glob_.h (__const): Remove macro.
44391         * lib/glob-libc.h: Use const instead of __const.
44392
44393 2006-01-10  Bruno Haible  <bruno@clisp.org>
44394
44395         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44396         variable.
44397         Needed to avoid an automake error regarding the 'gettext' module.
44398
44399 2006-01-09  Simon Josefsson  <jas@extundo.com>
44400
44401         * modules/inet_ntop (Depends-on): Add restrict.
44402
44403 2006-01-09  Simon Josefsson  <jas@extundo.com>
44404
44405         * modules/gc-rijndael-tests (License): Put under LGPL.
44406
44407         * modules/gc-des-tests (License): Likewise.
44408
44409         * modules/gc-arcfour-tests (License): Likewise.
44410
44411         * modules/gc-arctwo-tests (License): Likewise.
44412
44413         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44414
44415         * modules/gc-hmac-sha1-tests (Files): Likewise.
44416
44417         * modules/gc-hmac-md5-tests (License): Likewise.
44418
44419         * modules/gc-sha1-tests (License): Likewise.
44420
44421         * modules/gc-md5-tests (License): Likewise.
44422
44423         * modules/gc-md4-tests (License): Likewise.
44424
44425         * modules/gc-md2-tests (License): Likewise.
44426
44427         * modules/gc-tests (License): Likewise.
44428
44429         * modules/des-tests (License): Likewise.
44430
44431         * modules/md4-tests (License): Likewise.
44432
44433         * modules/md2-tests (License): Likewise.
44434
44435 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44436
44437         Sync from coreutils:
44438
44439         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44440         * modules/lib-ignore: New file.
44441         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44442         chdir-safer.m4, lchmod.m4.
44443         * modules/openat: Add mkdirat.c, openat-priv.h.
44444
44445 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         Sync from coreutils.
44448         * m4/lib-ignore.m4: New file.
44449         * m4/lchmod.m4: New file.
44450
44451 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44452
44453         Sync from coreutils.
44454         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44455         for write access: POSIX says that must fail.
44456         * lib/fts.c (diropen): Likewise.
44457         * lib/save-cwd.c (save_cwd): Likewise.
44458         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44459         well, for minor improvements on hosts that lack O_DIRECTORY.
44460         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44461         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44462         Fall back on chown if open failed with EACCES.
44463
44464         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44465         Report an error at compile-time if only a 1-second nominal clock
44466         resolution is found.
44467
44468         * lib/lchmod.h: New file.
44469         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44470         (make_dir_parents): Use lchown rather than chown, and
44471         lchmod rather than chmod.
44472
44473         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44474         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
44475         "proc" reported by n0dalus.
44476
44477         * lib/mountlist.c: Include <limits.h>.
44478         (dev_from_mount_options)
44479         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44480         New function.  It no longer assumes "dev=" has the System V meaning
44481         on Linux (since it doesn't).  It also parses "dev=" more carefully.
44482         (read_file_system_list)
44483         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44484         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44485         dev= in that case.
44486
44487         * lib/posixtm.h (PDS_PRE_2000): New macro.
44488         * lib/posixtm.c (year): Arg is now syntax_bits rather than
44489         allow_century.  All usages changed.  Reject dates outside the range
44490         1969-1999 if PDS_PRE_2000 is used.
44491
44492 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44493
44494         Sync from coreutils.
44495         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44496         (Time of day items): Mention the possibility of leap seconds.
44497         Problem reported by Dr. David Alan Gilbert.
44498
44499 2006-01-09  Jim Meyering  <jim@meyering.net>
44500
44501         Sync from coreutils.
44502
44503         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44504
44505         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44506
44507         * lib/modechange.c (mode_compile): Reject an invalid mode string
44508         that starts with an octal digit.  From Andreas Gruenbacher.
44509
44510         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44511         and dup to open_safer and dup_safer, respectively.
44512         (openat_permissive): Fix typo in comment.
44513
44514         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44515         "gettext.h"; either no longer needed or are guaranteed by openat.h.
44516         (_): Remove; no longer needed.
44517         (openat): Renamed from rpl_openat; no need for rpl_openat
44518         since openat.h renames openat for us.
44519         Replace most of the body with a call to openat_permissive,
44520         to avoid duplicate code.
44521         Port to (probably hypothetical) environments were mode_t is
44522         wider than int.
44523         (openat_permissive): Require mode arg, so that we can check
44524         types better.  Put it just after flags.  Change cwd failure
44525         indicator from pointer-to-bool to pointer-to-errno-value.
44526         All callers changed.
44527         Invoke openat_save_fail and/or openat_restore_fail if
44528         cwd_errno is null, so that openat can call us.
44529         (openat_permissive, fdopendir, fstatat, unlinkat):
44530         Simplify errno handling to avoid some duplicate code,
44531         as it's OK to set errno on success.
44532         * lib/openat.h: Revamp code so that function macros depend on
44533         __OPENAT_PREFIX only, not also on AT_FDCWD.
44534         (openat_ro): Remove.  Caller changed to use openat_permissive.
44535         (openat_permissive): Now a macro, if not a function.
44536         (openat_restore_fail, openat_save_fail): Now always functions,
44537         since mkdirat needs them even if __OPENAT_PREFIX is defined.
44538
44539         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44540         and openat.c.
44541         * lib/mkdirat.c: Include openat-priv.h.
44542         Remove definitions of macros defined therein.
44543         * lib/openat.c: Likewise.
44544
44545         * lib/mkdirat.c (mkdirat): New file and function.
44546         * lib/openat.h (mkdirat): Declare.
44547
44548         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44549
44550         * lib/openat.h (openat_permissive): Declare.
44551         (openat_ro): Define.
44552
44553         * lib/openat.c (EXPECTED_ERRNO): New macro.
44554         (openat_permissive): New function -- used in remove.c rewrite.
44555         (all functions): Set errno just before returning, only if there
44556         was an actual failure.
44557         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44558
44559         Emulate openat-family functions using Linux's procfs, if possible.
44560         Idea and some code based on Ulrich Drepper's glibc changes.
44561
44562         * lib/openat.c: (BUILD_PROC_NAME): New macro.
44563         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44564         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44565         before falling back on save_cwd and restore_cwd.
44566         (fdopendir, fstatat, unlinkat): Likewise.
44567
44568         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44569         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44570
44571         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44572         as second argument to va_arg.  Otherwise, some versions of gcc
44573         warn that `if this code is reached, the program will abort'.
44574
44575 2006-01-09  Jim Meyering  <jim@meyering.net>
44576
44577         Sync from coreutils.
44578         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44579         Require openat-priv.h.
44580
44581 2006-01-09  Bruno Haible  <bruno@clisp.org>
44582
44583         * modules/strnlen (Include): Use strnlen.h.
44584
44585 2006-01-09  Bruno Haible  <bruno@clisp.org>
44586
44587         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44588
44589 2006-01-09  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/sysexit_.h (EX_OK): New macro.
44592         Suggested by Martin Lambers <marlam@marlam.de>.
44593
44594 2006-01-09  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44597         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44598
44599 2006-01-09  Bruno Haible  <bruno@clisp.org>
44600
44601         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44602         numbers.
44603
44604 2006-01-09  Bruno Haible  <bruno@clisp.org>
44605
44606         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44607         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44608         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44609         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44610
44611 2006-01-09  Bruno Haible  <bruno@clisp.org>
44612
44613         * build-aux/javacomp.sh.in: New file, moved from lib/.
44614         * modules/javacomp-script (Files): Update.
44615         (configure.ac): Add AC_CONFIG_FILES invocation.
44616         (EXTRA_DIST): Remove variable.
44617
44618         * build-aux/javaexec.sh.in: New file, moved from lib/.
44619         * modules/javaexec (Files): Update.
44620         (configure.ac): Add AC_CONFIG_FILES invocation.
44621         (EXTRA_DIST): Remove javaexec.sh.in.
44622
44623         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44624         * modules/csharpcomp-script (Files): Update.
44625         (configure.ac): Add AC_CONFIG_FILES invocation.
44626         (EXTRA_DIST): Remove variable.
44627
44628         * build-aux/csharpexec.sh.in: New file, moved from lib/.
44629         * modules/csharpexec (Files): Update.
44630         (configure.ac): Add AC_CONFIG_FILES invocation.
44631         (EXTRA_DIST): Remove csharpexec.sh.in.
44632
44633 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44634
44635         Sync from coreutils.
44636
44637         Add POSIX ACL support
44638         * lib/acl.h (copy_acl, set_acl): Add declarations.
44639         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44640         systems other than Linux.
44641         (chmod_or_fchmod): New function: use fchmod when possible,
44642         and chmod otherwise.
44643         (file_has_acl): Add a POSIX ACL implementation, with a
44644         Linux-specific subcase.
44645         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44646         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
44647         acls are unsupported.
44648         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44649         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
44650         are unsupported.
44651
44652 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44653
44654         Sync from coreutils.
44655         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44656
44657 2006-01-07  Bruno Haible  <bruno@clisp.org>
44658
44659         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44660         gl_EARLY.
44661
44662 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44663
44664         * lib/strftime.c (tzname): Don't declare if it is already #defined.
44665         Problem reported for Mingw by Mark Junker.
44666
44667 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44668
44669         * README: Gnulib normally doesn't generate a tarball.
44670
44671 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44674         long int, not int, for nanosecond counts, so that people who are
44675         used to POSIX struct timespec won't be surprised.  Reported by Jim
44676         Meyering.
44677
44678 2005-12-28  Bruno Haible  <bruno@clisp.org>
44679
44680         * build-aux/config.rpath: Update from GNU gettext.
44681
44682 2005-12-16  Jim Meyering  <jim@meyering.net>
44683
44684         * modules/fprintftime: New module.
44685         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44686
44687 2005-12-16  Jim Meyering  <jim@meyering.net>
44688
44689         * m4/fprintftime.m4: New file.
44690
44691 2005-12-16  Jim Meyering  <jim@meyering.net>
44692
44693         * lib/fprintftime.c, lib/fprintftime.h: New files.
44694
44695 2005-12-15  Simon Josefsson  <jas@extundo.com>
44696
44697         * modules/socklen (configure.ac): Fix M4 macro name, to align with
44698         new m4/socklen.m4.
44699
44700 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44701
44702         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44703         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44704
44705 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44706
44707         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44708         * lib/argp-help.c (fill_in_uparams): Check if the constructed
44709         struct uparams is valid. Fall back to the default values if it is
44710         not.
44711
44712 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44713
44714         * modules/argp (Files): Add argp-pin.c
44715         (Depends-on): dirname
44716         (lib_SOURCES): Add argp-pin.c
44717
44718 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44719
44720         * m4/argp.m4:  Check if program_invocation_name and
44721         program_invocation_short_name are declared and define appropriate
44722         macros if they are not.
44723
44724 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44725
44726         * lib/argp-help.c (__argp_base_name): New function
44727         (__argp_short_program_name): Rewrite using __argp_base_name
44728         * lib/argp-namefrob.h: Define program_invocation_name and
44729         program_invocation_short_name if requested
44730         (__argp_base_name): Add prototype
44731         * lib/argp-parse.c (argp_def): Use gettext wrappers
44732         (argp_default_parser): Use __argp_base_name
44733         * lib/argp-pin.c: New file. Defines program_invocation_name and
44734         program_invocation_short_name on systems that lack them.
44735
44736 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
44739         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44740         porting problem reported by Georg Schwarz in
44741         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44742
44743 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44744
44745         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
44746         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44747         porting problem reported by Georg Schwarz in
44748         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44749
44750 2005-12-05  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
44753         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
44754         Reported by Mark Junker <mjscod@gmx.de>.
44755
44756 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44757
44758         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
44759         Use implementation from Albert Chin, with some
44760         comments/corrections by Stepan Kasal and myself.
44761
44762 2005-12-02  Bruno Haible  <bruno@clisp.org>
44763
44764         * gnulib-tool (func_import): Accept GPLed build tool modules when
44765         --lgpl is given.
44766         * modules/csharpcomp-script: New file.
44767         * modules/csharpcomp: Depend on it.
44768         * modules/javacomp-script: New file.
44769         * modules/javacomp: Depend on it.
44770         Suggested by Simon Josefsson.
44771
44772 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44773
44774         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
44775         statement, to work around an HP-UX 10.20 compiler bug reported by
44776         Peter O'Gorman.
44777
44778 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44779
44780         * modules/savedir (Depends-on): Add openat.
44781
44782 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
44785         (uintmax_t) [defined uintmax_t]: Do not declare.
44786         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
44787         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
44788         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
44789         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
44790         sake of portability to weird hosts that C allows (though we don't
44791         know of any practical examples).
44792
44793         * lib/savedir.h (fdsavedir): New decl.
44794         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
44795         contains most of the former guts of savedir.
44796         (savedir): Use savedirstream.
44797         Include "openat.h".
44798
44799 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44800
44801         * modules/obstack (Files): Add m4/ulonglong.m4.
44802         Problem reported by Davide Angelocola.
44803
44804 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44805
44806         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
44807         coreutils no longer futzes with rounding modes.
44808
44809 2005-11-14  Jim Meyering  <jim@meyering.net>
44810
44811         * lib/mkstemp-safer.c: Include <config.h>, required for possible
44812         replacement of mkstemp.
44813
44814 2005-11-10  Simon Josefsson  <jas@extundo.com>
44815
44816         * lib/readline.c: Remove EOL.
44817
44818 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44819
44820         * modules/gethrxtime (Depends-on): Add gettime.
44821
44822 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44823
44824         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
44825         or gettimeofday; no longer needed.
44826
44827 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44828
44829         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
44830         time business.
44831         (gethrxtime) [! (HAVE_NANOUPTIME
44832         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
44833         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
44834         our own approximation.
44835
44836 2005-11-08  Eric Blake  <ebb9@byu.net>
44837
44838         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
44839
44840 2005-11-08  Eric Blake  <ebb9@byu.net>
44841
44842         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
44843
44844 2005-11-04  Bruno Haible  <bruno@clisp.org>
44845
44846         * gnulib-tool: Implement --update mode.
44847
44848 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44849
44850         Fix porting problem reported by Theodoros V. Kalamatianos.
44851         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
44852         Don't assume that futimes failing means we must fail.
44853
44854 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44855
44856         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
44857         variables to suggest the intended function of the PATH_MAX check.
44858
44859 2005-10-30  Kean Johnston  <jkj@sco.com>
44860
44861         Trivial changes to support SCO systems.
44862         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
44863         as PATH_MAX.
44864         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
44865         where __ptr is null when no I/O is pending.
44866
44867 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
44868
44869         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
44870         leave errno alone.  Problem reported by Dmitry V. Levin.
44871
44872 2005-10-28  Simon Josefsson  <jas@extundo.com>
44873
44874         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
44875         Test more.
44876
44877         * tests/test-gc-md2.c, tests/test-md2.c: New files.
44878
44879         * modules/md2, modules/md2-tests: New files.
44880
44881 2005-10-28  Simon Josefsson  <jas@extundo.com>
44882
44883         * m4/inet_ntop.m4: More tests.
44884
44885         * m4/gc-md2.m4, md2.m4: New file.
44886
44887 2005-10-28  Simon Josefsson  <jas@extundo.com>
44888
44889         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
44890         "restrict" keywords, as per POSIX.  Protect the function
44891         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
44892         Don't use K&R prototypes.  Check the sprintf return values.
44893         Re-define EAFNOSUPPORT if not present.  Indent.
44894
44895         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
44896         suggested by Bruno Haible <bruno@clisp.org>.
44897
44898         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
44899
44900         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
44901
44902         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
44903         libgcrypt).
44904
44905         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
44906
44907         * lib/md2.h, lib/md2.c: New files.
44908
44909 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
44910
44911         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
44912         errno alone.  Problem reported by Frederic Jolliton.
44913
44914 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44915
44916         * modules/verify (License): Change from GPL to LGPL.  This is a
44917         tiny module and there are apparently near-equivalents that are
44918         under the BSD license.
44919
44920 2005-10-24  Simon Josefsson  <jas@extundo.com>
44921
44922         * modules/sha1: Relicense to LGPL.
44923
44924 2005-10-24  Simon Josefsson  <jas@extundo.com>
44925
44926         * lib/md4.h: Shrink buffer size, now that we changed the type.
44927
44928 2005-10-23  Simon Josefsson  <jas@extundo.com>
44929
44930         * gnulib-tool (func_import): Fix --tests-base.
44931
44932 2005-10-22  Simon Josefsson  <jas@extundo.com>
44933
44934         * modules/arcfour (Depends-on): Need stdint.
44935
44936 2005-10-22  Simon Josefsson  <jas@extundo.com>
44937
44938         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
44939         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
44940
44941 2005-10-22  Simon Josefsson  <jas@extundo.com>
44942
44943         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
44944         suggested by Bruno Haible <bruno@clisp.org>.
44945
44946 2005-10-22  Simon Josefsson  <jas@extundo.com>
44947
44948         * lib/crc.h: Include stddef.h, for size_t.
44949
44950 2005-10-22  Simon Josefsson  <jas@extundo.com>
44951
44952         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
44953         arcfour_context struct (simplify test vector testing in GNU
44954         Shishi).
44955
44956 2005-10-21  Simon Josefsson  <jas@extundo.com>
44957
44958         * modules/des, modules/des-tests: New files.
44959
44960         * modules/gc-des, modules/gc-des-tests: New files.
44961
44962         * tests/test-des.c, tests/test-gc-des.c: New file.
44963
44964 2005-10-21  Simon Josefsson  <jas@extundo.com>
44965
44966         * modules/arctwo, modules/arctwo-tests: New files.
44967
44968         * tests/test-arctwo.c: New file.
44969
44970         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
44971
44972         * tests/test-gc-arctwo.c: New file.
44973
44974 2005-10-21  Simon Josefsson  <jas@extundo.com>
44975
44976         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
44977         Bruno Haible <bruno@clisp.org>.
44978
44979         * m4/gc-des.m4: New file.
44980
44981 2005-10-21  Simon Josefsson  <jas@extundo.com>
44982
44983         * m4/arctwo.m4: New file.
44984
44985         * m4/gc-arctwo.m4: New file.
44986
44987 2005-10-21  Simon Josefsson  <jas@extundo.com>
44988
44989         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
44990         block.
44991
44992 2005-10-21  Simon Josefsson  <jas@extundo.com>
44993
44994         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
44995         <bruno@clisp.org>.
44996
44997         * lib/hmac-sha1.c (hmac_sha1): Likewise.
44998
44999         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45000         Bruno Haible <bruno@clisp.org>.
45001
45002         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45003         <bruno@clisp.org>.
45004
45005 2005-10-21  Simon Josefsson  <jas@extundo.com>
45006
45007         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45008
45009 2005-10-21  Simon Josefsson  <jas@extundo.com>
45010
45011         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45012
45013 2005-10-21  Simon Josefsson  <jas@extundo.com>
45014
45015         * lib/des.h, lib/des.c: New files.
45016
45017         * lib/gc-gnulib.c: Support DES.c
45018
45019 2005-10-21  Simon Josefsson  <jas@extundo.com>
45020
45021         * lib/arctwo.h, lib/arctwo.c: New files.
45022
45023         * lib/gc-gnulib.c: Support ARCTWO.
45024
45025 2005-10-21  Simon Josefsson  <jas@extundo.com>
45026
45027         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45028         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45029
45030 2005-10-21  Simon Josefsson  <jas@extundo.com>
45031
45032         * gnulib-tool (func_import, func_create_testdir): Define automake
45033         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45034         Makefile.am snippet),
45035         suggested by Bruno Haible <bruno@clisp.org>.
45036
45037         * modules/gc (Makefile.am): Use it.
45038
45039 2005-10-21  Bruno Haible  <bruno@clisp.org>
45040
45041         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45042         patch.
45043
45044 2005-10-19  Simon Josefsson  <jas@extundo.com>
45045
45046         * tests/test-gc-rijndael.c: New file.
45047
45048         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45049
45050 2005-10-19  Simon Josefsson  <jas@extundo.com>
45051
45052         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45053         interface too.
45054
45055 2005-10-19  Simon Josefsson  <jas@extundo.com>
45056
45057         * tests/test-gc-arcfour.c: New file.
45058
45059         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45060
45061 2005-10-19  Simon Josefsson  <jas@extundo.com>
45062
45063         * modules/gc-md4, modules/gc-md4-tests: New file.
45064
45065         * tests/test-gc-md4.c: New file.
45066
45067 2005-10-19  Simon Josefsson  <jas@extundo.com>
45068
45069         * m4/gc-md4.m4: New file.
45070
45071 2005-10-19  Simon Josefsson  <jas@extundo.com>
45072
45073         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45074         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45075         <kasal@ucw.cz>.
45076
45077 2005-10-19  Simon Josefsson  <jas@extundo.com>
45078
45079         * m4/gc-arcfour.m4: New file.
45080
45081         * m4/gc-rijndael.m4: New file.
45082
45083 2005-10-19  Simon Josefsson  <jas@extundo.com>
45084
45085         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45086
45087 2005-10-19  Simon Josefsson  <jas@extundo.com>
45088
45089         * lib/gc-gnulib.c: Support ARCFOUR.
45090
45091 2005-10-19  Simon Josefsson  <jas@extundo.com>
45092
45093         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45094         support.
45095
45096         * lib/gc.h: Add ECB enum type.
45097
45098         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45099
45100 2005-10-18  Simon Josefsson  <jas@extundo.com>
45101
45102         * tests/test-md5.c: New file.
45103
45104         * modules/md5-tests: New file.
45105
45106 2005-10-18  Simon Josefsson  <jas@extundo.com>
45107
45108         * tests/test-md4.c: New file.
45109
45110         * modules/md4, modules/md4-tests: New files.
45111
45112 2005-10-18  Simon Josefsson  <jas@extundo.com>
45113
45114         * m4/md4.m4: New file.
45115
45116 2005-10-18  Simon Josefsson  <jas@extundo.com>
45117
45118         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45119
45120 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45121
45122         * gnulib-tool (func_create_testdir): Omit the second check whether
45123         BUILT_SOURCES in nonempty.
45124
45125 2005-10-17  Simon Josefsson  <jas@extundo.com>
45126
45127         * tests/test-rijndael.c: New file.
45128
45129 2005-10-17  Simon Josefsson  <jas@extundo.com>
45130
45131         * modules/sha1: Depend on stdint instead of md5.
45132
45133         * modules/md5: Depend on stdint, remove uint32_t.
45134
45135 2005-10-17  Simon Josefsson  <jas@extundo.com>
45136
45137         * modules/gc-sha1-tests: New file.
45138
45139         * tests/test-gc-sha1.c: New file.
45140
45141 2005-10-17  Simon Josefsson  <jas@extundo.com>
45142
45143         * m4/md5.m4: Remove call to uint32_t.m4.
45144
45145 2005-10-17  Simon Josefsson  <jas@extundo.com>
45146
45147         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45148
45149         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45150         md5.h.
45151
45152         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45153
45154         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45155
45156 2005-10-17  Simon Josefsson  <jas@extundo.com>
45157
45158         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45159
45160 2005-10-17  Simon Josefsson  <jas@extundo.com>
45161
45162         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45163
45164 2005-10-17  Simon Josefsson  <jas@extundo.com>
45165
45166         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45167
45168         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45169
45170 2005-10-17  Bruno Haible  <bruno@clisp.org>
45171
45172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45173         that it can also be used in a test.
45174
45175 2005-10-16  Bruno Haible  <bruno@clisp.org>
45176
45177         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45178         TESTS_ENVIRONMENT, so that individual tests can augment it.
45179
45180         * gnulib-tool (func_create_testdir): Use an intermediate target for
45181         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45182         macros, like $(ALLOCA_H), which cannot be passed through the command
45183         line.
45184
45185 2005-10-15  Simon Josefsson  <jas@extundo.com>
45186
45187         * modules/rijndael-tests: New file.
45188
45189         * modules/rijndael: New file.
45190
45191 2005-10-15  Simon Josefsson  <jas@extundo.com>
45192
45193         * m4/rijndael.m4: New file.
45194
45195 2005-10-15  Simon Josefsson  <jas@extundo.com>
45196
45197         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45198
45199         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45200
45201 2005-10-14  Simon Josefsson  <jas@extundo.com>
45202
45203         * tests/test-arcfour.c: New file.
45204
45205         * modules/arcfour, modules/arcfour-tests: New files.
45206
45207 2005-10-14  Simon Josefsson  <jas@extundo.com>
45208
45209         * m4/arcfour.m4: New file.
45210
45211 2005-10-14  Simon Josefsson  <jas@extundo.com>
45212
45213         * lib/arcfour.h, lib/arcfour.c: New files.
45214
45215 2005-10-14  Roland McGrath  <roland@redhat.com>
45216
45217         Import from libc.  [BZ #1331]
45218         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45219         macro argument.
45220         Reported by Matej Vela <vela@debian.org>.
45221
45222 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45223
45224         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45225         include <wchar.h>; no longer needed.
45226
45227 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45228
45229         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45230
45231 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45232         and  Ulrich Drepper  <drepper@redhat.com>
45233
45234         Import from libc.
45235         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45236         instead of inline stream orientation test and two separate
45237         function calls.  Pay no attention to USE_IN_LIBIO.
45238
45239 2005-10-13  Simon Josefsson  <jas@extundo.com>
45240
45241         * modules/gc-hmac-md5-tests: New file.
45242
45243         * tests/test-gc-hmac-sha1.c: New file.
45244
45245         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45246
45247         * modules/gc-hmac-md5-tests: New file.
45248
45249         * tests/test-gc-md5.c: New file.
45250
45251         * modules/gc-md5-tests: New file.
45252
45253 2005-10-13  Simon Josefsson  <jas@extundo.com>
45254
45255         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45256         Move memory allocation outside of loop.
45257
45258 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45259
45260         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45261         intermediate directory is in a read-only file system.  Problem
45262         reported by Eric Blake.
45263
45264 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45265
45266         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45267
45268 2005-10-12  Simon Josefsson  <jas@extundo.com>
45269
45270         * tests/test-hmac-sha1.c: New file.
45271
45272         * modules/hmac-sha1-tests: New file.
45273
45274         * modules/hmac-sha1: New file.
45275
45276 2005-10-12  Simon Josefsson  <jas@extundo.com>
45277
45278         * modules/gc-sha1: New file.
45279
45280 2005-10-12  Simon Josefsson  <jas@extundo.com>
45281
45282         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45283
45284         * tests/test-gc-pbkdf2-sha1.c: New file.
45285
45286 2005-10-12  Simon Josefsson  <jas@extundo.com>
45287
45288         * modules/gc-md5, modules/gc-hmac-md5: New files.
45289
45290         * modules/gc (Files): Remove md5, memxor and hmac files.
45291
45292 2005-10-12  Simon Josefsson  <jas@extundo.com>
45293
45294         * m4/gc-pbkdf2-sha1.m4: New file.
45295
45296         * m4/gc-hmac-sha1.m4: New file.
45297
45298         * m4/gc-sha1: New file.
45299
45300         * m4/hmac-sha1.m4: New file.
45301
45302 2005-10-12  Simon Josefsson  <jas@extundo.com>
45303
45304         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45305
45306         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45307
45308 2005-10-12  Simon Josefsson  <jas@extundo.com>
45309
45310         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45311         suggested by Bruno Haible <bruno@clisp.org>.
45312
45313 2005-10-12  Simon Josefsson  <jas@extundo.com>
45314
45315         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45316
45317 2005-10-12  Simon Josefsson  <jas@extundo.com>
45318
45319         * lib/gc-pbkdf2-sha1.c: New file.
45320
45321         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45322
45323 2005-10-12  Simon Josefsson  <jas@extundo.com>
45324
45325         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45326
45327         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45328
45329 2005-10-12  Simon Josefsson  <jas@extundo.com>
45330
45331         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45332         GC_USE_HMAC_MD5, respectively.
45333
45334         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45335         (gc_md5): Fix typo.
45336
45337         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45338
45339         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45340
45341         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45342
45343 2005-10-12  Bruno Haible  <bruno@clisp.org>
45344
45345         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45346         Reported by Stepan Kasal <kasal@ucw.cz>.
45347
45348 2005-10-11  Simon Josefsson  <jas@extundo.com>
45349
45350         * tests/test-crc.c: New file.
45351
45352         * modules/crc, modules/crc-tests: New files.
45353
45354 2005-10-11  Simon Josefsson  <jas@extundo.com>
45355
45356         * m4/crc.m4: New file.
45357
45358 2005-10-11  Simon Josefsson  <jas@extundo.com>
45359
45360         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45361
45362         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45363
45364         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45365
45366 2005-10-11  Simon Josefsson  <jas@extundo.com>
45367
45368         * lib/crc.h, lib/crc.c: New files.
45369
45370         * lib/gc.h (gc_hash_buffer): Add doc.
45371
45372 2005-10-11  Bruno Haible  <bruno@clisp.org>
45373
45374         * modules/c-strcasestr: New file.
45375         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45376
45377 2005-10-11  Bruno Haible  <bruno@clisp.org>
45378
45379         * modules/c-strcase: New file.
45380         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45381
45382 2005-10-11  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/strcasecmp.c: Include limits.h.
45385         (strcasecmp): Avoid integer overflow on exotic platforms.
45386         * lib/strncasecmp.c: Include limits.h.
45387         (strncasecmp): Avoid integer overflow on exotic platforms.
45388         Reported by Paul Eggert.
45389
45390 2005-10-11  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/c-strcasestr.h: New file, from GNU gettext.
45393         * lib/c-strcasestr.c: New file, from GNU gettext.
45394
45395 2005-10-11  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/c-strcase.h: New file, from GNU gettext.
45398         * lib/c-strcasecmp.c: New file, from GNU gettext.
45399         * lib/c-strncasecmp.c: New file, from GNU gettext.
45400
45401 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * modules/mempcpy (License): GPL -> LGPL.
45404         * modules/strchrnul (License): Likewise.
45405         * modules/sysexits (License): Likewise.
45406
45407 2005-10-08  Simon Josefsson  <jas@extundo.com>
45408
45409         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45410
45411 2005-10-07  Simon Josefsson  <jas@extundo.com>
45412
45413         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45414
45415 2005-10-06  Simon Josefsson  <jas@extundo.com>
45416
45417         * tests/test-hmac-md5.c: New file.
45418
45419         * modules/hmac-md5-tests: New file.
45420
45421         * modules/hmac-md5: New file.
45422
45423 2005-10-06  Simon Josefsson  <jas@extundo.com>
45424
45425         * m4/hmac-md5.m4: New file.
45426
45427         * m4/memxor.m4: Require gl_C_RESTRICT.
45428
45429 2005-10-06  Simon Josefsson  <jas@extundo.com>
45430
45431         * lib/memxor.c (memxor): Avoid casts and warnings.
45432
45433 2005-10-06  Simon Josefsson  <jas@extundo.com>
45434
45435         * lib/hmac-md5.c: New file.
45436
45437         * lib/hmac.h: New file.
45438
45439 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45440
45441         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45442         promotes to int, not unsigned int, to catch the AIX 5.3
45443         compiler bug.
45444
45445 2005-10-05  Simon Josefsson  <jas@extundo.com>
45446
45447         * modules/memxor: New file.
45448
45449         * modules/iconv (Files): Move config.rpath to havelib, it is used
45450         there.
45451
45452         * modules/havelib (Files): Add config.rpath.
45453
45454 2005-10-05  Simon Josefsson  <jas@extundo.com>
45455
45456         * m4/memxor.m4: New file.
45457
45458 2005-10-05  Simon Josefsson  <jas@extundo.com>
45459
45460         * lib/memxor.c (memxor): Fix compiler error.
45461
45462         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45463         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45464
45465         * lib/memxor.h, lib/memxor.c: New files.
45466
45467         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45468         we assume all systems have it, suggested by Jim Meyering
45469         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45470         any systems lack sys/socket.h; mingw32 is known to lack it, but we
45471         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
45472         same reasons.
45473
45474 2005-10-05  Simon Josefsson  <jas@extundo.com>
45475
45476         * config/srclist.txt: Add glibc bug 1423 for md5.h.
45477
45478 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45479
45480         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45481         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45482         needed, since the source code now assumes these .h files.
45483
45484 2005-10-05  Derek Price  <derek@ximbiot.com>
45485
45486         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45487
45488 2005-10-05  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/stdint (License): Change to LGPL.
45491
45492 2005-10-04  Simon Josefsson  <jas@extundo.com>
45493
45494         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45495         D. Baushke" <mdb@gnu.org>.
45496
45497 2005-10-04  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/verify.h (verify_true): Provide alternative definition for C++.
45500
45501 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
45504         (SSIZE_MAX): New macro, if not already defined.
45505         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45506         than 2 GiB.
45507
45508 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         Sync from coreutils.
45511         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45512         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45513         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
45514         ULLONG_MAX doesn't work with 2.7.2.1.
45515
45516 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45517
45518         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45519         From Ben Pfaff.
45520
45521         * modules/exclude (Depends-on): Depend on verify.
45522         * modules/strtoimax (Depends-on): Likewise.
45523         * modules/utimecmp (Depends-on): Likewise.
45524
45525 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45526
45527         * lib/exclude.c: Include verify.h.
45528         (verify): Remove.  All callers changed to use verify.h's version.
45529         * lib/strtoimax.c: Likewise.
45530         * lib/utimecmp.c: Likewis.e
45531
45532         Sync from coreutils.
45533         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45534         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45535         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45536         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
45537         bother returning ENOSYS if settimeofday or stime fails; just let
45538         them return whatever errno they want to return.
45539         * lib/utimens.c: Include unistd.h, for dup2.
45540         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45541         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45542
45543 2005-10-02  Jim Meyering  <jim@meyering.net>
45544
45545         Sync from coreutils.
45546         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45547         from glibc-2.2.5 that fails for read-only files.
45548
45549 2005-10-02  Jim Meyering  <jim@meyering.net>
45550
45551         Sync from coreutils.
45552         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45553         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45554         `#if HAVE_CONFIG_H'.
45555         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45556         Remove AT_FDCWD test.
45557         Do not consume the fd unless successful.
45558         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45559         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45560         block, so that we don't even try to compile it if settimeofday is
45561         available.  This works around a compilation failure on OSF1 V5.1,
45562         due to stime requiring a `long int*' while tv_sec is `int'.
45563
45564 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
45565
45566         Sync from coreutils.
45567         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45568         against `yes', rather than just testing for nonempty.
45569
45570 2005-10-01  Simon Josefsson  <jas@extundo.com>
45571
45572         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45573         and Darwin.
45574
45575         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45576         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
45577         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
45578         freeaddrinfo and gai_strerror are declared by the POSIX headers.
45579         Check if struct addrinfo is declared.
45580
45581 2005-10-01  Simon Josefsson  <jas@extundo.com>
45582
45583         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45584         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
45585         AI_* and EAI_* definitions.  Protect function declarations.
45586
45587 2005-10-01  Jim Meyering  <jim@meyering.net>
45588
45589         Sync from coreutils.
45590
45591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45592         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
45593         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45595         in the inet and nsl libraries.  Required on Solaris 5.7.
45596
45597 2005-10-01  Jim Meyering  <jim@meyering.net>
45598
45599         Sync from coreutils.
45600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45601         in the inet and nsl libraries.  Required on Solaris 5.7.
45602
45603 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
45604
45605         * lib/getdelim.c (getdelim): Remove unused variables.
45606
45607 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45608
45609         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45610         so that the code works even with ancient cpp.  Portability problem
45611         with GCC 2.7.2.1 reported by Thomas M.Ott.
45612
45613 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45614
45615         * modules/regex (Depends-on): Add strcase.
45616
45617         * modules/gethostname (Licence): Change from GPL to LGPL, since
45618         gethostname.c is a trivial implementation of a standard library
45619         function.
45620         * modules/poll (License): Change from GPL to LGPL, since it's
45621         derived from LGPL code.
45622
45623 2005-09-27  Jim Meyering  <jim@meyering.net>
45624
45625         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45626         HAVE_CONFIG_H.
45627
45628         * lib/intprops.h (signed_type_or_expr__): Define.
45629         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45630         for unsigned types.
45631
45632 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45633
45634         * lib/verify.h (verify_expr): Remove, replacing with:
45635         (verify_true): New macro that returns true instead of void.
45636         (verify_type__): Remove.
45637         (verify): Use verify_true rather than verify_type__.
45638
45639 2005-09-26  Bruno Haible  <bruno@clisp.org>
45640
45641         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45642         is necessary.
45643         (lib_SOURCES): Remove mbchar.c.
45644         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45645         (Files): Add m4/mbrtowc.m4.
45646         * modules/mbiter: Likewise.
45647         * modules/mbuiter: Likewise.
45648
45649 2005-09-26  Bruno Haible  <bruno@clisp.org>
45650
45651         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45652         compile mbchar.c if they are not both present.
45653         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45654         * m4/mbiter.m4 (gl_MBITER): Likewise.
45655         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45656         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45657         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45658
45659 2005-09-25  Jim Meyering  <jim@meyering.net>
45660
45661         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45662         also uses socklen_t.
45663
45664 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45665
45666         * lib/utimens.c (ENOSYS): Define if not already defined.
45667         (futimens): Support having a null PATH if the file descriptor
45668         is nonnegative.
45669
45670         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45671         Remove.
45672         (__attribute): Define to empty unless GCC 3.1 or later.
45673         This works around a core dump on OpenBSD 3.4, which has GCC
45674         2.95.3, which dumps core when given __attribute__(()).  It also
45675         simplifies other tests, since we really don't want to bother with
45676         worrying about which ancient version of GCC supported what.
45677         Original problem reported by Yoann Vandoorselaere, with part of
45678         the fix suggested by Derek Price.
45679
45680 2005-09-24  Jim Meyering  <jim@meyering.net>
45681
45682         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45683         so we can once again use a positive bitfield width of 1 -- now we
45684         don't have to explain why we were using a bitfield width of 2.
45685
45686 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45687
45688         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45689         and similarly for the other external symbols.  Problem reported
45690         by James Gallager.
45691
45692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45693         bug reported by Jim Meyering.
45694
45695         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45696         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45697         not needed, since socklen is a prerequisite module.
45698
45699 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45700
45701         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45702         Problem reported by Eric Blake.
45703         (getaddrinfo): Initialize se so that it's not garbage.
45704         Redo internal storage allocation so that it doesn't make unportable
45705         assumptions about alignment.
45706         Fix a memory leak.
45707
45708         * lib/utimens.c (futimens): Use futimesat if available.
45709         Prefer it to futimes since it doesn't have the futimes bug.
45710
45711         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45712         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45713         Instead, declare a function that returns a pointer to an array,
45714         and use verify_type__ to declare the size of the array.
45715         Problem and germ of a solution reported by Bruno Haible.
45716         (verify_type__): Use 2, not 1, for bitfield size, to avoid
45717         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
45718
45719 2005-09-23  Jim Meyering  <jim@meyering.net>
45720
45721         Sync from coreutils.
45722         Correct build failure (socklen_t not defined) on at least
45723         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
45724         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
45725
45726 2005-09-23  Jim Meyering  <jim@meyering.net>
45727
45728         * modules/getaddrinfo (Depends-on): Add socklen.
45729
45730 2005-09-23  Bruno Haible  <bruno@clisp.org>
45731
45732         * tests/test-verify.c: New file.
45733
45734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         Sync from coreutils.
45737
45738         * modules/argmatch (Depends-on): Add verify.
45739         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
45740         unistd-safer.
45741         * modules/save-cwd (Depends-on): Likewise.
45742
45743         * modules/openat (Files): Add lib/openat-die.c.
45744         (Depends-on): Remove error, exitfail.
45745         Add dirname.
45746
45747         * modules/verify: New file.
45748         * MODULES.html.sh (Diagnostics <assert.h>): New section,
45749         with "verify" module.
45750
45751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45752
45753         Sync from coreutils.
45754
45755         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
45756         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
45757         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
45758         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
45759         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
45760         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
45761         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
45762         Don't bother checking for string.h, stdlib.h, unistd.h.
45763         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
45764         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
45765         module's job.
45766         * m4/jm-macros.m4 (gl_MACROS): Likewise.
45767         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
45768
45769         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
45770         (gl_GETDATE): Use it.
45771
45772         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
45773
45774 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45775
45776         Sync from coreutils.
45777
45778         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
45779         stat-time.h.
45780         * lib/argmatch.h: Include verify.h
45781         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
45782         (ARGMATCH_ASSERT): Remove; unused.
45783         * lib/canonicalize.c: Assume STDC_HEADERS.
45784         * lib/exclude.c: Include "strcase.h".
45785         * lib/regex_internal.h [!defined _LIBC]: Likewise.
45786         * lib/getusershell.c: Include stdio--.h rather than stdio.h
45787         and stdio-safer.h.
45788         (getusershell): Call fopen, not fopen_safer.
45789         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
45790         Do not include unistd-safer.h.
45791         (save_cwd): Don't call fd_safer; no longer needed
45792         now that we include fcntl--.h.
45793
45794         * lib/getdate.y (relative_time): New type.
45795         (RELATIVE_TIME_0): New constant.
45796         (parser_control): Use relative_time instead of doing it ourselves.
45797         (%union): Add new relative_time rel member.
45798         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
45799         Now typeless.
45800         (relunit, relunit_snumber): Now of type rel.
45801         (zone, rel, relunit, get_date): Adjust to above changes.
45802
45803         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
45804         Do not include unistd-safer.h.
45805         (getloadavg): Don't call fd_safer; no longer needed
45806         now that we include fcntl--.h.
45807
45808         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
45809         (make_dir_parents): Treat ENOSYS like EEXIST.
45810
45811         Improve quality of diagnostics on restore_cwd failure.
45812         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
45813         (make_dir_parents): Last arg is now int * (for errno), not bool *.
45814         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
45815         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
45816         each time through the loop.  Do not diagnose restore_cwd failure;
45817         that is the caller's job (and perhaps the caller does not care).
45818
45819         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
45820         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
45821         If the file already exists but is not a directory, don't bother
45822         to try to make its parents.
45823         Close potential file descriptor leak if we can't chdir("/") (!).
45824         Don't always return true if chdir($PWD) fails; return true only
45825         if the requested action was done successfully (except for the
45826         chdir($PWD)).
45827         Don't log final directory unless we actually made it.
45828         Refactor to avoid duplicate code to fix up permissions.
45829         Don't attempt to fix up parent permissions if chdir($PWD) fails.
45830
45831         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
45832         to make it a bit faster and (I hope) clearer.
45833         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
45834         Fix bug in formats like %2N.
45835
45836         * lib/verify.h: New file.
45837
45838 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45839
45840         Sync from coreutils.
45841         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
45842
45843 2005-09-22  Jim Meyering  <jim@meyering.net>
45844
45845         Sync from coreutils.
45846
45847         * m4/lstat.m4 (gl_FUNC_LSTAT):
45848         Use AC_LIBSOURCES to require lstat.c and lstat.h.
45849         Remove obsolete comment.
45850         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
45851         * m4/xstrtod.m4: Likewise.
45852
45853         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
45854
45855 2005-09-22  Jim Meyering  <jim@meyering.net>
45856
45857         Sync from coreutils.
45858
45859         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
45860
45861         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
45862         the .tm_year member, since otherwise gcc-4.0 would now warn about
45863         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
45864
45865         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
45866         order to avoid an unsuppressible warning from gcc on 64-bit systems.
45867
45868         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
45869         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
45870         when run in a time zone for which daylight savings time is in effect
45871         for the starting date.
45872
45873         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
45874         stop us from restricting permissions of just-created absolute-named
45875         directories.
45876         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
45877         to restore initial working directory.
45878         * lib/mkdir-p.c (make_dir_parents): New parameter:
45879         different_working_dir, to tell caller if/when we change the working
45880         directory and are unable to return to the initial one.
45881         * lib/mkdir-p.h (make_dir_parents): Update prototype.
45882         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
45883         `return false'.  This fixes a bug introduced on 2004-07-30.
45884
45885         * lib/openat.c (fdopendir): Be sure to close the supplied
45886         file descriptor before returning.  This makes our replacement
45887         implementation a little closer to Solaris's, where fdopendir
45888         ties the file descriptor to the returned DIR* pointer.
45889         * lib/openat.c (unlinkat): New function.
45890         * lib/openat.h (unlinkat): Add prototype.
45891         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
45892         (openat_restore_fail): Rename from openat_restore_die.
45893         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
45894
45895         Provide an alternative to exiting immediately upon save_cwd or
45896         restore_cwd failure.  Now, an application can arrange e.g.,
45897         to perform a longjump in that case.
45898         * lib/openat.c: Include dirname.h.
45899         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
45900         (rpl_openat, fdopendir, fstatat): Call openat_save_die
45901         and openat_restore_die rather than calling error directly.
45902         Don't include "error.h" or "exitfail.h"; they're no longer needed.
45903
45904         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
45905         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
45906         define.
45907
45908         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
45909         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
45910                             int utc, int nanoseconds);
45911         Background:
45912         date should not have to allocate a megabyte of virtual memory to
45913         handle a format argument like +%1048575T.  When implemented with
45914         strftime, it must allocate such a buffer, use strftime to fill it
45915         in, print it, then free it.
45916         With fprintftime, it simply prints everything and exits.
45917         With no need for memory allocation, that's one fewer way to fail.
45918         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
45919         optional field width, not before, so we accept %9:z, not %:9z.
45920         (my_strftime): Be sure to use L_('x') for literals.
45921
45922         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
45923         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
45924         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
45925         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
45926         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
45927         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
45928         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
45929         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
45930         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
45931         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
45932         * lib/xgethostname.c, lib/xreadlink.c:
45933         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
45934
45935         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
45936         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
45937         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
45938         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45939         and don't include <sys/file.h>).
45940
45941 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
45942
45943         Sync from coreutils.
45944
45945         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
45946         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
45947         [!LDAV_DONE]: Avoid unused variable warning.
45948
45949 2005-09-21  Bruno Haible  <bruno@clisp.org>
45950
45951         * lib/unicodeio.h (unicode_to_mb): New declaration.
45952
45953 2005-09-20  Derek Price  <derek@ximbiot.com>
45954
45955         * lib/getaddrinfo.c: Don't include <netdb.h> included from
45956         getaddrinfo.h.
45957
45958 2005-09-20  Bruno Haible  <bruno@clisp.org>
45959
45960         * gnulib-tool: Remove trailing slashes from the values specified for
45961         --source-base, --m4-base, --tests-base, --aux-dir.
45962         Suggested by Simon Josefsson <jas@extundo.com>.
45963
45964 2005-09-20  Bruno Haible  <bruno@clisp.org>
45965
45966         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
45967         func_modules_to_filelist, func_import, func_create_testdir): Make all
45968         sorting results locale-independent, so that gnulib-cache.m4 doesn't
45969         change when gnulib-tool is invoked in a different locale.
45970
45971 2005-09-19  Simon Josefsson  <jas@extundo.com>
45972
45973         * m4/socklen.m4: Fix typo.
45974
45975 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45976
45977         Use a consistent style for including <config.h>.
45978         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
45979         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
45980         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
45981         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
45982         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
45983         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
45984         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
45985         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
45986         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
45987         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
45988         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
45989         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
45990         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
45991         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
45992         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
45993         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
45994         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
45995         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
45996         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
45997         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
45998         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
45999         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46000         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46001         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46002         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46003         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46004         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46005         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46006         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46007         lib/xstrtoumax.c, lib/yesno.c:
46008         Standardize inclusion of config.h.
46009         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46010         lib/inttostr.h:  Removed inclusion of config.h from header files.
46011         * lib/inttostr.c:  Adjusted in-tree users.
46012         * lib/timespec.h: Remove superfluous warning to include config.h.
46013         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46014         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46015         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46016         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46017         config.h with HAVE_CONFIG_H.
46018
46019 2005-09-19  Jim Meyering  <jim@meyering.net>
46020
46021         * modules/pathmax (License): Change to LGPL.
46022
46023 2005-09-19  Derek Price  <derek@ximbiot.com>
46024
46025         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46026
46027 2005-09-19  Bruno Haible  <bruno@clisp.org>
46028
46029         * gnulib-tool (import): Provide default for --tests-base.
46030
46031 2005-09-19  Bruno Haible  <bruno@clisp.org>
46032
46033         * doc/quote.texi: New file, extracted from gnulib.texi.
46034         * doc/ctime.texi: New file, extracted from gnulib.texi.
46035         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46036         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46037         * doc/gnulib.texi: Include them.
46038
46039 2005-09-18  Bruno Haible  <bruno@clisp.org>
46040
46041         Portability fix.
46042         * gnulib-tool (func_readlink): New function.
46043         (func_ln_if_changed): Use it.
46044
46045 2005-09-18  Bruno Haible  <bruno@clisp.org>
46046
46047         * gnulib-tool: Support --with-tests also with --import.
46048         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46049         (func_import): Use variables $testsbase and $inctests. Emit a
46050         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46051         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46052         SUBDIRS += $testsdir.
46053         (func_create_testdir): Update.
46054
46055 2005-09-18  Bruno Haible  <bruno@clisp.org>
46056
46057         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46058         instead of $dry_run.
46059         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46060         (func_ln_if_changed): Don't handle dry-run here.
46061         (func_import): In dry-run mode, detect more precisely which actions
46062         would be performed, and don't use "...ing" verbs.
46063
46064 2005-09-18  Bruno Haible  <bruno@clisp.org>
46065
46066         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46067         (func_import): Use join on two temporary files instead of three nested
46068         loops, in order to determine which files are new or old.
46069
46070 2005-09-18  Bruno Haible  <bruno@clisp.org>
46071
46072         * gnulib-tool (func_import): Comment out code that spits out the
46073         new files with --dry-run.
46074
46075 2005-09-18  Bruno Haible  <bruno@clisp.org>
46076
46077         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46078
46079 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         * lib/stat-time.h: New file.
46082         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46083         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46084         in a different way.
46085         (timespec_cmp): New function.
46086         * lib/utimecmp.c: Include stat-time.h.
46087         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46088         members exist, not on the obsolescent ST_MTIM_NSEC.
46089         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46090
46091 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46092
46093         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46094
46095 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46096
46097         * MODULES.html.sh (File system functions): Add stat-time.
46098         * modules/stat-time: New file.
46099         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46100         is now done in a different way, by the stat-time module.
46101         * modules/utimecmp (Depends-on): Add stat-time.
46102
46103 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46104
46105         * m4/st_mtim.m4: Remove.  Superseded by...
46106         * m4/stat-time.m4: New file.
46107         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46108         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46109
46110 2005-09-15  Derek Price  <derek@ximbiot.com>
46111
46112         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46113
46114 2005-09-15  Derek Price  <derek@ximbiot.com>
46115
46116         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46117         * lib/regex_internal.c: Ditto, using this...
46118         (__GNUC_PREREQ): ...new macro.
46119         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46120         using...
46121         (__GNUC_PREREQ): ...this new macro.
46122
46123         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46124
46125 2005-09-15  Derek Price  <derek@ximbiot.com>
46126             Paul Eggert  <eggert@cs.ucla.edu>
46127
46128         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46129         changes, consolidating in...
46130         * lib/regex_internal.h: ...this file.
46131
46132 2005-09-13  Jim Meyering  <jim@meyering.net>
46133
46134         * lib/canon-host.c: Filter through gnu indent and reword comments
46135         slightly.
46136         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46137
46138 2005-09-13  Derek Price  <derek@ximbiot.com>
46139
46140         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46141         failure.
46142         Reported by Jim Meyering  <jim@meyering.net>.
46143
46144 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46145
46146         * lib/base64.c: Typo.
46147         (base64_encode): Put b64str in initialized data section.
46148
46149 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         Merge glibc and coreutils changes into gnulib, plus a few
46152         extra fixes.
46153         * lib/md5.c: Use #error rather than a string.
46154         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46155         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46156         (__attribute__): Define to empty for non recent-GCC.
46157         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46158         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46159         Renamed from their non-__ counterparts, with new macros replacing
46160         them if not _LIBC.  Add __THROW attribute.
46161         (rol): Remove.
46162         (struct md5_ctx): Align buffer if using GCC.
46163         * lib/sha1.h (struct sha1_ctx): Likewise.
46164         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46165         The old name was backwards.
46166         (NOTSWAP): Remove; not used.
46167         (rol): New macro, moved here from md5.h.
46168         (sha1_process_block): Remove a FIXME that doesn't make sense.
46169
46170 2005-09-12  Derek Price  <derek@ximbiot.com>
46171
46172         Return usable errors from canon-host.
46173         * lib/canon-host.h: New file.
46174         * lib/canon-host.c (canon_host): Wrap...
46175         (canon_host_r): ...this new function, which now relies exclusively on
46176         getaddrinfo.
46177         (ch_strerror): New function.
46178         (last_cherror): New global.
46179         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46180         interface.
46181         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46182         void *.
46183         (freeaddrinfo): Free ai->ai_canonname when set.
46184
46185 2005-09-12  Derek Price  <derek@ximbiot.com>
46186
46187         Make canon-host require getaddrinfo.
46188         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46189         AC_LIBSOURCE canon-host.h.  Call...
46190         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46191         gl_GETADDRINFO.
46192         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46193
46194 2005-09-12  Derek Price  <derek@ximbiot.com>
46195
46196         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46197         LGPL.
46198         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46199
46200 2005-09-12  Derek Price  <derek@ximbiot.com>
46201
46202         * lib/gai_strerror.c: Include config.h when available.  Include
46203         getaddrinfo.h before other headers to test interface.
46204         Reported by Larry Jones <lawrence.jones@ugs.com>.
46205
46206 2005-09-12  Derek Price  <derek@ximbiot.com>
46207             Paul Eggert  <eggert@cs.ucla.edu>
46208
46209         * modules/glob (Files): Add glob-libc.h.
46210
46211 2005-09-12  Derek Price  <derek@ximbiot.com>
46212             Paul Eggert  <eggert@cs.ucla.edu>
46213
46214         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46215         glob_.h, glob-libc.h.
46216         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46217
46218 2005-09-12  Derek Price  <derek@ximbiot.com>
46219             Paul Eggert  <eggert@cs.ucla.edu>
46220
46221         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46222         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46223         protecting things that should be done only in gnulib contexts.
46224         * lib/glob_.h: New file, containing only the glob things needed for
46225         gnulib.
46226         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46227         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46228         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46229         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46230         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46231         and to respect the namespace rules better.
46232
46233 2005-09-08  Simon Josefsson  <jas@extundo.com>
46234
46235         * modules/socklen: New file.
46236
46237 2005-09-08  Simon Josefsson  <jas@extundo.com>
46238
46239         * m4/socklen.m4: New file.
46240
46241 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46242
46243         * modules/utimens (Files): Add m4/utimbuf.m4, since
46244         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46245         Reported by Sergey Poznyakoff.
46246
46247 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46248
46249         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46250         definitions, since that's the preferred style in glibc.
46251         Fix a minor spacing issue, and update copyright notice to match
46252         glibc's.
46253
46254 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46255
46256         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46257
46258 2005-09-06  Simon Josefsson  <jas@extundo.com>
46259
46260         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46261         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46262
46263 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46266         warning.
46267
46268 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46269
46270         * config/srclist.txt: Add glibc bug 1302.
46271
46272 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         Change bitset word type from unsigned int to unsigned long int,
46275         as this has better performance on typical 64-bit hosts.
46276         Port bitset code to hosts with unusual word sizes.
46277         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46278         (build_collating_symbol):
46279         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46280         argument is a bitset.  This is merely a style issue, but it makes
46281         it clearer that an entire array is expected.
46282         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46283         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46284         Port to the case where bitset_word is not the same as unsigned int.
46285         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46286         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46287         Likewise.
46288         * lib/regexec.c (check_dst_limits_calc_pos_1,
46289         check_subexp_matching_top):
46290         (build_trtable, group_nodes_into_DFAstates):
46291         Likewise.
46292         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46293         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46294         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46295         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46296         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46297         * lib/regcomp.c (optimize_subexps, lower_subexp):
46298         Work even if bitset_word has holes in its bitwise representation.
46299         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46300         * lib/regexec.c (check_dst_limits_calc_pos_1,
46301         check_subexp_matching_top):
46302         Likewise.
46303         * lib/regex_internal.c (re_string_reconstruct):
46304         Don't assume UCHAR_MAX == 255.
46305         * lib/regex_internal.h (bitset_set_all): Likewise.
46306         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46307         All uses changed.
46308         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46309         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46310         All uses changed.
46311         (BITSET_WORD_MAX): New macro.
46312         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46313         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46314         (bitset_empty, bitset_copy):
46315         Prefer sizeof (bitset) to multiplying it out ourselves.
46316         (bitset_not_merge): Remove; unused.
46317         (bitset_contain): Return bool, not unsigned int with one bit on.
46318         All callers changed.
46319         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46320         alignment than re_node_set; do this by defining a new internal
46321         type struct dests_alloc and using it to allocate memory.
46322
46323 2005-09-05  Bruno Haible  <bruno@clisp.org>
46324
46325         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46326         links.
46327
46328 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46329
46330         * modules/size_max (Makefile.am): Add size_max.h
46331
46332 2005-09-04  Derek Price  <derek@ximbiot.com>
46333
46334         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46335
46336 2005-09-03  Simon Josefsson  <jas@extundo.com>
46337
46338         * gnulib-tool: Fix typo.
46339
46340 2005-09-03  Simon Josefsson  <jas@extundo.com>
46341
46342         * config/srclist.txt: Add glibc bug 1293.
46343
46344 2005-09-03  Derek Price  <derek@ximbiot.com>
46345
46346         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46347         From Larry Jones <lawrence.jones@ugs.com>.
46348
46349 2005-09-02  Simon Josefsson  <jas@extundo.com>
46350
46351         * modules/socklen: New file.
46352
46353 2005-09-02  Simon Josefsson  <jas@extundo.com>
46354
46355         * modules/havelib: New module.
46356
46357         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46358         Use havelib.
46359
46360 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46361
46362         Check for arithmetic overflow when calculating sizes, to prevent
46363         some buffer-overflow issues.  These patches are conservative, in the
46364         sense that when I couldn't determine whether an overflow was possible,
46365         I inserted a run-time check.
46366         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46367         macros.
46368         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46369         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46370         (re_xnrealloc, re_x2nrealloc): New inline functions.
46371         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46372         parse_bracket_exp):
46373         (build_equiv_class, build_charclass): Check for arithmetic overflow
46374         in size expression calculations.
46375         * lib/regex_internal.c (re_string_realloc_buffers):
46376         (build_wcs_upper_buffer, re_node_set_add_intersect):
46377         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46378         (re_dfa_add_node, register_state): Likewise.
46379         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46380         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46381         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46382         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46383
46384 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46385
46386         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46387         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46388
46389 2005-09-02  Bruno Haible  <bruno@clisp.org>
46390
46391         Support for lib vs. lib64 distinction on biarch platforms.
46392         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46393         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46394         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46395
46396 2005-09-02  Bruno Haible  <bruno@clisp.org>
46397
46398         * gnulib-tool (import): In the other first-use case, provide defaults
46399         as well.
46400
46401 2005-09-02  Bruno Haible  <bruno@clisp.org>
46402
46403         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46404         patches not yet found in the latest gettext release.
46405
46406 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46409         to avoid a collision with bits/local_lim.h in glibc.
46410         All uses changed.  Problem reported by Dmitry V. Levin in
46411         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46412
46413         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46414         bugs in int versus size_t comparisons.
46415         (re_string_context_at): Fix bug where the code assumed that
46416         Idx is signed.
46417
46418         Use bool where appropriate.
46419         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46420         All callers changed.
46421         (calc_eclosure_iter): Likewise, for ROOT arg.
46422         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46423         (build_charclass_op): Likewise, for NON_MATCH arg.
46424         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46425         (re_string_construct_common): Likewise, for ICASE arg.
46426         * lib/regexec.c (re_search_2_stub, re_search_stub):
46427         Likewise, for RET_LEN arg.
46428         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46429         (set_regs): Likewise, for FL_BACKTRACK arg.
46430         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46431         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46432         (calc_eclosure_iter, parse_bracket_exp):
46433         Use bool for internal variables that are booleans.
46434         * lib/regexec.c (re_search_internal, check_matching,
46435         proceed_next_node):
46436         (set_regs, build_sifted_states, sift_states_bkref):
46437         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46438         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46439         (find_collation_sequence_value):
46440         Likewise.
46441         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46442         (re_node_set_compare):
46443         Return bool, not int. All callers changed.
46444         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46445         (build_trtable, check_node_accept): Likewise.
46446         * lib/regex_internal.h: Include stdbool.h.
46447
46448         Fix bugs uncovered when converting to bool.
46449         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46450         failure instead of charging ahead blindly.
46451         * lib/regex_internal.c (register_state): Likewise.
46452         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46453         for freeing internal storage.
46454         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46455         bitset pieces used as boolean, to avoid undefined behavior
46456         on hosts that do int overflow checking.
46457
46458 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         * config/srclist.txt: Add glibc bugs 1285-1287.
46461
46462 2005-09-01  Jim Meyering  <jim@meyering.net>
46463
46464         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46465         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46466         Require gl_STAT_MACROS, too.
46467
46468 2005-09-01  Bruno Haible  <bruno@clisp.org>
46469
46470         * gnulib-tool (import): In the first-use case, provide defaults.
46471
46472 2005-09-01  Bruno Haible  <bruno@clisp.org>
46473
46474         * gnulib-tool (func_import): Remove the .tmp files.
46475
46476 2005-09-01  Bruno Haible  <bruno@clisp.org>
46477
46478         * gnulib-tool (func_import): Fix handling of symbolic links.
46479
46480 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46483         old glibc regex code mishandles strings longer than 2**31 bytes.
46484         This patch fixes this when the regex code is used in gnulib
46485         (i.e., outside glibc).
46486
46487         This patch should not affect the use of the regex code inside
46488         glibc.  No doubt this problem also needs to be handled for glibc
46489         as well, but the result will be an incompatible change to the
46490         glibc ABI, and the old ABI will have to be supported too.  That
46491         can be the the subject for another patch.
46492
46493         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46494         governing whether the rest of this patch is active.  By default,
46495         the macro is disabled and the patch has no effect.
46496         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46497         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46498         (struct re_pattern_buffer, re_search, re_search_2, re_match):
46499         (re_match_2, re_set_registers): Use the new types.
46500         * lib/regex_internal.h (Idx, re_hashval_t): New types.
46501         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46502         New macros.
46503         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46504         (re_string_context_at, bin_tree_t, re_dfastate_t):
46505         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46506         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46507         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46508         (re_string_char_size_at, re_string_wchar_at):
46509         (re_string_elem_size_at):
46510         Use the new types and macros to port to 64-bit hosts.
46511         Use unsigned types for internal values, so that the code
46512         mostly works even for arrays larger than SSIZE_MAX.
46513         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46514         (search_duplicated_node, calc_eclosure_iter, fetch_number):
46515         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46516         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46517         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46518         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46519         (calc_inveclosure, parse_dup_op, build_range_exp):
46520         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46521         (fetch_number, create_token_tree, mark_opt_subexp):
46522         Likewise.
46523         * lib/regex_internal.c (re_string_construct_common,
46524         create_ci_newstate):
46525         (create_cd_newstate, re_string_allocate, re_string_construct):
46526         (re_string_realloc_buffers, build_wcs_upper_buffer):
46527         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46528         (re_string_reconstruct, re_string_peek_byte_case):
46529         (re_string_fetch_byte_case, re_string_context_at):
46530         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46531         (re_node_set_init_copy, re_node_set_add_intersect):
46532         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46533         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46534         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46535         (re_acquire_state, re_acquire_state_context, register_state):
46536         Likewise.
46537         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46538         search_cur_bkref_entry):
46539         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46540         (re_search_internal, re_search_2_stub, re_search_stub)
46541         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46542         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46543         (update_cur_sifted_state, check_dst_limits):
46544         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46545         (check_subexp_limits, sift_states_bkref, merge_state_array):
46546         (check_subexp_matching_top, get_subexp, get_subexp_sub):
46547         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46548         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46549         (expand_bkref_cache, check_node_accept_bytes):
46550         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46551         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46552         (acquire_init_state_context, check_halt_node_context):
46553         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46554         (sift_states_backward, clean_state_log_if_needed):
46555         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46556         (find_recover_state, transit_state_sb, transit_state_mb):
46557         (transit_state_bkref, build_trtable, match_ctx_clean):
46558         Likewise.
46559         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46560         to work around an assumption that REG_MISSING is negative.
46561
46562         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46563         (seek_collating_symbol_entry) [defined _LIBC]:
46564         (lookup_collation_sequence_value) [defined _LIBC]:
46565         (build_range_exp, build_collating_symbol) [defined _LIBC]:
46566         Use prototypes rather than old-style function definitions.
46567         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46568         (transit_state_sb) [0]:
46569         (find_collation_sequence_value) [defined _LIBC]: Likewise.
46570
46571         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46572         rm_eo.
46573
46574         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46575         (optimize_subexps, lower_subexp):
46576         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46577         since the signed shift might overflow.  Use 1u<<31 instead.
46578         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46579         Likewise.
46580         * lib/regexec.c (check_dst_limits_calc_pos_1,
46581         check_subexp_matching_top): Likewise.
46582
46583         * lib/regcomp.c (optimize_subexps, lower_subexp):
46584         Use CHAR_BIT rather than 8, for clarity.
46585         * lib/regexec.c (check_dst_limits_calc_pos_1):
46586         (check_subexp_matching_top): Likewise.
46587         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46588         have to worry about portability issues when shifting it left.
46589         Remove no-longer-needed test for table_size > 0.
46590         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46591         in a word, as the resulting behavior is undefined.
46592         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46593         in one case, a <= should have been an <, and in another case the
46594         whole test was missing.
46595         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
46596         the standard name CHAR_BIT.
46597         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46598         this is not true on one's complement and signed-magnitude hosts.
46599
46600         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46601         next_last_offset.
46602         (struct re_dfa_t): Remove unused member states_alloc.
46603         * lib/regcomp.c (init_dfa): Don't initialize unused members.
46604
46605 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46606
46607         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46608         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
46609         and large-file glibc and in 32-bit large-file Solaris.
46610
46611 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46614         lengths fit in regoff_t; this isn't true if regoff_t is the same
46615         width as size_t.
46616         * lib/regex.c (re_search_internal): 5th arg is LAST_START
46617         (= START + RANGE) instead of RANGE.  This avoids overflow
46618         problems when regoff_t is the same width as size_t.
46619         All callers changed.
46620         (re_search_2_stub): Check for overflow when adding the
46621         sizes of the two strings.
46622         (re_search_stub): Check for overflow when adding START
46623         to RANGE; if it occurs, substitute the extreme value.
46624
46625 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46628
46629 2005-08-31  Jim Meyering  <jim@meyering.net>
46630
46631         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46632         a pointer-to-const.
46633         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46634         (register_state): Likewise.
46635         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46636         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46637         (group_nodes_into_DFAstates): Likewise.
46638
46639 2005-08-31  Jim Meyering  <jim@meyering.net>
46640
46641         * check-module: Add a FIXME comment.
46642
46643 2005-08-31  Eric Blake  <ebb9@byu.net>
46644
46645         * modules/unistd-safer (Files): Add unistd--.h.
46646         * modules/stdio-safer (Files): Add stdio--.h.
46647
46648 2005-08-31  Derek Price  <derek@ximbiot.com>
46649
46650         * lib/getdelim.c (getdelim): Return EOF on EOF.
46651         Reported by Larry Jones <lawrence.jones@ugs.com>.
46652
46653 2005-08-31  Bruno Haible  <bruno@clisp.org>
46654
46655         Avoid unnecessary diffs in the generated lib/Makefile.am.
46656         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46657         the generated files.
46658         (func_import): Don't set cmd.
46659
46660 2005-08-31  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/strstr.c: Include <stddef.h>, for NULL.
46663         * lib/strcasestr.c: Likewise.
46664         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46665
46666 2005-08-31  Bruno Haible  <bruno@clisp.org>
46667
46668         * gnulib-tool: New option --macro-prefix.
46669         (func_import): Use macro_prefix.
46670         (import): Handle option --macro-prefix.
46671
46672 2005-08-31  Bruno Haible  <bruno@clisp.org>
46673
46674         * gnulib-tool (import): Rename most ac_* variables to cached_*.
46675         Also use new variables cached_lgpl, cached_libtool.
46676
46677 2005-08-31  Bruno Haible  <bruno@clisp.org>
46678
46679         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46680         always instantiating them.
46681
46682 2005-08-31  Bruno Haible  <bruno@clisp.org>
46683
46684         * gnulib-tool (func_import): Read the previous cached settings
46685         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46686         earlier added by gnulib but are now dropped. Warn when a gnulib file
46687         overwrites a non-gnulib file.
46688
46689 2005-08-31  Bruno Haible  <bruno@clisp.org>
46690
46691         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46692         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46693         projects that don't keep autogenerated files in CVS. Put into
46694         actioncmd only the specified modules, not the transitive closure.
46695
46696 2005-08-31  Bruno Haible  <bruno@clisp.org>
46697
46698         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46699         Create directories that shall be filled.
46700         (import): Don't look for gl_* macros in configure.ac. Recurse across
46701         all directories containing a gnulib-cache.m4 files, if meaningful.
46702
46703 2005-08-31  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46706         (import): Set seen_libtool when we see gl_LIBTOOL.
46707
46708 2005-08-31  Bruno Haible  <bruno@clisp.org>
46709
46710         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46711         declaration macro definitions from generated gnulib.m4.
46712
46713 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
46714
46715         * lib/iconvme.h: Add prototype for iconv_alloc.
46716
46717 2005-08-29  Simon Josefsson  <jas@extundo.com>
46718
46719         * lib/iconvme.c: Fix errno.
46720
46721 2005-08-29  Bruno Haible  <bruno@clisp.org>
46722
46723         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
46724         that it works when the directory contains spaces.
46725
46726 2005-08-29  Bruno Haible  <bruno@clisp.org>
46727
46728         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
46729
46730 2005-08-29  Bruno Haible  <bruno@clisp.org>
46731
46732         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
46733         Emit more advice.
46734
46735 2005-08-29  Bruno Haible  <bruno@clisp.org>
46736         and Stepan Kasal  <kasal@ucw.cz>
46737
46738         * check-module: If more parameters are given, check each of them
46739         separately; add more exceptions, as noted by Jim Meyering.
46740         (check_module): New procedure.
46741         (%exempt_header): Now contains all exceptions.
46742
46743 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
46744
46745         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
46746
46747 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
46748
46749         * lib/iconvme.c: Split iconv_string into iconv_alloc.
46750
46751 2005-08-28  Bruno Haible  <bruno@clisp.org>
46752
46753         * m4/gnulib-tool.m4: New file.
46754
46755 2005-08-27  Jim Meyering  <jim@meyering.net>
46756
46757         * modules/unistd-safer (Files): Add pipe-safer.c.
46758         * modules/fcntl-safer (Files): Add creat-safer.c.
46759
46760 2005-08-27  Jim Meyering  <jim@meyering.net>
46761
46762         * m4/stdlib-safer.m4: New file.  From coreutils.
46763         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
46764         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
46765         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
46766         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
46767         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
46768
46769 2005-08-27  Jim Meyering  <jim@meyering.net>
46770
46771         * lib/fopen-safer.c: Merge minor changes from coreutils.
46772         * lib/dup-safer.c: Likewise.
46773         * lib/fd-safer.c: Likewise.
46774
46775         Merge from coreutils.
46776         * lib/stdio--.h: New file.
46777         * lib/stdlib--.h: New file.
46778         * lib/mkstemp-safer.c: New file.
46779
46780         GNU tar needs these.
46781         * lib/pipe-safer.c: New file.
46782         * lib/creat-safer.c: New file.
46783         * lib/fcntl--.h (creat): Define to creat_safer.
46784         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
46785         * lib/unistd--.h (pipe): Define to pipe_safer.
46786         * lib/unistd-safer.h: Declare pipe_safer.
46787
46788 2005-08-26  Simon Josefsson  <jas@extundo.com>
46789
46790         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
46791         Haible <bruno@clisp.org>.
46792
46793 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
46794
46795         * lib/regex_internal.h: Remove all references to
46796         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
46797         or better.
46798         (bitset_not, bitset_merge, bitset_not_merge):
46799         (bitset_mask, re_string_allocate, re_string_construct):
46800         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
46801         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
46802         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
46803         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
46804         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46805         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46806         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
46807         (re_acquire_state_context):
46808         Remove unnecessary forward decls.
46809         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
46810         Put __attribute at function definition,
46811         now that the function decl has been removed.
46812         * lib/regex_internal.c (re_string_peek_byte_case):
46813         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
46814         Likewise.
46815
46816 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
46817
46818         * m4/regex.m4: Add AC_PREREQ(2.50).
46819         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
46820
46821 2005-08-25  Simon Josefsson  <jas@extundo.com>
46822
46823         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
46824         __fsetlocking.
46825
46826 2005-08-25  Simon Josefsson  <jas@extundo.com>
46827
46828         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
46829         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
46830         GLIBC specific code.
46831
46832 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46833
46834         Make regex safe for g++.  This fixes one real bug (an "err"
46835         that should have been "*err").  g++ problem reported by
46836         Sam Steingold.
46837         * lib/regex_internal.h (re_calloc): New macro, consistent with
46838         re_malloc etc.  All callers of calloc changed to use re_calloc.
46839         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
46840         not int.  All callers changed.
46841         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
46842         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
46843         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
46844         (find_recover_state): Change "err" to "*err"; this fixes what
46845         appears to be a real bug.
46846         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
46847         versus int.
46848
46849 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46850
46851         * modules/regex (Depends-on): Add malloc, since the code
46852         assumes that !malloc(0) means failure.
46853
46854 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46855
46856         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
46857
46858         alloca modernization/simplification for regex.
46859         * lib/regex.c: Remove portability cruft for alloca.  This no longer
46860         needs to be at the start of the file, and can be moved into
46861         regex_internal.h and simplified.
46862         * lib/regex_internal.h: Include <alloca.h>.
46863         (__libc_use_alloca) [!defined _LIBC]: New macro.
46864         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
46865         now works outside glibc.
46866
46867 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46868
46869         * config/srclist.txt: Add glibc bugs 1241, 1245.
46870
46871 2005-08-25  Jim Meyering  <jim@meyering.net>
46872
46873         * lib/open-safer.c: Include <config.h>.
46874         Otherwise, we'd lose LARGEFILE support in any file using
46875         e.g. "fcntl--.h"
46876
46877 2005-08-25  Bruno Haible  <bruno@clisp.org>
46878
46879         * m4/minmax.m4: Require autoconf 2.52.
46880         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
46881         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
46882         alternatives of translit over the alphabet.
46883         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
46884
46885 2005-08-24  Simon Josefsson  <jas@extundo.com>
46886
46887         * tests/test-getpass.c: New file.
46888
46889 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
46892         for GNU regex features.
46893
46894 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
46897         * lib/regex.h (regerror): Likewise.
46898
46899         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
46900         requires this.  (The code never needed it.)
46901
46902         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
46903         All uses of recently-renamed identifiers changed to use the new,
46904         POSIX-compliant names.  The code will build and run just fine
46905         without these changes, but it's better to eat our own dog food
46906         and use the standard-conforming names.
46907
46908         * lib/regex.h: Fix a multitude of POSIX name space violations.
46909         These changes have an effect only for programs that define
46910         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
46911         do not change anything for programs compiled in the normal way.
46912         Also, there is no effect on the ABI.
46913
46914         (_REGEX_SOURCE): New macro.
46915         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
46916         defined and _GNU_SOURCE is not; this fixes a name space violation.
46917
46918         Rename the following macros to obey POSIX requirements.
46919         The old names are still visible as macros if _REGEX_SOURCE is defined.
46920         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
46921         RE_BACKSLASH_ESCAPE_IN_LISTS.
46922         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
46923         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
46924         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
46925         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
46926         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
46927         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
46928         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
46929         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
46930         (REG_INTERVALS): renamed from RE_INTERVALS.
46931         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
46932         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
46933         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
46934         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
46935         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
46936         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
46937         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
46938         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
46939         RE_UNMATCHED_RIGHT_PAREN_ORD.
46940         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
46941         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
46942         (REG_DEBUG): renamed from RE_DEBUG.
46943         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
46944         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
46945         unusual, since we can't clash with the POSIX REG_ICASE.
46946         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
46947         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
46948         (REG_NO_SUB): renamed from RE_NO_SUB.
46949         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
46950         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
46951         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
46952         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
46953         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
46954         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
46955         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
46956         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
46957         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
46958         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
46959         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
46960         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
46961         RE_SYNTAX_POSIX_MINIMAL_BASIC.
46962         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
46963         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
46964         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
46965         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
46966         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
46967         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
46968         (REG_FIXED): Renamed from REGS_FIXED.
46969         (REG_NREGS): Renamed from RE_NREGS.
46970
46971         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
46972         of other REG_* macros, since POSIX says the user is allowed to
46973         #undef these macros selectively.
46974
46975         (reg_errcode_t): Update comment stating what other tables need
46976         to be consistent.
46977
46978         Rename the following enum values to obey POSIX requirements.
46979         The old names are still visible as macros.
46980         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
46981         is not defined, since GNU is supposed to be a superset of POSIX as
46982         much as possible, and since we want reg_errcode_t to be a signed
46983         type for implementation consistency.
46984         (_REG_NOERROR): Renamed from REG_NOERROR.
46985         (_REG_NOMATCH): Renamed from REG_NOMATCH.
46986         (_REG_BADPAT): Renamed from REG_BADPAT.
46987         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
46988         (_REG_ECTYPE): Renamed from REG_ECTYPE.
46989         (_REG_EESCAPE): Renamed from REG_EESCAPE.
46990         (_REG_ESUBREG): Renamed from REG_ESUBREG.
46991         (_REG_EBRACK): Renamed from REG_EBRACK.
46992         (_REG_EPAREN): Renamed from REG_EPAREN.
46993         (_REG_EBRACE): Renamed from REG_EBRACE.
46994         (_REG_BADBR): Renamed from REG_BADBR.
46995         (_REG_ERANGE): Renamed from REG_ERANGE.
46996         (_REG_ESPACE): Renamed from REG_ESPACE.
46997         (_REG_BADRPT): Renamed from REG_BADRPT.
46998         (_REG_EEND): Renamed from REG_EEND.
46999         (_REG_ESIZE): Renamed from REG_ESIZE.
47000         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47001         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47002         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47003         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47004         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47005
47006         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47007         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47008         changed.  But support the old name if the new one is not defined
47009         and if _REGEX_SOURCE.
47010
47011         Change the following member names in struct re_pattern_buffer.
47012         The old names are still supported if !_REGEX_SOURCE.
47013         The new names are always supported, regardless of _REGEX_SOURCE.
47014         (re_buffer): Renamed from buffer.
47015         (re_allocated): Renamed from allocated.
47016         (re_used): Renamed from used.
47017         (re_syntax): Renamed from syntax.
47018         (re_fastmap): Renamed from fastmap.
47019         (re_translate): Renamed from translate.
47020         (re_can_be_null): Renamed from can_be_null.
47021         (re_regs_allocated): Renamed from regs_allocated.
47022         (re_fastmap_accurate): Renamed from fastmap_accurate.
47023         (re_no_sub): Renamed from no_sub.
47024         (re_not_bol): Renamed from not_bol.
47025         (re_not_eol): Renamed from not_eol.
47026         (re_newline_anchor): Renamed from newline_anchor.
47027
47028         Change the following member names in struct re_registers.
47029         The old names are still supported if !_REGEX_SOURCE.
47030         The new names are always supported, regardless of _REGEX_SOURCE.
47031         (rm_num_regs): Renamed from num_regs.
47032         (rm_start): Renamed from start.
47033         (rm_end): Renamed from end.
47034
47035         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47036         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47037         Prepend __ to parameter names.
47038
47039         Undo yesterday's changes.
47040
47041 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47044         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47045         lib/regex.c.
47046
47047 2005-08-24  Jim Meyering  <jim@meyering.net>
47048
47049         Sync from coreutils.
47050         * m4/fcntl-safer.m4: New file.
47051
47052         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47053         and object files for this module.
47054
47055 2005-08-24  Jim Meyering  <jim@meyering.net>
47056
47057         Sync from coreutils.
47058         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47059
47060 2005-08-24  Jim Meyering  <jim@meyering.net>
47061
47062         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47063         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47064
47065 2005-08-24  Jim Meyering  <jim@meyering.net>
47066
47067         * modules/fcntl-safer: New module.
47068         * modules/fts (Depends-on): Add fcntl-safer.
47069         * MODULES.html.sh (File descriptor based Input/Output):
47070         Add fcntl-safer.
47071
47072 2005-08-24  Bruno Haible  <bruno@clisp.org>
47073
47074         Support for unit test modules.
47075         * modules/README: Mention tests modules.
47076         * modules/TEMPLATE-TESTS: New file.
47077         * gnulib-tool: New options --extract-tests-module, --with-tests and
47078         --tests-base (unused for the moment).
47079         (testsbase, inctests): New variables.
47080         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47081         (func_verify_module): Exclude TEMPLATE-TESTS.
47082         (func_verify_nontests_module, func_verify_tests_module): New functions.
47083         (func_get_dependencies): Add implicit dependency for tests modules.
47084         (func_get_tests_module): New function.
47085         (func_modules_transitive_closure): When --with-tests was specified,
47086         include the unit tests as well, unless explicitly avoided.
47087         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47088         (func_emit_tests_Makefile_am): New function.
47089         (func_create_testdir): When --with-tests was specified, emit a
47090         tests/ directory.
47091         * MODULES.html.sh (Future developments): Update.
47092
47093 2005-08-24  Bruno Haible  <bruno@clisp.org>
47094
47095         * modules/tls-tests: New file.
47096         * tests/test-tls.c: New file, from GNU gettext.
47097
47098 2005-08-24  Bruno Haible  <bruno@clisp.org>
47099
47100         * modules/lock-tests: New file.
47101         * tests/test-lock.c: New file, from GNU gettext.
47102
47103 2005-08-24  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/lock.h: Add multiple inclusion guard.
47106         * lib/tls.h: Add multiple inclusion guard.
47107
47108 2005-08-24  Bruno Haible  <bruno@clisp.org>
47109
47110         * gnulib-tool: Add support for the --aux-dir option to
47111         --create-testdir, --create-megatestdir, --test, --megatest.
47112         (func_create_testdir, func_create_megatestdir): Optionally emit a
47113         AC_CONFIG_AUX_DIR directive.
47114         (create-testdir, create-megatestdir, test, megatest): Provide a
47115         default value for $auxdir.
47116
47117 2005-08-24  Bruno Haible  <bruno@clisp.org>
47118
47119         * gnulib-tool (import): Use compound statement instead of subshell
47120         where possible.
47121
47122 2005-08-24  Bruno Haible  <bruno@clisp.org>
47123
47124         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47125
47126 2005-08-24  Bruno Haible  <bruno@clisp.org>
47127
47128         * gnulib-tool (func_version): Update.
47129
47130 2005-08-24  Bruno Haible  <bruno@clisp.org>
47131
47132         * gnulib-tool (func_import, func_create_testdir,
47133         func_create_megatestdir): Quote all autoconf macro arguments.
47134
47135 2005-08-24  Bruno Haible  <bruno@clisp.org>
47136
47137         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47138         option --force, because --force causes the aclocal.m4 of each
47139         subdirectory to be newer than the corresponding config.h.in.
47140
47141 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47144         All contents moved to gl_REGEX.
47145         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47146         assume that it does.
47147
47148 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47149
47150         * lib/regex.h (REG_NOSYS)
47151         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47152         Define, since POSIX requires it as of 2001.
47153         (_REG_ENOSYS)
47154         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47155         New private symbol, used to keep the enum signed in all cases.
47156         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47157         Youngman in
47158         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47159
47160         * lib/regex_internal.c (re_string_skip_chars, register_state):
47161         (calc_state_hash):
47162         Remove forward decls; no longer needed now that we use prototypes.
47163         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47164         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47165         (clean_state_log_if_needed): Likewise.
47166
47167 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47168
47169         * config/srclist.txt: Add glibc bugs 1231-1233.
47170
47171 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47172
47173         Fix problems reported by Sam Steingold in
47174         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47175         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47176         assumed that reg_errcode_t is a signed type, which is not
47177         necessarily true if _XOPEN_SOURCE is not defined.
47178         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47179         since some compilers warn about it otherwise.
47180
47181 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47182
47183         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47184         (init_word_char, create_initial_state, duplicate_node_closure):
47185         (fetch_token, peek_token_bracket, build_range_exp):
47186         (build_collating_symbol): Remove forward decls; no longer needed
47187         now that we use prototypes.
47188
47189         * lib/regcomp.c:
47190         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47191         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47192         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47193         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47194         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47195         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47196         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47197         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47198         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47199         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47200         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47201         (build_charclass, build_charclass_op, fetch_number, create_tree):
47202         (create_token_tree, mark_opt_subexp, duplicate_tree):
47203         Use prototypes rather than old-style definitions.
47204
47205         * lib/regex_internal.c:
47206         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47207         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47208         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47209         (re_string_reconstruct, re_string_peek_byte_case):
47210         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47211         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47212         (re_node_set_init_copy, re_node_set_add_intersect):
47213         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47214         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47215         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47216         (re_acquire_state, re_acquire_state_context, register_state):
47217         (create_ci_newstate, create_cd_newstate, free_state):
47218         Likewise.
47219         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47220         re_search_2):
47221         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47222         (re_search_internal, prune_impossible_nodes):
47223         (acquire_init_state_context, check_matching, static):
47224         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47225         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47226         (update_regs, sift_states_backward, build_sifted_states):
47227         (clean_state_log_if_needed, merge_state_array):
47228         (update_cur_sifted_state, add_epsilon_src_nodes):
47229         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47230         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47231         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47232         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47233         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47234         (check_arrival, check_arrival_add_next_nodes):
47235         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47236         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47237         (check_node_accept_bytes, check_node_accept, extend_buffers):
47238         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47239         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47240         (sift_ctx_init):
47241         Likewise.
47242
47243         * lib/regex_internal.h:
47244         (re_string_allocate, re_string_construct, re_string_reconstruct):
47245         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47246         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47247         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47248         (re_string_context_at, re_string_peek_byte_case):
47249         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47250         is defined, since we now use prototypes always.
47251
47252         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47253         C89 or better.  All uses removed.
47254
47255 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * config/srclist.txt: Add glibc bugs 1220-1227.
47258
47259 2005-08-20  Jim Meyering  <jim@meyering.net>
47260
47261         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47262         of unused local, dfa.
47263
47264 2005-08-20  Bruno Haible  <bruno@clisp.org>
47265
47266         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47267
47268 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47269
47270         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47271         (re_node_set_insert_last, re_dfa_add_node):
47272         Rename local variables to avoid GCC shadowing warnings.
47273
47274 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47275
47276         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47277         [defined lint]: Suppress bogus uninitialized-variable warnings.
47278
47279         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47280         and let the caller return REG_ESPACE if out of space.  This
47281         removes an uninitialied-variable warning with GCC 4.0.1, and also
47282         avoids taking the address of a local variable.  All callers
47283         changed.
47284
47285 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47286
47287         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47288         $LIBCSRC/posix/regexec.c.
47289         Add glibc bug 1217 for regcomp.c.
47290
47291 2005-08-19  Jim Meyering  <jim@meyering.net>
47292
47293         * lib/regexec.c (proceed_next_node): Redo local variables to
47294         avoid GCC shadowing warnings.
47295
47296 2005-08-18  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/strstr.c (strstr): Fix return value in multibyte case.
47299         * lib/strcasestr.c (strcasestr): Likewise.
47300
47301 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47302
47303         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47304
47305 2005-08-17  Jim Meyering  <jim@meyering.net>
47306
47307         Make the %s format (seconds since the epoch) work for a negative
47308         number and when used with a zero-padded field width, e.g. %015s.
47309
47310         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47311         label so that it precedes the code to set `digits'.  Otherwise,
47312         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47313         print `00-22'.  Now, it prints `-0022', as it should.
47314
47315 2005-08-17  Bruno Haible  <bruno@clisp.org>
47316
47317         * modules/strstr (Files): Add m4/mbrtowc.m4.
47318         (Depends-on): Add mbuiter.
47319
47320 2005-08-17  Bruno Haible  <bruno@clisp.org>
47321
47322         * modules/strcasestr: New file.
47323         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47324         strcasestr.
47325
47326 2005-08-17  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47329
47330 2005-08-17  Bruno Haible  <bruno@clisp.org>
47331
47332         * modules/mbuiter: New file.
47333         * MODULES.html.sh (Extended multibyte and wide character utilities):
47334         Add mbuiter.
47335
47336 2005-08-17  Bruno Haible  <bruno@clisp.org>
47337
47338         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47339         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47340
47341 2005-08-17  Bruno Haible  <bruno@clisp.org>
47342
47343         * m4/strcasestr.m4: New file.
47344
47345 2005-08-17  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47348         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47349
47350 2005-08-17  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/strcasestr.h: New file.
47353         * lib/strcasestr.c: New file.
47354
47355 2005-08-17  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/strcasecmp.c: Use mbuiter.h.
47358
47359 2005-08-17  Bruno Haible  <bruno@clisp.org>
47360
47361         * lib/mbuiter.h: New file.
47362
47363 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47364
47365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47366         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47367         and gl_GETOPT are both invoked via different paths (as happens
47368         with GNU tar CVS because it uses both argp and getopt), the former
47369         wins.
47370
47371 2005-08-16  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/tls: New file.
47374         * MODULES.html.sh (Multithreading): Add tls.
47375
47376 2005-08-16  Bruno Haible  <bruno@clisp.org>
47377
47378         * modules/strnlen1: New file.
47379         * MODULES.html.sh (String handling): Add strnlen1.
47380
47381 2005-08-16  Bruno Haible  <bruno@clisp.org>
47382
47383         * modules/strcase (Files): Add m4/mbrtowc.m4.
47384         (Depends-on): Add strnlen1, mbchar.
47385
47386 2005-08-16  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/mbiter: New file.
47389         * MODULES.html.sh (Extended multibyte and wide character utilities):
47390         Add mbiter.
47391
47392 2005-08-16  Bruno Haible  <bruno@clisp.org>
47393
47394         * modules/mbfile: New file.
47395         * MODULES.html.sh (Extended multibyte and wide character utilities):
47396         Add mbfile.
47397
47398 2005-08-16  Bruno Haible  <bruno@clisp.org>
47399
47400         * modules/mbchar: New file.
47401         * MODULES.html.sh (Extended multibyte and wide character utilities):
47402         New section.
47403
47404 2005-08-16  Bruno Haible  <bruno@clisp.org>
47405
47406         * m4/tls.m4: New file, from GNU gettext.
47407
47408 2005-08-16  Bruno Haible  <bruno@clisp.org>
47409
47410         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47411         always.
47412         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47413
47414 2005-08-16  Bruno Haible  <bruno@clisp.org>
47415
47416         * m4/mbiter.m4: New file.
47417
47418 2005-08-16  Bruno Haible  <bruno@clisp.org>
47419
47420         * m4/mbfile.m4: New file.
47421
47422 2005-08-16  Bruno Haible  <bruno@clisp.org>
47423
47424         * m4/mbchar.m4: New file.
47425
47426 2005-08-16  Bruno Haible  <bruno@clisp.org>
47427
47428         * lib/tls.h: New file, from GNU gettext.
47429         * lib/tls.c: New file, from GNU gettext.
47430
47431 2005-08-16  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/strnlen1.h: New file.
47434         * lib/strnlen1.c: New file.
47435
47436 2005-08-16  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47439         (mbi_init): Update.
47440         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47441         NUL byte, not after it.
47442
47443 2005-08-16  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/strcase.h (strcasecmp): Add note in comments.
47446         * lib/strncasecmp.c: Use code from strcasecmp.c.
47447         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47448         (strcasecmp): Work correctly in multibyte locales.
47449
47450 2005-08-16  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/mbiter.h: New file.
47453
47454 2005-08-16  Bruno Haible  <bruno@clisp.org>
47455
47456         * lib/mbfile.h: New file.
47457
47458 2005-08-16  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/mbchar.h: New file.
47461         * lib/mbchar.c: New file.
47462
47463 2005-08-16  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47466         the valid ones. Makes the comparison operations transitive:
47467         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47468         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47469
47470 2005-08-15  Simon Josefsson  <jas@extundo.com>
47471
47472         * modules/ssize_t (License): Change to 'unlimited'.
47473
47474         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47475
47476 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47477
47478         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47479         Add comments for each pending glibc patch.
47480
47481 2005-08-15  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/regex.h (__restrict_arr): Don't define to __restrict if
47484         __cplusplus is defined.
47485
47486 2005-08-14  Jim Meyering  <jim@meyering.net>
47487
47488         Sync from coreutils.
47489
47490         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47491         Use the hash-table-based cycle-detection code not just when
47492         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47493         Reported by James Youngman in
47494         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47495         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47496         FTS_TIGHT_CYCLE_CHECK.
47497         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47498         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47499         once again.
47500         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47501         * lib/fts.c (fd_safer): Remove decl.
47502         Include fcntl--.h rather than unistd-safer.h
47503         (fts_safe_changedir): Don't call fd_safer; no longer needed
47504         now that we include fcntl--.h.
47505
47506 2005-08-12  Simon Josefsson  <jas@extundo.com>
47507
47508         * modules/getndelim2: Use ssize_t module.
47509         * modules/getnline: Likewise.
47510         * modules/safe-read: Likewise.
47511         * modules/xreadlink: Likewise.
47512
47513         * modules/ssize_t: New file.
47514
47515 2005-08-12  Simon Josefsson  <jas@extundo.com>
47516
47517         * m4/readline.m4: Look for termcap, curses or ncurses if required.
47518
47519 2005-08-12  Simon Josefsson  <jas@extundo.com>
47520
47521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47522         ssize_t.
47523
47524 2005-08-12  Simon Josefsson  <jas@extundo.com>
47525
47526         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47527         readline, getdelim and check_version.
47528         (Support for systems lacking ISO C 99: Sizes of integer types):
47529         Add size_max.
47530
47531 2005-08-12  Bruno Haible  <bruno@clisp.org>
47532
47533         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47534
47535 2005-08-11  Simon Josefsson  <jas@extundo.com>
47536
47537         * modules/readline: New file.
47538
47539         * modules/strnlen (Files): Add strnlen.h.
47540
47541 2005-08-11  Simon Josefsson  <jas@extundo.com>
47542
47543         * m4/readline.m4: New file.
47544
47545 2005-08-11  Simon Josefsson  <jas@extundo.com>
47546
47547         * lib/readline.h, readline.c: New file.
47548
47549 2005-08-11  Simon Josefsson  <jas@extundo.com>
47550
47551         * doc/gnulib.texi (Initial import, Finishing touches): Mention
47552         gl_AVOID.
47553
47554 2005-08-11  Bruno Haible  <bruno@clisp.org>
47555
47556         * lib/strnlen.h (strnlen): Change parameter name to match comment.
47557
47558 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
47559
47560         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47561
47562 2005-08-10  Simon Josefsson  <jas@extundo.com>
47563
47564         * tests/test-iconvme.c: New file.
47565
47566 2005-08-10  Simon Josefsson  <jas@extundo.com>
47567
47568         * m4/strnlen.m4: New file.
47569
47570         * m4/strndup.m4: Don't check for strnlen declaration, done in
47571         strnlen.m4.
47572
47573 2005-08-10  Simon Josefsson  <jas@extundo.com>
47574
47575         * lib/strndup.c: Use strnlen.h.
47576
47577         * lib/strnlen.h: New file.
47578
47579 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47580
47581         * README: Typos.
47582
47583 2005-08-02  Simon Josefsson  <jas@extundo.com>
47584
47585         * modules/readline: New file.
47586
47587 2005-08-02  Simon Josefsson  <jas@extundo.com>
47588
47589         * modules/getdelim: New file.
47590
47591         * modules/getline: Rewrite, don't use getndelim2.
47592
47593 2005-08-02  Simon Josefsson  <jas@extundo.com>
47594
47595         * m4/getline.m4: Separate out getdelim stuff into separate module.
47596
47597         * m4/getdelim.m4: New file.
47598
47599 2005-08-02  Simon Josefsson  <jas@extundo.com>
47600
47601         * lib/getline.h, getline.c: Rewrite.
47602
47603         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47604
47605 2005-07-31  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/lock.h (gl_lock_initializer): New macro.
47608         (gl_lock_define_initialized): Use it.
47609         (gl_rwlock_initializer): New macro.
47610         (gl_rwlock_define_initialized): Use it.
47611         (gl_recursive_lock_initializer): New macro.
47612         (gl_recursive_lock_define_initialized): Use it.
47613
47614 2005-07-30  Karl Berry  <karl@gnu.org>
47615
47616         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47617         Report from Ben Pfaff, regarding getopt.
47618
47619 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
47620
47621         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47622         normal way.
47623         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47624         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
47625         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47626         (gl_GETOPT): Use the new macros.  Most of the implementation
47627         is moved to the new macros.  This is for programs like Emacs
47628         that don't want all the functionality of gl_GETOPT.
47629
47630 2005-07-26  Bruno Haible  <bruno@clisp.org>
47631
47632         * m4/lock.m4: Update from GNU gettext.
47633
47634 2005-07-26  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/lock.h: Update from GNU gettext.
47637         * lib/lock.c: Update from GNU gettext.
47638
47639 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47640
47641         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47642         obsolescent AC_TRY_RUN.  Include the default includes files, for
47643         'exit'.
47644
47645 2005-07-24  Bruno Haible  <bruno@clisp.org>
47646
47647         * modules/visibility: New file.
47648         * MODULES.html.sh (Misc): Add visibility.
47649
47650 2005-07-24  Bruno Haible  <bruno@clisp.org>
47651
47652         * m4/visibility.m4: New file.
47653
47654 2005-07-24  Bruno Haible  <bruno@clisp.org>
47655
47656         * doc/visibility.texi: New file.
47657
47658 2005-07-22  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47661         $(ALLOCA_H), redundant through BUILT_SOURCES.
47662         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47663         redundant through BUILT_SOURCES.
47664         * modules/byteswap (Makefile.am): Remove explicit dependency on
47665         $(BYTESWAP_H), redundant through BUILT_SOURCES.
47666         * modules/fnmatch (Makefile.am): Remove explicit dependency on
47667         $(FNMATCH_H), redundant through BUILT_SOURCES.
47668         * modules/getopt (Makefile.am): Remove explicit dependency on
47669         $(GETOPT_H), redundant through BUILT_SOURCES.
47670         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47671         redundant through BUILT_SOURCES.
47672         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47673         redundant through BUILT_SOURCES.
47674         * modules/stdbool (Makefile.am): Remove explicit dependency on
47675         $(STDBOOL_H), redundant through BUILT_SOURCES.
47676         * modules/stdint (Makefile.am): Remove explicit dependency on
47677         $(STDINT_H), redundant through BUILT_SOURCES.
47678         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47679         Remove explicit dependency on $(SYSEXITS_H).
47680         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47681
47682 2005-07-18  Simon Josefsson  <jas@extundo.com>
47683
47684         * lib/check-version.c (check_version): Accept identical versions too.
47685
47686 2005-07-18  Bruno Haible  <bruno@clisp.org>
47687
47688         * modules/lock: New file.
47689         * MODULES.html.sh (Multithreading): New section.
47690
47691 2005-07-18  Bruno Haible  <bruno@clisp.org>
47692
47693         * m4/lock.m4: New file, from GNU gettext.
47694
47695 2005-07-18  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/lock.h: New file, from GNU gettext.
47698         * lib/lock.c: New file, from GNU gettext.
47699
47700 2005-07-18  Bruno Haible  <bruno@clisp.org>
47701
47702         * lib/lock.h (gl_once_t): New type.
47703         (gl_once_define, gl_once): New macros.
47704         * lib/lock.c (fresh_once): New variable.
47705         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47706         functions.
47707
47708 2005-07-16  Simon Josefsson  <jas@extundo.com>
47709
47710         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47711         workaround, suggested by Bruno.
47712
47713 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         * modules/xalloc (Depends-on): Add xalloc-die.
47716         * modules/xvasprintf (Depends-on): Add xalloc-die.
47717
47718 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47719
47720         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
47721         with a minor change.
47722
47723 2005-07-15  Bruno Haible  <bruno@clisp.org>
47724
47725         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
47726         When using lib/poll.c, define poll as rpl_poll.
47727
47728 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
47729
47730         * modules/argp (Depends-on): Remove unlocked-io.
47731
47732 2005-07-14  Derek Price  <derek@ximbiot.com>
47733
47734         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
47735         for glob symlink bug.
47736
47737 2005-07-14  Bruno Haible  <bruno@clisp.org>
47738
47739         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
47740         Instead, test for *_unlocked function declarations directly.
47741
47742 2005-07-11  Simon Josefsson  <jas@extundo.com>
47743
47744         * modules/size_max: New file.
47745
47746         * modules/xsize: Depend on size_max module for size_max.m4.
47747
47748 2005-07-11  Simon Josefsson  <jas@extundo.com>
47749
47750         * lib/size_max.h: New file.
47751
47752 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
47755         copyright symbol and the year.
47756         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
47757         (version_etc_va): Use parameterized copyright notice.
47758         Reword to conform to the current GNU coding standards.
47759
47760 2005-07-11  Karl Berry  <karl@gnu.org>
47761
47762         * doc/gnulib.texi (Quoting): new node.
47763         (Initial import): more info, from Patrice.
47764
47765 2005-07-11  Bruno Haible  <bruno@clisp.org>
47766
47767         * gnulib-tool (func_usage): Document option --avoid.
47768         (Command line options): Handle --avoid.
47769         (func_acceptable): New function.
47770         (func_modules_transitive_closure): Use it.
47771
47772 2005-07-11  Bruno Haible  <bruno@clisp.org>
47773
47774         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
47775         Reported by Jim Meyering.
47776
47777 2005-07-10  Bruno Haible  <bruno@clisp.org>
47778
47779         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
47780         Needed when size_t is smaller than 'unsigned int'.
47781         Reported by Paul Eggert.
47782
47783 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47784
47785         * modules/argp (Depends-on): Add unlocked-io
47786
47787 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47788
47789         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
47790         block of defines.
47791
47792 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47793
47794         * config/srclist.txt: Comment out regcomp.c, since we have a porting
47795         fix now.
47796
47797 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
47798         and Paul Eggert  <eggert@cs.ucla.edu>
47799
47800         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
47801         in wint_t, not wchar_t.  Remove now-unnecessary cast.
47802
47803 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         * modules/regex (Files): Add lib/regex_internal.c,
47806         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
47807         (Depends-on): Add extensions.
47808         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
47809
47810 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47811
47812         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
47813         pathconf.
47814         * m4/same.m4 (gl_SAME): Likewise.
47815         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
47816
47817         * m4/regex.m4: Adjust to new libc regex implementation.
47818         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
47819         all the .c and .h parts of (the new) regex.
47820         Quote the m4 stuff better.
47821         Check for RE_ICASE bug of old gnulib.
47822         Check for REG_STARTEND of recent libc.
47823         Rename local variables from jm_* to gl_*.
47824         Quote operand of "test -f".
47825         Say "recent enough" version of libc, not "version 2".
47826         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
47827         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
47828         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
47829         Remove check for btowc, isascii.
47830         Require AM_LANGINFO_CODESET.
47831
47832 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47833
47834         * lib/regex.c, regex.h: Sync from libc.
47835         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
47836         * lib/regexec.c:
47837         New files, synced from libc, except that regex_internal.h
47838         currently has a small porting fix.
47839
47840 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47841
47842         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
47843         regex_internal.c, regexec.c.
47844         Add regex_internal.h too, but as a comment, since the libc version
47845         is currently broken in gnulib mode.
47846
47847 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         Support programs like Emacs that use gnulib but not gettext.
47850         * MODULES.html.sh (Internationalization functions): Add gettext-h.
47851         * modules/gettext-h: New file.
47852         * modules/gettext (Files): Remove lib/gettext.h.
47853         (Depends-on): Add gettext-h.
47854         (Makefile.am): Remove lib_SOURCES.
47855         * modules/argmatch, modules/c-stack, modules/closeout:
47856         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
47857         * modules/execute, modules/file-type, modules/getaddrinfo:
47858         * modules/getopt, modules/human, modules/javacomp:
47859         * modules/javaexec, modules/mkdir-p, modules/obstack:
47860         * modules/openat, modules/pagealign_alloc, modules/pipe:
47861         * modules/quotearg, modules/regex, modules/rpmatch:
47862         * modules/unicodeio, modules/userspec, modules/version-etc:
47863         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
47864         * modules/xsetenv:
47865         Depend on gettext-h, not gettext.
47866
47867 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * gnulib-tool (func_import): Add support for 'public domain' license.
47870         * modules/alloca, modules/atexit, modules/memmove:
47871         Now public domain, not GPL.
47872         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
47873         * modules/realloc, modules/strerror, modules/strtod:
47874         Now LGPL, not GPL.
47875
47876 2005-07-05  Bruno Haible  <bruno@clisp.org>
47877
47878         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
47879         autoconf CVS. Needed for mingw.
47880
47881 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47882
47883         Remove the dependency of the strftime module on the tzset module.
47884         * modules/strftime (Depends-on): Remove dependency on tzset.
47885
47886 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         Remove the dependency of the strftime module on the tzset module.
47889         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
47890         gl_FUNC_TZSET_CLOBBER.
47891
47892 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47893
47894         Remove the dependency of the strftime module on the tzset module.
47895         * lib/strftime.c (my_strftime)
47896         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
47897         Copy the input structure, to work around some of the bug with
47898         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
47899         Solaris releases, you should also use the tzset module, but we won't
47900         require it as a dependency any more since we don't want LGPLed code
47901         to depend on GPLed code.
47902
47903 2005-07-02  Jim Meyering  <jim@meyering.net>
47904
47905         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
47906         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
47907         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
47908         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
47909
47910 2005-07-02  Jim Meyering  <jim@meyering.net>
47911
47912         * lib/backupfile.c (backup_args): Change a `0' to NULL.
47913
47914 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47915
47916         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
47917         declares only 'struct timespec;' (!).
47918
47919 2005-07-01  Jim Meyering  <jim@meyering.net>
47920
47921         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
47922         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
47923         * lib/save-cwd.c, tempname.c:
47924         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47925         and don't include <sys/file.h>).
47926
47927 2005-06-29  Jim Meyering  <jim@meyering.net>
47928
47929         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
47930         type name.  Use the variable name instead.
47931         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
47932         Likewise.
47933
47934 2005-06-28  Simon Josefsson  <jas@extundo.com>
47935
47936         * modules/check-version (Files): Add check-version.m4.
47937
47938 2005-06-28  Simon Josefsson  <jas@extundo.com>
47939
47940         * m4/check-version.m4: New file, suggested by Jim Meyering
47941         <jim@meyering.net>.
47942
47943 2005-06-28  Simon Josefsson  <jas@extundo.com>
47944
47945         * lib/check-version.h, lib/check-version.c: New files.
47946
47947 2005-06-28  Simon Josefsson  <jas@extundo.com>
47948
47949         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
47950         collision with global variable.  Better indentation.  Don't
47951         increment buffer pointer beyond buffer end.  Based on comments
47952         from Paul Eggert <eggert@cs.ucla.edu>.
47953
47954         * lib/base64.h: Indent.
47955
47956 2005-06-28  Simon Josefsson  <jas@extundo.com>
47957
47958         * doc/gnulib.texi (Library version handling): New section.
47959
47960 2005-06-28  Jim Meyering  <jim@meyering.net>
47961
47962         * check-module (find_included_lib_files): Hard-code another
47963         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
47964         but modules/fts-lgpl (correctly) does not list those files.
47965
47966         * modules/canonicalize (Files): Add lib/pathmax.h.
47967
47968 2005-06-25  Simon Josefsson  <jas@extundo.com>
47969
47970         * modules/check-version: New file.
47971
47972 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
47973
47974         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
47975         initializer of struct addrinfo, as an indication that we don't
47976         care how many members the structure has.
47977
47978 2005-06-24  Derek Price  <derek@ximbiot.com>
47979         and Bruno Haible  <bruno@clisp.org>
47980
47981         Remove stat module & update lstat.
47982         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
47983         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47984         * m4/stat.m4: Remove this file.
47985
47986 2005-06-24  Derek Price  <derek@ximbiot.com>
47987         and Bruno Haible  <bruno@clisp.org>
47988
47989         Remove stat module & update lstat.
47990         * lib/stat.c: Remove this file...
47991         (slash_aware_lstat): ...moving this content and its support...
47992         * lib/lstat.c (rpl_lstat): ...into here.
47993         * lib/lstat.h: New file.
47994
47995 2005-06-24  Derek Price  <derek@ximbiot.com>
47996         and Bruno Haible  <bruno@clisp.org>
47997
47998         Remove stat module & update lstat.
47999         * config/srclist.txt (libc sources): Remove stat.
48000
48001 2005-06-24  Derek Price  <derek@ximbiot.com>
48002         and Bruno Haible  <bruno@clisp.org>
48003
48004         Remove stat module & update lstat.
48005         * MODULES.html.sh (stat): Remove.
48006         * MODULES.html: Regenerated.
48007         * modules/lstat (Description): Correct function name.
48008         (Files): Add "lstat.h".
48009         (Depends-on): Remove stat, add xalloc, stat-macros.
48010         * modules/stat: Remove this file.
48011         (Include): Add "lstat.h", remove <sys/stat.h>.
48012
48013 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48016         (ranged_convert): Don't save conversion in a temporary struct.
48017         This causes a warning with GCC 4.0.0, and anyway in the typical
48018         case it's not worth the extra 100 bytes or so of code.
48019         (ranged_convert, __mktime_internal): When calling a function via a
48020         pointer P, use P () rather than (*P) (), as we now assume C89 or
48021         better.
48022
48023 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48026         "who -r" failed to give output.  Problem reported by Tim Waugh.
48027
48028         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48029         (xcalloc): Use it to avoid needless tests.
48030         Problem reported by Jim Meyering.
48031
48032 2005-06-20  Derek Price  <derek@ximbiot.com>
48033
48034         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48035         unnecessary for Autoconfs > 2.59c.
48036
48037 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48038
48039         * lib/argp.h (__option_is_short): Check upper limit of
48040         __key. Isprint() requires its argument to have the value
48041         of an unsigned char or EOF.
48042
48043 2005-06-16  Jim Meyering  <jim@meyering.net>
48044
48045         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48046         when either N or S is zero.
48047
48048 2005-06-16  Derek Price  <derek@ximbiot.com>
48049
48050         * m4/bison.m4: Declare YACC & YFLAGS precious.
48051
48052 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48055         multibyte string or pattern, fall back on unibyte matching.
48056         Problem reported by James Youngman.
48057
48058 2005-06-08  Bruno Haible  <bruno@clisp.org>
48059
48060         * modules/csharpcomp: New file.
48061         * MODULES.html.sh (C#): Add csharpcomp.
48062
48063 2005-06-08  Bruno Haible  <bruno@clisp.org>
48064
48065         * m4/csharpcomp.m4: New file, from GNU gettext.
48066
48067 2005-06-08  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/csharpcomp.h: New file, from GNU gettext.
48070         * lib/csharpcomp.c: New file, from GNU gettext.
48071         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48072
48073 2005-06-08  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48076         warning on mingw.
48077
48078 2005-06-07  Derek Price  <derek@ximbiot.com>
48079
48080         Sync from CVS.
48081         * lib/glob_.h: Indent nested #ifdef.
48082
48083 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48084
48085         Sync from coreutils.
48086         Use "file name" when talking about file names, instead of "filename"
48087         or "path", as per the GNU coding standards.
48088         * lib/mkdir-p.c: Renamed from makepath.c.
48089         (make_dir_parents): Renamed from make_path.  All callers changed.
48090         * lib/mkdir-p.h: Likewise.  All includers changed.
48091         * lib/filenamecat.c: Renamed from path-concat.c.
48092         (file_name_concat): Renamed from path_concat.  All callers changed.
48093         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48094         * lib/filenamecat.h: Likewise.  All includers changed.
48095         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48096         in comments or local variable names.
48097         * lib/basename.c: Likewise.
48098         * lib/canonicalize.c, canonicalize.h: Likewise.
48099         * lib/dirname.c, dirname.h: Likewise.
48100         * lib/euidaccess.c: Likewise.
48101         * lib/exclude.c: Likewise
48102         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48103         * lib/fsusage.c, fsuage.h: Likewise.
48104         * lib/fts.c, fts_.h: Likewise.
48105         * lib/getcwd.c: Likewise.
48106         * lib/getloadavg.c: Likewise.
48107         * lib/mkstemp.c: Likewise.
48108         * lib/mountlist.c, mountlist.h: Likewise.
48109         * lib/openat.c, openat.h: Likewise.
48110         * lib/readlink-stub.c: Likewise.
48111         * lib/readutmp.c, readutmp.h: Likewise.
48112         * lib/rename.c: Likewise.
48113         * lib/rmdir.c: Likewise.
48114         * lib/same.c: Likewise.
48115         * lib/savedir.c: Likewise.
48116         * lib/stripslash.c: Likewise.
48117         * lib/tempname.c: Likewise.
48118         * lib/xreadlink.c: Likewise.
48119         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48120         All uses changed.
48121         * lib/exclude.h: Likewise.
48122
48123         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48124         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48125         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48126         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48127         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48128         files have been getting away with it for years (MORE/BSD 4.3
48129         is extinct now).
48130         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48131         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48132
48133         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48134         Define to 256, not 255, as per modern POSIX.
48135
48136 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48137
48138         Sync from coreutils.
48139         Use "file name" when talking about file names, instead of "filename"
48140         or "path", as per the GNU coding standards.
48141         * MODULES.html.sh: mkdir-p renamed from makepath.
48142         filenamecat renamed from path-concat.
48143         * modules/filenamecat: Renamed from modules/path-concat.
48144         (Files): filenamecat.h and filenamecat.c renamed from
48145         path-concat.h and path-concat.c.
48146         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48147         (Include): filenamecat.h, not path-concat.h.
48148         * modules/mkdir-p: Renamed from modules/makepath.
48149         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48150         makepath.c.
48151         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48152         (Include): mkdir-p.h, not makepath.h.
48153
48154 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48155
48156         Sync from coreutils.
48157         * m4/mkdir-p.m4: Renamed from makepath.m4.
48158         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48159         Rename files from makepath.c to mkdir-p.c, and from
48160         makepath.h to mkdir-p.h.
48161         * m4/filenamecat.m4: Renamed from path-concat.m4.
48162         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48163         Rename files from path-concat.c to filenamecat.c,
48164         and from path-concat.h to filenamecat.h.
48165         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48166         "file name" in local variables or comments.
48167         * m4/rename.m4: Likewise.
48168
48169 2005-06-01  Bruno Haible  <bruno@clisp.org>
48170
48171         * modules/csharpexec: New file.
48172         * MODULES.html.sh (C#): New section.
48173
48174 2005-06-01  Bruno Haible  <bruno@clisp.org>
48175
48176         * m4/csharp.m4: New file, from GNU gettext.
48177         * m4/csharpexec.m4: New file, from GNU gettext.
48178
48179 2005-06-01  Bruno Haible  <bruno@clisp.org>
48180
48181         * lib/csharpexec.h: New file, from GNU gettext.
48182         * lib/csharpexec.c: New file, from GNU gettext.
48183         * lib/csharpexec.sh.in: New file, from GNU gettext.
48184
48185 2005-05-31  Derek Price  <derek@ximbiot.com>
48186             Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         Sync from cvs.
48189         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48190
48191 2005-05-31  Derek Price  <derek@ximbiot.com>
48192             Paul Eggert  <eggert@cs.ucla.edu>
48193
48194         Sync from cvs.
48195         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48196
48197 2005-05-29  Derek Price  <derek@ximbiot.com>
48198
48199         * config/srclist.txt (glob_.h, glob.c): Add these files.
48200
48201 2005-05-29  Derek Price  <derek@ximbiot.com>
48202
48203         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48204         * modules/glob: New file.
48205         * modules/getlogin_r: Add link to POSIX spec in description.
48206
48207 2005-05-29  Derek Price  <derek@ximbiot.com>
48208             Paul Eggert  <eggert@cs.ucla.edu>
48209
48210         * m4/glob.m4: New file.
48211
48212 2005-05-29  Derek Price  <derek@ximbiot.com>
48213             Paul Eggert  <eggert@cs.ucla.edu>
48214
48215         * lib/glob_.h, lib/glob.c: New files.
48216
48217 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48220         * modules/fts-lgpl (Depends-on): Remove gettext.
48221
48222 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48223
48224         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48225         and don't require gt_INTTYPES_PRI.
48226
48227 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48228
48229         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48230
48231         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48232         the configuration hassle isn't worth it.
48233         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48234         (LONGEST_MODIFIER, PRIuMAX): Remove.
48235
48236 2005-05-27  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48239
48240 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48243         _POSIX_PTHREAD_SEMANTICS for Solaris.
48244
48245 2005-05-25  Derek Price  <derek@ximbiot.com>
48246
48247         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48248
48249 2005-05-25  Derek Price  <derek@ximbiot.com>
48250             Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48253         * lib/getlogin_r.c, getlogin_r.h: New files.
48254
48255 2005-05-25  Bruno Haible  <bruno@clisp.org>
48256             Derek Price  <derek@ximbiot.com>
48257
48258         * lib/getlogin_r.h: Simplify API documentation.
48259
48260 2005-05-23  Derek Price  <derek@ximbiot.com>
48261
48262         * modules/minmax (Files): Add m4/minmax.m4.
48263         (configure.ac): Add gl_MINMAX.
48264
48265 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48266
48267         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48268         so that unistd-safer.h (GPL'ed code) need not be included.
48269
48270 2005-05-22  Bruno Haible  <bruno@clisp.org>
48271
48272         * m4/minmax.m4: New file.
48273         Based on a patch by Derek Price <derek@ximbiot.com>.
48274
48275 2005-05-22  Bruno Haible  <bruno@clisp.org>
48276
48277         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48278         (INT64_MIN): Fix definition.
48279         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48280
48281         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48282         NEED_SIGNED_INT_TYPES.
48283
48284         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48285         HAVE_SYSTEM_INTTYPES.
48286
48287 2005-05-22  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48290         Also include <sys/param.h> if it defines MIN, MAX.
48291         Based on a patch by Derek Price <derek@ximbiot.com>.
48292
48293 2005-05-21  Jim Meyering  <jim@meyering.net>
48294
48295         * modules/fts (Files): Add m4/inttypes-pri.m4.
48296         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48297
48298 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48299
48300         New fts module.
48301         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48302         (setup_dir, free_dir): New functions.
48303         (enter_dir, leave_dir): Define trivial
48304         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48305         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48306         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48307         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48308         Move to fts-cycle.c.
48309         (fts_open): Use setup_dir.
48310         (fts_close): Use free_dir.
48311         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48312         This adds a label and some gotos, but the alternatives were messier.
48313         Check for memory allocation failure when entering a dir.
48314         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48315         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48316         (FTS): New member fts_cycle, that is a union that contains the
48317         old active_dir_ht and cycle_state.  All uses changed to mention
48318         fts_cycle.ht and fts_cycle.state.
48319         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48320         fts.c, with the following changes:
48321         (setup_dir, free_dir): New functions.
48322         (enter_dir): Now returns bool.  Return true if successful, false
48323         if memory exhausted.  All callers changed.
48324         Do not bother partly cleaning up on
48325         memory allocation failure; that is free_dir's job.
48326         However, free ad if hash_insert fails, to avoid memory leak.
48327         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48328         fts->fts_options to see which union member to use.
48329
48330 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48331
48332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48333         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48334
48335 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48336
48337         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48338
48339 2005-05-20  Jim Meyering  <jim@meyering.net>
48340
48341         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48342         Now a macro, to pacify GCC.
48343
48344 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48345
48346         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48347         of -1.
48348
48349 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48350
48351         * lib/chown.c (rpl_chown): Return -1 on failure.
48352
48353 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48354
48355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48356         Don't check for stddef.h.
48357         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48358         don't use its results.
48359         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48360         since we include them unconditionally.  Don't require
48361         AM_STDBOOL_H, since stdbool is a prerequisite.
48362         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48363         since we assume C89 or better.
48364         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48365         as we don't use their results.
48366         Don't check for fchdir, memmove, memset, strrchr, as we use
48367         them unconditionally.
48368         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48369         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48370
48371 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48372
48373         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48374         Include <stddef.h> unconditionally, since we assume C89 now.
48375         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48376         * lib/fts.c: Include fts_.h first, to check interface.
48377         Do not include intprops.h; no longer needed.
48378         Include cycle-check.h and hash.h, since fts_.h no longer does.
48379         Remove unnecessary casts of closedir to void.
48380         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48381         decide whether to decrement nlinks.
48382         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48383         (FTS): Use struct hash_table * instead of Hash_table, so that
48384         we no longer need to include hash.h here.
48385
48386 2005-05-18  Jim Meyering  <jim@meyering.net>
48387
48388         * modules/dirfd (License): Change to LGPL.  Most of the code
48389         is already in the public domain.
48390
48391 2005-05-18  Jim Meyering  <jim@meyering.net>
48392
48393         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48394         Reported by Yoann Vandoorselaere.
48395
48396 2005-05-17  Jim Meyering  <jim@meyering.net>
48397
48398         * m4/fts.m4: New file, from coreutils.
48399
48400 2005-05-17  Jim Meyering  <jim@meyering.net>
48401
48402         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48403
48404 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         Sync from coreutils.
48407         * m4/unlinkdir.m4: New file.
48408
48409 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48410
48411         Sync from coreutils.
48412         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48413         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48414         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48415         White space changes only.
48416         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48417         special.
48418         * lib/yesno.c: Include getline.h, not ctype.h.
48419         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48420         Use getline to remove arbitrary restriction on response length.
48421
48422 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48423
48424         * config/srclist-update: Spell out "Street" in FSF postal
48425         mail address; this is the style the FSF seems to prefer.
48426
48427         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48428         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48429         this updates FSF postal mail address.
48430
48431         Sync from coreutils.
48432         * modules/unlinkdir: New file.
48433         * modules/yesno (Depends-on): Add getline.
48434         * MODULES.html.sh (File system functions): Add unlinkdir.
48435
48436 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48437
48438         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48439         lib/strsep.h:
48440         Change the initial comment to refer to GPL, not LGPL.
48441         gnulib-tool will change it to LGPL as needed.
48442
48443         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48444         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48445         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48446         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48447         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48448         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48449         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48450         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48451         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48452         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48453         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48454         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48455         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48456         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48457         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48458         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48459         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48460         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48461         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48462         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48463         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48464         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48465         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48466         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48467         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48468         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48469         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48470         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48471         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48472         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48473         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48474         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48475         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48476         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48477         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48478         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48479         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48480         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48481         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48482         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48483         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48484         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48485         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48486         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48487         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48488         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48489         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48490         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48491         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48492         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48493         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48494         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48495         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48496         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48497         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48498         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48499         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48500         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48501         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48502         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48503         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48504         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48505         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48506         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48507         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48508         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48509         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48510         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48511         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48512         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48513         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48514         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48515         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48516         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48517         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48518         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48519         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48520         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48521         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48522         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48523         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48524         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48525         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48526         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48527         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48528         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48529         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48530         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48531         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48532         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48533         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48534         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48535         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48536         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48537         lib/yesno.c, lib/yesno.h:
48538         Update FSF postal mail address.
48539
48540 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48541
48542         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48543         tests/test-memmem.c, tests/test-stpncpy.c:
48544         Update FSF postal mail address.
48545
48546 2005-05-13  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48549         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48550         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48551         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48552         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48553         Add support for 64-bit integers in the MSVC compiler.
48554
48555 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48556
48557         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48558
48559 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
48560
48561         * gnulib-tool (func_import): Sort and uniquify recommended includes.
48562
48563 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
48564
48565         * doc/getdate.texi (General date syntax): Don't say that date
48566         date --iso-8601=ns generates acceptable dates; it doesn't yet.
48567         Problem reported by Nic Ferrier.
48568
48569 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48570
48571         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48572         specified in ai_socktype. Fix invalid ai_protocol
48573         check. ai_protocol is usually set to 0 or depending on
48574         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
48575         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
48576         ai_socktype / ai_protocol in the returned addrinfo structure.
48577
48578 2005-05-10  Simon Josefsson  <jas@extundo.com>
48579
48580         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48581         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48582
48583 2005-05-10  Karl Berry  <karl@gnu.org>
48584
48585         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48586         (from http://www.gnu.org/licenses).
48587         * doc/COPYING.LIB: also rename to COPYING.LESSER.
48588         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48589         fdl.texi suffices.
48590
48591 2005-05-10  Karl Berry  <karl@gnu.org>
48592
48593         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48594         (COPYING.DOC): remove.
48595
48596         * config/srclist-update: new FSF address.
48597
48598 2005-05-10  Derek Price  <derek@ximbiot.com>
48599
48600         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48601         possible.
48602
48603 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48604             Bruno Haible  <bruno@clisp.org>
48605
48606         * modules/inet_ntop: New file.
48607         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48608         inet_ntop.
48609
48610 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48611             Bruno Haible  <bruno@clisp.org>
48612
48613         * m4/inet_ntop.m4: New file.
48614
48615 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48616             Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/inet_ntop.h: New file.
48619         * lib/inet_ntop.c: New file, from glibc with modifications.
48620
48621 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         * modules/time_r (License): Change to LGPL.
48624         * modules/extensions (License): Change to LGPL.  Actually,
48625         the license is more permissive than that, but currently gnulib-tool
48626         doesn't know how to handle more-permissive licenses.
48627
48628         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48629         Problem reported by Dave Love.
48630
48631 2005-05-08  Jim Meyering  <jim@meyering.net>
48632
48633         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48634         blank.
48635
48636 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48637
48638         * modules/argmatch (Depends-on): Add stdbool.
48639         * modules/backupfile (Depends-on): Likewise.
48640         * modules/chdir-long (Depends-on): Likewise.
48641         * modules/closeout (Depends-on): Likewise.
48642         * modules/cycle-check (Depends-on): Likewise.
48643         * modules/dirname (Depends-on): Likewise.
48644         * modules/fnmatch (Depends-on): Likewise.
48645         * modules/fsusage (Depends-on): Likewise.
48646         * modules/fwriteerror (Depends-on): Likewise.
48647         * modules/getcwd (Depends-on): Likewise.
48648         * modules/getloadavg (Depends-on): Likewise.
48649         * modules/hard-locale (Depends-on): Likewise.
48650         * modules/makepath (Depends-on): Likewise.
48651         * modules/mountlist (Depends-on): Likewise.
48652         * modules/nanosleep (Depends-on): Likewise.
48653         * modules/posixtm (Depends-on): Likewise.
48654         * modules/quotearg (Depends-on): Likewise.
48655         * modules/readtokens (Depends-on): Likewise.
48656         * modules/readtokens0 (Depends-on): Likewise.
48657         * modules/readutmp (Depends-on): Likewise.
48658         * modules/save-cwd (Depends-on): Likewise.
48659         * modules/strftime (Depends-on): Likewise.
48660         * modules/userspec (Depends-on): Likewise.
48661         * modules/utimecmp (Depends-on): Likewise.
48662         * modules/xgetcwd (Depends-on): Likewise.
48663         * modules/xnanosleep (Depends-on): Likewise.
48664         * modules/xstrtod (Depends-on): Likewise.
48665         * modules/yesno (Depends-on): Likewise.
48666
48667 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48668
48669         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48670         needless checks.
48671
48672 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48673
48674         Merge from coreutils.  Among other things,
48675         add bulletproofing for cases where stdin, stdout, or stderr are closed.
48676         * lib/fd-safer.c: New file.
48677         * lib/fcntl-safer.h, open-safer.c: Remove.
48678         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48679         * lib/dup-safer.c: Include unistd-safer.h first.
48680         Don't include errno.h.
48681         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48682         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48683         * lib/file-type.c: Rely on file-type.h change.
48684         * lib/getloadavg.c: Include unistd-safer.h.
48685         (getloadavg): Use safer open.
48686         * lib/getusershell.c: Include "stdio-safer.h".
48687         (getusershell): Use safer fopen.
48688         * lib/long-options.c (long_options): Use NULL rather than 0.
48689         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48690         'free'.
48691         * lib/modechange.c: Likewise.
48692         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48693         (MODE_DONE): New constant.
48694         (struct mode_change): Remove 'next' member.
48695         (make_node_op_equals): New function; like the old one of the
48696         same name, except it allocates an array.
48697         (mode_compile, mode_create_from_ref): Use it.
48698         (mode_compile): Allocate result as an array, not a linked list.
48699         Parse octal string ourself, so that we catch mistakes like "+0".
48700         (mode_adjust): Arg is an array, not a linked list.
48701         * lib/modechange.c: Include stat-macros.h, xalloc.h.
48702         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48703         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48704         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48705         Remove.  This is now stat-macros.h's job.
48706         (talloc): Remove.  All callers replaced by xalloc, so that
48707         our invokers don't have to worry about reporting memory failures.
48708         (make_node_op_equals): Remove.
48709         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48710         New constants.
48711         (struct mode_change): Moved here from modechange.h.
48712         (mode_append_entry): Remove.
48713         (mode_compile): Remove MASKED_OPS arg, since it encouraged
48714         apps to have incorrect behavior.  Use simpler algorithm for head
48715         and tail.  Don't futz with umask; that's now the job of mode_adjust.
48716         Detect more invalid usages rather than having somewhat-random behavior.
48717         Don't insert an "a=" action, as that leads to incorrect behavior.
48718         (mode_compile, mode_create_from_ref): Return NULL on error instead
48719         of an enum, since now there's only one way to have an error.  All
48720         callers changed.
48721         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
48722         at the correct time.  Simplify calculation of "+u" and its ilk.
48723         Don't mishandle "+X".
48724         (mode_free): Remove "register" and localize decls.
48725         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48726         (struct mode_change): Move to modechange.c; callers don't
48727         need to see this stuff.
48728         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
48729         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
48730         (mode_change, mode_adjust): Reflect the new signatures noted above.
48731         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
48732         that might redefine system include files.
48733         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
48734         (my_usleep): Use NULL rather than (void *) 0.
48735         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
48736         Use siginterrupt to specify that system calls should be interrupted.
48737         (rpl_nanosleep): Move initialization of suspended closer to call of
48738         my_usleep.
48739         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
48740         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
48741         (desirable_utmp_entry): New function.
48742         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
48743         using x2nrealloc, to simplify logic.
48744         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
48745         size calculation.  Do not assume utmp file is a regular file.
48746         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
48747         (READ_UTMP_CHECK_PIDS): New constant.
48748         * lib/save-cwd.c: Include unistd-safer.h.
48749         (save_cwd): Use fd_safer.
48750         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
48751         [!_LIBC] Include "stat-macros.h" instead.
48752         * lib/unistd-safer.h (fd_safer): New decl.
48753
48754 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48755
48756         * modules/getloadavg (Depends-on): Add unistd-safer.
48757         * modules/getusershell (Depends-on): Add stdio-safer.
48758         * modules/lstat (Depends-on): Remove xalloc.
48759         * modules/mkstemp (Depends-on): Add stat-macros.
48760         * modules/modechange (Depends-on): Remove xstrtol.
48761         Add stat-macros, xalloc.
48762         * modules/save-cwd (Depends-on): Add unistd-safer.
48763         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
48764         * modules/unistd-safer (Files): Add lib/fd-safer.c
48765         (Makefile.am): Remove lib_SOURCES.
48766
48767         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
48768         Remove fcntl-safer; unistd-safer supersedes it.
48769
48770 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48771
48772         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
48773         AC_HEADER_STAT.
48774         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
48775         (gl_PREREQ_CHOWN): Remove.
48776         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
48777         it.  Don't require AC_HEADER_STAT.
48778         (gl_PREREQ_LSTAT): Remove.
48779         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
48780         Don't require AC_HEADER_STAT.
48781         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
48782         (gl_PREREQ_RMDIR): Remove.
48783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
48784         mention stat-macros.h or AC_HEADER_STAT, since we'll make
48785         the stat-macros module a prerequisite.
48786         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
48787         * m4/filemode.m4 (gl_FILEMODE): Likewise.
48788         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
48789         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
48790         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
48791         variable names.
48792         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
48793         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
48794         variable prefixes.
48795         * m4/fcntl-safer.m4: Remove.
48796         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
48797         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
48798         Invoke gl_PREREQ_FD_SAFER.
48799         (gl_PREREQ_FD_SAFER): New macro.
48800         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
48801         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
48802         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
48803         Remove duplicate call to AC_LIBOBJ(readutmp).
48804         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
48805
48806         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
48807         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
48808
48809 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48810
48811         * MODULES.html.sh (Misc): Add byteswap.
48812
48813 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48814
48815         * modules/getcwd (Depends-on): Add extensions.
48816         * modules/openat (Depends-on): Likewise.
48817
48818 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48819
48820         * modules/byteswap: New file.
48821
48822 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48823
48824         * m4/byteswap.m4: New file.
48825
48826 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48827
48828         * lib/byteswap_.h: New file.
48829
48830 2005-04-25  Karl Berry  <karl@gnu.org>
48831
48832         * m4/gettext.m4: Update from GNU gettext 0.14.4.
48833
48834 2005-04-25  Albert Chin  <china@thewrittenword.com>
48835
48836         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
48837         Toolkit C bug.
48838
48839 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
48840
48841         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
48842         (func_ln_if_changed) Remove forcibly for no error message
48843         in case file does not exist.
48844
48845 2005-04-19  Simon Josefsson  <jas@extundo.com>
48846
48847         * gnulib-tool (Options): Make --symlink mean --symbolic.
48848
48849 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
48850
48851         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
48852
48853 2005-04-16  Simon Josefsson  <jas@extundo.com>
48854
48855         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
48856
48857 2005-04-15  Simon Josefsson  <jas@extundo.com>
48858
48859         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
48860
48861 2005-04-15  Simon Josefsson  <jas@extundo.com>
48862
48863         * gnulib-tool: Rename --symlink to --symbolic.
48864
48865 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
48866
48867         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
48868         symbolic links to files instead of copying/moving.  Add --aux-dir,
48869         specifying directory relative --dir where auxiliary build tools
48870         are placed.
48871
48872 2005-04-14  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/allocsa (License): Change to LGPL.
48875         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48876
48877 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
48880         that "UTC +1 second" continues to work.  Problem reported
48881         by Dmitry V. Levin.
48882         (relunit_snumber): New rule.
48883         (relunit): Use it.
48884
48885 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
48886
48887         * lib/getdate.y (universal_time_zone_table): New constant.
48888         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
48889         universal_time_zone_table.
48890         (lookup_zone): Prefer universal_time_zone_table to
48891         local_time_zone_table, so that "GMT" time stamps are allowed in
48892         London during the summer.  Problem reported by Ian Abbott.
48893
48894 2005-04-12  Jim Meyering  <jim@meyering.net>
48895
48896         * lib/human.c (humblock): Set *options even when returning due to
48897         xstrtoumax conversion failure.  Thanks to a used-uninitialized
48898         warning from gcc-4.
48899
48900 2005-04-09  Jim Meyering  <jim@meyering.net>
48901
48902         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
48903         -Wuninitialized: initialize tm0.tm_year.
48904
48905 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48906
48907         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
48908         count, since there's no maximum.  All uses changed.
48909         Add member dsts_seen.
48910         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
48911         not being INT_MAX.
48912         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
48913         Use pc_rels_seen to decide whther a date is absolute.
48914
48915         * lib/getdate.y (number): Don't overwrite year.
48916         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
48917         check.
48918
48919 2005-04-02  Simon Josefsson  <jas@extundo.com>
48920
48921         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
48922         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
48923
48924 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
48925
48926         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
48927         where no absolute path name can be longer than PATH_MAX.
48928
48929 2005-03-27  Jim Meyering  <jim@meyering.net>
48930
48931         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
48932
48933 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
48934
48935         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
48936         "one's complement" -> "ones' complement" in comment, as per Knuth.
48937         "value of type" -> "type or expression" in comment.
48938         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
48939
48940 2005-03-26  Jim Meyering  <jim@meyering.net>
48941
48942         Comment nits.
48943         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
48944         Correct typos: s/or/of/.
48945
48946 2005-03-26  Jim Meyering  <jim@meyering.net>
48947
48948         * modules/check-include-files: Move to ../ and rename to...
48949         * check-module: ...this.
48950
48951 2005-03-25  Jim Meyering  <jim@meyering.net>
48952
48953         * modules/xvasprintf (Files): Add xalloc.h.
48954
48955 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48956
48957         * modules/gettext (Files): config/config.rpath ->
48958         build-aux/config.rpath
48959         * modules/iconv (Files): Likewise.
48960         Problem reported by Oskar Liljeblad.
48961
48962 2005-03-23  Jim Meyering  <jim@meyering.net>
48963
48964         * modules/check-include-files: New script to check for
48965         missing dependencies, multiple includes, etc.
48966
48967         * modules/c-strtold (Depends-on): Add xalloc.
48968         * modules/c-strtod (Depends-on): Add xalloc.
48969         * modules/hash (Depends-on): Add xalloc.
48970         (Files): Remove lib/xalloc.h.
48971
48972         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
48973         * modules/userspec (Files): Add lib/inttostr.h.
48974
48975 2005-03-23  Jim Meyering  <jim@meyering.net>
48976
48977         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
48978
48979 2005-03-22  Jim Meyering  <jim@meyering.net>
48980
48981         * modules/stat-macros: New module.
48982         * modules/canonicalize, modules/euidaccess, modules/file-type,
48983         * modules/filemode, modules/lchown, modules/makepath,
48984         * modules/rmdir, modules/stat: Depend on new stat-macros module
48985         rather than listing lib/stat-macros.h manually.
48986         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
48987
48988 2005-03-22  Jim Meyering  <jim@meyering.net>
48989
48990         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
48991
48992 2005-03-22  Bruno Haible  <bruno@clisp.org>
48993
48994         * config/srclist.txt: Replace target directory 'config' with
48995         'build-aux'.
48996         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
48997         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
48998         ../build-aux/.
48999
49000 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49001
49002         * modules/chdir-long (Depends-on): Add mempcpy.
49003
49004         * modules/acl, modules/backupfile, modules/c-strtod,
49005         modules/c-strtold, modules/canon-host, modules/canonicalize,
49006         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49007         modules/exclude, modules/exitfail, modules/file-type,
49008         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49009         modules/getdate, modules/getline, modules/getpagesize,
49010         modules/getpass, modules/getugroups, modules/group-member,
49011         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49012         modules/inttostr, modules/long-options, modules/makepath,
49013         modules/md5, modules/memcasecmp, modules/memcoll,
49014         modules/modechange, modules/mountlist, modules/path-concat,
49015         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49016         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49017         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49018         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49019         modules/strftime, modules/strndup, modules/strverscmp,
49020         modules/timespec, modules/unlocked-io, modules/userspec,
49021         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49022         modules/yesno:
49023         Remove lib_SOURCES line from Makefile.am section, as this is now
49024         done automatically by the corresponding Autoconf macro.
49025
49026 2005-03-21  Jim Meyering  <jim@meyering.net>
49027
49028         Changes imported from coreutils.
49029
49030         * lib/cycle-check.c: Don't include xalloc.h.
49031
49032         * lib/path-concat.c: Don't include assert.h.
49033         (path_concat): Remove assertion that would have triggered
49034         for ABASE starting with more than one slash.
49035         Reported by Andreas Schwab.
49036
49037         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49038         properly when ABASE is an absolute file name.
49039         Correct the description of this function.
49040         Include <assert.h>.
49041         Add an assertion and a test driver.
49042         This fixes a bug introduced on 2004-07-02.
49043         Andreas Schwab reported the resulting failure of cp --parents:
49044         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49045
49046 2005-03-21  Jim Meyering  <jim@meyering.net>
49047
49048         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49049         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49050
49051 2005-03-21  Jim Meyering  <jim@meyering.net>
49052         and  Paul Eggert  <eggert@cs.ucla.edu>
49053
49054         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49055         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49056         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49057         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49058         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49059         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49060         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49061         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49062         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49063         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49064         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49065         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49066         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49067         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49068         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49069         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49070         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49071         for these modules.
49072
49073 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49076         (which shouldn't happen), generate nothing instead of returning 0
49077         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49078
49079 2005-03-16  Bruno Haible  <bruno@clisp.org>
49080
49081         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49082         HAVE_LONGLONG_64BIT.
49083
49084 2005-03-16  Bruno Haible  <bruno@clisp.org>
49085
49086         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49087         HAVE_LONGLONG_64BIT.
49088
49089 2005-03-16  Bruno Haible  <bruno@clisp.org>
49090
49091         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49092         HAVE_LONGLONG_64BIT.
49093
49094 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49095
49096         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49097         reliably distinguish strftime failure from empty output on POSIX
49098         hosts.
49099
49100 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49101
49102         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49103         (iconv_string): Don't guess a size-zero buffer, as that might cause
49104         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49105         result would be 'too large', where 'too large' is (heuristically)
49106         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49107         overflow concerns.  This will prevent some unwanted malloc failures
49108         when the inputs are very large.
49109
49110 2005-03-15  Karl Berry  <karl@gnu.org>
49111
49112         * config/srclist.txt (config.rpath): from gettext.
49113         * config/config.rpath: update.
49114
49115 2005-03-15  Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49118         to 'negate'.
49119
49120         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49121         variable.
49122
49123         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49124         results.
49125
49126 2005-03-14  Simon Josefsson  <jas@extundo.com>
49127
49128         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49129         <fx@gnu.org>.
49130
49131 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49132
49133         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49134         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49135         intprops.h.
49136         * lib/strtol.c: Likewise.
49137
49138 2005-03-14  Jim Meyering  <jim@meyering.net>
49139
49140         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49141         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49142         to be nonzero so that we (and caller) can detect the difference
49143         between a valid zero-length expansion and an error return, even
49144         when the underlying strftime fails before writing anything into
49145         that location.
49146
49147 2005-03-14  Bruno Haible  <bruno@clisp.org>
49148
49149         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49150         Update from GNU gettext 0.14.3.
49151
49152 2005-03-10  Jim Meyering  <jim@meyering.net>
49153
49154         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49155
49156 2005-03-10  Jim Meyering  <jim@meyering.net>
49157
49158         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49159         so that this module works on systems without fchdir.
49160
49161 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         Factor int-properties macros into a single file, except for
49164         glibc-related files.
49165         * lib/intprops.h: New file.
49166         * lib/getloadavg.c: Include it instead of limits.h.
49167         (INT_STRLEN_BOUND): Remove.
49168         * lib/human.c: Include intprops.h.
49169         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49170         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49171         302/1000.
49172         * lib/inttostr.h: Include intprops.h instead of limits.h.
49173         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49174         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49175         for consistency with intprops.h.
49176         (time_t_is_integer, twos_complement_arithmetic): Use them.
49177         * lib/sig2str.h: Include <signal.h>, intprops.h.
49178         (INT_STRLEN_BOUND): Remove.
49179         * lib/strftime.c (TYPE_SIGNED): Remove.
49180         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49181         * lib/strtol.c: Adjust comments to match intprops.h.
49182         * lib/userspec.c: Include intprops.h.
49183         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49184         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49185         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49186         instead of rolling our own expressions.
49187         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49188
49189         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49190         instead of int.
49191         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49192         the right thing even if adding 1900 would overflow.  Similarly
49193         for tm_mon + 1 and tm_yday + 1.
49194         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49195         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49196         (DO_SIGNED_NUMBER): New macro.
49197         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49198
49199 2005-03-07  Bruno Haible  <bruno@clisp.org>
49200
49201         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49202
49203 2005-03-07  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49206
49207 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49208
49209         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49210         (func_import): Only replace files via --import when they have actually
49211         changed.
49212
49213 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49214
49215         * m4/mmap-anon.m4: New file.
49216         * m4/pagealign_alloc.m4: New file.
49217
49218 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49219             Bruno Haible  <bruno@clisp.org>
49220
49221         * modules/pagealign_alloc: New file.
49222         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49223
49224 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49225             Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/pagealign_alloc.h: New file.
49228         * lib/pagealign_alloc.c: New file.
49229
49230 2005-03-03  Bruno Haible  <bruno@clisp.org>
49231
49232         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49233         Use an all-permissive copyright notice, recommended by RMS.
49234
49235 2005-03-02  Bruno Haible  <bruno@clisp.org>
49236
49237         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49238         of AIX, the replacement has to be done only after <string.h> is
49239         included, therefore not in config.h. stpncpy.h does the replacement,
49240         and stpncpy.c uses it.
49241
49242 2005-03-02  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49245         stpncpy.c uses it.
49246
49247 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49250         The workaround isn't strictly needed for POSIX conformance, and
49251         it's too much of a pain to configure and maintain.  We'll ask
49252         people to fix their kernels instead.
49253         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49254         (NANOSLEEP_BUG_WORKAROUND): Remove.
49255         (xnanosleep): Remove the workaround.
49256
49257 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49258
49259         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49260         Reported by Derek Price.
49261         (Include): Add "timespec.h".
49262
49263         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49264
49265 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49268         to detect nanosleep bug.
49269
49270 2005-03-01  Bruno Haible  <bruno@clisp.org>
49271
49272         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49273
49274 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         * modules/gethrxtime: New file.
49277         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49278         (Depends-on): Add gethrxtime.
49279         (configure.ac): Add gl_XNANOSLEEP.
49280         (Makefile.am): Remove lib_SOURCES line.
49281
49282 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49283
49284         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49285         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49286
49287 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49288
49289         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49290         * lib/timespec.h (gettime): Return void, since it always
49291         succeeds now.  All uses changed.
49292         * lib/gettime.c (gettime) Likewise.
49293         [HAVE_NANOTIME]: Prefer nanotime.
49294         Assume gettimeofday succeeds, as POSIX requires.
49295         Assime time () succeeds, since other code already does.
49296         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49297         (timespec_subtract): Remove.
49298         (NANOSLEEP_BUG_WORKAROUND): New constant.
49299         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49300         things considerably.  Use it only on GNU/Linux hosts, since the
49301         workaround shouldn't be needed elsewhere.
49302
49303 2005-02-24  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/gettext (Files): Add m4/glibc2.m4.
49306
49307 2005-02-24  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49310         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49311         * m4/progtest.m4:
49312         Update from GNU gettext 0.14.2.
49313         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49314
49315 2005-02-24  Bruno Haible  <bruno@clisp.org>
49316
49317         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49318         * lib/config.charset: Update from GNU gettext 0.14.2.
49319
49320 2005-02-24  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/gettext.h: Update from GNU gettext 0.14.2.
49323
49324 2005-02-23  Simon Josefsson  <jas@extundo.com>
49325
49326         * m4/iconvme.m4: New file.
49327
49328 2005-02-23  Jim Meyering  <jim@meyering.net>
49329
49330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49331         change.
49332         Thanks to Bruno Haible for catching it.
49333
49334 2005-02-22  Simon Josefsson  <jas@extundo.com>
49335
49336         * modules/iconvme: New file.
49337
49338         * MODULES.html.sh: Add iconvme.
49339
49340 2005-02-22  Simon Josefsson  <jas@extundo.com>
49341
49342         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49343
49344 2005-02-22  Simon Josefsson  <jas@extundo.com>
49345
49346         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49347
49348 2005-02-22  Jim Meyering  <jim@meyering.net>
49349
49350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49351         s/ifndef/ifdef/.
49352
49353 2005-02-20  Neil Conway  <neilc@samurai.com>
49354
49355         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49356         returned by OSX/Darwin if the specified buffer is not large
49357         enough for the hostname.
49358
49359 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49360
49361         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49362         pass it to _help, otherwise the latter coredumps trying to
49363         dereference state.root_argp.
49364
49365 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         * modules/chdir-long (Depends-on): Add memrchr.
49368         * modules/memrchr (Files): Add lib/memrchr.h.
49369         (Include): "memrchr.h".
49370
49371 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49372
49373         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49374
49375 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49376
49377         * lib/memrchr.h: New file.
49378         * lib/chdir-long.c: Include it.
49379         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49380         Don't bother including stddef.h.
49381
49382 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49383
49384         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49385         inclusion.
49386         Include <sys/types.h>, for dev_t.
49387         (ME_DUMMY, ME_REMOTE): Move from here....
49388         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49389         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49390         Dmitry V. Levin.
49391         Include mountlist.h first, to test the interface.
49392
49393 2005-01-29  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/progname.c (program_name): Initialize.
49396         Needed when linking statically on MacOS X.
49397
49398 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         Sync from coreutils.
49401         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49402         (Depends-on): Add c-strtod.
49403         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49404
49405 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49406
49407         Sync from coreutils.
49408         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49409
49410         Remove files that are specific to coreutils.
49411         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49412
49413 2005-01-28  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/javacomp: New file.
49416         * MODULES.html.sh (Java): Add javacomp.
49417
49418 2005-01-28  Bruno Haible  <bruno@clisp.org>
49419
49420         * m4/javacomp.m4: New file, from GNU gettext.
49421
49422 2005-01-28  Bruno Haible  <bruno@clisp.org>
49423
49424         * lib/javacomp.sh.in: New file, from GNU gettext.
49425         * lib/javacomp.h: New file, from GNU gettext.
49426         * lib/javacomp.c: New file, from GNU gettext.
49427
49428 2005-01-26  Simon Josefsson  <jas@extundo.com>
49429
49430         * lib/gai_strerror.c: Use GPL in header.
49431
49432 2005-01-26  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/javaexec: New file.
49435         * MODULES.html.sh (Java): Add javaexec.
49436
49437 2005-01-26  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/javaexec.m4: New file, from GNU gettext.
49440
49441 2005-01-26  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/javaexec.sh.in: New file, from GNU gettext.
49444         * lib/javaexec.h: New file, from GNU gettext.
49445         * lib/javaexec.c: New file, from GNU gettext.
49446
49447 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49448
49449         * modules/lchown (Depends-on): Remove lchown.h
49450
49451 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49452
49453         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49454         must be defined if the header file was not found, in order
49455         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49456
49457 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49458
49459         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49460         initializers for struct pentry_state.
49461         (__argp_error): Check return value of __asprintf
49462         (__argp_failure): Translate error message
49463
49464         * lib/argp-parse.c: Removed braces around the expansion of N_()
49465
49466 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49467
49468         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49469         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49470         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49471         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49472         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49473         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49474         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49475         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49476         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49477         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49478         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49479         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49480         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49481         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49482         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49483         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49484         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49485         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49486         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49487         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49488         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49489         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49490         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49491         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49492         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49493         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49494         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49495         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49496         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49497         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49498         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49499         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49500         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49501         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49502         xstrtol.m4, xstrtoumax.m4, yesno.m4:
49503         Use an all-permissive copyright notice, recommended by RMS.
49504
49505 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49506
49507         * modules/chdir-long (Depends-on): Remove mempcpy.
49508
49509 2005-01-21  Jim Meyering  <jim@meyering.net>
49510
49511         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49512         same value as for Solaris 9.
49513
49514         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49515         component length.  This included changing the parameter to be
49516         of type `char *' rather than `char const *'.
49517         * lib/chdir-long.h (chdir_long): Update prototype.
49518
49519         * lib/openat.c (fdopendir, fstatat): New functions.
49520         * lib/openat.h: Include headers required for use of DIR and struct
49521         stat.
49522         [AT_SYMLINK_NOFOLLOW]: Define.
49523         (fdopendir, fstatat): Add prototypes.
49524
49525 2005-01-21  Bruno Haible  <bruno@clisp.org>
49526
49527         * modules/classpath: New file.
49528         * MODULES.html.sh (Java): Add classpath.
49529
49530 2005-01-21  Bruno Haible  <bruno@clisp.org>
49531
49532         * lib/classpath.h: New file, from GNU gettext.
49533         * lib/classpath.c: New file, from GNU gettext.
49534
49535 2005-01-20  Simon Josefsson  <jas@extundo.com>
49536
49537         * modules/version-etc-fsf: New file.
49538
49539 2005-01-20  Simon Josefsson  <jas@extundo.com>
49540
49541         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49542         * lib/version-etc.c: Remove version_etc_copyright.
49543         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49544         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49545
49546 2005-01-20  Simon Josefsson  <jas@extundo.com>
49547
49548         * lib/base64.h (isbase64): Add.
49549
49550         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49551         using a unsigned prototype, don't inline.
49552         (base64_decode): Use it.
49553
49554 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49557         it.
49558
49559 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49560
49561         * lib/save-cwd.c (save_cwd): Remove code to support the case
49562         where fchdir is missing or flaky.
49563
49564 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49567
49568 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49569
49570         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49571         AC_LIBSOURCES now does this.
49572         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49573         with new ullong_max module.
49574
49575 2005-01-19  Bruno Haible  <bruno@clisp.org>
49576
49577         * modules/sh-quote: New file.
49578         * MODULES.html.sh (Executing programs): Add sh-quote.
49579
49580 2005-01-19  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/sh-quote.h: New file, from GNU gettext.
49583         * lib/sh-quote.c: New file, from GNU gettext.
49584
49585 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         Merge from coreutils.
49588         * m4/ullong_max.m4: New file.
49589         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49590         (gl_MACROS): Assume localeconv exists.
49591
49592 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49593
49594         Merge changes from coreutils, as described below in several
49595         changelogs dated today.
49596
49597         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49598         (O_DIRECTORY): Remove; not needed here, since "." must be
49599         a directory.  All uses removed.
49600         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
49601         universal on Suns, and we also need to test for IRIX.
49602         Revamp code to use 'if' rather than '#if'.
49603         Avoid unnecessary comparison of cwd->desc to 0.
49604
49605         * lib/utimens.c (futimens): Robustify the previous patch, by checking
49606         for known valid error numbers rather than observed invalid ones.
49607
49608 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49609
49610         * modules/ullong_max: New file.
49611
49612         * modules/chdir-long, modules/openat: New files.
49613         * modules/save-cwd (Depends-on): Depend on chdir-long.
49614         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49615
49616 2005-01-18  Jim Meyering  <jim@meyering.net>
49617
49618         Merge from coreutils.
49619         * m4/chdir-long.m4, m4/openat.m4: New files.
49620         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49621         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
49622         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49623         is sane and DOES follow symlinks.  Besides, testing 20 different
49624         systems found no broken chown implementations.
49625         Prompted by a change in rsync's copy of this macro.
49626         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49627
49628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49629
49630         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49631         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49632         NULL-means-set-to-current-time semantics.
49633         Remove temporary file immediately, rather than waiting
49634         for configure's at-exit trap code to do it.
49635
49636 2005-01-18  Jim Meyering  <jim@meyering.net>
49637
49638         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49639
49640         * lib/utimens.c (futimens): Account for the fact that futimes
49641         can also fail with errno == ENOSYS or errno == ENOENT.
49642         Patch from Dmitry V. Levin.
49643
49644         Change the name of the robust chdir function from chdir to chdir_long.
49645         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49646         (restore_cwd): Use chdir_long, not chdir.
49647         * lib/chdir-long.c: Renamed from chdir.c.
49648         * lib/chdir-long.h: Renamed from chdir.h.
49649         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49650         Hurd.
49651
49652 2005-01-18  Bruno Haible  <bruno@clisp.org>
49653
49654         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49655         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49656         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49657         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49658         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49659         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49660         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49661         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49662         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49663         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49664         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49665         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49666         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49667         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49668         Use an all-permissive copyright notice, recommended by RMS.
49669
49670 2005-01-18  Bob Proulx  <bob@proulx.com>
49671
49672         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49673         simplify offsetof() macro construct to avoid compile failure with
49674         native HP-UX 11.0 ANSI C compiler.
49675
49676 2005-01-17  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49679         redundant because stpncpy.m4 takes care of it.
49680
49681 2005-01-17  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49684
49685 2005-01-17  Bruno Haible  <bruno@clisp.org>
49686
49687         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49688         used.
49689
49690 2005-01-17  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/fwriteerror.h (fwriteerror): Change specification to include
49693         fclose.
49694         * lib/fwriteerror.c: Include <stdbool.h>.
49695         (fwriteerror): At the end, close the file stream. Record whether
49696         stdout was already closed.
49697
49698 2005-01-17  Bruno Haible  <bruno@clisp.org>
49699
49700         * lib/execute.c (environ): Declare if needed.
49701         * lib/pipe.c (environ): Likewise.
49702         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49703
49704 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49705
49706         * modules/argp: Depend on vsnprintf
49707
49708 2005-01-10  Jim Meyering  <jim@meyering.net>
49709
49710         * modules/closeout (Depends-on): Add atexit.
49711
49712 2005-01-06  Bruno Haible  <bruno@clisp.org>
49713
49714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49715
49716 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49717
49718         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49719         definitions to be after all include files, to avoid collisions.
49720         Problem reported by Bob Proulx.
49721
49722 2005-01-04  Jim Meyering  <jim@meyering.net>
49723
49724         Changes imported from coreutils.
49725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
49726         as the mkstemp template, use a temporary directory and an
49727         8.3-friendly template to avoid trouble on systems like DJGPP.
49728         Reported by Juan M. Guerrero via Stepan Kasal.
49729         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
49730         close. Remove the temporary directory right away, rather than waiting
49731         for configure's at-exit trap code to do it.
49732         Suggestion from Stepan Kasal.
49733
49734 2005-01-01  Simon Josefsson  <jas@extundo.com>
49735
49736         * gnulib-tool: Print #include directives when --import'ing.
49737
49738 2004-12-28  Simon Josefsson  <jas@extundo.com>
49739
49740         * tests/test-base64.c: Include required header files.  Remove
49741         unused variables.
49742
49743 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * modules/error (Depends-on): Remove gettext.
49746
49747 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49748
49749         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
49750         not needed.  This removes a dependency on the gettext module.
49751         [defined _LIBC]: Do not include <libintl.h>; not needed.
49752
49753 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49754
49755         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
49756         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
49757
49758 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
49761         HAVE_DECL_STRTOLD.
49762
49763 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         * modules/getdate (Depends-on): Remove alloca-opt.
49766
49767 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49768
49769         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
49770
49771 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49772
49773         * lib/argp-parse.c: Include <stddef.h>.
49774         (alignof, alignto): New macros.
49775         (parser_init): Don't assume that void * is aligned sufficiently
49776         for struct option.
49777
49778         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
49779         need to extend the stack.
49780         (YYINITDEPTH): New macro, so that the initial stack isn't overly
49781         large.
49782
49783 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49784
49785         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
49786
49787 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
49790         (2004-10-24) change.  Apparently this was a false alarm.
49791
49792         * modules/getdate: Depend on alloca-opt, not alloca.
49793
49794 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49795
49796         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
49797         Remove now-obsolete comment about AIX.
49798         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
49799         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
49800         (YYMAXDEPTH): New macro.
49801
49802 2004-12-18  Simon Josefsson  <jas@extundo.com>
49803
49804         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
49805
49806 2004-12-18  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
49809
49810 2004-12-18  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/fatal-signal.c (fatal_signals): Make non-const.
49813         (init_fatal_signals): New function.
49814         (uninstall_handlers, install_handlers): Ignore signals that were set to
49815         SIG_IGN.
49816         (at_fatal_signal): Call init_fatal_signals.
49817         (init_fatal_signal_set): Likewise. Ignore signals that were set to
49818         SIG_IGN.
49819         Reported by Paul Eggert.
49820
49821 2004-12-18  Bruno Haible  <bruno@clisp.org>
49822
49823         * doc/alloca.texi: New file.
49824         * doc/alloca-opt.texi: New file.
49825
49826 2004-12-17  Jim Meyering  <jim@meyering.net>
49827
49828         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
49829         Otherwise, install-sh could exit with improper exit status when
49830         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
49831
49832 2004-12-16  Simon Josefsson  <jas@extundo.com>
49833
49834         * tests/test-base64.c: Add license.
49835
49836 2004-12-15  Stepan Kasal  <address@hidden>
49837
49838         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
49839
49840 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
49841
49842         * modules/getcwd (Files): Add m4/d-ino.m4.
49843         Suggested by Mark D. Baushke.
49844
49845 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
49846
49847         * lib/getdate.y (textint): New member "negative".
49848         (time_zone_hhmm): New function.
49849         Expect 14 shift-reduce conflicts, not 13.
49850         (o_colon_minutes): New rule.
49851         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
49852         (yylex): Set the "negative" member of signed numbers.
49853
49854 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         * doc/getdate.texi (Time of day items, Time zone items):
49857         Describe new formats +00:00, UTC+00:00.
49858
49859 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
49862         spurious "-l"s.  Problem reported by Stepan Kasal.
49863
49864 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
49865
49866         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
49867         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
49868
49869 2004-12-04  Simon Josefsson  <jas@extundo.com>
49870
49871         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
49872         Vandoorselaere <yoann@prelude-ids.org>.
49873
49874 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         Changes imported from coreutils.
49877         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
49878         exist.
49879         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
49880
49881 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         Changes imported from coreutils.
49884         * lib/hard-locale.c: Assume <locale.h> exists.
49885         Include "strdup.h".
49886         (GLIBC_VERSION): New macro.
49887         (hard_locale): Assume setlocale exists.
49888         Rewrite to avoid #ifdef.
49889         Use strdup rather than malloc + strcpy.
49890         * lib/human.c: Assume <locale.h> exists.
49891         (human_readable): Assume localeconv exists.
49892
49893 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49894
49895         * modules/hard-locale (Depends-on): Add strdup.
49896
49897 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49898
49899         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
49900         convert T2, not T.  (Imported from libc.)
49901
49902 2004-11-30  Simon Josefsson  <jas@extundo.com>
49903
49904         * modules/restrict (License): Change to LGPL.
49905
49906 2004-11-30  Simon Josefsson  <jas@extundo.com>
49907
49908         * m4/restrict.m4: Add copyright and copying conditions.
49909
49910 2004-11-30  Simon Josefsson  <jas@extundo.com>
49911
49912         * m4/base64.m4: New file.
49913
49914 2004-11-30  Simon Josefsson  <jas@extundo.com>
49915
49916         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
49917         base64.
49918
49919         * tests/test-base64.c: New file.
49920
49921         * modules/base64: New file.
49922
49923 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
49924
49925         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
49926         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
49927
49928         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
49929
49930 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
49933         (__getcwd.c): Don't restore errno; glibc doesn't.
49934         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
49935         first, falling back to our code only if its results look suspicious.
49936         Ensure that the resulting buffer is only as large as necessary.
49937
49938         * lib/readutmp.c: Include readutmp.h first.
49939         Include <errno.h>, since readutmp.h no longer does that.
49940         * lib/readutmp.h: Don't include <errno.h>,
49941         <sys/param.h>, <time.h>; not needed to establish interface.
49942         (errno): Remove decl.
49943         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
49944         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
49945         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
49946
49947 2004-11-28  Simon Josefsson  <jas@extundo.com>
49948
49949         * lib/base64.h, base64.c: New file.
49950
49951 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
49952
49953         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
49954
49955 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
49958         (Depends-on): Remove pathmax, same.  Add mempcpy.
49959         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
49960         (Makefile.am): Append getcwd.h to lib_SOURCES.
49961         (Include): Add getcwd.h.
49962         (Maintainer): Change from Jim Meyering to "all, glibc",
49963         since getdate now uses intended-for-glibc code.
49964         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
49965         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
49966
49967 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
49970         HP's ANSI C compiler.
49971         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
49972         Declaring int functions causes warnings on some modern systems and
49973         shouldn't be needed to compile on ancient ones.
49974         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
49975         defined.
49976
49977         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
49978         with the following changes.
49979         (__set_errno): Parenthesize properly.
49980         Include <stdbool.h>.
49981         (MIN, MAX, MATCHING_INO): New macros.
49982         (__getcwd): Define with prototype, not K&R form.
49983         Use heuristics to allocate default buffer on stack if possible.
49984         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
49985         behavior, and to avoid the PATH_MAX limit when computing
49986         ../../../../...
49987         Use MATCHING_INO to compare inode number to file.
49988         Check for arithmetic overflow in size calculations.
49989         Fix bug in reallocation of dot array that caused getcwd to fail
49990         on directories nested deeper than 75.
49991         Be more careful about saving errno on error.
49992         Do not use realloc; use only free+malloc, as this is a bit
49993         more flexible and avoids a needless copy operation.
49994         Do not inspect st_dev and st_ino for symbolic links; POSIX
49995         doesn't specify the latter.
49996         Check for closedir errors.
49997         Avoid needless casts.
49998         Use "#ifdef weak_alias" around weak_alias, to be like other
49999         glibc code.
50000         The following changes to getcwd.c have effect only when used in
50001         gnulib; they have no effect inside glibc proper.
50002         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50003         as alloca isn't used.
50004         (alloca, __alloca): Likewise.
50005         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50006         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50007         unconditionally, as gnulib assumes C89 or better.
50008         Do not include <sys/param.h>.
50009         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50010         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50011         better.
50012         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50013         Include <dirent.h> in a way that is compatible with modern Autoconf.
50014         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50015         New macros, if not already defined.
50016         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50017         Use "_LIBC", not "defined _LIBC", for consistency.
50018         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50019         a mempcpy module.
50020         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50021         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50022         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50023         credit only to Jim Meyering and adjust the copyright dates.
50024         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50025         <stdlib.h>, <unistd.h>, "pathmax.h".
50026         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50027         (INITIAL_BUFFER_SIZE): Remove.
50028         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50029
50030 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50033         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50034         Use the _ONCE methods, for efficiency.
50035         Check for fcntl.h.  In test program, include <errno.h>
50036         and <fcntl.h> if available.  Remove old K&R cruft from
50037         test program.  Check for common errors in GNU/Linux,
50038         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50039         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50040         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50041         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50042         name accordingly.
50043         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50044         accommodate new getcwd.c.
50045         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50046         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50047         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50048         that's all we need now.
50049
50050 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50051
50052         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50053         argp-parse.c depends on getopt internals, that means we should
50054         always use our getopt, to be on the safe side.
50055         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50056         order not to spoil the result of an eventual previous invocation
50057         of gl_GETOPT_SUBSTITUTE.
50058
50059 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50060
50061         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50062         redefinition warnings. To avoid them, include the defines
50063         in `#if !defined __need_getopt ... #endif'. The only place
50064         where __getopt_argv_const is used is in definitions
50065         of getopt_long and getopt_long_only below, which are as well
50066         protected by `#ifndef __need_getopt'.
50067         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50068         __need_getopt after including <stdio.h> and <unistd.h> These
50069         headers might have defined it.
50070
50071 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50074
50075 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50078         (futimens): New function, which uses futimes if available.
50079         (futimens, utimens): Support timespec==NULL, with same semantics
50080         as utime and utimens.
50081         * lib/utimens.h (futimens): New decl.
50082
50083 2004-11-23  Jim Meyering  <jim@meyering.net>
50084
50085         * lib/getopt_.h: Remove trailing blanks.
50086
50087 2004-11-23  Jim Meyering  <jim@meyering.net>
50088
50089         * lib/__fpending.c: Add comment.
50090
50091 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         * modules/canonicalize (Depends-on): Add xreadlink.
50094         Problem reported by James Youngman.
50095
50096 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50099         New macros.
50100         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50101         optopt): Use them instead of invoking ## directly; otherwise, the
50102         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50103
50104 2004-11-19  Bruno Haible  <bruno@clisp.org>
50105
50106         * lib/strtok_r.c: Move comments from here...
50107         * lib/strtok_r.h: ... to here.
50108
50109 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50110
50111         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50112         implementations that mishandle size_t overflow.
50113
50114 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50115
50116         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50117         might fail.  Problem reported by Yoann Vandoorselaere.
50118         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50119         implementations that mishandle size_t overflow.
50120
50121 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         * modules/canon-host (Depends-on): Add strdup.
50124
50125 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50128
50129 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * lib/canon-host.c: Include "strdup.h".
50132         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50133         Use strdup instead of malloc/strcpy to duplicate strings.
50134
50135         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50136         (human_space_before_unit): New constant.
50137         * lib/human.c (human_readable): Support it.
50138
50139         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50140         (xgetcwd): Set errno correctly when failing.
50141         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50142         the failure is actually due to a PATH_MAX problem.
50143
50144         Further getopt changes to make it more likely that glibc will
50145         buy the changes back.
50146         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50147         (getopt): Use it, so to preserve glibc semantic
50148         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50149         when compiling for libc.
50150         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50151         (getopt_long, getopt_long_only): Use it.
50152
50153         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50154         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50155         (getopt): Argv is now char * const *, as per standard.
50156         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50157         not char *__getopt_argv_const *.
50158         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50159         _getopt_long_only_r): Likewise.
50160         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50161         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50162         _getopt_long_r, _getopt_long_only_r): Likewise.
50163         * lib/getopt_.h (__getopt_argv_const): Remove.
50164         (getopt): Argv is now char * const *, as per standard.
50165
50166         * lib/getdate.y (tORDINAL): New token.
50167         (day, relunit): Allow it for relative times.
50168         (relative_time_table): Use tORDINAL for ordinals.
50169
50170 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50173         Document that "second" isn't allowed as an ordinal number.
50174
50175 2004-11-16  Jim Meyering  <jim@meyering.net>
50176
50177         * modules/closeout (Depends-on): Add fpending.
50178
50179 2004-11-15  Jim Meyering  <jim@meyering.net>
50180
50181         * lib/closeout.c: Include "__fpending.h" once again.
50182         Include <stdbool.h>.
50183         (close_stdout): Don't fail just because stdout was closed initially,
50184         since some programs don't write to stdout in the normal course of
50185         operation (other than --version and --help), and we don't want this
50186         function to make e.g. `touch file >&-' fail.
50187         But do fail if it was closed and someone has tried to write to it.
50188         E.g., `printf foo >&-' must fail.
50189
50190 2004-11-13  Jim Meyering  <jim@meyering.net>
50191
50192         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50193
50194 2004-11-12  Simon Josefsson  <jas@extundo.com>
50195
50196         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50197         small doc fix is still pending.
50198
50199 2004-11-11  Simon Josefsson  <jas@extundo.com>
50200
50201         * modules/strtok_r: New file.
50202
50203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50204         strtok_r.
50205
50206 2004-11-11  Simon Josefsson  <jas@extundo.com>
50207
50208         * m4/strtok_r.m4: New file.
50209
50210         * m4/getopt.m4: Replace opterr.
50211
50212 2004-11-11  Simon Josefsson  <jas@extundo.com>
50213
50214         * lib/strtok_r.h, strtok_r.c: New file.
50215
50216 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50217
50218         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50219         of replacing opterr, getopt, etc.  This should handle the
50220         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50221
50222 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50223
50224         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50225         we can stop lying to compilers about the constness of argv when we
50226         are compiled outside glibc.
50227         (getopt, getopt_long, getopt_long_only): Use it.
50228         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50229         _getopt_internal, getopt): Likewise.
50230         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50231         _getopt_long_only_r): Likewise.
50232         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50233         _getopt_long_r, _getopt_long_only_r): Likewise.
50234
50235         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50236         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50237         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50238         the other external symbols.
50239         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50240         declaration, since the above renaming now works around collisions.
50241
50242 2004-11-11  Jim Meyering  <jim@meyering.net>
50243
50244         * lib/linebreak.c: Remove trailing blanks.
50245         * lib/alloca_.h: Likewise.
50246         * lib/acosl.c: Likewise.
50247         * lib/euidaccess.c: Likewise.
50248         * lib/allocsa.h: Likewise.
50249
50250 2004-11-10  Simon Josefsson  <jas@extundo.com>
50251
50252         * m4/getaddrinfo.m4: New file.
50253
50254 2004-11-10  Simon Josefsson  <jas@extundo.com>
50255
50256         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50257
50258 2004-11-10  Simon Josefsson  <jas@extundo.com>
50259
50260         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50261         getaddrinfo.
50262
50263         * modules/getaddrinfo: New file.
50264
50265 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50266
50267         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50268
50269 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * lib/mktime.c (SHR): New macro, which is a portable
50272         substitute for >> that should work even on Crays.
50273         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50274         Problem reported by Mark D. Baushke in
50275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50276         * lib/getdate.y (SHR): Likewise.
50277         (tm_diff): Use it.
50278         * lib/strftime.c (SHR): Likewise.
50279         (tm_diff): Use it.
50280         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50281         quote_these_too, so that right shifts are well defined.  All uses
50282         changed.
50283
50284 2004-11-10  Jim Meyering  <jim@meyering.net>
50285
50286         Ensure that no close failure goes unreported.
50287         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50288         return early when it seems there's nothing to flush.
50289         Don't include __fpending.h.
50290
50291 2004-11-10  Jim Meyering  <jim@meyering.net>
50292
50293         * modules/closeout (Depends-on): Remove fpending.
50294
50295 2004-11-10  Jim Meyering  <jim@meyering.net>
50296
50297         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50298
50299 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50300
50301         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50302         gl_FUNC_STRFTIME.
50303         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50304         and AC_REQUIRE when possible, to avoid duplicate checks.
50305         Check for <wchar.h>.
50306
50307 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50308
50309         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50310
50311 2004-11-09  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/sockpfaf.m4: New file.
50314
50315 2004-11-05  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50318         Reported by Mark D. Baushke <mdb@cvshome.org>.
50319
50320 2004-11-04  Bruno Haible  <bruno@clisp.org>
50321
50322         2004-09-11  Bruno Haible  <bruno@clisp.org>
50323                 * allocsa.valgrind: New file.
50324         2004-02-06  Bruno Haible  <bruno@clisp.org>
50325                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50326                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50327                 Reported by Christopher Seip <chris.seip@hp.com>.
50328
50329 2004-11-04  Bruno Haible  <bruno@clisp.org>
50330
50331         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50332         (Makefile.am): Distribute it.
50333
50334 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50335
50336         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50337         with errno == ERANGE if the buffer is too small.
50338         Problem reported by Mark D. Baushke.
50339
50340 2004-11-03  Albert Chin  <china@thewrittenword.com>
50341             Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50344         equivalent, substitute $ac_type for equivalent type rather than
50345         blindly using uint32_t *always* which won't work if uint32_t is not
50346         available.  Define _UINT32_T to work around typedef of uint32_t if
50347         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50348         2.5.1.
50349
50350 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         * m4/jm-macros.m4: Sync from coreutils.
50353         (gl_MACROS): Check for mbrlen, for pathchk.
50354         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50355
50356 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50357
50358         * lib/xreadlink.c (MAXSIZE): New macro.
50359         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50360         size does not exceed MAXSIZE.  Avoid cast.
50361         As suggested by Mark D. Baushke in
50362         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50363         if readlink fails with buffer size just under MAXSIZE, try again
50364         with MAXSIZE.
50365
50366 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50367
50368         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50369
50370 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50371         and  Paul Eggert  <eggert@cs.ucla.edu>
50372
50373         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50374         (get_date): Overparenthesize to avoid GCC warning.
50375
50376 2004-11-02  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50379         returns void.
50380
50381 2004-11-02  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50384         function returns void.
50385
50386 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50387
50388         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50389         fflush_unlocked, flockfile, funlockfile, funlockfile,
50390         fputs_unlocked, putc_unlocked.
50391
50392 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50395         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50396         already declared.
50397
50398 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50399
50400         * modules/getdate (Files): Add doc/getdate.texi.
50401         (Depends-on): Add setenv, xalloc.
50402
50403 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50404
50405         * lib/getdate.y: Add support for TZ="foo" within a date string.
50406         Fix some bugs near time_t boundaries.  Reject dates with
50407         out-of-range components, e.g., "Sept 31".
50408         Include <stdlib.h>, "setenv.h", "xalloc.h".
50409         (ISDIGIT_LOCALE): Remove; unused.
50410         Note that the TZ and time functions used here are not reentrant.
50411         (mktime_ok, get_tz): New functions.
50412         (TZBUFSIZE): New constant.
50413         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50414         This requires that we sometimes generate our own TZ="XXX..." setting.
50415
50416 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50417
50418         * doc/getdate.texi: New file, from coreutils with modifications for
50419         the new TZ parsing.
50420
50421 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50422
50423         * lib/mktime.c (not_equal_tm): Remove redundant check.
50424
50425 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * modules/regex (lib_SOURCES): Add regex.c.
50428         Reported by James Youngman in
50429         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50430
50431 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50432
50433         * lib/getdate.y: Use Bison 1.875 features, and some minor
50434         code cleanups.  This change does not affect semantics.
50435         Don't include <stdlib.h>; no longer needed.
50436         Don't include unlocked-io.h; only the "#if TEST" code uses
50437         stdio, and performance isn't crucial there.
50438         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50439         Bison 1.875 features as described below.
50440         All uses of "PC." replaced by "pc->".
50441         (YYSTYPE): Add a forward declaration.
50442         (yylex, yyerror): Use full prototypes in forward decls.
50443         Use "%pure-parser" rather than obsolescent "%pure_parser".
50444         Use %parse-param and %lex-param instead of obsolescent
50445         YYPARSE_PARAM and YYLEX_PARAM.
50446         (meridian_table, month_and_day_table, time_units_table,
50447         relative_time_table, time_zone_table, military_table,
50448         lookup_zone, lookup_word, get_date):
50449         Use NULL instead of 0 where appropriate.
50450         (to_hour): Avoid abort (), to avoid a dependency on
50451         stdlib.h.
50452         (yyerror, yylex): Now accepts parser_control * arg.
50453         (main) [TEST]: Use '\0' rather than 0 for char.
50454
50455 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50458
50459 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50462         It's now the caller's responsibility to handle the case where
50463         !HAVE_GETPAGESIZE && !defined getpagesize.
50464
50465         * lib/mktime.c (leapyear): Arg is long int, not int.
50466
50467 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50468
50469         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50470
50471 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50472
50473         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50474         missing.  Problem reported by James Youngman.
50475
50476 2004-10-16  Simon Josefsson  <jas@extundo.com>
50477
50478         * gnulib-tool: Fix comments.  Fix parse problem.
50479         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50480
50481 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50484         implementation of getopt_long.  Problem reported by Alexander Taler in:
50485         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50486
50487 2004-10-15  Bruno Haible  <bruno@clisp.org>
50488
50489         * gnulib-tool: Untabify. Initialize supplied_libname.
50490         (func_usage): More homogenous output.
50491         (func_modules_transitive_closure, func_modules_to_filelist,
50492         func_emit_lib_Makefile_am): New functions.
50493         (func_import): New function, extracted from big case statement. Use
50494         func_get_license, func_modules_transitive_closure,
50495         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50496         opt_lgpl. Don't use test -a, as it's not portable.
50497         (func_create_testdir): Use func_modules_transitive_closure,
50498         func_modules_to_filelist, func_emit_lib_Makefile_am.
50499
50500 2004-10-15  Bruno Haible  <bruno@clisp.org>
50501
50502         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50503
50504 2004-10-15  Bruno Haible  <bruno@clisp.org>
50505
50506         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50507         the portions belonging to each module.
50508         Suggested by Derek Robert Price <derek@ximbiot.com>.
50509
50510 2004-10-12  Simon Josefsson  <jas@extundo.com>
50511
50512         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50513         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50514         to real functions.
50515
50516 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50517
50518         * modules/vsnprintf: New file.
50519
50520 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50521
50522         * m4/vsnprintf.m4: New file.
50523
50524 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50525
50526         * lib/vsnprintf.h: New file.
50527         * lib/vsnprintf.c: New file.
50528
50529 2004-10-11  Bruno Haible  <bruno@clisp.org>
50530
50531         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50532         vsnprintf.
50533
50534 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50537
50538 2004-10-07  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50541         fits into the provided buffer.
50542
50543 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50544
50545         * lib/diacrit.c, diacrit.h: Add GPL notice.
50546
50547         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50548         notice.
50549         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50550         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50551         This avoids a potential constant-folding bug.
50552
50553 2004-10-05  Bruno Haible  <bruno@clisp.org>
50554
50555         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50556         for the declaration of strsep.
50557
50558 2004-10-05  Bruno Haible  <bruno@clisp.org>
50559
50560         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50561
50562 2004-10-04  Simon Josefsson  <jas@extundo.com>
50563
50564         * modules/memmem: New file.
50565         * tests/test-memmem.c: New file.
50566         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50567
50568 2004-10-04  Simon Josefsson  <jas@extundo.com>
50569
50570         * m4/memmem.m4: New file.
50571
50572 2004-10-04  Simon Josefsson  <jas@extundo.com>
50573
50574         * lib/memmem.h: New file.
50575         * lib/memmem.c: New file, taken from glibc.
50576
50577 2004-10-04  Simon Josefsson  <jas@extundo.com>
50578
50579         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50580         '#ifdef USE_UNLOCKED_IO'.
50581
50582 2004-10-04  Simon Josefsson  <jas@extundo.com>
50583
50584         * config/srclist.txt: Add memmem from glibc.
50585
50586 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50587
50588         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50589
50590         * modules/argmatch, modules/argp, modules/closeout, modules/error,
50591         modules/exclude, modules/getdate, modules/getline,
50592         modules/getndelim2, modules/getpass, modules/getpass-gnu,
50593         modules/getusershell, modules/linebuffer, modules/md5,
50594         modules/mountlist, modules/posixtm, modules/readtokens,
50595         modules/readutmp, modules/regex, modules/sha1,
50596         modules/version-etc, modules/yesno:
50597         Remove dependency on unlocked-io.
50598
50599 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50600
50601         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
50602
50603         * m4/unlocked-io.m4: Add copyright notice.
50604         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50605
50606 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
50609         * lib/xmalloc.c (xmemdup): Likewise.
50610         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50611         XFREE): Remove these long-obsolescent macros.
50612         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50613         * lib/xstrdup.c: Remove.
50614
50615         * lib/regex.c (re_comp): Cast gettext return value to char *,
50616         Problem reported by Martin Neitzel via Mark D. Baushke.
50617
50618 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50619
50620         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50621         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50622         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50623         regex.c, sha1.c, version-etc.c, yesno.c:
50624         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50625         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50626         the includer's responsibility.
50627
50628         Sync from coreutils.
50629
50630         * lib/modechange.c (mode_compile): Don't decrement a pointer that
50631         points to the start of a string, as the C Standard says the
50632         resulting behavior is undefined.
50633
50634         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50635         simple -> simple_backups, numbered_existing ->
50636         numbered_existing_backups, numbered -> numbered_backups
50637         to avoid shadowing problems.  All uses changed.
50638         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50639         * lib/backupfile.c (check_extension, numbered_backup):
50640         Rename locals to avoid shadowing 'basename'.
50641         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50642         once.
50643
50644         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50645         * lib/.cvsignore: Add getopt.h.
50646
50647 2004-10-04  Bruno Haible  <bruno@clisp.org>
50648
50649         * modules/README: New file.
50650         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50651         not a module.
50652
50653 2004-10-02  Jim Meyering  <jim@meyering.net>
50654
50655         * lib/dirfd.h, getpagesize.h: Add copyright notice.
50656
50657 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50658
50659         * modules/strsep: New file.
50660
50661 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50662
50663         * m4/strsep.m4: New file.
50664
50665 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50666
50667         * lib/strsep.h: New file.
50668         * lib/strsep.c: New file.
50669
50670 2004-10-01  Simon Josefsson  <jas@extundo.com>
50671
50672         * lib/snprintf.c (snprintf): Handle size==0.
50673
50674 2004-10-01  Simon Josefsson  <jas@extundo.com>
50675             Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50678         (snprintf): Declare 'args'.
50679
50680 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         * lib/snprintf.c: Remove comments as to why each header is needed.
50683
50684 2004-10-01  Bruno Haible  <bruno@clisp.org>
50685
50686         * MODULES.html.sh: Add strsep.
50687
50688 2004-09-30  Simon Josefsson  <jas@extundo.com>
50689
50690         * modules/snprintf: New file.
50691
50692 2004-09-30  Simon Josefsson  <jas@extundo.com>
50693
50694         * m4/snprintf.m4: New file.
50695
50696 2004-09-30  Simon Josefsson  <jas@extundo.com>
50697
50698         * lib/snprintf.h, lib/snprintf.c: New files.
50699
50700 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50701
50702         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50703         (hol_entry_help): Never translate an empty string.
50704         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50705         * lib/argp.h (OPTION_NO_TRANS): New option.
50706
50707 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         * modules/argp (Maintainer): Replace Simon Josefsson
50710         by Sergey Poznyakoff.
50711
50712 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50713
50714         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50715         changes merged back into glibc.
50716
50717 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50720
50721 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50722
50723         * lib/xvasprintf.c: Include xalloc.h.
50724         (xvasprintf): Use xalloc_die, not xmalloc_die.
50725
50726 2004-09-29  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/alloca-opt: New file, derived from modules/alloca.
50729         * modules/allocsa: Depend on alloca-opt instead of alloca.
50730         * modules/setenv: Likewise.
50731         * modules/vasnprintf: Likewise.
50732         * MODULES.html.sh: Add alloca-opt.
50733
50734 2004-09-28  Simon Josefsson  <jas@extundo.com>
50735
50736         * gnulib-tool: New parameter --lgpl, to asseert that modules are
50737         LGPL, and to replace license template from GPL to LGPL.
50738
50739 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         * modules/dummy: Change license to LGPL.
50742
50743 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
50746
50747 2004-09-24  Simon Josefsson  <jas@extundo.com>
50748
50749         * modules/minmax (License): Change from GPL to LGPL.
50750
50751 2004-09-23  Simon Josefsson  <jas@extundo.com>
50752
50753         * gnulib-tool (--import): Typo.
50754
50755 2004-09-23  Simon Josefsson  <jas@extundo.com>
50756
50757         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
50758
50759 2004-09-22  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/*: Add 'License' field.
50762         * gnulib-tool: Accept --extract-license option.
50763         (func_get_license): New function.
50764
50765 2004-09-21  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
50768         Reported by Simon Josefsson.
50769
50770 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50771
50772         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
50773         gl_AC_TYPE_LONG_LONG.
50774
50775 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50776
50777         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
50778
50779 2004-09-18  Simon Josefsson  <jas@extundo.com>
50780         and  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
50783         calls with autoreconf.  Define GL_LIB.
50784
50785 2004-09-14  Karl Berry  <karl@gnu.org>
50786
50787         * config/srclist.txt: unsync setenv.c, sigh.
50788
50789 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50790
50791         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
50792         Problem reported by Bruno Haible in:
50793         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
50794
50795 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50796
50797         * config/srclist.txt: Comment out argp-pvh.c.
50798
50799 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
50800
50801         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
50802         in case some system header has #define'd it.  Problem reported by
50803         Soeren D. Schulze in
50804         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
50805
50806 2004-09-09  Karl Berry  <karl@gnu.org>
50807
50808         * regex.[ch]: delete from the root.  These were supposed to be
50809                 synced with emacs cvs, but this has not happened for about
50810                 a year, and anyway nothing else uses emacs regex.[ch].
50811                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
50812                 lib/regex[.ch] is untouched.
50813
50814 2004-09-09  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
50817
50818 2004-09-09  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
50821         modifications.
50822         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
50823
50824 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
50825
50826         * modules/xvasprintf: New file.
50827         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
50828
50829 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
50830
50831         * lib/xvasprintf.h: New file.
50832         * lib/xvasprintf.c: New file.
50833         * lib/xasprintf.c: New file.
50834
50835 2004-09-08  Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
50838
50839 2004-09-08  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
50842         length is > INT_MAX.
50843         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
50844         more.
50845
50846 2004-09-08  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/stdint_.h: New file, taken from GNU clisp.
50849
50850 2004-09-08  Bruno Haible  <bruno@clisp.org>
50851             Oskar Liljeblad  <oskar@osk.mine.nu>
50852
50853         * modules/stdint: New file.
50854         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
50855
50856 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50857
50858         Import from coreutils.
50859         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
50860         strings on unbounded length.  alloca's performance benefits aren't
50861         that important here.
50862         (V_STRDUP): Remove.
50863         (parse_with_separator): New function, with most of the internals
50864         of the old parse_user_spec.  Allow user to omit both user and group,
50865         for compatibility with FreeBSD.
50866         Clone only the user name, not the entire spec.
50867         Do not set *uid, *gid unless entirely successful.
50868         Avoid memory leak in some failing cases.
50869         Fix regression for USER.GROUP reported by Dmitry V. Levin in
50870         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
50871         (parse_user_spec): Rewrite to use parse_with_separator.
50872
50873 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50874
50875         * modules/userspec: Don't depend on alloca.
50876
50877 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50878
50879         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
50880
50881 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50882
50883         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
50884         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
50885         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
50886
50887 2004-08-16  Simon Josefsson  <jas@extundo.com>
50888
50889         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
50890         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
50891         Add --dry-run for --import.
50892         Let user provided command line parameters override configure.ac
50893         settings.
50894
50895 2004-08-12  Simon Josefsson  <jas@extundo.com>
50896
50897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
50898         as discussed with Paul Eggert in threads rooted at
50899         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
50900         and
50901         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
50902         Before, the test was empty, and relied on ELIDE_CODE in source
50903         code.)
50904         (gl_PREREQ_GETOPT): New macro.
50905         (gl_GETOPT): Use them.
50906
50907 2004-08-12  Simon Josefsson  <jas@extundo.com>
50908
50909         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
50910         * lib/getopt_.h: Renamed from getopt.h.
50911
50912 2004-08-12  Simon Josefsson  <jas@extundo.com>
50913
50914         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
50915         Change default library name from libfoo to libgnu.
50916         Now, if you have a configure.ac that says:
50917                 gl_SOURCE_BASE(gl)
50918                 gl_M4_BASE(gl/m4)
50919                 gl_MODULES(error getopt etcetera)
50920                 gl_INIT
50921         you can import all you need by running:
50922                 ../gnulib/gnulib-tool --import
50923
50924         * modules/getopt (Files): Rename getopt.h to getopt_.h.
50925         (Makefile.am): Rewrite, use logic from argz.
50926         (Include): Use <getopt.h> instead of "getopt.h".
50927
50928 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50929
50930         * modules/argp (Files): Add m4/unlocked-io.m4.
50931         (Depends-on): Add extensions.
50932
50933 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50934
50935         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
50936         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
50937         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
50938         Check for program_invocation_name, program_invocation_short_name,
50939         flockfile, funlockfile, features.h, _getopt_long_only_r.
50940
50941 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50942
50943         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
50944         its complicated substitute.
50945         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
50946         and program_invocation_name.
50947         (__argp_basename) [!_LIBC]: Remove; the only use was
50948         replaced by its body.
50949         (__argp_short_program_name): Change condition from
50950         !defined __argp_short_program_name to
50951         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
50952         to match argp-namefrob.h.
50953         (__argp_failure): Don't assume strerror_r returns char *.
50954         * lib/argp-parse.c (N_): Define unconditionally.
50955         (argp_default_options): Fill out initializers with 0 to avoid
50956         gcc warnings.
50957
50958 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
50961         getopt1.c.
50962
50963 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         Merge from coreutils.
50966
50967         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
50968
50969         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
50970         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
50971
50972 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         Merge from coreutils.
50975
50976         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
50977         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
50978         for Reliant Unix 5.43.
50979
50980         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
50981         (union fooround): Use uintmax_t, not long int.
50982         The rest is a merge from libc:
50983         [defined _LIBC]: Include <shlib-compat.h>.
50984         (_obstack) [defined _LIBC]: Remove after 2.3.4.
50985
50986         * lib/settime.c (settime): Recode to avoid warning with
50987         Sun Forte C 6U2.
50988
50989         * lib/strverscmp.c: Convert to UTF-8.
50990
50991 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50992
50993         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50994         m4/uintmax_t.m4.
50995
50996 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * modules/xalloc-die: New file.
50999         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51000
51001         * modules/md5 (Files): Add m4/uint32_t.m4.
51002         * modules/sha1: Renamed from modules/sha.
51003         (Files):
51004         Rename lib/sha.h to lib/sha1.h.
51005         Rename lib/sha.c to lib/sha1.c.
51006         Rename m4/sha.m4 to m4/sha1.m4.
51007         (lib_SOURCES): Likewise.
51008         (configure.ac): Rename gl_SHA to gl_SHA1.
51009         (Include): sha.h -> sha1.h.
51010
51011 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51012
51013         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51014         * m4/sha1.m4: Renamed from sha.m4.
51015         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51016
51017 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51018
51019         * lib/obstack.h (obstack_empty_p):
51020         Don't assume that chunk->contents is suitably aligned.
51021         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51022         Likewise. Problem reported by Benno in
51023         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51024
51025         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51026         readable.  This could be improved further but it'd take some work.
51027
51028 2004-08-08  Simon Josefsson  <jas@extundo.com>
51029
51030         * modules/xgethostname (Depends-on): Remove exit and error (not
51031         used).
51032
51033         * modules/getpass-gnu: Add getpass.h.
51034         (Depends-on): Add stdbool.
51035         * modules/getpass: Add getpass.h.
51036
51037 2004-08-08  Simon Josefsson  <jas@extundo.com>
51038
51039         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51040         Check getpass declaration.
51041
51042 2004-08-08  Simon Josefsson  <jas@extundo.com>
51043
51044         * lib/xgethostname.c: Don't include error.h (not used).
51045
51046         * lib/getpass.h: Add.
51047         * lib/getpass.c: Include getpass.h first.
51048
51049 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51050
51051         * lib/xalloc-die.c: New file.
51052         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51053         All uses removed.
51054         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51055         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51056         xalloc-die.c.
51057         (_, N_, xalloc_die): Move to xalloc-die.c.
51058         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51059         so that we needn't mess with xalloc_msg_memory_exhausted.
51060
51061         * lib/sha1.h: Renamed from sha.h.
51062         (SHA1_H): Renamed from _SHA_H.
51063         (sha1_ctx): Renamed from sha_ctx.
51064         (sha1_init_ctx): Renamed from sha_init_ctx.
51065         (sha1_process_block): Renamed from sha_process_block.
51066         (sha1_process_bytes): Renamed from sha_process_bytes.
51067         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51068         (sha1_read_ctx): Renamed from sha_read_ctx.
51069         (sha1_stream): Renamed from sha_stream.
51070         (sha1_buffer): Renamed from sha_buffer.
51071         * lib/sha1.c: Likewise; renamed from sha.c.
51072         Do not include <sys/types.h>.
51073         Include <stddef.h> rather than <stdlib.h>.
51074
51075 2004-08-08  Bruno Haible  <bruno@clisp.org>
51076
51077         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51078         FILESYSTEM_PREFIX_LEN.
51079         * lib/progreloc.c: Likewise.
51080         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51081
51082 2004-08-06  Simon Josefsson  <jas@extundo.com>
51083
51084         * modules/progname (Depends-on): Don't depend on stdbool.
51085
51086 2004-08-06  Simon Josefsson  <jas@extundo.com>
51087
51088         * modules/getsubopt: New file.
51089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51090         getsubopt.
51091
51092 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51093
51094         More merge from coreutils.
51095
51096         * m4/utimens.m4, m4/utimecmp.m4: New files.
51097         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51098         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51099         prereq.m4, sha.m4: Import changes from coreutils.
51100
51101 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         More merge from coreutils.
51104         * modules/raise, modules/readtokens0, modules/utimens:
51105         * modules/utimecmp, module/xnanosleep: New files.
51106         * modules/strftime: Add lib/strftime.h.
51107         Change include from <time.h> to "strftime.h".
51108         * modules/yesno: Add lib/yesno.h.
51109         * modules/backupfile: Remove lib/addext.c.
51110         * modules/euidaccess: Add stat-macros.h.
51111         * modules/canonicalize, modules/euidaccess,
51112         modules/filemode, modules/lchown, modules/makepath,
51113         modules/rmdir, modules/stat: Likewise.
51114
51115 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         Merge from tar.
51118         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51119         SIZE_MAX is a valid preprocessor constant.
51120         (__argp_basename): Change from "#ifndef _LIBC"
51121         to "#ifndef __argp_short_program_name", so that
51122         we don't compile these functions for tar.
51123
51124         More merges from coreutils.
51125         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51126         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51127         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51128         * lib/addext.c: Remove; no longer needed.
51129         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51130         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51131         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51132         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51133         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51134         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51135         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51136         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51137         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51138         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51139         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51140         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51141         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51142         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51143         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51144         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51145         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51146         Import changes from coreutils.
51147
51148 2004-08-05  Simon Josefsson  <jas@extundo.com>
51149
51150         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51151
51152 2004-08-05  Simon Josefsson  <jas@extundo.com>
51153
51154         * m4/getsubopt.m4: New file.
51155
51156 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         Merge from coreutils.
51159
51160         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51161         * m4/getcwd-path-max.m4: New files.
51162
51163         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51164         FILESYSTEM_PREFIX_LEN ->
51165         FILE_SYSTEM_PREFIX_LEN.
51166         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51167         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51168         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51169         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51170
51171         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51172         prerequisite modules now handle the DOS stuff.
51173         Don't check for unistd.h.
51174
51175 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         Merge from coreutils.
51178
51179         * lib/.gdb-history: Remove; this doesn't belong here.
51180
51181         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51182         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51183         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51184         * lib/getcwd.c: New files.
51185
51186         * lib/dirname.h: Include <stdbool.h>.
51187         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51188         for consistency with POSIX terminology.  All uses changed.
51189         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51190         (strip_trailing_slashes): Use bool for booleans.
51191         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51192
51193         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51194         sometimes returns a positive errno value even when it succeeds.
51195         (print_errno_message) [!LIBC]: Fall back on strerror if
51196         __strerror_r fails.
51197
51198         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51199         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51200         (longest_relative_suffix): New function.
51201         (path_concat): Use it.  Assume first argument is not NULL.
51202         Port to DOS.  Omit redundant separators.
51203         Report an error instead of returning NULL.
51204         Use mempcpy instead of memcpy.
51205         (xpath_concat): Remove: not declared or used.
51206
51207         * lib/same.h: Include <stdbool.h>
51208         (same_name): Return bool, not int.
51209         * lib/same.c (same_name): Likewise.
51210         (errno): Don't declare; we assume C89 or better now.
51211
51212         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51213         if not already defined.
51214
51215         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51216         * lib/dup-safer.c (errno): Likewise.
51217
51218 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         Merge from coreutils.
51221         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51222         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51223         * modules/path-concat: Don't depend on strdup.
51224
51225 2004-08-03  Simon Josefsson  <jas@extundo.com>
51226
51227         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51228         * lib/progname.h: Don't include stdbool.h.
51229
51230 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51233         * MODULES.html.sh (func_all_modules): Remove fatal.
51234
51235 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51236
51237         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51238
51239 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51242         working.
51243
51244 2004-08-02  Simon Josefsson  <jas@extundo.com>
51245
51246         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51247         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51248         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51249
51250 2004-08-01  Simon Josefsson  <jas@extundo.com>
51251
51252         * lib/xgetdomainname.c: Include stdlib.h, for free().
51253
51254 2004-07-19  Bruno Haible  <bruno@clisp.org>
51255
51256         * MODULES.html.sh (func_all_modules): Add dummy.
51257
51258 2004-07-16  Simon Josefsson  <jas@extundo.com>
51259
51260         * modules/dummy: New file.
51261
51262 2004-07-16  Simon Josefsson  <jas@extundo.com>
51263
51264         * lib/dummy.c: New file.
51265
51266 2004-07-16  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/backupfile.h: Add extern "C" for C++.
51269         * lib/closeout.h: Likewise.
51270         * lib/copy-file.h: Likewise.
51271         * lib/findprog.h: Likewise.
51272         * lib/full-write.h: Likewise.
51273         * lib/pathname.h: Likewise.
51274         * lib/progname.h: Likewise.
51275         * lib/stpcpy.h: Likewise.
51276         * lib/stpncpy.h: Likewise.
51277         * lib/strcase.h: Likewise.
51278         * lib/strstr.h: Likewise.
51279         * lib/xalloc.h: Likewise.
51280
51281         * lib/mbswidth.h: Add extern "C" for C++.
51282         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51283
51284 2004-07-13  Robert Millan  <robertmh@gnu.org>
51285
51286         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51287
51288 2004-07-09  Simon Josefsson  <jas@extundo.com>
51289
51290         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51291         failed without this.)
51292
51293 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * modules/chown (Files): Add lib/fchown-stub.c, since
51296         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51297
51298 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51299
51300         * lib/fchown-stub.c: New file.
51301
51302 2004-06-24  Jim Meyering  <jim@meyering.net>
51303
51304         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51305
51306 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * modules/argz: Omit "#include".
51309
51310         * MODULES.html.sh (func_all_modules): Add calloc, to match
51311         2004-06-01 addition of calloc module.
51312
51313 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         * m4/argz.m4: New file, which is autoupdated from libtool.
51316
51317 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51318
51319         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51320         libtool.
51321
51322 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51323
51324         * config/srclist-update: Don't insist on "USA." before the
51325         close-comment, as libtool omits the period and puts the */ on a
51326         separate line.
51327         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51328         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51329
51330 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51331
51332         * modules/argz: New file.
51333         * MODULES.html.sh (func_all_modules): Add argz.
51334
51335 2004-06-12  Jim Meyering  <jim@meyering.net>
51336         and  Paul Eggert  <eggert@cs.ucla.edu>
51337
51338         * modules/hash (Files): Add lib/xalloc.h.
51339         * modules/pipe (Depends-on): Add wait-process.
51340         * modules/stat (Depends-on): Add xalloc.
51341         * modules/userspec (Files): Add lib/userspec.h.
51342         * modules/xstrto
51343
51344         Upgrade from gettext-0.13.
51345         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51346         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51347         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51348
51349 2004-06-10  Jim Meyering  <jim@meyering.net>
51350
51351         * lib/calloc.c: New file.
51352
51353 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * lib/getdate.y (yylex): Allow space between sign and number.
51356         Problem reported by Dan Jacobson.
51357
51358 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51359
51360         Merge from coreutils CVS.
51361
51362         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51363         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51364         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51365         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51366         xstrtol.m4: Fix copyright date and/or serial number.
51367
51368         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51369         See if we need an fchown replacement.
51370         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51371         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51372         and use the replacement function if we detect either defect.
51373
51374         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51375         gl_UTIMECMP.
51376
51377 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51378         and  Jim Meyering  <jim@meyering.net>
51379
51380         Merge from coreutils CVS.
51381
51382         * lib/stat-macros.h: New file, with contents from file-type.h
51383         and coreutils' system.h.
51384         * lib/file-type.c: Include "stat-macros.h".
51385         * lib/file-type.h (file_type): Move all macro definitions to new file,
51386         stat-macros.h.
51387
51388         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51389         Wrap old code with this conditional.
51390         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51391         function that does not dereference symlinks.
51392         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51393
51394         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51395         dependency problems.
51396         (xreadlink): Accept new arg SIZE, for efficiency.
51397         All decls and uses changed.
51398         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51399
51400         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51401         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51402
51403         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51404         sysexits.h.
51405
51406 2004-06-01  Jim Meyering  <jim@meyering.net>
51407
51408         * m4/calloc.m4: New file.
51409
51410 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51413         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51414         Also, fix a typo in a diagnostic.
51415
51416 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51417
51418         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51419         or AC_FUNC_REALLOC.
51420
51421 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51422
51423         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51424         macros to be defined.
51425         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51426         the allocator returns NULL because the requested size is zero.
51427
51428 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51431         var.  Add comment explaining why libc still defines it.  This
51432         merges the following patch from glibc:
51433         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51434
51435 2004-05-20  Andreas Schwab  <schwab@suse.de>
51436
51437         * m4/free.m4: Replace free if it not known to work, not the other
51438         way round.
51439
51440 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51443         present in glibc since revision 1.1 of this file.
51444         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51445         obstack_alignment_mask, obstack_alloc, obstack_base,
51446         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51447         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51448         obstack_grow0, obstack_init, obstack_int_grow,
51449         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51450         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51451         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51452         nonexistent functions.
51453
51454 2004-05-18  Karl Berry  <karl@gnu.org>
51455
51456         * config/srclist.txt: break link for vasnprintf.c.
51457
51458 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         Port obstack to the AS/400, where pointers are 16 bytes wide and
51461         you cannot cast an integer to a valid pointer.  This patch is
51462         currently waiting to be integrated into glibc; see
51463         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51464
51465         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51466         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51467         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51468         (struct obstack): temp member is now a union of a pointer and
51469         an integer, instead of an integer.  All integer uses changed.
51470         This does not affect the physical layout of struct obstack,
51471         except on hosts (like the AS/400) where the size or alignment of
51472         void * is greater than that of ptrdiff_t.
51473         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51474         __STDC__)]: Store temporary in pointer member of union, not
51475         integer member.
51476         * lib/obstack.c: Include <stddef.h>, for offsetof.
51477         (struct fooalign): Remove; it doesn't need a name.
51478         (union fooround): Change double to long double, and add void *.
51479         (DEFAULT_ALIGNMENT): Use offsetof to compute.
51480         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51481         not a macro.  Hence the values are always int; so remove all
51482         casts-to-int in uses.
51483
51484 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51487         we can get this patch merged into glibc.
51488
51489 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51490             Paul Eggert  <eggert@cs.ucla.edu>
51491
51492         * m4/argp: Depend on alloca.
51493
51494 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51495             Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51498         freecoding.
51499
51500 2004-05-17  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51503         precision that consists of a '.' followed by an empty digit string.
51504         Patch by Tor Lillqvist <tml@iki.fi>.
51505
51506 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51509         for backward compatibility with older code.  We need our own
51510         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
51511         it under some other name, and our alloca.h will define it.
51512
51513 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51514             Derek Price  <derek@ximbiot.com>
51515
51516         * lib/alloca.c: Include <alloca.h>, to get our interface.
51517         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51518         include <alloca.h> first.  Use C89 prototype for alloca; this
51519         requires including <stddef.h> for size_t.  Use extern "C" if C++.
51520         Use #elif for simplicity, since we can assume C89 now.
51521         Don't try to source the system alloca.h since it will not be found
51522         and to prevent recursively including its replacement.
51523         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51524         * lib/regex.c: Likewise.
51525
51526 2004-05-16  Derek Price  <derek@ximbiot.com>
51527             Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         getline cleanup.  This changes the getndelim2 API: both order of
51530         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51531         no delimiter).
51532
51533         * lib/getline.c: Don't include stddef.h or stdio.h, since our
51534         interface does that.
51535         (getline): Always use getdelim, so that we don't have two
51536         copies of this code.
51537         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51538         if available.
51539         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51540         (GETNDELIM2_MAXIMUM): New macro.
51541         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
51542         instead of the old practice of delim2==0.  All callers changed.
51543         Return -1 on overflow, instead of returning junk.
51544         Do not set *linesize unless allocation succeeds.
51545         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51546         that we include sys/types.h.
51547         * lib/getnline.h: Likewise.
51548         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51549         (getndelim2): Reorder arguments.
51550         * lib/getnline.c (getnline, getndelim):
51551         Don't discard the NMAX argument.
51552         (getnline): Invoke getndelim, to avoid code duplication.
51553         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51554         of (size_t) -1 by callers of the getnline family.
51555
51556 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51559         Check for gettimeofday.
51560         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51561         Check for settimeofday, stime.
51562
51563 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51564
51565         * lib/nanosleep.c (suspended): Change its type from int to
51566         sig_atomic_t volatile.
51567         (first_call): Make it private to rpl_nanosleep, and have it
51568         be zero initially as that's a bit faster.
51569         (my_usleep): Round up fractional times instead of truncating them,
51570         as this is the usual meaning for 'sleep'.
51571
51572         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51573         doesn't work.
51574         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51575         (ENOSYS): Define if not defined.
51576         (settime): Fall back on stime if it exists and settimeofday fails.
51577         But don't bother with fallbacks if a method fails with errno == EPERM.
51578
51579 2004-05-11  Jim Meyering  <jim@meyering.net>
51580
51581         Prior to this change, the save_cwd caller required read access to the
51582         current directory on most systems (ones with the fchdir function).
51583
51584         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51585         fails, try write-only, and finally, resort to using xgetcwd.
51586
51587 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51588
51589         * lib/obstack.c, obstack.h: Import changes from libc.
51590
51591 2004-04-28  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51594         also implicitly appends .exe to executables.
51595         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51596         accepts Windows pathnames.
51597         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51598         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51599         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51600         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51601         Reported by Derek Robert Price <derek@ximbiot.com>.
51602
51603 2004-04-21  Karl Berry  <karl@gnu.org>
51604
51605         * config/srclist.txt (localcharset.c): break sync.
51606
51607 2004-04-20  Paul Eggert  <eggert@twinsun.com>
51608
51609         * m4/host-os.m4: Add a copyright notice.
51610
51611 2004-04-20  Jim Meyering  <jim@meyering.net>
51612
51613         Change UTILS_ to gl_ in AC_DEFINE'd names.
51614         Change utils_- and jm_-prefixed variables, too.
51615         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51616         UTILS_FUNC_MKDIR_TRAILING_SLASH.
51617         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51618
51619         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51620         Don't emit trailing blanks.
51621         Also rename jm_-prefixed variables to have gl_ prefix.
51622
51623         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51624         Also rename jm_-prefixed variables to have gl_ prefix.
51625
51626         * m4/jm-macros.m4: Reflect the renamings.
51627         * m4/prereq.m4: Likewise.
51628
51629 2004-04-20  Jim Meyering  <jim@meyering.net>
51630
51631         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51632         memory.
51633
51634 2004-04-20  Jim Meyering  <jim@meyering.net>
51635             Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51638         memory when realloc fails.
51639
51640 2004-04-19  Jim Meyering  <jim@meyering.net>
51641
51642         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51643         now that readutmp.c may call `free (0)'.
51644
51645 2004-04-19  Bruno Haible  <bruno@clisp.org>
51646
51647         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51648         * m4/inttypes_h.m4: Likewise.
51649         * m4/stdint_h.m4: Likewise.
51650         * m4/intmax_t.m4: Likewise.
51651         * m4/uintmax_t.m4: Likewise.
51652
51653 2004-04-18  Jim Meyering  <jim@meyering.net>
51654
51655         * m4/prereq.m4: Don't forbid jm_ prefix.
51656
51657         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51658         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51659         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51660         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51661         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51662         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51663         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51664         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51665         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51666         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51667         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51668         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51669         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51670         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51671         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51672         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51673         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51674         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51675         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51676
51677 2004-04-18  Jim Meyering  <jim@meyering.net>
51678
51679         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51680         failure, don't leak memory and do call END_UTMP_ENT.
51681
51682 2004-04-16  Jim Meyering  <jim@meyering.net>
51683
51684         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
51685         coreutils' stat program.
51686         (gl_PREREQ): Don't require jm_PREREQ_STAT.
51687
51688 2004-04-11  Paul Eggert  <eggert@twinsun.com>
51689
51690         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51691         C89.
51692         (CHAR_BIT): Remove, since we assume C89.
51693         Include <stdint.h> if available, as per current Autoconf CVS advice.
51694
51695 2004-03-31  Jim Meyering  <jim@meyering.net>
51696
51697         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51698         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51699         * m4/xalloc.m4: Likewise.
51700
51701 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51702
51703         Merge from coreutils.
51704
51705         * m4/inttostr.m4: New file.
51706         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51707         Require AM_STDBOOL_H and gl_TIMESPEC instead.
51708         Require gl_CLOCK_TIME.
51709         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51710
51711 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51712
51713         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51714         not bool, to be more consistent with Unix conventions.
51715         Suggested by Bruno Haible.
51716
51717         Merge from coreutils.
51718
51719         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51720         * lib/umaxtostr.c: New files.
51721
51722         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
51723         the usual <time.h> dance.
51724         (get_date): Change signature to support fractional time stamps.
51725         All callers changed.
51726         * lib/getdate.y: Include "getdate.h" first, as we can now
51727         assume C89 and don't need to worry about 'const'.
51728         Similarly, include "unlocked-io.h" near start, not in middle.
51729         Include <limits.h>.
51730         (textint.value): Use long int rather than int.
51731         (textint.digits): Use size_t rather than int.
51732         (BILLION, LOG10_BILLION): New constants.
51733         (parser_control): New member rel_ns.  Members day_ordinal,
51734         time_zone, month, day, hour, minutes, rel_year, rel_month,
51735         rel_day, rel_hour, rel_minutes, rel_seconds
51736         are now long int, not int.  Member seconds is now struct timespec,
51737         not int.  New member timespec_seen.  Members dates_seen, days_seen,
51738         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
51739         not int.
51740         (%union.intval): Now long int, not int.
51741         New member timespec.
51742         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
51743         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
51744         (spec): Now is a timespec or an item list.
51745         (timespec, items): New nonterminals.
51746         (time, rel, relunit, number, get_date):
51747         Add support for fractional seconds.
51748         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
51749         (gmtime, localtime, mktime): Remove decls; not needed with C89.
51750         (to_hour): First arg is now long int, not int.
51751         (to_year): Returns long int, not int.
51752         Don't treat year -70 like 70.
51753         (tm_diff): Returns long int, not int.
51754         (lookup_word): Use bool instead of int when appropriate.
51755         (yylex): Use size_t for count, not int.
51756         Detect overflow when parsing large integer constants.
51757         Add support for fractions.
51758         (get_date): Make pointers 'const' if possible.
51759         Use more-portable code to detect integer overflow.
51760         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
51761         Don't use ctime; it's not reliable if the year has >4 digits.
51762
51763         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
51764         This is for compatibility with BSD.
51765
51766         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
51767         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
51768         From coreutils' system.h.
51769
51770         * lib/userspec.c: Don't include "posixver.h".
51771         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
51772         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
51773         compatible extension.  Simplify code by removing a boolean int
51774         that was always nonzero if a string was nonnull.
51775
51776 2004-03-30  Jim Meyering  <jim@meyering.net>
51777
51778         Merge from coreutils.
51779
51780         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
51781         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
51782         on some systems one must include <grp.h> before it.
51783         Reported by Christian Krackowizer.
51784
51785 2004-03-30  Jim Meyering  <jim@meyering.net>
51786
51787         Merge from coreutils.
51788
51789         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
51790
51791         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
51792         an empty input stream.
51793
51794         * lib/readtokens.c: Include <stdbool.h>.
51795         (readtoken): Use `size_t' rather than int/long.
51796         All callers adjusted.
51797         Use `bool' rather than `int' where appropriate.
51798         Use memset rather than an explicit loop.
51799         Use x2nrealloc rather than xrealloc.
51800         Allow the use of `\0' as a delimiter.
51801         (readtokens): Likewise.
51802         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
51803
51804 2004-03-30  Jim Meyering  <jim@meyering.net>
51805
51806         * m4/realloc.m4: Remove file, since now it does no more than
51807         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
51808         the `configure.ac' section of module/realloc.
51809         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
51810
51811 2004-03-30  Bruno Haible  <bruno@clisp.org>
51812
51813         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
51814         nonnull.
51815
51816 2004-03-29  Paul Eggert  <eggert@twinsun.com>
51817
51818         Merge changes to getloadavg.c from coreutils and Emacs.
51819
51820         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
51821         Define to an expression, not to the empty string.
51822         Include cloexec.h and xalloc.h.
51823         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
51824         Use set_cloexec_flag rather than rolling our own.
51825         * lib/cloexec.c, lib/cloexec.h: New files.
51826
51827 2004-03-29  Paul Eggert  <eggert@twinsun.com>
51828
51829         * m4/cloexec.m4: New file.
51830
51831 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51832
51833         * lib/getopt.h: Sync with libc CVS.
51834
51835 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51836             Bruno Haible  <bruno@clisp.org>
51837
51838         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
51839         mbswidth.
51840
51841 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51842             Bruno Haible  <bruno@clisp.org>
51843
51844         * lib/mbswidth.h: Include <wchar.h> only if
51845         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
51846         <wchar.h>.
51847         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
51848
51849 2004-03-09  Paul Eggert  <eggert@twinsun.com>
51850
51851         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
51852         Sync with libc CVS.
51853         * lib/getopt_int.h: New file, also synced from libc.
51854
51855 2004-03-09  Paul Eggert  <eggert@twinsun.com>
51856
51857         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
51858         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
51859         Bring back getopt.c, getopt.h, getopt1.c.
51860
51861 2004-03-07  Paul Eggert  <eggert@twinsun.com>
51862
51863         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
51864         All uses changed.  Check for sa_sigaction member; this fixes
51865         a bug first reported by Jason Andrade in
51866         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
51867
51868 2004-03-07  Paul Eggert  <eggert@twinsun.com>
51869
51870         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
51871         '#if' expressions.  Unlike the code it replaces, it does not
51872         depend on (defined _SC_PAGESIZE).  However, it does depend on
51873         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
51874         first reported by Jason Andrade in
51875         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
51876
51877 2004-02-25  Simon Josefsson  <jas@extundo.com>
51878
51879         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
51880
51881 2004-02-25  Simon Josefsson  <jas@extundo.com>
51882
51883         * lib/strdup.h: New file.
51884         * lib/strdup.c: Include it.
51885         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
51886         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
51887
51888 2004-02-23  Karl Berry  <karl@gnu.org>
51889
51890         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
51891         (from fencepost.gnu.org:/gd/gnuorg).
51892
51893 2004-02-23  Karl Berry  <karl@gnu.org>
51894
51895         * config/srclistvars.sh (GNUORG) [karl]: redefine.
51896         * config/srclist.txt: add maintain/standards documents.
51897
51898 2004-02-18  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
51901         Reported by Derek Robert Price <derek@ximbiot.com>.
51902
51903 2004-02-16  Karl Berry  <karl@gnu.org>
51904
51905         * config/mkinstalldirs, install-sh: update from automake.
51906
51907 2004-02-06  Karl Berry  <karl@gnu.org>
51908
51909         * m4/po.m4: update from gettext 0.14.1.
51910
51911 2004-02-06  Karl Berry  <karl@gnu.org>
51912
51913         * lib/config.charset: update from gettext 0.14.1.
51914
51915 2004-02-05  Paul Eggert  <eggert@twinsun.com>
51916
51917         Add comments and code, prompted by suggestions from Bruno Haible
51918         for sh-quote.
51919         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
51920         describing the enum quoting_style values.
51921         * lib/quotearg.c (quotearg_alloc): New function.
51922         (quotearg_buffer_restyled): Treat lone { and } as special.
51923         Treat = as special.  Work around bug with older shells
51924         that "see" a '\' that is really the 2nd byte of a multibyte char.
51925         Quote empty string with shell_quoting_style.
51926
51927 2004-02-03  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/pipe.m4: New file, from GNU gettext.
51930
51931 2004-02-03  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/pipe.h: New file, from GNU gettext.
51934         * lib/pipe.c: New file, from GNU gettext.
51935
51936 2004-01-27  Bruno Haible  <bruno@clisp.org>
51937
51938         * m4/execute.m4: New file, from GNU gettext.
51939
51940 2004-01-27  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/execute.h: New file, from GNU gettext.
51943         * lib/execute.c: New file, from GNU gettext.
51944         * lib/w32spawn.h: New file, from GNU gettext.
51945
51946 2004-01-24  Paul Eggert  <eggert@twinsun.com>
51947
51948         Merge from diffutils.
51949
51950         * lib/file-type.c (file_type): Add typed memory objects.
51951         * lib/file-type.h (S_TYPEISTMO): New macro.
51952
51953         * lib/c-stack.h (c_stack_action): Remove argv argument.
51954         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
51955         (die): Don't calculate message unless segv_action returns.
51956         (get_stack_location, min_address_from_argv, max_address_from_argv,
51957         volatile stack_base, volatile_stack_size): Remove.
51958         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
51959         that every segmentation violation is a stack overflow.  (Ouch!)
51960         See Debian bug 136249 (still outstanding) for more info about why
51961         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
51962
51963 2004-01-24  Paul Eggert  <eggert@twinsun.com>
51964
51965         Exit-status fix from coreutils.
51966
51967         Use exit_failure consistently in place of EXIT_FAILURE,
51968         so that program exit statuses are consistent on failure.
51969
51970         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
51971         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
51972         * lib/argmatch.h: Comment fix to match the above.
51973         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
51974         Now a macro referring to exit_failure, instead of a separate
51975         variable.  Include "exitfail.h" to get it.
51976         * lib/xstrtol.h: Include "exitfail.h".
51977         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
51978
51979         * lib/long-options.c (parse_long_options): Use prototype
51980         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
51981         for clarity.
51982
51983 2004-01-21  Jim Meyering  <jim@meyering.net>
51984
51985         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
51986         so as not to conflict with a different-sized __mktime_internal
51987         function in GNU libc.
51988         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
51989         Problem building statically-linked `ls' reported by Michael Brunnbauer.
51990
51991 2004-01-20  Karl Berry  <karl@gnu.org>
51992
51993         * config/config.guess: update from config.
51994
51995         * config/srclistvars.sh: GNUWWWLICENSES for karl.
51996
51997 2004-01-20  Bruno Haible  <bruno@clisp.org>
51998
51999         Safer stack allocation.
52000         * lib/setenv.c: Include allocsa.h.
52001         (alloca): Remove fallback definition.
52002         (freea): Remove macro.
52003         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52004         instead of freea.
52005
52006 2004-01-20  Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/eealloc.m4: New file, from GNU gettext.
52009
52010 2004-01-20  Bruno Haible  <bruno@clisp.org>
52011
52012         * m4/allocsa.m4: New file, from GNU gettext.
52013
52014 2004-01-20  Bruno Haible  <bruno@clisp.org>
52015
52016         * lib/xallocsa.h: New file, from GNU gettext.
52017         * lib/xallocsa.c: New file, from GNU gettext.
52018
52019 2004-01-20  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52022
52023 2004-01-20  Bruno Haible  <bruno@clisp.org>
52024
52025         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52026         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52027         specially.
52028
52029 2004-01-20  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52032         patch.
52033
52034 2004-01-20  Bruno Haible  <bruno@clisp.org>
52035
52036         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52037
52038 2004-01-20  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/eealloc.h: New file.
52041
52042 2004-01-20  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/binary-io.h: Avoid warnings on Cygwin.
52045
52046 2004-01-20  Bruno Haible  <bruno@clisp.org>
52047
52048         * lib/allocsa.h: New file, from GNU gettext.
52049         * lib/allocsa.c: New file, from GNU gettext.
52050
52051 2004-01-18  Karl Berry  <karl@gnu.org>
52052
52053         * doc/gpl.texi, doc/lgpl.texi: new files.
52054
52055 2004-01-18  Karl Berry  <karl@gnu.org>
52056
52057         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52058         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52059
52060 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52061
52062         Merge from coreutils.
52063
52064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52065         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52066         (gl_DEFAULT_POSIX2_VERSION): Move
52067         the documentation from 'configure' into 'config.hin',
52068         so that 'configure --help' isn't burdened by it and
52069         we don't have to worry about its formatting there.
52070         Reword the documentation so that it's more succinct
52071         and can be run together into a single paragraph.
52072         * m4/same.m4 (gl_SAME): Check for pathconf.
52073
52074 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52075
52076         Merge from coreutils.
52077
52078         * lib/posixver.c: Include posixver.h.
52079
52080         * lib/same.c: Include <stdbool.h>, <limits.h>.
52081         (_POSIX_NAME_MAX): Define if not defined.
52082         (MIN): New macro.
52083         (same_name): If file names are silently truncated, report
52084         that the file names are the same if they are the same after
52085         the silent truncation.
52086
52087         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52088         conversion function.
52089         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52090         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52091         longer needed.
52092
52093 2004-01-15  Jim Meyering  <jim@meyering.net>
52094
52095         Merge from coreutils.
52096
52097         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52098         if no library is required.
52099         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52100         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52101         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52102         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52103         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52104         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52105         value, $ac_cv_search_crypt, if it's "none required".
52106         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52107         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52108         not gl_FUNC_GETLOADAVG.
52109         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52110         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52111
52112 2004-01-15  Jim Meyering  <jim@meyering.net>
52113
52114         Merge from coreutils.
52115
52116         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52117         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52118         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52119
52120         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52121         optional configure-time default.
52122
52123         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52124
52125         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52126
52127 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52128
52129         Merge from coreutils.
52130
52131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52132         value, $ac_cv_search_nanosleep, if it's "none required".
52133
52134 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52135
52136         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52137         with like-named macro in fnmatch.c.
52138         (EXT): Use an internal constant instead.
52139
52140         Merge fnmatch patches from glibc.
52141         * lib/fnmatch.c (mbsinit): Remove define.
52142         Add libc_hidden_ver (__fnmatch, fnmatch).
52143         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52144         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52145
52146 2004-01-14  Karl Berry  <karl@gnu.org>
52147
52148         * config/install-sh: update from automake.
52149
52150 2004-01-13  Karl Berry  <karl@gnu.org>
52151
52152         * config/install-sh: update from automake.
52153
52154 2004-01-09  Karl Berry  <karl@gnu.org>
52155
52156         * config/install-sh: update from automake.
52157
52158 2004-01-05  Karl Berry  <karl@gnu.org>
52159
52160         * config/config.{sub,guess}: update from config.
52161
52162 2003-12-31  Karl Berry  <karl@gnu.org>
52163
52164         * config/depcomp: update from automake.
52165
52166 2003-12-14  Karl Berry  <karl@gnu.org>
52167
52168         * lib/config.charset: update from gettext-runtime.
52169
52170 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52171
52172         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52173         Bug reported by Alfred M. Szmidt.
52174
52175 2003-12-03  Bruno Haible  <bruno@clisp.org>
52176
52177         * m4/gettext.m4: Upgrade from gettext-0.13.
52178         * m4/po.m4: Upgrade from gettext-0.13.
52179         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52180         * m4/intmax.m4: New file, from gettext-0.13.
52181         * m4/printf-posix.m4: New file, from gettext-0.13.
52182
52183 2003-11-29  Karl Berry  <karl@gnu.org>
52184
52185         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52186
52187 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52188             Bruno Haible  <bruno@clisp.org>
52189
52190         * lib/printf-parse.h: Don't include sys/types.h.
52191         (ARG_NONE): New macro.
52192         (char_directive): Change type of *arg_index fields to size_t.
52193         * lib/printf-parse.c: Don't include sys/types.h.
52194         (SSIZE_MAX): Remove macro.
52195         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52196         Remove unnecessary overflow check.
52197         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52198         fields.
52199
52200 2003-11-25  Bruno Haible  <bruno@clisp.org>
52201
52202         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52203
52204 2003-11-25  Bruno Haible  <bruno@clisp.org>
52205
52206         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52207         gt_TYPE_SSIZE_T.
52208
52209 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52210
52211         * modules/alloca: Remove dependency on xalloc.
52212
52213 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52214
52215         * lib/alloca.c: Remove dependency on xalloc module.
52216         (xalloc_die): Remove.
52217         (memory_full) [!defined emacs]: New macro.
52218         [!defined emacs]: Don't include xalloc.h.
52219         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52220         address arithmetic overflows.  Change datatypes a bit to avoid
52221         unnecessary casts.
52222
52223 2003-11-22  Jim Meyering  <jim@meyering.net>
52224
52225         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52226         s/size/size_t/.
52227
52228 2003-11-21  Karl Berry  <karl@gnu.org>
52229
52230         * config/config.{sub,guess}: update from config.
52231
52232 2003-11-18  Karl Berry  <karl@gnu.org>
52233
52234         * config/config.{sub,guess}: update from config.
52235
52236         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52237
52238 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52239
52240         * README: Mention that S+T cannot overflow if S is the size of
52241         an existing object and T is sufficiently small.
52242
52243 2003-11-17  Jim Meyering  <jim@meyering.net>
52244
52245         On systems without utime and without a utimes function capable of
52246         dealing with a NULL struct utimbuf* argument, this utime replacement
52247         could -- in unusual circumstances -- leak a file descriptor.
52248         * lib/utime.c: Include <unistd.h> and <errno.h>.
52249         (utime_null): Be sure to close `fd' and to preserve errno.
52250         Reported by Geoff Collyer via Arnold Robbins.
52251
52252 2003-11-17  Bruno Haible  <bruno@clisp.org>
52253
52254         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52255         (Depends-on): Add xsize.
52256
52257 2003-11-17  Bruno Haible  <bruno@clisp.org>
52258
52259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52260
52261 2003-11-17  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/vasnprintf.c (alloca): Remove fallback definition.
52264         (freea): Remove definition.
52265         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52266         Reported by Paul Eggert.
52267
52268 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52269             Bruno Haible  <bruno@clisp.org>
52270
52271         Protect against address arithmetic overflow.
52272         * lib/printf-args.h: Include stddef.h.
52273         (arguments): Change type of field 'count' to size_t.
52274         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52275         'unsigned int' where appropriate.
52276         * lib/printf-parse.h: Include sys/types.h.
52277         (char_directive): Change type of *arg_index fields to ssize_t.
52278         (char_directives): Change type of fields 'count', max_*_length to
52279         size_t.
52280         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52281         (SSIZE_MAX): Define fallback value.
52282         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52283         instead of 'int' where appropriate. Check a_allocated, d_allocated
52284         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52285         * lib/vasnprintf.c: Include xsize.h.
52286         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52287         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52288         overflow. Avoid wraparound when converting a width or precision from
52289         decimal to binary.
52290
52291 2003-11-16  Bruno Haible  <bruno@clisp.org>
52292
52293         Update from GNU gettext.
52294         * lib/printf-parse.c: Generalize to it can be compiled for wide
52295         strings.
52296         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52297         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52298         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52299         SNPRINTF): New macros.
52300         Don't include <alloca.h> if the file is used inside libintl.
52301         (local_wcslen): New function, for Solaris 2.5.1.
52302         (VASNPRINTF): Use it instead of wcslen.
52303
52304 2003-11-16  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/xsize.h (xmax): New function.
52307         (xsum, xsum3, xsum4): Declare as "pure" functions.
52308
52309 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52310
52311         * modules/xalloc (Files): Undo latest change, since xalloc.h
52312         no longer needs SIZE_MAX or PTRDIFF_MAX.
52313
52314 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52315
52316         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52317         gl_PTRDIFF_MAX.
52318
52319 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52320
52321         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52322         "return", to pacify some unknown compiler.  Problem reported
52323         by Joerg Schilling.
52324
52325 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52326
52327         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52328         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52329         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52330         heuristic is just as accurate as far as we know, and it removes a
52331         dependency on size_max.m4 and ptrdiff_max.m4.
52332
52333 2003-11-11  Bruno Haible  <bruno@clisp.org>
52334
52335         * modules/xsize (Files): Add m4/size_max.m4.
52336         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52337
52338 2003-11-11  Bruno Haible  <bruno@clisp.org>
52339
52340         * m4/size_max.m4: New file.
52341         * m4/ptrdiff_max.m4: New file.
52342         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52343         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52344         (gl_XALLOC): Invoke it.
52345
52346 2003-11-11  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52349         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52350         defined.
52351
52352 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52353
52354         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52355         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52356         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52357         From Bruno Haible.
52358         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52359         not (size_t) -1, since it's defined here.
52360
52361 2003-11-09  Karl Berry  <karl@gnu.org>
52362
52363         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52364
52365 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52366
52367         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52368         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52369         Reject sizes of exactly SIZE_MAX bytes.
52370         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52371         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52372
52373 2003-11-05  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52376         SIZE_MAX defined in <limits.h> on Solaris.
52377
52378 2003-11-04  Jim Meyering  <jim@meyering.net>
52379
52380         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52381         variable names, rather than @VAR@.
52382         * modules/poll: Likewise.
52383
52384 2003-11-04  Bruno Haible  <bruno@clisp.org>
52385
52386         * modules/xsize: New file.
52387         * modules/linebreak: Depend on xsize.
52388         * MODULES.html.sh (func_all_modules): Add xsize.
52389
52390 2003-11-04  Bruno Haible  <bruno@clisp.org>
52391
52392         * m4/xsize.m4: New file.
52393
52394 2003-11-04  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/xsize.h: New file.
52397         * lib/linebreak.c: Include xsize.h.
52398         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52399         argument for overflow.
52400         Suggested by Paul Eggert.
52401
52402 2003-11-03  Karl Berry  <karl@gnu.org>
52403
52404         * config/config.{guess,sub}: update from config.
52405
52406 2003-11-03  Jim Meyering  <jim@meyering.net>
52407
52408         * modules/userspec (lib_SOURCES): Add userspec.h.
52409         (Include): Add "userspec.h".
52410         Improve description.
52411
52412 2003-11-03  Jim Meyering  <jim@meyering.net>
52413
52414         * lib/userspec.c: Include "userspec.h".
52415         * lib/userspec.h: New file.
52416
52417 2003-11-03  Bruno Haible  <bruno@clisp.org>
52418
52419         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52420
52421 2003-11-03  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52424         available, to avoid (extremely rare) race condition.
52425         Suggested by Paul Eggert.
52426
52427 2003-11-02  Karl Berry  <karl@gnu.org>
52428
52429         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52430
52431 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52432
52433         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52434         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52435         (read_filesystem_list): Set and use me_type_malloced.
52436         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52437         whatever the type happens to be), for brevity and consistency.
52438         Check for size calculation overflow on Alphas running OSF/1.
52439
52440 2003-10-31  Jim Meyering  <jim@meyering.net>
52441
52442         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52443
52444         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52445
52446 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52447             Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52450         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52451
52452 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52455         netbsd*-gnu*.  Suggested by Robert Millan.
52456
52457 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52458
52459         * modules/group-member: Depend on stdbool.
52460
52461 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52462
52463         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52464
52465 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52466
52467         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52468         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52469         after the 'gnu' in these cases.  This fixes some bugs in the
52470         previous change, and is based on suggestions by Robert Millan.
52471
52472 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52473
52474         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52475         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
52476         no longer needed.
52477         * lib/quotearg.c (quotearg_n_options): Use it.
52478         * lib/group-member.c: Include <stdbool.h>.
52479         (free_group_info): Arg is now const *; don't free arg.
52480         (get_group_info): Now returns bool and accepts struct group_info *,
52481         rather than returning a malloc'ed struct group_info *.
52482         All uses changed.  Check for overflow in internal size calculation.
52483
52484         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52485         rather than xmalloc/xrealloc.
52486         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52487         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
52488         conformance bug: the old code used a pointer after freeing the
52489         storage that it addressed.
52490         * lib/hash.c (hash_initialize): Simplify the code by using
52491         xalloc_oversized rather than doing it by hand.
52492         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52493         the buffer preserved.  Use free and xmalloc instead.
52494         * lib/quotearg.c (quotearg_n_options): Likewise.
52495         Use a simpler test for size overflow.  Don't use xalloc_oversized
52496         because unsigned int might be wider than size_t (!); this suggests
52497         that we should switch from unsigned int to size_t for slot numbers.
52498
52499 2003-10-28  Paul Eggert  <eggert@twinsun.com>
52500
52501         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52502         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
52503         NetBSD kernels.  Requested by Richard Stallman.
52504
52505 2003-10-27  Paul Eggert  <eggert@twinsun.com>
52506
52507         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52508         to allocate the returned structure.  Do not allocate a subarray,
52509         as x2nrealloc will do that.
52510         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52511         instead of xnrealloc.
52512         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52513
52514 2003-10-27  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/stdbool_.h: Better support for BeOS.
52517
52518 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52519
52520         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52521         now uses inline.
52522
52523 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52524
52525         * lib/xalloc.h (xalloc_oversized): New static inline function, for
52526         callers that want to do their own size-overflow checking.  Include
52527         <stdbool.h>, since xalloc_oversized returns bool.
52528         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
52529         to use xalloc_oversized.
52530
52531         Add two functions x2realloc, x2nrealloc, for programs that grow
52532         arrays dynamically by doubling their sizes.
52533         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52534         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52535         New functions.
52536
52537         Port to C99 semantics for 'inline' of external functions.
52538         Bug reported by Bruno Haible.
52539         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52540         with the old contents of xnmalloc.
52541         (xnmalloc, xmalloc): Use it.
52542         (xnrealloc_inline): New static inline function,
52543         with the old contents of xnrealloc.
52544         (xnrealloc, xrealloc): Use it.
52545
52546         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52547         that.
52548
52549 2003-10-26  Karl Berry  <karl@gnu.org>
52550
52551         * config/srclist.txt (COPYING.DOC): no longer available from
52552         /gd/gnuorg; don't know where the ultimate source is.
52553
52554 2003-10-25  Paul Eggert  <eggert@twinsun.com>
52555
52556         Fix several address-calculation bugs in the hash modules,
52557         plus some minor code cleanup.
52558
52559         * lib/hash.h: Include <stdbool.h>, for bool.
52560         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52561         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52562         hash_get_n_entries, hash_get_max_bucket_length,
52563         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52564         hash_rehash): Use size_t rather than unsigned.
52565         * lib/hash.c (struct hash_table, hash_get_n_buckets,
52566         hash_get_n_buckets_used, hash_get_n_entries,
52567         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52568         hash_get_entries, hash_do_for_each, hash_string, is_prime,
52569         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52570         Likewise.
52571         (SIZE_MAX): Define if not defined.
52572         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52573         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52574         hash_print):
52575         Use const * when possible.
52576         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52577         (check_tuning): Fix bug: if tuning parameters were very close to
52578         0 or 1, rounding errors could have caused subscript violations.
52579         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52580         (hash_initialize): Add 'fail:' label
52581         to free table and return NULL, and use it to simplify code.
52582         Use calloc rather than clearing the storage ourself.
52583         (hash_initialize, hash_rehash): Check for arithmetic overflow in
52584         buffer size calculations.
52585         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52586         Include <stddef.h>, for size_t.
52587         * lib/hash-pjw.c (hash_pjw): Likewise.
52588         Switch to method described by Bruno Haible.
52589         Include <limits.h>, for CHAR_BIT.
52590         (SIZE_BITS): New macro.
52591
52592 2003-10-23  Paul Eggert  <eggert@twinsun.com>
52593
52594         * m4/getline.m4 (AM_FUNC_GETLINE):
52595         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52596         hosts.  Problem reported by Derek Robert Price in
52597         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52598         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52599         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52600
52601 2003-10-21  Paul Eggert  <eggert@twinsun.com>
52602
52603         * lib/getndelim2.c (getndelim2): When size calculation overflows,
52604         ceiling the allocation at NMAX bytes rather than silently
52605         discarding input bytes before NMAX is reached.  This makes
52606         a difference only if NMAX exceeds SIZE_MAX / 2.
52607
52608         * lib/obstack.c: Merge from glibc.
52609         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52610         Add libc_hidden_def (_obstack_newchunk).
52611         (_obstack_free) [! defined _LIBC]: Remove.
52612         [defined _LIBC]: Make a strong alias from obstack_free, rather than
52613         a clone of the function body.
52614         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52615         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52616
52617         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52618         glibc.
52619         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52620         arg to memcpy.
52621
52622         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52623         (obstack_ptr_grow_fast, obstack_int_grow_fast):
52624         Don't use lvalue casts, as GCC plans to remove support for them
52625         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
52626         was also present in the non-GCC version, indicating that this
52627         code had always been buggy and had never been widely used.
52628         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52629         Use the fast variant of each macro, rather than copying the
52630         definiens of the fast variant; that way, we'll be more likely to
52631         catch future bugs in the fast variants.
52632
52633 2003-10-20  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/wait-process: New file.
52636         * MODULES.html.sh (func_all_modules): Add wait-process.
52637
52638 2003-10-20  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/wait-process.m4: New file.
52641
52642 2003-10-20  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/wait-process.h: New file, from GNU gettext.
52645         * lib/wait-process.c: New file, from GNU gettext.
52646
52647 2003-10-19  Jim Meyering  <jim@meyering.net>
52648
52649         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52650         HPUX 10.20.
52651
52652 2003-10-18  Karl Berry  <karl@gnu.org>
52653
52654         * config/config.guess: update from config.
52655
52656 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52657
52658         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52659         (getgroups): First arg is int, not size_t.
52660         Don't let 'free' mangle errno.
52661
52662 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52663
52664         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52665
52666 2003-10-16  Karl Berry  <karl@gnu.org>
52667
52668         * config/config.{guess,sub}: update from config.
52669
52670 2003-10-16  Jim Meyering  <jim@meyering.net>
52671
52672         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52673         memcpy.
52674
52675 2003-10-15  Paul Eggert  <eggert@twinsun.com>
52676
52677         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52678         (SIZE_MAX): Remove.
52679         (new_exclude, add_exclude_file): Initial size no longer needs to
52680         be a power of 2.
52681         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52682         our own address arithmetic overflow checking.
52683
52684         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52685         (fnmatch): Do not alloca more than 2000 wide characters;
52686         instead, use malloc for large buffers.
52687         Check for address arithmetic overflow, and return -1
52688         with errno set to ENOMEM in that case.
52689         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52690         (NEW_PATTERN): Do not alloca more than 8000 bytes;
52691         instead, return -1.  Check for address arithmetic overflow.
52692
52693 2003-10-14  Paul Eggert  <eggert@twinsun.com>
52694
52695         Handle invalid suffixes and overflow independently, so that
52696         callers can treat them independently as needed.  Fix some bugs in
52697         suffix handling, e.g., "100k@" was not diagnosed as an invalid
52698         suffix for a human-readable blocksize.  The major caller-visible
52699         change is the addition of a new
52700         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52701         that both overflow and suffix chars were found.
52702
52703         * lib/human.c (humblock): Don't check separately for invalid suffix
52704         char; that is xstrtoumax's job (now that its bug is fixed).
52705         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52706         INTMAX_MAX]: New macros.
52707         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52708         TYPE_MAXIMUM): New macros.
52709         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52710         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52711         if overflow occurs, as it's what __strtol does and it's more useful
52712         in practice.
52713         (__xstrtol): If __strtol reports some error other than ERANGE,
52714         reflect it to the caller as LONGINT_INVALID.  If it reports
52715         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52716         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52717         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52718         value.
52719         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
52720         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
52721         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
52722         [defined UINTMAX_MAX]: New macros.
52723
52724 2003-10-14  Bruno Haible  <bruno@clisp.org>
52725
52726         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
52727
52728 2003-10-14  Bruno Haible  <bruno@clisp.org>
52729
52730         * m4/sig_atomic_t: New file, from GNU gettext.
52731         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
52732
52733 2003-10-14  Bruno Haible  <bruno@clisp.org>
52734
52735         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
52736         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
52737         Also use volatile where needed.
52738
52739 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52740
52741         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
52742         Change maintainer from Bruno Haible to 'all'.
52743
52744 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52745
52746         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
52747
52748 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52749
52750         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
52751         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
52752         and define in terms of the other primitives.
52753         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
52754         (SIZE_MAX): Define if not already defined.
52755         (array_size_overflow): New function.
52756         (xalloc_die): Abort instead of exiting if 'error' returns.
52757         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
52758         (xmalloc, xrealloc): Use them.
52759         (xcalloc): Check for address arithmetic overflow.
52760         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
52761         a bit faster than strcpy.
52762
52763 2003-10-10  Simon Josefsson  <jas@extundo.com>
52764
52765         * modules/argp (Depends-on): Add restrict and strcase.
52766
52767 2003-10-10  Simon Josefsson  <jas@extundo.com>
52768
52769         * m4/argp.m4: Add AC_C_INLINE.
52770
52771 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52772
52773         Merge getpass from libc, plus a few fixes.
52774
52775         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
52776         Include <stdbool.h>.
52777         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
52778         __fsetlocking to empty.
52779         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
52780         do include <bits/libc-lock.h>.
52781         Do not include <fcntl.h>; not needed.
52782         [_LIBC]: Include <wchar.h>.
52783         (NOTCANCEL_MODE): New macro.
52784         (flockfile, funlockfile) [_LIBC]: New macros.
52785         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
52786         [!_LIBC]: New macros.
52787         (call_fclose): New function.
52788         (getpass): Use it.  Save tty stream separately; this simplifies the
52789         code and makes it more reliable if stdin happens to equal stdout.
52790         Invoke __fsetlocking on tty.
52791         Handle thread cancellation if needed.
52792         Namespace cleanup (use __tcgetattr, __getline).
52793         Use bool for Booleans.
52794         [USE_IN_LIBIO]: Handle wide streams.
52795         [!_LIBC]: Unconditionally do the fseek, since we don't know what
52796         stream might go where.
52797
52798         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
52799         doesn't have to include <stdio.h> before us.
52800         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
52801         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
52802         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
52803         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
52804         if not declared, so that we can use getpass.c code from libc without
52805         rewriting it.
52806         (flockfile, ftrylockfile, funlockfile): New macros.
52807
52808 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52809
52810         * modules/getpass: Depend on stdbool.
52811
52812 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52813
52814         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
52815
52816 2003-10-07  Karl Berry  <karl@gnu.org>
52817
52818         * config/config.{guess,sub}: update from config.
52819
52820 2003-10-06  Jim Meyering  <jim@meyering.net>
52821             Bruno Haible  <bruno@clisp.org>
52822
52823         This lets translators provide better translations for the
52824         "Written by ..." part of --version output.
52825         * lib/version-etc.h: Include stdarg.h.
52826         (version_etc_copyright): Declare as readonly.
52827         (version_etc): Make this function variadic with a NULL-terminated list
52828         of author name strings.
52829         (version_etc_va): New declaration.
52830         * lib/version-etc.c: Include stdarg.h, stdlib.h.
52831         (version_etc_copyright): Declare as readonly.
52832         (version_etc_va): New function. Provide a different translatable string
52833         for each possible number of authors < 10. Abbreviate when there are 10
52834         authors or more.
52835         (version_etc): Make this function variadic. Call version_etc_va.
52836         Suggestion from Gary V. Vaughan.
52837
52838         * lib/long-options.h (parse_long_options): Change prototype: the
52839         authors string is moved to the end and becomes variadic.
52840         * lib/long-options.c: Include stdarg.h.
52841         (parse_long_options): Make this function variadic, too.
52842         Call version_etc_va, not version_etc.
52843
52844 2003-10-06  Bruno Haible  <bruno@clisp.org>
52845
52846         * modules/version-etc-2: Remove file.
52847         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
52848
52849 2003-10-06  Bruno Haible  <bruno@clisp.org>
52850
52851         * modules/fatal-signal: New file.
52852         * MODULES.html.sh (func_all_modules): Add fatal-signal.
52853
52854 2003-10-06  Bruno Haible  <bruno@clisp.org>
52855
52856         * m4/fatal-signal.m4: New file.
52857         * m4/signalblocking.m4: New file, from GNU gettext.
52858
52859 2003-10-06  Bruno Haible  <bruno@clisp.org>
52860
52861         * lib/version-etc-2.h: Remove file.
52862         * lib/version-etc-2.c: Remove file.
52863
52864 2003-10-06  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/fatal-signal.h: New file, from GNU gettext.
52867         * lib/fatal-signal.c: New file, from GNU gettext.
52868
52869 2003-10-05  Paul Eggert  <eggert@twinsun.com>
52870
52871         * README: Rework advice for preventing empty .o files.
52872         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
52873         not <sys/types.h>.
52874
52875 2003-10-04  Karl Berry  <karl@gnu.org>
52876
52877         * lib/argp*: update from libc.
52878
52879 2003-10-04  Karl Berry  <karl@gnu.org>
52880
52881         * config/config.{guess,sub}: update from config.
52882
52883 2003-10-02  Bruno Haible  <bruno@clisp.org>
52884
52885         * modules/lchown (Include): Add lchown.h.
52886         * modules/time_r (Include): Use "..." syntax.
52887         * modules/xgetdomainname (Include): Add xgetdomainname.h.
52888
52889 2003-10-01  Simon Josefsson  <jas@extundo.com>
52890
52891         * MODULES.html.sh (func_all_modules): Move gethostname from section
52892         'based on' to section 'lacking' POSIX:2001.
52893
52894 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
52895
52896         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
52897         to output mode on the same stream.
52898
52899 2003-09-29  Paul Eggert  <eggert@twinsun.com>
52900
52901         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
52902         Fix arg typo in previous patch.
52903
52904 2003-09-28  Jim Meyering  <jim@meyering.net>
52905
52906         * lib/error.c: Correct cpp indentation.
52907
52908 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52909
52910         * modules/free: New file.
52911
52912 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52913
52914         * m4/free.m4: New file.
52915
52916 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52917
52918         * lib/minmax.h (MIN, MAX)
52919         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
52920         Omit the special code that used __typeof__, since we worry that
52921         it could be more trouble than it's worth.  See:
52922         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
52923         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
52924
52925         * lib/free.c: New file.
52926
52927 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
52928
52929         Trivial fixes to Makefile.am parts of module listings.
52930         * modules/strstr: Append strstr.h to lib_SOURCES.
52931         * modules/strcase: Likewise, for strcase.h.
52932
52933 2003-09-27  Karl Berry  <karl@gnu.org>
52934
52935         * config/mkinstalldirs: update from automake.
52936
52937 2003-09-26  Paul Eggert  <eggert@twinsun.com>
52938
52939         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
52940         (error_tail): Do not loop, reallocating temporary buffer, since
52941         the output cannot contain more wide characters than the input
52942         contains bytes, the size must be big enough already.  This avoids
52943         one potential size overflow calculation.  Check for size overflow
52944         when calculating temporary buffer size.  Free temporary buffer
52945         when done, if it was allocated with malloc; this plugs a memory
52946         leak.  Remove casts from void * to pointers, that are no longer
52947         needed now that we're assuming C89 or better.
52948
52949         Merge error changes from glibc.
52950
52951         * lib/error.c, error.h: Update copyright notice header to match glibc.
52952         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
52953         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
52954         Disable cancellation while printing error.
52955         * lib/error.h: Prepend __ to parameter names.
52956
52957 2003-09-26  Jim Meyering  <jim@meyering.net>
52958
52959         * lib/error.c (error_tail): Move some declarations
52960         into inner scope where the local variables are used.
52961
52962 2003-09-26  Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
52965         stpncpy().
52966         Don't define stpncpy through config.h; it's now done through stpncpy.h.
52967
52968 2003-09-26  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/stpncpy.h (gnu_stpncpy): New declaration.
52971         (stpncpy): Define as alias for gnu_stpncpy.
52972         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
52973
52974 2003-09-25  Simon Josefsson  <jas@extundo.com>
52975
52976         * lib/xgetdomainname.h: New file.
52977         * lib/xgetdomainname.c: New file.
52978
52979 2003-09-25  Simon Josefsson  <jas@extundo.com>
52980             Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/getdomainname: New file.
52983         * modules/xgetdomainname: New file.
52984         * MODULES.html.sh (func_all_modules): Add getdomainname,
52985         xgetdomainname.
52986
52987 2003-09-25  Simon Josefsson  <jas@extundo.com>
52988             Bruno Haible  <bruno@clisp.org>
52989
52990         * m4/getdomainname.m4: New file.
52991
52992 2003-09-25  Simon Josefsson  <jas@extundo.com>
52993             Bruno Haible  <bruno@clisp.org>
52994
52995         * lib/getdomainname.h: New file.
52996         * lib/getdomainname.c: New file.
52997
52998 2003-09-25  Karl Berry  <karl@gnu.org>
52999
53000         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53001
53002 2003-09-25  Karl Berry  <karl@gnu.org>
53003
53004         * config/install-sh: update from automake.
53005
53006 2003-09-25  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/version-etc-2: New file, from modules/version-etc with
53009         modifications.
53010         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53011
53012 2003-09-25  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53015         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53016
53017 2003-09-24  Simon Josefsson  <jas@extundo.com>
53018
53019         * modules/xgethostname: Add xgethostname.h.
53020
53021 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53022
53023         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53024         the buffer associated with the argument.  Bug reported by
53025         Simon Josefsson.
53026
53027 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53028
53029         * README: Document assumptions that 'int' is at least 32 bits
53030         wide, that integer arithmetic is 2's complement without overflow,
53031         that there are no holes in integer values, that adding sizes of
53032         two nonoverlapping objects can't overflow, and that all-bits-zero
53033         yields scalar zero.  Fix spelling and capitalization typos.
53034
53035 2003-09-19  Karl Berry  <karl@gnu.org>
53036
53037         * lib/argp.h: update from libc.
53038
53039 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53040
53041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53042         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53043         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53044
53045 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53046
53047         * gnulib-tool: Use "test -h", not "test -L", for portability
53048         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53049         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53050         (sed_extract_prog): Issue s commands one-by-one, rather than
53051         using \| in one s command.
53052
53053 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53054
53055         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53056         input error, instead of returning NULL the next time we are called
53057         (and therefore losing track of errno).
53058
53059 2003-09-16  Bruno Haible  <bruno@clisp.org>
53060
53061         * gnulib-tool (func_create_testdir): Warn about duplicated
53062         dependencies.
53063
53064 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53065
53066         * modules/argmatch, modules/fatal, modules/obstack,
53067         modules/xalloc, modules/xgethostname: Sort dependencies by
53068         importance, not alphabetically.
53069
53070 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53071
53072         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53073         fails, so that the caller gets the proper errno.
53074
53075         * lib/readutmp.c (read_utmp): Likewise.
53076         Check for fstat error.  Close stream and free storage
53077         when failing.
53078
53079 2003-09-14  Karl Berry  <karl@gnu.org>
53080
53081         * config/srclist.txt (strdup.c): disable for c89 changes.
53082
53083 2003-09-14  Jim Meyering  <jim@meyering.net>
53084
53085         * lib/getloadavg.c: Correct cpp indentation.
53086         * lib/strdup.c: Likewise.
53087         * lib/vasnprintf.c: Likewise.
53088
53089 2003-09-14  Bruno Haible  <bruno@clisp.org>
53090
53091         * modules/fwriteerror: New file.
53092         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53093
53094 2003-09-14  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/fwriteerror.h: New file.
53097         * lib/fwriteerror.c: New file.
53098
53099 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53100
53101         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53102         modules/xgethostname, modules/xalloc: Depend on exit.
53103
53104 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53105
53106         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53107
53108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53109         and AC_MINIX, too, so that their extensions are available.
53110
53111         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53112         This macro has been superseded by gl_BACKUPFILE.
53113
53114         More patches to assume C89 or better.
53115
53116         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53117
53118         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53119         unconditionally.
53120         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53121         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53122         Include <string.h>, <stdlib.h> unconditionally.
53123         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53124         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53125         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53126         headers or for string.h.
53127         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53128         or strtoul.
53129
53130         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53131         headers.
53132         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53133         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53134         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53135         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53136         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53138         memcpy, memset.
53139         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53140         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53141         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53142         strtol.
53143         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53144         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53146         strtoul.
53147
53148 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53149
53150         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53151         * lib/obstack.c [!defined _LIBC]: Likewise.
53152         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53153         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53154         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53155
53156         More changes to assume C89 or better.
53157
53158         * lib/error.c (error_tail): Assume vprintf.
53159
53160         * lib/argmatch.c (getenv): Remove decl.
53161         * lib/progreloc.c (get_full_program_name): Define via prototype.
53162         * lib/setenv.c (clearenv): Likewise.
53163         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53164         needed.
53165         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53166         (malloc, memcpy): Remove decls.
53167         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53168         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53169         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53170         (memcpy): Remove macro.
53171         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53172         (__P): Remove.  All uses removed.
53173         (PTR): Remove.  All uses changed to void *.
53174         (CHAR_BIT, NULL): Remove.
53175         (spaces, zeros, memset_space, memset_zero)
53176         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53177         Remove.
53178         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53179         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53180         Define with prototype.
53181         Remove now-unnecessary prototype decl.
53182         (extra_args_spec): Assume ANSI C.  All uses changed.
53183         (extra_args_spec_iso): Remove.
53184         (my_strftime, emacs_strftimeu): Define via prototype.
53185         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53186         unconditionally.
53187         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53188         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53189         (strtoul, strtol): Remove decls.
53190         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53191         LONG_MAX): Remove.
53192         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53193         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53194         (LOCALE_PARAM_PROTO): New macro.
53195         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53196         (INTERNAL (strtol), strtol): Define with a prototype.
53197         (PARAMS): Remove.  All uses removed.
53198         * lib/tempname.c: Include <string.h> unconditionally.
53199         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53200         * lib/xgethostname.c (main): Define with a prototype.
53201         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53202         Include <stdlib.h> unconditionally.
53203         (calloc, malloc, realloc, free): Remove decls.
53204         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53205         Include <stdlib.h> unconditionally.  Sort include file names.
53206         (strtod): Remove.
53207         (xstrtod): Define with a prototype.
53208         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53209         (strtol, strtoul): Remove decls.
53210
53211 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53212
53213         More patches to assume C89 or better.
53214         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53215         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53216         string.h, memchr, STDC_HEADERS.
53217
53218 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53219
53220         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53221         Include <stdlib.h>, <string.h> unconditionally.
53222         Remove now-unnecessary cast to char *.
53223         * lib/strnlen.c: Include <string.h> unconditionally.
53224         * lib/yesno.c (yesno): Define with a prototype.
53225
53226 2003-09-11  Bruno Haible  <bruno@clisp.org>
53227
53228         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53229
53230 2003-09-10  Jim Meyering  <jim@meyering.net>
53231
53232         * lib/error.c: Correct indentation of cpp directives.
53233
53234 2003-09-10  Bruno Haible  <bruno@clisp.org>
53235
53236         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53237         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53238         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53239         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53240         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53241         <stdlib.h> and <string.h> checks.
53242         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53243         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53244
53245 2003-09-10  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/strcspn.c: Include <string.h> unconditionally.
53248         * lib/strpbrk.c: Include <string.h> unconditionally.
53249         * lib/strstr.c: Include <string.h> unconditionally.
53250         * lib/unicodeio.c: Include <string.h> unconditionally.
53251         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53252         * lib/unsetenv.c: Likewise.
53253         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53254         * lib/yesno.c: Include <stdlib.h> unconditionally.
53255         (rpmatch): Add prototype.
53256
53257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53258
53259         More patches to assume C89 or better.
53260         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53261         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53262         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53263         or for string.h.
53264         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53265         stdlib.h.
53266         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53267         C headers.
53268         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53269         string.h.
53270         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53271         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53272         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53273         or for string.h.
53274         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53275         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53276         C headers.
53277         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53278         memcpy.
53279         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53280         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53281         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53282         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53283         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53284         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53285         string.h, free.
53286         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53287         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53288         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53289         C headers, or for string.h.
53290         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53291         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53292         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53293         headers, memory.h, stdlib.h, string.h, strings.h.
53294         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53295         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53296         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53297         strchr.
53298         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53299         headers, memory.h, string.h.
53300         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53301         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53302         free.
53303         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53304         headers.
53305         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53306         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53307         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53308         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53309         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53310
53311 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53312
53313         More K&R removal.
53314
53315         * lib/acosl.c (main): Use a prototype.
53316         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53317         tanl.c: Likewise.
53318
53319         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53320
53321         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53322         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53323         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53324         with a prototype.
53325         * lib/getopt.c (const): Remove macro.
53326         Include <string.h> unconditionally.
53327         (my_index): Remove; all uses changed to strchr.
53328         (strlen): Remove decl.
53329         (exchange): Remove forward decl; no longer needed.
53330         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53331         Define with prototype.
53332         * lib/getopt1.c (const): Remove macro.
53333         (getopt_long, getopt_long_only, main): Define with prototype.
53334
53335         * lib/getugroups.c: Include <string.h> unconditionally.
53336
53337         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53338         (getusershell, setusershell, endusershell, readname, main):
53339         Define with prototypes.
53340
53341         * lib/group-member.c: Include group-member.h first.
53342         Include <stdlib.h> unconditionally.
53343
53344         * lib/hard-locale.c: Include hard-locale.h first.
53345         Include <stdlib.h>, <string.h> unconditionally.
53346
53347         * lib/hash.c (free, malloc): Remove decls.
53348         Include <stdlib.h> unconditionally.
53349
53350         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53351         (getenv): Do not declare.
53352
53353         * lib/idcache.c: Include <string.h> unconditionally.
53354
53355         * lib/long-options.c: Include long-options.h first, to test interface.
53356         Include <stdlib.h> unconditionally.
53357
53358         * lib/makepath.c: Include makepath.h first, to test interface.
53359         Include <stdlib.h> and <string.h> unconditionally.
53360
53361         * lib/linebuffer.c: Include <stdlib.h>.
53362         (free): Remove decl.
53363
53364         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53365         stddef.h. rpl_malloc returns void *, not char *.
53366         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53367         prototype.
53368
53369         * lib/md5.h: Include <limits.h> unconditionally.
53370         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53371         (__P): Remove; all uses removed.
53372         * lib/md5.c: Include "md5.h" first.
53373         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53374         md5_buffer, md5_process_bytes, md5_process_block):
53375         Define with prototypes.
53376         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53377         * lib/sha.c: Include "sha.h" first.
53378         Include <stdlib.h>, <string.h> unconditionally.
53379
53380         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53381         * lib/memcmp.c (__ptr_t): Likewise.
53382         * lib/memrchr.c (__ptr_t): Likewise.
53383         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53384         Include <string.h> unconditionally.
53385         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53386         * lib/memchr.c: Include <stdlib.h> unconditionally.
53387         * lib/memchr.c (LONG_MAX): Remove.
53388         * lib/memrchr.c (LONG_MAX): Likewise.
53389         * lib/memchr.c (__memchr): Define via a prototype.
53390         * lib/memrchr.c (__memrchr): Likewise.
53391         * lib/memcmp.c (__P): Remove, and remove all uses.
53392         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53393         Remove forward decls; no longer needed.
53394         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53395         Use types required by C89 in prototype.
53396
53397         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53398         * lib/savedir.c: Likewise.
53399         * lib/mkdir.c (free): Remove decl.
53400         * lib/rmdir.c (rmdir): Define with a prototype.
53401         * lib/savedir.c: Include savedir.h first, to test interface.
53402
53403         * lib/mktime.c (STDC_HEADERS): Remove.
53404         Include <stdlib.h>, <string.h> unconditionally.
53405
53406         * lib/modechange.c: Include <stdlib.h> unconditionally.
53407         (malloc): Remove decl.
53408
53409         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53410         (free): Remove decl.
53411
53412         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53413         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53414         (This type really should be intptr_t, but that's a C99ism.)
53415         (_obstack_memcpy): Remove: all uses changed to memcpy.
53416         Include <string.h> unconditionally.
53417         (struct obstack): Assume __STDC__ for types of members
53418         chunkfun, freefun, extra_arg.
53419         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53420         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53421         obstack_begin, obstack_specify_allocation,
53422         obstack_specify_allocation_with_arg, obstack_chunkfun,
53423         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53424         Remove unprototyped decls and the macros that use them.
53425         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53426         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53427         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53428         (defined __STDC__ && __STDC__)]:
53429         Remove nonprototyped code.
53430         Include <stdlib.h> unconditionally.
53431         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53432         _obstack_allocated_p, _obstack_free, obstack_free,
53433         _obstack_memory_used, print_and_abort):
53434         Define using prototypes.
53435         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53436         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53437         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53438         obstack_next_free, obstack_object_size, obstack_room) [0]:
53439         Remove unused, unprototyped code.
53440
53441         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53442
53443         * lib/physmem.c (physmem_total, physmem_available, main): Define
53444         with prototypes.
53445
53446         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53447         (main): Define with a prototype.
53448
53449         * lib/posixver.c (getenv): Remove decl.
53450
53451         * lib/putenv.c (malloc): Returns void *, not char *.
53452         Include <string.h> unconditionally.
53453         (strchr, memcpy, NULL): Do not define.
53454
53455         * lib/readtokens.c: Include readtokens.h first, to test interface.
53456         Include <stdlib.h>, <string.h> unconditionally.
53457         (init_tokenbuffer): Define with a prototype.
53458
53459         * lib/regex.c (PARAMS): Remove.  All uses removed.
53460         All uses of _RE_ARGS removed, too.
53461         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53462         unconditionally.
53463         (bzero): Assume memset exists.
53464         (memcmp, memcpy, NULL): Remove.
53465         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53466         char, or assignments to local vars of type signed char.
53467         (init_syntax_once, PREFIX(extract_number_and_incr),
53468         PREFIX(print_partial_compiled_pattern),
53469         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53470         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53471         PREFIX(regex_grow_registers), PREFIX(regex_compile),
53472         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53473         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53474         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53475         wcs_compile_range, byte_compile_range, truncate_wchar,
53476         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53477         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53478         count_mbs_length, wcs_re_match_2_internal,
53479         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53480         PREFIX(alt_match_null_string_p),
53481         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53482         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53483         regfree, PREFIX(extract_number)): Define with prototype.  Remove
53484         now-unnecessary declaration, if any.
53485         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53486         regcomp, regexec):
53487         Remove now-unnecessary casts among pointer types.
53488         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
53489
53490         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53491         (free): Remove decl.
53492
53493         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53494
53495         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53496         (free): Remove decl.
53497
53498         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53499         * lib/xgetcwd.c: Likewise.
53500
53501         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53502         (free): Remove decl.
53503
53504         * lib/strchrnul.c (strchrnul): Define with a prototype.
53505         Fix bug: c_in was not converted to char before searching.
53506
53507         The following changes are not K&R related:
53508
53509         * lib/group-member.h: Include <sys/types.h>, so that this file is
53510         self-contained.
53511         * lib/makepath.h: Likewise.
53512
53513         * lib/getusershell.c (readname, default_index, line_size, readname):
53514         Use size_t, not int, for sizes.
53515         (readname): If the size overflows, report an error instead of
53516         looping forever.
53517
53518 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53519
53520         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53521         libc.
53522
53523 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53524
53525         * README: New section: portability guidelines.
53526
53527 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53528
53529         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53530         C89 spec.
53531
53532 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53533
53534         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53535
53536 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53537
53538         Assume C89 or better; remove K&R cruft.
53539         A few of these changes were first proposed by Derek Robert Price
53540         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53541
53542         * lib/addext.c: Include <string.h> unconditionally.
53543         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53544         Don't declare getenv or malloc.
53545
53546         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53547         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53548         (NULL): Remove.
53549         (find_stack_direction, alloca): Use prototypes.
53550
53551         * lib/atexit.c (atexit): Define using a prototype.
53552
53553         * lib/basename.c, dirname.c, stripslash.c:
53554         Include <string.h> unconditionally.
53555
53556         * lib/bcopy.c: Include <stddef.h>.
53557         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53558
53559         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53560
53561         * lib/error.h (error, error_at_line, error_print_progname)
53562         [! (defined (__STDC__) && __STDC__)]: Remove decls.
53563         * lib/error.c: Include error.h first, to check interface.
53564         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53565         (VA_START): Remove; all uses changeed to va_start.
53566         (exit, strerror): Remove decls.
53567         (error_print_progname): Prototype uncondionally.
53568         Don't include <errno.h>; no longer needed.
53569         (private_strerror): Remove.
53570         (error_tail): Always define.
53571         (error, error_at_line): Assume C89 or better; always use prototypes.
53572         * lib/fatal.c: Include "fatal.h" first, to test interface.
53573         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53574         (VA_START): Remove; all uses changed to va_start.
53575         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53576         this case.
53577         (exit): Remove decl.
53578         (fatal): Prototype unconditionally.  Assume va_start works.
53579         Abort at end, to pacify gcc.
53580
53581         * lib/euidaccess.c (main): Define with a prototype.
53582
53583         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53584
53585         * lib/exitfail.c: Include <stdlib.h> unconditionally.
53586
53587         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
53588         prototypes.
53589         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53590         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53591         (getenv): Remove decl.
53592         (fnmatch): Define using a prototype.
53593         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53594         (FCT): Define using a prototype.
53595
53596         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53597
53598         * lib/gethostname.c: Include <stddef.h>.
53599         (gethostname): Define with prototype.  Length is size_t, not int.
53600
53601 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53602
53603         Assume C89 or better; remove K&R cruft.
53604         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53605         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53606         string.h, getenv, malloc.
53607         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53608         headers.
53609         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53610         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53611         do not check for strerror.
53612         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53613         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53614         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53615         do not check for doprnt or vprintf.
53616         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
53617         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53618
53619 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53620
53621         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53622         getversion.c should have been removed then, but was accidentally
53623         preserved.
53624
53625         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53626         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53627
53628 2003-09-08  Karl Berry  <karl@gnu.org>
53629
53630         * config/config.sub, config.guess, srclistvars.sh: update from savannah
53631                 config, forget about prep.
53632
53633         * config/depcomp, missing: update from automake.
53634
53635 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53636
53637         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
53638         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53639
53640 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53641
53642         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53643         copy_tm_result.  Bug reported by Simon Josefsson in
53644         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53645
53646 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53647
53648         * m4/time_r.m4: New file.
53649         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53651         is. Check for timegm declaration.
53652         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53653         Do not check for gmtime_r.
53654         Replace mktime if __mktime_internal does not exist and if mktime
53655         hasn't been replaced already.
53656
53657 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53658
53659         * lib/time_r.c, lib/time_r.h: New files.
53660
53661         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53662         __localtime_r.
53663         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
53664         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53665
53666         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53667         __gmtime_r.
53668         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53669         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53670         Include <time_r.h>.
53671
53672         * lib/timegm.c: Switch to glibc implementation, with the following
53673         changes:
53674         [defined HAVE_CONFIG_H]: Include <config.h>.
53675         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53676         (__mktime_internal) [!defined _LIBC]: New decl.
53677         (__gmtime_r) [!defined _LIBC]: New macro and function.
53678         (timegm): Use a prototype, since gnulib assumes C89.
53679         Do not bother declaring tmp to be const, as it's not really usefu.
53680         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53681         (timegm): Declare only if HAVE_DECL_TIMEGM.
53682
53683 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53684
53685         * MODULES.html.sh (func_all_modules): Add time_r.
53686         * modules/time_r: New file.
53687         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53688         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
53689
53690 2003-09-03  Paul Eggert  <eggert@twinsun.com>
53691
53692         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53693         Bug reported by Lute Kamstra in
53694         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53695
53696         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53697         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
53698         course with correspondingly smaller numbers for tomorrow and
53699         yesterday.  From Tadayoshi Funaba.  Originally installed into
53700         sh-utils on 1999-08-07, but the patch got lost (I guess during the
53701         coreutils merge?).
53702
53703 2003-08-31  Simon Josefsson  <jas@extundo.com>
53704
53705         * modules/timegm: New file.
53706         * MODULES.html.sh (func_all_modules): Add timegm.
53707
53708 2003-08-31  Simon Josefsson  <jas@extundo.com>
53709
53710         * m4/timegm.m4: New file.
53711
53712 2003-08-31  Simon Josefsson  <jas@extundo.com>
53713
53714         * lib/timegm.h: New file.
53715         * lib/timegm.c: New file.  Based on
53716         wget-1.8.2/src/http.c:mktime_from_utc.
53717
53718 2003-08-31  Karl Berry  <karl@gnu.org>
53719
53720         * lib/argp.h: update from libc.
53721
53722 2003-08-28  Bruno Haible  <bruno@clisp.org>
53723
53724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
53725         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
53726         followed by '#define fnmatch fnmatch_posix' gives an error.
53727
53728 2003-08-28  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
53731         warning on QNX, which defines O_BINARY to 000000.
53732
53733 2003-08-27  Jim Meyering  <jim@meyering.net>
53734
53735         * m4/mkstemp.m4: Require that the system mkstemp be able to create
53736         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
53737         would fail after 32.  Reported by Danny Levinson.  Details here:
53738         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
53739
53740 2003-08-24  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
53743         MSVC7 <stdio.h> is included later.
53744
53745 2003-08-22  Simon Josefsson  <jas@extundo.com>
53746
53747         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
53748
53749 2003-08-20  Karl Berry  <karl@gnu.org>
53750
53751         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
53752
53753 2003-08-20  Bruno Haible  <bruno@clisp.org>
53754
53755         * modules/progname: New file.
53756         * MODULES.html.sh (func_all_modules): Add progname.
53757
53758 2003-08-20  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/progname.h: New file, from GNU gettext.
53761         * lib/progname.c: New file, from GNU gettext.
53762         * lib/progreloc.c: New file, from GNU gettext.
53763
53764 2003-08-19  Jim Meyering  <jim@meyering.net>
53765
53766         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
53767         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
53768
53769 2003-08-19  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
53772         more.
53773
53774 2003-08-19  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/xstrdup.c: Assume <string.h> exists.
53777
53778 2003-08-18  Paul Eggert  <eggert@twinsun.com>
53779
53780         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
53781         in makefile rules.
53782
53783 2003-08-18  Jim Meyering  <jim@meyering.net>
53784
53785         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
53786         * m4/lib-ld.m4: Likewise.
53787
53788 2003-08-18  Jim Meyering  <jim@meyering.net>
53789
53790         * lib/setenv.h: Indent nested cpp directive.
53791         * lib/vasnprintf.c: Remove trailing blanks.
53792
53793 2003-08-17  Simon Josefsson  <jas@extundo.com>
53794
53795         * modules/xstrndup: New file.
53796         * MODULES.html.sh (func_all_modules): Add xstrndup.
53797
53798 2003-08-17  Simon Josefsson  <jas@extundo.com>
53799
53800         * modules/argp: Fix autoconf macro name. Add more dependencies.
53801
53802 2003-08-17  Simon Josefsson  <jas@extundo.com>
53803
53804         * m4/xstrndup.m4: New file.
53805
53806 2003-08-17  Simon Josefsson  <jas@extundo.com>
53807
53808         * m4/argp.m4: New file.
53809
53810 2003-08-17  Simon Josefsson  <jas@extundo.com>
53811             Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/xstrndup.h: New file.
53814         * lib/xstrndup.c: New file.
53815
53816 2003-08-17  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/strndup (Files, Include): Add lib/strndup.h.
53819
53820 2003-08-17  Bruno Haible  <bruno@clisp.org>
53821
53822         * modules/euidaccess (Files): Add lib/euidaccess.h.
53823
53824 2003-08-17  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/strndup.h: New file.
53827
53828 2003-08-17  Bruno Haible  <bruno@clisp.org>
53829
53830         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
53831         like AC_GNU_SOURCE.
53832         * modules/extensions (configure.ac): Comment out the invocation of
53833         gl_USE_SYSTEM_EXTENSIONS.
53834
53835 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53836
53837         Merges from coreutils, etc.
53838         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
53839         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
53840         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
53841         fixing a typo.
53842         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
53843         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
53844
53845 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53846
53847         Document merge from coreutils.
53848         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
53849         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
53850         * modules/utime: Add m4/utimes-null.m4.
53851
53852 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53853
53854         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
53855         space, undoing this 2003-08-12 change:
53856         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
53857
53858 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53859
53860         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
53861         strtoul.c from libc, undoing this 2003-08-12 change:
53862         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
53863
53864 2003-08-16  Jim Meyering  <jim@meyering.net>
53865
53866         Merges from coreutils.
53867         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
53868         prefix.  Adjust cache variables similarly.  Create 500 rather than
53869         just 300 files, to exercise bug on Darwin6.5, too.
53870         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
53871         $missing_dir.
53872         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
53873         AM_SYS_POSIX_TERMIOS.
53874         Reported by mkc@mathdogs.com.
53875         Also change use of $am_cv_sys_posix_termios
53876         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
53877         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
53878         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
53879         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
53880         in /proc/mounts until it finds one with matching device number.  This
53881         is unnecessary when the FILE argument *is* a mount point.  No stat call
53882         is necessary in that case.  So, disable the statvfs-testing code on
53883         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
53884         as RedHat bug# 84846.
53885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
53886         to 1MB, so as not to render systems with no stack size limit (e.g.,
53887         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
53888         Include <unistd.h>.  On some systems,
53889         it is required for the definition of _SC_PAGESIZE.
53890
53891 2003-08-16  Jim Meyering  <jim@meyering.net>
53892
53893         Merge from coreutils.
53894         * lib/xstrtoimax.c: #else #if -> #elif.
53895         * lib/xstrtoumax.c: Likewise.
53896
53897 2003-08-16  Jim Meyering  <jim@meyering.net>
53898
53899         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
53900         * m4/utimes.m4: Removed.
53901         * m4/utimes-null.m4: Renamed from utimes.m4.
53902
53903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
53904         to 1MB, so as not to render systems with no stack size limit (e.g.,
53905         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
53906         Include <unistd.h>.  On some systems,
53907         it is required for the definition of _SC_PAGESIZE.
53908
53909 2003-08-16  Jim Meyering  <jim@meyering.net>
53910         and Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         Merges from coreutils, etc.
53913
53914         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
53915         using the latest version from cvs.  This avoids problems with #line
53916         directives using a vendor (Sun) compiler.
53917         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
53918         Don't set GETGROUPS_LIB here; now it's
53919         done via getgroups.m4's wrapper function.
53920         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
53921         rather than just in sh-util/configure.in, so that the
53922         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
53923         same.
53924         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
53925         AC_FUNC_GETLOADAVG where to find getloadavg.c.
53926         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
53927         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
53928         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
53929         Remove code that is now done by the newly-required macros.
53930         Append $(EXEEXT) to DF_PROG.
53931         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
53932         Do not invoke or require the following here,
53933         since prereq.m4 or some gnulib .m4 now does this for us:
53934         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
53935         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
53936         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
53937         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
53938         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
53939         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
53940         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
53941         AC_FUNC_OBSTACK.
53942         Do not replace the following functions, as this is now the job
53943         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
53944         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
53945         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
53946         atexit getpass, strdup, getpagesize.
53947         Replace 'raise'.
53948         Do not check for the following functions, as this is now the job
53949         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
53950         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
53951         setregid.
53952         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
53953         Check for sys/sysctl.h.
53954         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
53955         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
53956         of checking for ssize_t ourselves.
53957
53958         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
53959         Require every macro that gnulib/modules/* suggests for us.
53960         (jm_PREREQ_ADDEXT): New macro.
53961         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
53962         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
53963
53964         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
53965         (gl_PHYSMEM): Use it.
53966         Also check for `table' function.
53967         Check for new headers and functions.
53968         Add check for sys/sysmp.h.
53969         With suggestions from Kaveh Ghazi.
53970         Ignore headers that are present but cannot be compiled.  This
53971         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
53972         C 5.4.
53973
53974 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53975
53976         Document merge from coreutils.
53977         * modules/userspec: Depend on posixver.
53978         * modules/strftime: Depend on tzset.
53979
53980 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53981
53982         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
53983         rather than tab, after '#' in shell-script copyright notices.
53984         Suggested by Bruno Haible.
53985
53986 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53987
53988         * config/srclist-update: Use three spaces, rather than tab, after '#'
53989         in shell-script copyright notices.  Suggested by Bruno Haible.
53990         Remove unnecessary parenthesization in regular expression.
53991
53992 2003-08-15  Jim Meyering  <jim@meyering.net>
53993
53994         Merge from coreutils.
53995         * lib/xgethostname.c: Include <stdlib.h>.
53996         (xghostname): Don't exit for anything other than memory-related
53997         failure; just return NULL.
53998         * lib/userspec.c: Include "posixver.h".
53999         (parse_user_spec): Accept `.' as a separator only
54000         in pre-POSIX-200112 mode.
54001         * lib/strtoimax.c: Use #elif rather than #else #if.
54002         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54003         Remove function, now that we can rely on a working tzset function.
54004         [!_LIBC]: Ensure that the required autoconf test has been run.
54005         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54006         Use underlying_strftime for %r.
54007         * lib/sha.c: Merge in some clean-up and optimization changes from
54008         glibc.
54009         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54010         Ensure that it is a multiple of 64.
54011         Rearrange loop exit tests so as to avoid performing an
54012         additional fread after encountering an error or EOF.
54013         * lib/realloc.c: Update copyright date.
54014
54015 2003-08-15  Jim Meyering  <jim@meyering.net>
54016         and Paul Eggert  <eggert@twinsun.com>
54017
54018         Merge from coreutils.
54019         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54020         member but strut utmpx does not.  Needed for AIX 4.3.3.
54021         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54022
54023 2003-08-15  Jim Meyering  <jim@meyering.net>
54024         and Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         Merges from coreutils, etc.
54027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54028         Require gl_FUNC_TZSET_CLOBBER.
54029         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54030         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54031         members.
54032
54033 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54034
54035         Help the merge from coreutils.
54036         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54037         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54038         * m4/tzset.m4: Use it too.
54039
54040 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54041
54042         * modules/tzset: New file.
54043
54044 2003-08-14  Jim Meyering  <jim@meyering.net>
54045
54046         Merges from coreutils.
54047         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54048         variable names, rather than @FNMATCH_H@.
54049         * modules/alloca: Likewise for $(ALLOCA_H).
54050
54051         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54052         the three copies of the literal target, `fnmatch.h'.
54053         * modules/alloca (alloca.h): Likewise.
54054
54055 2003-08-14  Jim Meyering  <jim@meyering.net>
54056
54057         Merge from coreutils.
54058         * m4/tzset.m4: New file.
54059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54060         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54061         otherwise, AIX 5.1 systems would end up using the latter.
54062         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54063         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54064         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54065         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54066
54067 2003-08-14  Jim Meyering  <jim@meyering.net>
54068
54069         Merge from coreutils.
54070         * lib/obstack.h: Whitespace changes.
54071         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54072         and xcalloc return values.
54073         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54074         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54075         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54076         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54077         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54078         error from mntctl.
54079         Use mntctl's return value to drive the entry-processing loop, since
54080         we can't rely on the value of the vmt_length member in the last
54081         entry.  On some systems doing so could result in exhausting
54082         virtual memory.  Based in part on a patch from Mike Jetzer.
54083
54084 2003-08-14  Jim Meyering  <jim@meyering.net>
54085         and Paul Eggert  <eggert@twinsun.com>
54086
54087         Merges from coreutils, plus other fixes.
54088         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54089         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54090         for credits and details.  Thanks to Kaveh Ghazi for helping
54091         to keep these files in sync.
54092         (ARRAY_SIZE): Define it.
54093         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54094         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54095         (memcasecmp): Don't assume size_t fits in unsigned int.
54096         Remove casts and duplicate code.
54097         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54098         (memcpy): Remove definition.
54099         Merge in some clean-up and optimization changes from glibc.
54100         [BLOCKSIZE]: Move definition to top of file.
54101         Ensure that it is a multiple of 64.
54102         Rearrange loop exit tests so as to avoid performing an
54103         additional fread after encountering an error or EOF.
54104         * lib/md5.h (md5_uintptr): Define.
54105         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54106         return to the initial working directory.  Preserve errno
54107         for caller.
54108         * lib/idcache.c: Include "xalloc.h".
54109         (xmalloc, xrealloc): Remove decls.
54110         (getuser): Remove casts no longer required in C89.
54111         * lib/human.c: Include stdio.h, for sprintf.
54112         * lib/group-member.c: Include "xalloc.h".
54113         (xmalloc, xrealloc): Remove decls.
54114         (get_group_info): Remove casts no longer required in C89.
54115         * lib/getusershell.c (readname): Remove casts no longer required in
54116         C89.
54117         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54118         * lib/getline.c: Whitespace fix, from coreutils.
54119
54120 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54121
54122         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54123         Check for isascii.
54124
54125         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54126         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54127         Undo previous (whitespace-only) change.
54128
54129 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54130
54131         * lib/exclude.c: Include <ctype.h>
54132         (IN_CTYPE_DOMAIN): New macro.
54133         (is_space): New fn.
54134         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54135         and empty lines.
54136
54137         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54138         Undo previous (whitespace-only) change.
54139
54140 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54141
54142         * config/srclist-update: Change update back to the old behavior,
54143         leaving whitespace alone.  Use one 'sed' command rather than a
54144         pipeline.
54145         (fixlicense): Now a variable, not a function.
54146         (remove_trailing_blanks): Remove.
54147         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54148         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54149         Undo previous (whitespace-only) change.
54150
54151 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54152
54153         Merge from coreutils.
54154         * modules/euidaccess: Add lib_SOURCES, include for new
54155         file euidaccess.h
54156
54157 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54158
54159         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54160         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54161         Normalize leading white space and remove trailing white space.
54162
54163         Merge from coreutils
54164         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54165
54166         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54167         0.12.1.  These files are now being upgraded automatically by
54168         ../config/srclist-update.
54169
54170 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54171
54172         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54173         Normalize leading white space and remove trailing white space.
54174         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54175         notice, as per ../config/srclist-update.
54176
54177         Merge from coreutils.
54178         * lib/euidaccess.h: New file.
54179         * lib/euidaccess.c: Include it.
54180         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54181         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54182         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54183
54184 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54185
54186         * config/srclist-update: Add copyright notice.
54187         (remove_id_lines, remove_trailing_blanks): New constants.
54188         (fixfile): Use them to normalize spacing a bit in copied files.
54189         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54190         Normalize leading white space and remove trailing white space.
54191
54192         * config/texinfo.tex: Sync with texinfo.
54193
54194         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54195         strtoul.c from libc, to merge coreutils whitespace changes.
54196
54197         * config/srclist.txt: Get the following m4 files from gettext:
54198         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54199         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54200         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54201         wint_t.m4.
54202
54203 2003-08-12  Karl Berry  <karl@gnu.org>
54204
54205         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54206         been made.
54207
54208 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54209
54210         * modules/gnu-source, m4/gnu-source.m4:
54211         Remove; we're assuming Autoconf 2.54 or later now.
54212         Suggested by Bruno Haible.
54213         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54214
54215 2003-08-11  Bruno Haible  <bruno@clisp.org>
54216
54217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54218
54219 2003-08-11  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54222         (vasnprintf): Use it instead of wcslen.
54223
54224 2003-08-11  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54227         value to ensure that _Bool promotes to int. Use #define for _Bool when
54228         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54229
54230 2003-08-10  Karl Berry  <karl@gnu.org>
54231
54232         * lib/regex.h: update from libc (whitespace fix).
54233
54234 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54235
54236         Merge some files from coreutils.  These changes were
54237         originally made by Jim Meyering.
54238         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54239         many older Unixes require this.
54240         * lib/alloca.c (alloca): Remove cast to argument of free;
54241         no longer needed in C89.
54242         * lib/alloca_.h, regex.h: Fix white space to match
54243         what GNU indent does.
54244
54245 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54246
54247         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54248         apparently Emacs's Unicode mode got confused before my 2003-08-05
54249         checkin.
54250
54251 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54252
54253         * m4/extensions.m4: New file.
54254         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54255         Require gl_USE_SYSTEM_EXTENSIONS.
54256         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54257         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54258
54259 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54260
54261         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54262         * modules/extensions, modules/gnu-source: New files.
54263         * modules/timespec, modules/unlocked-io: Depend on extensions.
54264
54265 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54266
54267         * modules/restrict: New file.
54268         * MODULES.html.sh (func_all_modules): Add restrict.
54269         * modules/regex: Depend on restrict.
54270
54271 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54272
54273         * m4/restrict.m4: New file.
54274         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54275
54276 2003-08-07  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54279         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54280
54281 2003-08-07  Bruno Haible  <bruno@clisp.org>
54282
54283         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54284         makes the module 'getndelim2' compatible with the module 'getline'.
54285
54286 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54287
54288         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54289         byte with "\201" to avoid glitches when editing that source file
54290         with multi-gnome-terminal.
54291
54292 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54293
54294         * lib/bumpalloc.h: Remove.
54295
54296 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54297
54298         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54299         * modules/bumpalloc: Remove.
54300
54301 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54302
54303         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54304         GNU coding style.
54305
54306         Merge from coreutils.
54307         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54308         1. From glibc.
54309         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54310         from Karl Berry, implemented by Jim Meyering.
54311         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54312         from Dmitry V. Levin.
54313         Remove anachronistic cast of xrealloc.
54314         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54315         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54316         type. Otherwise, it wouldn't compile with at least /bin/cc on
54317         ymp-cray-unicos9.0.2.X.
54318         Combine two mostly-identical uses of alloca into one.
54319         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54320
54321 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54322
54323         [From Emacs.]
54324
54325         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54326         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54327         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54328         obsolete NLIST_NAME_UNION.
54329         [__GNU__]: Undef BSD and FSCALE.
54330         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54331
54332 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54333
54334         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54335         an enum type, so that it's guaranteed to promote to int.  See:
54336         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54337
54338 2003-08-03  Karl Berry  <karl@gnu.org>
54339
54340         * config/depcomp: update from automake.
54341
54342 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54343
54344         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54345         (strerror): Don't assume that a printable int fits in 14 bytes.
54346
54347 2003-07-31  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/getpass-gnu: New file.
54350         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54351
54352 2003-07-31  Bruno Haible  <bruno@clisp.org>
54353
54354         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54355
54356 2003-07-24  Karl Berry  <karl@gnu.org>
54357
54358         * config/missing: update from automake.
54359
54360 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54361             Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54364         * lib/getline.c (getline, getdelim): Likewise.
54365         Remove _GNU_SOURCE define; now it's defined in config.h through
54366         m4/getline.m4.
54367
54368 2003-07-23  Karl Berry  <karl@gnu.org>
54369
54370         * config/config.sub: update from prep.
54371
54372 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54373
54374         * modules/xalloc (Depends-on): Add exitfail.
54375         * modules/xmemcoll: Likewise.
54376
54377 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54378
54379         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54380         over-parenthesization in macros.
54381
54382         Sync with coreutils.
54383
54384         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54385         required by C99.
54386
54387         Use `exit_failure' for xalloc and xmemcoll instead of their own
54388         private exit-failure variables.
54389         * lib/xalloc.h (xalloc_exit_failure): Remove.
54390         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54391         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54392         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54393         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54394         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54395
54396 2003-07-20  Jim Meyering  <jim@meyering.net>
54397
54398         * modules/closeout (Depends-on): Add exitfail.
54399         Suggestion from Bruno Haible.
54400
54401 2003-07-19  Karl Berry  <karl@gnu.org>
54402
54403         * config/config.sub: update from prep.
54404
54405 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54406
54407         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54408         Remove.
54409         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54410         to test that it can stand by itself.  Include "exitfail.h".
54411         Clients should set exit_failure instead.
54412         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54413
54414 2003-07-18  Bruno Haible  <bruno@clisp.org>
54415
54416         * modules/getndelim2: New file.
54417         * modules/getline: Share files with module getndelim2.
54418         * modules/getnline: Depend on getndelim2 instead of sharing files with
54419         it. Add getnline.c to lib_SOURCES.
54420         * MODULES.html.sh (func_all_modules): Add getndelim2.
54421
54422 2003-07-18  Bruno Haible  <bruno@clisp.org>
54423
54424         * m4/getndelim2.m4: New file.
54425         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54426         invoke gl_PREREQ_GETNDELIM2.
54427         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54428         gl_PREREQ_GETNDELIM2.
54429         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54430         gl_GETNDELIM2.
54431
54432 2003-07-18  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/getndelim2.h: New file.
54435         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54436         getndelim2.h.
54437         (getndelim2): Make non-static. Change return type to ssize_t.
54438         * lib/getline.h: Change argument names.
54439         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54440         * lib/getnline.c: Include getndelim2.h.
54441
54442 2003-07-18  Andreas Schwab  <schwab@suse.de>
54443
54444         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54445
54446 2003-07-17  Karl Berry  <karl@gnu.org>
54447
54448         * config/config.sub: update from prep.
54449
54450 2003-07-17  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/getnline: New file.
54453         * modules/getline: Add lib/getndelim2.c to source file list.
54454         * MODULES.html.sh (func_all_modules): Add getnline.
54455
54456 2003-07-17  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/getnline.m4: New file.
54459
54460 2003-07-17  Bruno Haible  <bruno@clisp.org>
54461
54462         * m4/Makefile.am.in: Remove file.
54463         * m4/Makefile.am: Remove file.
54464         * m4/Makefile.in: Remove file.
54465
54466 2003-07-17  Bruno Haible  <bruno@clisp.org>
54467
54468         * lib/getnline.h: New file.
54469         * lib/getnline.c: New file.
54470         * lib/getndelim2.c: New file, extracted from getline.c.
54471         (getndelim2): Renamed from getdelim2, with added nmax argument.
54472         * lib/getline.c: Include getndelim2.c.
54473         (getdelim2): Moved out to getndelim2.c.
54474         (getline, getdelim): Update.
54475
54476 2003-07-17  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/Makefile.am: Remove file.
54479         * lib/Makefile.in: Remove file.
54480
54481 2003-07-17  Bruno Haible  <bruno@clisp.org>
54482
54483         * configure.in: Remove file.
54484         * Makefile.in: Remove file.
54485
54486 2003-07-17  Bruno Haible  <bruno@clisp.org>
54487
54488         * MODULES.html.sh: Put the </BODY> right before </HTML>.
54489
54490 2003-07-16  Karl Berry  <karl@gnu.org>
54491
54492         * config/srclist-update: was running fixlicense twice, which caused
54493                 texinfo.tex to be nullified for some reason.  Simplify,
54494                 $gplsrc is no longer needed as far as I can see?
54495
54496 2003-07-16  Jim Meyering  <jim@meyering.net>
54497
54498         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
54499
54500 2003-07-15  Paul Eggert  <eggert@twinsun.com>
54501
54502         * config/srclist.txt: Get the following files from gettext-runtime/intl
54503         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54504         ref-del.sin.  From Bruno Haible.
54505         * config/srclist-update (fixfile): Change grep pattern again, since the
54506         previous fix didn't work (there was another trailing $).  Use
54507         '[$]' to escape the $s.
54508
54509 2003-07-15  Karl Berry  <karl@gnu.org>
54510
54511         * lib/vasnprintf.c: update from gettext.
54512
54513 2003-07-15  Karl Berry  <karl@gnu.org>
54514
54515         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54516         gets expanded when surrounded by '$'.
54517
54518 2003-07-15  Jim Meyering  <jim@meyering.net>
54519
54520         * modules/save-cwd: Don't depend on error.  From Derek Price.
54521
54522 2003-07-15  Jim Meyering  <jim@meyering.net>
54523
54524         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54525
54526 2003-07-14  Simon Josefsson  <jas@extundo.com>
54527
54528         * modules/mempcpy: New file.
54529         * MODULES.html.sh (func_all_modules): Add mempcpy.
54530
54531 2003-07-14  Simon Josefsson  <jas@extundo.com>
54532
54533         * m4/mempcpy.m4: New file.
54534
54535 2003-07-14  Simon Josefsson  <jas@extundo.com>
54536
54537         * lib/mempcpy.h: New file.
54538         * lib/mempcpy.c: New file.
54539
54540 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54541
54542         * modules/getdate, modules/posixtm: Depend on mktime.
54543
54544 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54545
54546         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54547         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54548         unicodeio.c, unicodeio.h, unlocked-io.h:
54549         Switch from LGPL to GPL.
54550
54551 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54552
54553         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54554         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54555         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54556         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54557         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
54558         updated automatically by ../config/srclist-update.  This changes
54559         their license from LPGL to GPL.
54560
54561 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54562
54563         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
54564         assumed to refer to the root of the most recent stable gettext version.
54565         * config/srclistvars.sh: Add defaults for eggert.
54566         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54567         Match "This program" as well as "The program".  This is needed
54568         for gettext.
54569
54570 2003-07-14  Jim Meyering  <jim@meyering.net>
54571
54572         Don't emit diagnostics.  Let callers do that.
54573         * lib/save-cwd.c: Don't include "error.h".
54574         (save_cwd): Don't call error.  Ensure that errno is valid
54575         when returning nonzero.
54576
54577         * lib/save-cwd.h (restore_cwd): Update prototype.
54578         * lib/save-cwd.c (restore_cwd): Remove two parameters.
54579         Simplify.  Don't call error upon failure.  Let callers do that.
54580         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54581         when auditing is enabled.  But don't bother updating the #if.
54582
54583 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
54584
54585         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54586         it breaks C++ compilation.
54587         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54588
54589 2003-07-10  Simon Josefsson  <jas@extundo.com>
54590
54591         * modules/strchrnul (Makefile.am): Add strchrnul.h.
54592
54593 2003-07-10  Jim Meyering  <jim@meyering.net>
54594
54595         * m4/clock_time.m4: Remove trailing blank.
54596         * m4/intmax_t.m4: Likewise.
54597
54598 2003-07-10  Jim Meyering  <jim@meyering.net>
54599
54600         * lib/vasnprintf.c: Remove trailing blanks.
54601         Make cpp indentation consistent.
54602
54603 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54604
54605         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54606         posixver.c, strftime.c, strnlen.c, strverscmp.c:
54607         Switch from LGPL to GPL.
54608
54609 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54610
54611         * config/srclist.txt: Sort sublists.  Add
54612         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54613         that differ from gnulib for one reason or another; we'd like this list
54614         to be smaller but for now let's document what we have.
54615
54616 2003-07-08  Paul Eggert  <eggert@twinsun.com>
54617
54618         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54619         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
54620         and sweeter "eval x=$x".
54621         * config/srclist.txt: Get lib/argp* from glibc.
54622
54623 2003-07-07  Paul Eggert  <eggert@twinsun.com>
54624
54625         * lib/mktime.c: Fix some boundary cases and remove need for floating
54626         point.
54627
54628         Issue a compile-time diagnostic if time_t is floating point, or if
54629         two's complement arithmetic is not in effect, or if arithmetic
54630         right shift does not propagate the sign.  These assumptions were
54631         all in the original code but they weren't checked.
54632
54633         (TIME_T_MIDPOINT, verify): New macros.
54634         (__isleap): Remove; it has integer overflow problems.
54635         (leapyear): New function, without those problems.
54636         (ydhms_tm_diff): Remove; splitting into two parts.
54637         (ydhms_diff): New function, containing the arithmetic part of
54638         the old ydhms_tm_diff function.  Issue a compile-time
54639         diagnostic if we are not using C99 integer division.
54640         Avoid casts when possible.
54641         (guess_time_tm): New function, containing the checking part of
54642         the old ydhms_tm_diff function.  Return the new value, rather than
54643         the difference between it and the old.  Accept a new argument T
54644         so that *T specifies the old value.  Check for overflow in the result.
54645
54646         (__mktime_internal): Use a time_t offset, not a long int offset.
54647         This undoes the 2003-06-04 change, which is no longer needed now
54648         that we have better overflow checking.
54649         (localtime_offset): Likewise.
54650
54651         (__mktime_internal): Avoid harmful overflow on hosts where time_t
54652         and long are 64-bit but int is only 32-bit.
54653         (ydhms_diff): Use long int to store year1 and yday1.
54654         Issue a compile-time diagnostic if long int is not wide enough.
54655
54656         (__mktime_internal): Use long int to store adjusted year and yday.
54657         Use plain C rather than preprocessor commands, if that doesn't
54658         affect efficiency.
54659         Check for overflow (and try to repair) after each probe
54660         rather than checking only at the very end.  This avoids some bugs
54661         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54662         does not equal GMT offset at maximum time).
54663         Use integer to check for overflow rather than floating point; this
54664         is more portable to non-IEEE hosts, and is a tad faster.
54665         When we detect that we are oscillating between two values,
54666         don't check whether tm_isdst has the requested value, since
54667         we already know the answer.  When tm_isdst has the wrong value,
54668         use a different heuristic to find the right one, based on the
54669         extreme values actually observed in practice in tz2003a,
54670         rather than the (overly optimistic) "previous 3 calendar quarters".
54671
54672         (not_equal_tm, print_tm, check_result): Use "const T" rather than
54673         "T const" to accommodate glibc style.
54674         (check_result): Use less-confusing report format.  "long" -> "long int.
54675         (main): Likewise.
54676         Don't loop if the iteration overflows time_t.
54677         Allow a negative step in the iteration.
54678
54679 2003-07-06  Karl Berry  <karl@gnu.org>
54680
54681         * config/depcomp: update from automake.
54682         * config/config.sub: update from prep.
54683
54684 2003-07-03  Karl Berry  <karl@gnu.org>
54685
54686         * config/config.guess: update from prep.
54687
54688 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54689
54690         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54691         xreadlink.c now includes it unconditionally.
54692
54693 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54694
54695         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54696         having it depend on HAVE_SYS_TYPES_H.
54697
54698 2003-07-01  Bruno Haible  <bruno@clisp.org>
54699
54700         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54701         <sys/types.h> should be sufficient.
54702         Reported by Paul Eggert.
54703
54704 2003-06-26  Karl Berry  <karl@gnu.org>
54705
54706         * config/depcomp: update from automake.
54707
54708 2003-06-26  Bruno Haible  <bruno@clisp.org>
54709
54710         * modules/human: Depend on module stdbool.
54711
54712 2003-06-25  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/readlink: New file.
54715         * modules/xreadlink: Depend on it.
54716         * MODULES.html.sh (func_all_modules): Add readlink.
54717
54718 2003-06-25  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/readlink.m4: New file.
54721
54722 2003-06-25  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/readlink.c: New file.
54725
54726 2003-06-22  Karl Berry  <karl@gnu.org>
54727
54728         * config/srclist.txt: update mkinstalldirs from automake.
54729         * config/mkinstalldirs: update.
54730
54731 2003-06-22  Bruno Haible  <bruno@clisp.org>
54732
54733         Portability to mingw32.
54734         * m4/ssize_t.m4: New file, from GNU gettext.
54735         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
54736         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
54737
54738 2003-06-22  Bruno Haible  <bruno@clisp.org>
54739
54740         * modules/safe-read: Add m4/ssize_t.m4.
54741         * modules/xreadlink: Add m4/ssize_t.m4.
54742
54743 2003-06-20  Bruno Haible  <bruno@clisp.org>
54744
54745         Assume C89, so PARAMS isn't needed.
54746         * lib/unicodeio.h (PARAMS): Remove.
54747         * lib/unicodeio.c: Don't use PARAMS.
54748
54749 2003-06-18  Karl Berry  <karl@gnu.org>
54750
54751         * config/config.{guess,sub}: update from prep.
54752
54753 2003-06-18  Jim Meyering  <jim@meyering.net>
54754
54755         Merge changes from coreutils.
54756         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
54757         Remove explicit declarations of xmalloc and realloc.
54758         Include xalloc.h.
54759         (read_utmp): Remove anachronistic cast of xmalloc.
54760
54761 2003-06-17  Paul Eggert  <eggert@twinsun.com>
54762
54763         Assume C89, so PARAMS isn't needed.
54764         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
54765         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
54766         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
54767         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
54768         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
54769         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
54770         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
54771         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
54772         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
54773         lib/xstrtod.h, lib/xstrtol.h: Likewise.
54774         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
54775         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
54776         no longer needed. Anyway, config.h should always be included before any
54777         other file.
54778
54779 2003-06-11  Simon Josefsson  <jas@extundo.com>
54780
54781         * modules/sysexits: New file.
54782         * MODULES.html.sh (func_all_modules): Add sysexits.
54783
54784 2003-06-11  Simon Josefsson  <jas@extundo.com>
54785
54786         * lib/sysexit_.h: New file.
54787
54788 2003-06-11  Derek Price  <derek@ximbiot.com>
54789
54790         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
54791         necessary.
54792
54793 2003-06-11  Bruno Haible  <bruno@clisp.org>
54794
54795         * m4/sysexits.m4: New file.
54796
54797 2003-06-10  Simon Josefsson  <jas@extundo.com>
54798
54799         * lib/argp.h: New file, from glibc.
54800         * lib/argp-ba.c: New file, from glibc.
54801         * lib/argp-eexst.c: New file, from glibc.
54802         * lib/argp-fmtstream.c: New file, from glibc.
54803         * lib/argp-fmtstream.h: New file, from glibc.
54804         * lib/argp-fs-xinl.c: New file, from glibc.
54805         * lib/argp-help.c: New file, from glibc.
54806         * lib/argp-namefrob.h: New file, from glibc.
54807         * lib/argp-parse.c: New file, from glibc.
54808         * lib/argp-pv.c: New file, from glibc.
54809         * lib/argp-pvh.c: New file, from glibc.
54810         * lib/argp-xinl.c: New file, from glibc.
54811
54812 2003-06-10  Simon Josefsson  <jas@extundo.com>
54813
54814         * modules/strchrnul: New file.
54815
54816 2003-06-10  Simon Josefsson  <jas@extundo.com>
54817
54818         * modules/argp: New file.
54819
54820 2003-06-10  Simon Josefsson  <jas@extundo.com>
54821
54822         * m4/strchrnul.m4: New file.
54823
54824 2003-06-10  Simon Josefsson  <jas@extundo.com>
54825
54826         * lib/strchrnul.h: New file.
54827         * lib/strchrnul.c: New file.
54828
54829 2003-06-10  Bruno Haible  <bruno@clisp.org>
54830
54831         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
54832
54833 2003-06-07  Karl Berry  <karl@gnu.org>
54834
54835         * config/config.{guess,sub}: update from prep.
54836
54837 2003-06-07  Jim Meyering  <jim@meyering.net>
54838
54839         * modules/strtod: Use $(...) notation, not @...@ for
54840         AC_REPLACE'd variables.
54841         * modules/localcharset: Likewise.
54842
54843 2003-06-07  Jim Meyering  <jim@meyering.net>
54844
54845         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
54846         in place of my name in the copyright comment.
54847         Remove definition and uses of __P.
54848
54849         From coreutils.
54850         * lib/stat.c: Don't declare xmalloc explicitly.
54851         Instead, include "xalloc.h".
54852         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
54853         xrealloc, and xcalloc return values.
54854         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
54855         Improve comment.
54856         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
54857
54858 2003-06-07  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
54861         avoid AC_CONFIG_LINKS.
54862         * modules/fnmatch (Makefile.am): Use explicit creation rule for
54863         fnmatch.h, to avoid AC_CONFIG_LINKS.
54864         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
54865
54866 2003-06-07  Bruno Haible  <bruno@clisp.org>
54867
54868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
54869         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
54870         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
54871         directory.
54872         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
54873         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
54874         directory.
54875
54876 2003-06-06  Jim Meyering  <jim@meyering.net>
54877
54878         Merge from coreutils.
54879         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
54880         Consolidate declarations and initializations of *_base* locals.
54881
54882         Merge from coreutils.
54883         This avoids a core dump on systems without GNU putenv,
54884         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
54885         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
54886         (unsetenv): New static function, from GNU libc.
54887         (rpl_putenv): Use it.
54888
54889         * lib/modechange.c: Remove trailing blanks.
54890
54891         Merge from coreutils.
54892         * lib/fsusage.c: Remove declaration of statfs.
54893         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
54894
54895         * lib/posixtm.c: Include <stdbool.h> unconditionally.
54896
54897 2003-06-06  Jim Meyering  <jim@meyering.net>
54898
54899         * lib/stdbool_.h: Renamed from stdbool.h.in.
54900
54901 2003-06-06  Jim Meyering  <jim@meyering.net>
54902             Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
54905         Adjust Makefile.am snippet not to redirect directly to target.
54906         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
54907
54908 2003-06-05  Paul Eggert  <eggert@twinsun.com>
54909
54910         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
54911         mismatch, look in future quarters as well as past.  This fixes a
54912         bug when processing fall-backwards gaps immediately after a long
54913         period of daylight-saving time.
54914
54915         * lib/mktime.c: Assume freestanding C89 or better.
54916         (HAVE_LIMITS_H): Remove.  Assume it's 1.
54917         (__P): Remove; not used.
54918         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
54919         (mktime, not_equal_tm, print_tm, check_result,
54920         main): Use prototypes.  Use const * where appropriate.
54921         (main): Fix typo in testing code that uncovered by above changes.
54922         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
54923
54924 2003-06-04  Paul Eggert  <eggert@twinsun.com>
54925
54926         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
54927         locale.h, localeconv.  This merges changes from coreutils.
54928
54929         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
54930         It can be removed after the next Autoconf is released.
54931         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
54932         needed.
54933
54934 2003-06-04  Paul Eggert  <eggert@twinsun.com>
54935
54936         * lib/mktime.c: Fix Debian bug 177940
54937         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
54938         (localtime_offset): Now long int, not time_t, because we want it
54939         to be guaranteed to be signed.  All uses changed.
54940         (__mktime_internal): If overflow would occur when adding offset,
54941         don't add it.
54942
54943         Merge 'human' changes from coreutils.  Rewrite to support
54944         locale-specific notations like thousands separators.
54945         * lib/human.c: Simplify authorship notice.
54946         Include human.h immediately after config.h.
54947         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
54948         <limits.h>: Do not include, since human.h does.
54949         (SIZE_MAX, UINTMAX_MAX): New macros.
54950         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
54951         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
54952         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
54953         (power_letter): Renamed from suffixes.
54954         (generate_suffix_backwards): Remove.
54955         (adjust_value): Now takes int style (because of human.h changes)
54956         and long double value (for greater precision on some platforms).
54957         (group_number): New function.
54958         (human_readable): Use it.  Use integer options, not enum.
54959         Put the options before the sizes in the arg list.
54960         Support all the new options.
54961         The old human_readable function has been removed;
54962         use inttostr.h instead.
54963         (human_readable, default_block_size, humblock):
54964         Use uintmax_t, not int, for block sizes.
54965         (human_readable_inexact, block_size_types): Remove.
54966         (block_size_opts): New constant.
54967         (human_options): Renamed from human_block_size, with new signature
54968         that allows block sizes up to UINTMAX_MAX.  All callers changed.
54969         * lib/human.h: Add copyright and authorship notice.
54970         Include <limits.h> and <stdbool.h> unconditionally.
54971         (PARAMS): Remove.  All uses removed.
54972         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
54973         (enum human_inexact_style): Remove tag; now a nameless enum.
54974         (human_floor, human_ceiling, human_round_to_even): Now have
54975         values 2, 0, 1 rather than -1, 1, 0.
54976         (human_group_digits, human_suppress_point_zero, human_autoscale,
54977         human_base_1024, human_SI, human_B): New constants.
54978         (human_readable_inexact, human_block_size): Remove.
54979         (human_readable): Size args are now uintmax_t, not int.
54980         (human_options): New decl.
54981
54982         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
54983         unnecessary now that we assume C89 or better.  This change
54984         imported from coreutils.
54985
54986         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
54987         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
54988         in the 2003-05-30 sync from glibc.
54989
54990         .h files should stand alone, but we shouldn't include <sys/types.h>
54991         if we can get away with just <stddef.h>.
54992
54993         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
54994         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
54995         rather than <sys/types.h>, as we merely need size_t.
54996         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
54997         to get size_t.
54998         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
54999         Include <stdio.h>, to get FILE.
55000         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55001         memcasecmp.h has included <stddef.h> and all we need is size_t.
55002         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55003         our interface, instead of including <sys/types.h>
55004
55005 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55006
55007         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55008         now, as glibc mktime is buggy on non-glibc systems.
55009
55010 2003-06-03  Karl Berry  <karl@gnu.org>
55011
55012         * config/config.sub: update from prep.
55013
55014 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55015
55016         [from coreutils]
55017         Fix some minor time-related bugs with POSIX time arguments.
55018         Some valid time stamps were being rejected (notably -1, and
55019         time stamps before 1900 on 64-bit hosts).  And some invalid
55020         time stamps were being accepted, e.g. September 31.
55021
55022         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55023         that we can return (time_t) -1 successfully.
55024         * lib/posixtm.c: Likewise.
55025         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55026         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55027         (t): Remove static var.
55028         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55029         of static var.  All uses changed.
55030         (year): Do not reject years before 1900; they can occur with
55031         64-bit time_t.
55032         (posix_time_parse): Do not check for out-of-range components;
55033         that is now the caller's responsibility, since our checks were
55034         only approximations.
55035         (posixtime): Use mktime to check for out-of-range components,
55036         since it knows them exactly.
55037         If mktime returns (time_t) -1, check whether an error actually occurred
55038         by invoking localtime on -1.
55039         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55040         posixtime failures better.
55041         Improve the test data (in comments only).
55042
55043 2003-06-02  Karl Berry  <karl@gnu.org>
55044
55045         * config/mkinstalldirs (version): new variable.
55046         (--version): new option.
55047         (usage): improve message.
55048
55049 2003-05-30  Karl Berry  <karl@gnu.org>
55050
55051         * lib/mktime.c: update from libc.
55052
55053 2003-05-30  Bruno Haible  <bruno@clisp.org>
55054
55055         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55056         * config/config.rpath: Upgrade to gettext-0.12.1.
55057
55058 2003-05-30  Bruno Haible  <bruno@clisp.org>
55059
55060         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55061         * m4/nls.m4: New file, from gettext-0.12.1.
55062         * m4/po.m4: New file, from gettext-0.12.1.
55063         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55064
55065 2003-05-30  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55068         * lib/localcharset.h: Likewise.
55069         * lib/localcharset.c: Likewise.
55070
55071 2003-05-29  Karl Berry  <karl@gnu.org>
55072
55073         * config/config.rpath: update from gettext.
55074
55075 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55076
55077         Assume the headers required for C89 freestanding compilers.
55078         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55079         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55080         * m4/human.m4 (gl_HUMAN): Likewise.
55081         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55082         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55083         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55084         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55086         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55087
55088 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55089
55090         Assume the headers required for C89 freestanding compilers.
55091         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55092         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55093         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55094         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55095         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55096         define, since <limits.h> is guaranteed to do that.
55097         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55098         * lib/exclude.c: Include <stdbool.h> unconditionally.
55099         * lib/tempname.c: Include <stddef.h> unconditionally.
55100         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55101         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55102         <stddef.h> does that.
55103         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55104         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55105         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55106         needed.
55107         * lib/xstrtol.c: Likewise.
55108         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55109         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55110
55111         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55112         warnings on some platforms.
55113
55114         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55115         arbitrarily.
55116
55117 2003-05-26  Jim Meyering  <jim@meyering.net>
55118
55119         Merge in a change from coreutils:
55120         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55121         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55122         that condition, rather than `-1' which is slightly misleading.
55123         Change the name of the cache variable to have the gl_ prefix.
55124         Prompted by a patch from Richard Dawe for DJGPP.
55125
55126 2003-05-24  Karl Berry  <karl@gnu.org>
55127
55128         * config/config.guess: update from prep.
55129
55130 2003-05-22  Karl Berry  <karl@gnu.org>
55131
55132         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55133
55134 2003-05-20  Karl Berry  <karl@gnu.org>
55135
55136         * config/config.guess: update from prep.
55137
55138 2003-05-18  Karl Berry  <karl@gnu.org>
55139
55140         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55141         might actually be set by the user.
55142
55143         * config/depcomp, install-sh, mdate-sh: update from automake.
55144
55145 2003-05-17  Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55148         invalid expansion for AC_EGREP_CPP.
55149         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55150         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55151         Suggested by Akim Demaille <akim@epita.fr> in
55152         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55153
55154 2003-05-12  Jim Meyering  <jim@meyering.net>
55155
55156         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55157         the space-padded-by-default conversion specifiers, %e, %k, %l.
55158
55159 2003-05-12  Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55162         the string is longer than 4 KB.
55163
55164 2003-05-11  Karl Berry  <karl@gnu.org>
55165
55166         * config/config.{guess,sub}: update from prep.
55167
55168 2003-05-09  Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/error: Add m4/strerror_r.m4 to file list.
55171
55172 2003-05-03  Bruno Haible  <bruno@clisp.org>
55173
55174         Upgrade to Unicode-4.0.
55175         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55176         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55177         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55178         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55179         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55180         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55181         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55182         Change width of U+E0100..U+E01EF from 1 to 0.
55183
55184 2003-04-25  Jim Meyering  <jim@meyering.net>
55185
55186         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55187         of type size_t, not int.
55188
55189 2003-04-25  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/copy-file.c: Include <stddef.h>, for size_t.
55192
55193 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55194
55195         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55196         code which expansion is under static control.  Patch imported from
55197         Akim Demaille's patch to Bison; see
55198         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55199
55200 2003-04-14  Bruno Haible  <bruno@clisp.org>
55201
55202         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55203
55204 2003-04-11  Jim Meyering  <jim@meyering.net>
55205
55206         Merge changes from Coreutils.
55207
55208         2003-03-22  Jim Meyering  <jim@meyering.net>
55209
55210         * lib/strftime.c (widen): Cast alloca return value to proper type.
55211
55212         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55213
55214         From GNU libc.
55215         * lib/strftime.c (my_strftime): Handle very large width
55216         specifications for numeric values correctly.  Improve checks for
55217         overflow.
55218
55219         2003-01-19  Jim Meyering  <jim@meyering.net>
55220
55221         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55222         definitions.
55223         (nl_get_alt_digit) [! defined my_strftime]: Define.
55224         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55225         _nl_get_alt_digit and _nl_get_walt_digit.
55226
55227         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55228         libc. These changes have no effect outside of _LIBC.
55229
55230 2003-04-10  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/findprog: New file.
55233         * MODULES.html.sh (func_all_modules): Add it.
55234
55235 2003-04-10  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/findprog.m4: New file.
55238         * m4/eaccess.m4: New file.
55239
55240 2003-04-10  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/findprog.h: New file, from GNU gettext.
55243         * lib/findprog.c: New file, from GNU gettext.
55244
55245 2003-04-05  Jim Meyering  <jim@meyering.net>
55246
55247         Merge changes from Coreutils.
55248
55249         * lib/exclude.h (PARAMS): Remove definition and uses.
55250         * lib/exclude.c: Remove uses of `PARAMS'.
55251
55252         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55253         Add test-cases for DOS filenames. Declare program_name.
55254         (main): Set up program_name.  Patch by Rich Dawe.
55255
55256         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55257         error from mntctl.
55258         Use mntctl's return value to drive the entry-processing loop, since
55259         we can't rely on the value of the vmt_length member in the last
55260         entry.  On some systems doing so could result in exhausting
55261         virtual memory.  Based in part on a patch from Mike Jetzer.
55262
55263 2003-04-04  Bruno Haible  <bruno@clisp.org>
55264
55265         * modules/linebreak: New file.
55266         * MODULES.html.sh (func_all_modules): Add it.
55267
55268 2003-04-04  Bruno Haible  <bruno@clisp.org>
55269
55270         * m4/linebreak.m4: New file.
55271
55272 2003-04-04  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/linebreak.h: New file, from GNU gettext.
55275         * lib/linebreak.c: New file, from GNU gettext with slight
55276         modifications.
55277         * lib/lbrkprop.h: New file, from GNU gettext.
55278
55279 2003-04-03  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/utf8-ucs4: New file.
55282         * modules/utf16-ucs4: New file.
55283         * modules/ucs4-utf8: New file.
55284         * modules/ucs4-utf16: New file.
55285         * MODULES.html.sh (func_all_modules): Add them.
55286
55287 2003-04-03  Bruno Haible  <bruno@clisp.org>
55288
55289         * m4/utf-ucs4.m4: New file.
55290         * m4/ucs4-utf.m4: New file.
55291
55292 2003-04-03  Bruno Haible  <bruno@clisp.org>
55293
55294         * lib/utf8-ucs4.h: New file, from GNU gettext.
55295         * lib/utf16-ucs4.h: New file, from GNU gettext.
55296         * lib/ucs4-utf8.h: New file, from GNU gettext.
55297         * lib/ucs4-utf16.h: New file, from GNU gettext.
55298
55299 2003-04-02  Bruno Haible  <bruno@clisp.org>
55300
55301         * modules/binary-io: New file.
55302         * MODULES.html.sh (func_all_modules): Add it.
55303
55304 2003-04-02  Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/binary-io.h: New file, from GNU gettext.
55307
55308 2003-04-01  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/pathname: New file.
55311         * MODULES.html.sh (func_all_modules): Add it.
55312
55313 2003-04-01  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/pathname.h: New file, from GNU gettext.
55316         * lib/concatpath.c: New file, from GNU gettext.
55317
55318 2003-03-30  Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55321
55322 2003-03-30  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55325         function chown() doesn't exist.
55326
55327 2003-03-28  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/copy-file: New file.
55330         * MODULES.html.sh (func_all_modules): Add it.
55331
55332 2003-03-28  Bruno Haible  <bruno@clisp.org>
55333
55334         * m4/copy-file.m4: New file.
55335
55336 2003-03-28  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/copy-file.h: New file, from GNU gettext.
55339         * lib/copy-file.c: New file, from GNU gettext.
55340
55341 2003-03-18  Jim Meyering  <jim@meyering.net>
55342
55343         * lib/quote.c (quote_n): Fix typo in comment.
55344
55345 2003-03-18  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55348         checking.
55349         * m4/onceonly_2_57.m4: Likewise.
55350
55351 2003-03-17  Bruno Haible  <bruno@clisp.org>
55352
55353         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55354         (m4_quote): Remove macro.
55355         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55356
55357 2003-03-14  Jim Meyering  <jim@meyering.net>
55358
55359         Merge changes from Coreutils.
55360         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55361         to be const, in order to avoid warnings.
55362         (obstack_room): Likewise.
55363         (obstack_empty_p): Likewise.
55364
55365 2003-03-14  Bruno Haible  <bruno@clisp.org>
55366
55367         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55368         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55369
55370 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55371
55372         Merge changes from Bison.
55373         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55374         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55375         when compiling Bison 1.875's `bitset bset = obstack_alloc
55376         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55377         * lib/hash.c: Include <stdbool.h> unconditionally.
55378
55379 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55380
55381         * m4/onceonly.m4 (m4_quote): New macro.
55382         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55383         Quote AC_FOREACH variable-expansions properly.
55384
55385 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55386
55387         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55388
55389 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55390
55391         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55392         Reported by Bruce Becker; see:
55393         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55394
55395 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55396             Bruno Haible  <bruno@clisp.org>
55397
55398         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55399         Reported by John Hughes, see
55400         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55401
55402 2003-02-20  Bruno Haible  <bruno@clisp.org>
55403
55404         * MODULES.html.sh (func_all_modules): Add poll.
55405
55406 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55407
55408         * modules/poll: New file.
55409
55410 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55411
55412         * lib/poll_.h: New file.
55413         * lib/poll.c: New file.
55414
55415 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55416
55417         * m4/poll.m4: New file.
55418
55419 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55420
55421         * modules/mathl: New file.
55422
55423 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55424
55425         * lib/mathl.h: New file.
55426         * lib/acosl.c: New file.
55427         * lib/asinl.c: New file.
55428         * lib/atanl.c: New file.
55429         * lib/ceill.c: New file.
55430         * lib/cosl.c: New file.
55431         * lib/expl.c: New file.
55432         * lib/floorl.c: New file.
55433         * lib/frexpl.c: New file.
55434         * lib/ldexpl.c: New file.
55435         * lib/logl.c: New file.
55436         * lib/sincosl.c: New file.
55437         * lib/sinl.c: New file.
55438         * lib/sqrtl.c: New file.
55439         * lib/tanl.c: New file.
55440         * lib/trigl.c: New file.
55441         * lib/trigl.h: New file.
55442
55443 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55444
55445         * m4/mathl.m4: New file.
55446
55447 2003-02-18  Bruno Haible  <bruno@clisp.org>
55448
55449         * MODULES.html.sh (func_all_modules): Add mathl.
55450
55451 2003-02-17  Bruno Haible  <bruno@clisp.org>
55452
55453         * modules/mkdtemp: New module.
55454         * MODULES.html.sh (func_all_modules): Add it.
55455
55456 2003-02-17  Bruno Haible  <bruno@clisp.org>
55457
55458         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55459
55460 2003-02-17  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/mkdtemp.h: New file, from GNU gettext.
55463         * lib/mkdtemp.c: New file, from GNU gettext.
55464
55465 2003-02-02  Jim Meyering  <jim@meyering.net>
55466
55467         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55468         e.g. glibc-2.2.93.
55469
55470 2003-01-31  Bruno Haible  <bruno@clisp.org>
55471
55472         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55473         'rpl_rename'.
55474         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55475         'rpl_strnlen'.
55476         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55477         'rpl_strtod'.
55478         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55479         'rpl_utime'.
55480
55481 2003-01-31  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/rename.c: #undef rename before defining rpl_rename.
55484         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55485
55486 2003-01-30  Bruno Haible  <bruno@clisp.org>
55487
55488         * modules/vasnprintf, modules/vasprintf: New modules.
55489         * MODULES.html.sh (func_all_modules): Add them.
55490
55491 2003-01-30  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/signed.m4: New file, from GNU gettext.
55494         * m4/longdouble.m4: New file, from GNU gettext.
55495         * m4/wchar_t.m4: New file, from GNU gettext.
55496         * m4/wint_t.m4: New file, from GNU gettext.
55497         * m4/vasnprintf.m4: New file.
55498         * m4/vasprintf.m4: New file.
55499
55500 2003-01-30  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/printf-args.h: New file, from GNU gettext.
55503         * lib/printf-args.c: New file, from GNU gettext.
55504         * lib/printf-parse.h: New file, from GNU gettext.
55505         * lib/printf-parse.c: New file, from GNU gettext.
55506         * lib/vasnprintf.h: New file, from GNU gettext.
55507         * lib/vasnprintf.c: New file, from GNU gettext.
55508         * lib/asnprintf.c: New file, from GNU gettext.
55509         * lib/vasprintf.h: New file, from GNU gettext with modifications.
55510         * lib/vasprintf.c: New file, from GNU gettext.
55511         * lib/asprintf.c: New file, from GNU gettext.
55512
55513 2003-01-29  Bruno Haible  <bruno@clisp.org>
55514
55515         * modules/stpncpy: New module.
55516         * MODULES.html.sh (func_all_modules): Add it.
55517
55518 2003-01-29  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/stpncpy.m4: New file.
55521
55522 2003-01-29  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/stpncpy.h: New file, from GNU gettext with modifications.
55525         * lib/stpncpy.c: New file, from GNU gettext with modifications.
55526
55527 2003-01-28  Bruno Haible  <bruno@clisp.org>
55528
55529         * modules/c-ctype: New module.
55530         * MODULES.html.sh (func_all_modules): Add it.
55531
55532 2003-01-28  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55535         Paul Eggert.
55536         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55537         Paul Eggert.
55538
55539 2003-01-27  Bruno Haible  <bruno@clisp.org>
55540
55541         * modules/xsetenv: New module.
55542         * MODULES.html.sh (func_all_modules): Add it.
55543
55544 2003-01-27  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/xsetenv.h: New file, from GNU gettext.
55547         * lib/xsetenv.c: New file, from GNU gettext.
55548
55549 2003-01-23  Jim Meyering  <jim@meyering.net>
55550
55551         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55552         from working on systems without dirfd (at least Irix and OSF1/Tru64).
55553
55554 2003-01-23  Bruno Haible  <bruno@clisp.org>
55555
55556         * modules/minmax: New module.
55557         * MODULES.html.sh (func_all_modules): Add it.
55558
55559 2003-01-23  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55562         Eggert.
55563
55564 2003-01-22  Bruno Haible  <bruno@clisp.org>
55565
55566         * modules/exit: New module.
55567         * MODULES.html.sh (func_all_modules): Add it.
55568
55569 2003-01-22  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/exit.h: New file, from GNU gettext.
55572
55573 2003-01-19  Bruno Haible  <bruno@clisp.org>
55574
55575         * gnulib-tool: Recognize option --extract-maintainer.
55576         (func_get_maintainer): New function.
55577         * modules/*: Add Maintainer entry.
55578
55579 2003-01-16  Jim Meyering  <jim@meyering.net>
55580
55581         * m4/regex.m4: The `regex' struct is both input and output.
55582         Initialize it before each use.  Patch by Tim Waugh.
55583
55584 2003-01-16  Bruno Haible  <bruno@clisp.org>
55585
55586         * MODULES.html.sh: Add a table of contents. Add the module name as
55587         leftmost column. Add hyperlinks.
55588
55589 2003-01-15  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55592
55593 2003-01-15  Bruno Haible  <bruno@clisp.org>
55594
55595         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55596         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55597         suffix.
55598
55599 2003-01-15  Bruno Haible  <bruno@clisp.org>
55600
55601         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55602
55603 2003-01-15  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55606         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55607
55608 2003-01-14  Jim Meyering  <jim@meyering.net>
55609
55610         * lib/same.c (same_name): Tweak a comment.
55611
55612 2003-01-14  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55615         when a string comparison is sufficient.
55616
55617 2003-01-14  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55620         'unsigned int'.
55621
55622 2003-01-14  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/hash-pjw.c: Add comment about low quality of this function.
55625
55626 2003-01-13  Bruno Haible  <bruno@clisp.org>
55627
55628         * modules/stpcpy: Distribute lib/stpcpy.h.
55629         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55630
55631 2003-01-13  Bruno Haible  <bruno@clisp.org>
55632
55633         * modules/*: Add a description.
55634         * modules/strpbrk: Fix Makefile.am snippet.
55635         * modules/strtoimax: Fix dependencies.
55636         * modules/strtoumax: Likewise.
55637
55638 2003-01-13  Bruno Haible  <bruno@clisp.org>
55639
55640         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55641         * modules/alloca (Makefile.am): All object files depend on alloca.h.
55642         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55643
55644 2003-01-13  Bruno Haible  <bruno@clisp.org>
55645
55646         * gnulib-tool (func_create_testdir): Store config/* files in the main
55647         directory.
55648         * config.rpath: Move to ...
55649         * config/config.rpath: ... here.
55650         * modules/gettext: Contains config/config.rpath, not config.rpath.
55651         * modules/iconv: Likewise.
55652
55653 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55654
55655         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55656         to avoid collisions with libcurses and libreadline.
55657
55658         * m4/getstr.m4: Remove.
55659         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55660
55661 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55662
55663         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55664         to avoid collisions with libcurses and libreadline.
55665
55666         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55667         * lib/getstr.h, getstr.c: Remove.
55668         * lib/getline.c: Include "getline.h", to check interface.
55669         Move body of old getstr.c here: this defines MIN_CHUNK and
55670         declares getdelim2, which is renamed from getstr.
55671         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55672
55673         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55674         All uses changed.
55675         * lib/linebuffer.h: Likewise.
55676         (readline): Remove backward-compatibility macro.
55677
55678 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55679
55680         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55681         to avoid collisions with libcurses and libreadline.
55682         * getstr: Remove.
55683         * MODULES.html.sh: Remove getstr.
55684         * modules/getline: Depend on unlocked-io, not getstr.
55685
55686 2003-01-12  Jim Meyering  <jim@meyering.net>
55687
55688         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
55689
55690 2003-01-10  Bruno Haible  <bruno@clisp.org>
55691
55692         * modules/alloca: Change Makefile.am requirements. Simplify Include
55693         requirements. Add lib/alloca_.h to file list.
55694
55695 2003-01-10  Bruno Haible  <bruno@clisp.org>
55696
55697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55698
55699 2003-01-10  Bruno Haible  <bruno@clisp.org>
55700
55701         * lib/alloca_.h: New file.
55702         * lib/getdate.y: Unconditionally include alloca.h.
55703         * lib/makepath.c: Likewise.
55704         * lib/setenv.c: Likewise.
55705         * lib/userspec.c: Likewise.
55706
55707 2003-01-09  Karl Berry  <karl@gnu.org>
55708
55709         * MODULES.html.sh: include `dirname $0` in PATH, to find
55710         gnulib-tool.
55711
55712 2003-01-09  Bruno Haible  <bruno@clisp.org>
55713
55714         * modules/stdbool: Change configure.ac, Makefile.am requirements.
55715         Simplify Include requirements. Add lib/stdbool.h.in to file list.
55716
55717 2003-01-09  Bruno Haible  <bruno@clisp.org>
55718
55719         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55720
55721 2003-01-09  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/stdbool.h.in: New file.
55724
55725 2003-01-09  Bruno Haible  <bruno@clisp.org>
55726
55727         * gnulib-tool (func_all_modules): Ignore files ending in ~.
55728         * MODULES.html.sh: Likewise.
55729
55730 2003-01-08  Jim Meyering  <jim@meyering.net>
55731
55732         * lib/full-write.c: Undefine and define-away `const' after inclusion
55733         of errno.h, not before.  Suggestion from Bruno Haible.
55734
55735 2003-01-08  Bruno Haible  <bruno@clisp.org>
55736
55737         * modules/full-read: Depend on full-write.
55738
55739 2003-01-08  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/safe-read.c: Include specification header first, to ensure its
55742         selfcontainedness.
55743         * lib/full-write.c: Likewise.
55744
55745 2003-01-07  Jim Meyering  <jim@meyering.net>
55746
55747         * lib/full-write.c: Rework so that it may serve to define full_read,
55748         too.
55749         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
55750
55751 2003-01-07  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/strtoimax.c: Include <stdint.h> as an alternative to
55754         <inttypes.h>.
55755         * lib/xstrtol.h: Likewise.
55756         * lib/xstrtoimax.c: Likewise.
55757         * lib/xstrtoumax.c: Likewise.
55758         * lib/human.h: Likewise.
55759
55760         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
55761         on systems that have <inttypes.h> but not <stdint.h>.
55762
55763 2003-01-07  Bruno Haible  <bruno@clisp.org>
55764
55765         * MODULES.html.sh: Add copyright notice.
55766         (missed_files): Omit CVS directory entries.
55767         (func_module): Make it work with sed-3.02.
55768         * MODULES.txt: Remove file.
55769
55770 2003-01-06  Jim Meyering  <jim@meyering.net>
55771
55772         * lib/version-etc.c: Update year in translatable copyright string.
55773
55774 2003-01-03  Karl Berry  <karl@gnu.org>
55775
55776         * config/config.{guess,sub}: update from prep.
55777
55778 2003-01-02  Karl Berry  <karl@gnu.org>
55779
55780         * doc/COPYING.DOC: belatedly updated to 1.2.
55781
55782 2003-01-01  Karl Berry  <karl@gnu.org>
55783
55784         * gnulib-tool (func_verify_module): report module name $module in
55785         error message, not $1.
55786         * gnulib-tool (create-testdir): don't complain if destdir couldn't
55787         be created, only if it doesn't exist.
55788         * gnulib-tool (last_checkin_date): don't expand the $Date here.
55789
55790 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55791
55792         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
55793
55794 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55795
55796         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
55797         memcmp if strcoll doesn't work.
55798
55799 2002-12-31  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/utime.c (utime_null): No need to call ftruncate if the file was
55802         nonempty.
55803
55804 2002-12-31  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/memcoll.c (STRCOLL): New macro.
55807         (memcoll): Use it.
55808
55809 2002-12-31  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/localcharset.h: New file.
55812         * lib/localcharset.c: Include it.
55813         * lib/unicodeio.c: Likewise.
55814
55815 2002-12-31  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
55818         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
55819
55820 2002-12-31  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/getline.h: Include <stddef.h>, for size_t.
55823
55824         * lib/unicodeio.h: Include <stddef.h>, for size_t.
55825         * lib/unicodeio.c: Don't include <stddef.h>.
55826
55827 2002-12-31  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
55830         HAVE_TM_ZONE.
55831
55832 2002-12-24  Karl Berry  <karl@gnu.org>
55833
55834         * config/config.guess: update from prep.
55835
55836 2002-12-24  Bruno Haible  <bruno@clisp.org>
55837
55838         General infrasructure.
55839         * m4/README: Rewritten.
55840         * m4/onceonly.m4: New file.
55841         * m4/onceonly_2_57.m4: New file.
55842
55843         Module atexit.
55844         * m4/atexit.m4: New file.
55845
55846         Module strtod.
55847         * m4/strtod.m4: New file.
55848
55849         Module strtol.
55850         * m4/strtol.m4: New file.
55851
55852         Module strtoul.
55853         * m4/strtoul.m4: New file.
55854
55855         Module memchr.
55856         * m4/memchr.m4: New file.
55857
55858         Module memcmp.
55859         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
55860         (jm_FUNC_MEMCMP): Invoke it.
55861
55862         Module memcpy.
55863         * m4/memcpy.m4: New file.
55864
55865         Module memmove.
55866         * m4/memmove.m4: New file.
55867
55868         Module memset.
55869         * m4/memset.m4: New file.
55870
55871         Module strcspn.
55872         * m4/strcspn.m4: New file.
55873
55874         Module strpbrk.
55875         * m4/strpbrk.m4: New file.
55876
55877         Module strstr.
55878         * m4/strstr.m4: New file.
55879
55880         Module strerror.
55881         * m4/strerror.m4: New file.
55882
55883         Module mktime.
55884         * m4/mktime.m4: Renamed from jm-mktime.m4.
55885         (gl_PREREQ_MKTIME): New macro.
55886         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
55887
55888         Module malloc.
55889         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
55890         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
55891         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
55892
55893         Module realloc.
55894         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
55895         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
55896         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
55897
55898         Module strftime.
55899         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
55900         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
55901         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
55902         gl_TM_GMTOFF.
55903         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
55904
55905         Module xalloc.
55906         * m4/xalloc.m4: New file.
55907
55908         Module alloca.
55909         * m4/alloca.m4: New file.
55910
55911         Module putenv.
55912         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
55913         (jm_FUNC_PUTENV): Invoke it.
55914
55915         Module setenv.
55916         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
55917         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
55918         when invoked twice.
55919         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
55920         gt_FUNC_SETENV.
55921
55922         Module memrchr.
55923         * m4/memrchr.m4: New file.
55924
55925         Module stpcpy.
55926         * m4/stpcpy.m4: New file.
55927
55928         Module strcase.
55929         * m4/strcase.m4: New file.
55930
55931         Module strdup.
55932         * m4/strdup.m4: New file.
55933
55934         Module strnlen.
55935         * m4/strnlen.m4: New file.
55936
55937         Module strndup.
55938         * m4/strndup.m4: New file.
55939
55940         Module xstrtod.
55941         * m4/xstrtod.m4: New file.
55942
55943         Module xstrtol.
55944         * m4/xstrtol.m4: New file.
55945
55946         Module getdate.
55947         * m4/getdate.m4: New file.
55948
55949         Module unlocked-io.
55950         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
55951         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
55952         * m4/jm-glibc-io.m4n: Remove file.
55953
55954         Module long-options.
55955         * m4/long-options.m4: New file.
55956
55957         Module md5.
55958         * m4/md5.m4: New file.
55959
55960         Module sha.
55961         * m4/sha.m4: New file.
55962
55963         Module getstr.
55964         * m4/getstr.m4: New file.
55965
55966         Module getline.
55967         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
55968         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
55969         <sys/types.h>, for size_t. Use the function name gnu_getline, not
55970         simply getline. Infoke gl_PREREQ_GETLINE.
55971
55972         Module obstack.
55973         * m4/obstack.m4: New file.
55974
55975         Module hash.
55976         * m4/hash.m4: New file.
55977
55978         Module readtokens.
55979         * m4/readtokens.m4: New file.
55980
55981         Module strverscmp.
55982         * m4/strverscmp.m4: New file.
55983
55984         Module stdbool.
55985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
55986         OSF/1.
55987
55988         Module strtoll.
55989         * m4/strtoll.m4: New file.
55990
55991         Module strtoull.
55992         * m4/strtoull.m4: New file.
55993
55994         Module strtoimax.
55995         * m4/strtoimax.m4: New file.
55996
55997         Module strtoumax.
55998         * m4/strtoumax.m4: New file.
55999
56000         Module xstrtoimax.
56001         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56002         jm_AC_PREREQ_XSTRTOIMAX.
56003         Moved the strtol prerequisites to strtol.m4.
56004         Moved the strtoll prerequisites to strtoll.m4.
56005         Moved the strtoimax prerequisites to strtoimax.m4.
56006
56007         Module xstrtoumax.
56008         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56009         jm_AC_PREREQ_XSTRTOUMAX.
56010         Moved the strtoul prerequisites to strtoul.m4.
56011         Moved the strtoull prerequisites to strtoull.m4.
56012         Moved the strtoumax prerequisites to strtoumax.m4.
56013
56014         Module chown.
56015         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56016         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56017
56018         Module dup2.
56019         * m4/dup2.m4: New file.
56020
56021         Module ftruncate.
56022         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56023         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56024
56025         Module getgroups.
56026         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56027         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56028
56029         Module gettimeofday.
56030         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56031         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56032         gl_PREREQ_GETTIMEOFDAY.
56033
56034         Module mkdir.
56035         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56036         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56037
56038         Module mkstemp.
56039         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56040         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56041         jm_AC_TYPE_UINTMAX_T.
56042         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56043
56044         Module stat.
56045         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56046         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56047
56048         Module lstat.
56049         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56050         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56051
56052         Module timespec.
56053         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56054         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56055         * m4/st_mtim.m4: Indentation.
56056
56057         Module nanosleep.
56058         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56059         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56060         gl_PREREQ_NANOSLEEP.
56061
56062         Module regex.
56063         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56064         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56065         (gl_REGEX): New macro.
56066
56067         Module rename.
56068         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56069         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56070
56071         Module rmdir.
56072         * m4/rmdir.m4: New file.
56073
56074         Module utime.
56075         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56076         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56077         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56078
56079         Module dirname.
56080         * m4/dirname.m4: New file.
56081
56082         Module getopt.
56083         * m4/getopt.m4: New file.
56084
56085         Module unistd-safer.
56086         * m4/unistd-safer.m4: New file.
56087
56088         Module fnmatch.
56089         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56090         declaration.
56091         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56092         (gl_FUNC_FNMATCH_POSIX): New macro.
56093         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56094         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56095         simply fnmatch.
56096
56097         Module exclude.
56098         * m4/exclude.m4: New file.
56099
56100         Module human.
56101         * m4/human.m4: New file.
56102
56103         Module acl.
56104         * m4/acl.m4: Nop.
56105
56106         Module backupfile.
56107         * m4/backupfile.m4: New file.
56108         * m4/d-ino.m4: Indentation.
56109
56110         Module fsusage.
56111         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56112         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56113         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56114
56115         Module dirfd.
56116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56117         requirements.
56118
56119         Module euidaccess.
56120         * m4/euidaccess.m4: New file.
56121
56122         Module file-type.
56123         * m4/file-type.m4: New file.
56124
56125         Module fileblocks.
56126         * m4/fileblocks.m4: New file.
56127
56128         Module filemode.
56129         * m4/filemode.m4: New file.
56130
56131         Module isdir.
56132         * m4/isdir.m4: New file.
56133
56134         Module lchown.
56135         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56136         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56137
56138         Module makepath.
56139         * m4/makepath.m4: New file.
56140
56141         Module modechange.
56142         * m4/modechange.m4: New file.
56143
56144         Module mountlist.
56145         * m4/mountlist.m4: New file.
56146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56147         Indentation.
56148
56149         Module path-concat.
56150         * m4/path-concat.m4: New file.
56151
56152         Module pathmax.
56153         * m4/pathmax.m4: New file.
56154
56155         Module same.
56156         * m4/same.m4: New file.
56157
56158         Module save-cwd.
56159         * m4/save-cwd.m4: New file.
56160
56161         Module savedir.
56162         * m4/savedir.m4: New file.
56163
56164         Module xgetcwd.
56165         * m4/xgetcwd.m4: New file.
56166         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56167
56168         Module xreadlink.
56169         * m4/xreadlink.m4: New file.
56170
56171         Module safe-read.
56172         * m4/safe-read.m4: New file.
56173
56174         Module safe-write.
56175         * m4/safe-write.m4: New file.
56176
56177         Module closeout.
56178         * m4/closeout.m4: New file.
56179
56180         Module stdio-safer.
56181         * m4/stdio-safer.m4: New file.
56182
56183         Module getpass.
56184         * m4/getpass.m4: New file.
56185
56186         Module getugroups.
56187         * m4/getugroups.m4: New file.
56188
56189         Module group-member.
56190         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56191         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56192
56193         Module idcache.
56194         * m4/idcache.m4: New file.
56195
56196         Module userspec.
56197         * m4/userspec.m4: New file.
56198
56199         Module gettime.
56200         * m4/clock_time.m4: New file.
56201         * m4/gettime.m4: New file.
56202
56203         Module settime.
56204         * m4/settime.m4: New file.
56205
56206         Module posixtm.
56207         * m4/posixtm.m4: New file.
56208
56209         Module gethostname.
56210         * m4/gethostname.m4: New file.
56211
56212         Module canon-host.
56213         * m4/canon-host.m4: New file.
56214
56215         Module gettext.
56216         * m4/codeset.m4: New file, from gettext-0.11.5.
56217         * m4/gettext.m4: New file, from gettext-0.11.5.
56218         * m4/glibc21.m4: New file, from gettext-0.11.5.
56219         * m4/iconv.m4: New file, from gettext-0.11.5.
56220         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56221         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56222         * m4/inttypes.m4: New file, from gettext-0.11.5.
56223         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56224         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56225         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56226         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56227         * m4/lib-link.m4: New file, from gettext-0.11.5.
56228         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56229         * m4/progtest.m4: New file, from gettext-0.11.5.
56230         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56231         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56232         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56233
56234         Module localcharset.
56235         * m4/localcharset.m4: New file.
56236
56237         Module hard-locale.
56238         * m4/hard-locale.m4: New file.
56239
56240         Module mbswidth.
56241         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56242         onceonly macros.
56243         * m4/mbrtowc.m4: Add comment.
56244
56245         Module memcasecmp.
56246         * m4/memcasecmp.m4: New file.
56247
56248         Module memcoll.
56249         * m4/memcoll.m4: New file.
56250
56251         Module unicodeio.
56252         * m4/unicodeio.m4: New file.
56253
56254         Module rpmatch.
56255         * m4/rpmatch.m4: New file.
56256
56257         Module yesno.
56258         * m4/yesno.m4: New file.
56259
56260         Module exitfail.
56261         * m4/exitfail.m4: New file.
56262
56263         Module c-stack.
56264         * m4/c-stack.m4 (gl_C_STACK): New macro.
56265         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56266
56267         Module error.
56268         * m4/error.m4 (gl_ERROR): New macro.
56269         (jm_PREREQ_ERROR): Use onceonly macros.
56270
56271         Module fatal.
56272         * m4/fatal.m4: New file.
56273
56274         Module getloadavg.
56275         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56276         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56277
56278         Module getpagesize.
56279         * m4/getpagesize.m4: New file.
56280
56281         Module getusershell.
56282         * m4/getusershell.m4: New file.
56283
56284         Module physmem.
56285         * m4/physmem.m4: New file.
56286
56287         Module posixver.
56288         * m4/posixver.m4: New file.
56289
56290         Module quotearg.
56291         * m4/quotearg.m4: New file.
56292
56293         Module quote.
56294         * m4/quote.m4: New file.
56295
56296         Module readutmp.
56297         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56298
56299         Module sig2str.
56300         * m4/sig2str.m4: New file.
56301
56302         Other.
56303         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56304         ulonglong.m4.
56305         * m4/intmax_t.m4: New file.
56306         * m4/d-type.m4: Indentation.
56307         * m4/jm-macros.m4: Update.
56308         * m4/prereq.m4 (jm_PREREQ): Update.
56309         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56310         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56311         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56312         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56313         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56314         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56315         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56316         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56317         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56318         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56319         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56320         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56321         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56322         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56323         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56324         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56325         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56326         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56327         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56328
56329 2002-12-24  Bruno Haible  <bruno@clisp.org>
56330
56331         * MODULES.txt: Update according to m4/ changes.
56332
56333         Module gettext.
56334         * config.rpath: New file, from gettext-0.11.5.
56335
56336         * modules/*: New module descriptions.
56337         * gnulib-tool: New file.
56338         * MODULES.html.sh: New file.
56339
56340 2002-12-21  Karl Berry  <karl@gnu.org>
56341
56342         * doc/fdl.texi: update to version 1.2.
56343
56344 2002-12-19  Karl Berry  <karl@gnu.org>
56345
56346         * config/config.guess: update from prep.
56347
56348 2002-12-18  Bruno Haible  <bruno@clisp.org>
56349
56350         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56351         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56352
56353 2002-12-17  Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56356         stdlib.h, string.h.
56357
56358 2002-12-17  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/canon-host.c (strdup): Remove unused declaration.
56361
56362         * lib/fsusage.c: Include full_read.h.
56363         (get_fs_usage): Use full_read instead of safe_read.
56364
56365         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56366
56367 2002-12-12  Karl Berry  <karl@gnu.org>
56368
56369         * config/config.guess: update from prep.
56370
56371 2002-12-11  Bruno Haible  <bruno@clisp.org>
56372
56373         * m4/setenv.m4: New file, from gettext-0.11.5.
56374
56375 2002-12-11  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56378         not unsetenv().
56379         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56380         modifications:
56381
56382         2002-12-11  Bruno Haible  <bruno@clisp.org>
56383
56384                 * setenv.c (alloca): Fall back to malloc.
56385                 (freea): New macro.
56386                 (setenv): Use freea() to free memory allocated with alloca().
56387
56388         2002-11-13  Bruno Haible  <bruno@clisp.org>
56389
56390                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56391                 function declarations.
56392                 * unsetenv.c (unsetenv): Likewise.
56393
56394         2002-03-04  Bruno Haible  <bruno@clisp.org>
56395
56396                 Portability to AIX 4.3.3.
56397                 * unsetenv.c: New file, extracted from setenv.c.
56398                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56399
56400         2001-12-20  Bruno Haible  <bruno@clisp.org>
56401
56402                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56403                 use malloc instead. For SunOS 4.
56404
56405         2001-12-11  Bruno Haible  <bruno@clisp.org>
56406
56407                 * setenv.c: Declare alloca.
56408                 (compar_fn_t): New typedef.
56409                 (KNOWN_VALUE, STORE_VALUE): Use it.
56410
56411         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56412         setenv.h.
56413
56414 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56415
56416         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56417         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56418         Choose values that are less likely to collide with system fnmatch
56419         options.
56420         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56421         defined (e.g., a pure POSIX system).
56422         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56423         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56424
56425 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56426
56427         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56428         a pain in practice to deal with generated m4 files.  This change
56429         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56430
56431         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56432         and jm-glibc-io.m4, as they are no longer a special case.
56433         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56434         kludge and the auto-generation stuff.  Check only whether the
56435         functions are declared, not whether they exist, since older hosts
56436         that don't declare the functions can't use the optimization anyway.
56437
56438 2002-12-06  Jim Meyering  <jim@meyering.net>
56439
56440         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56441
56442         Merge in changes from libc's misc/error.c, in preparation
56443         for the merge of gnulib's changes back into libc.
56444
56445         * lib/error.c (_): Define only if not already defined.
56446         Move definition to follow all #include directives.
56447         Include unlocked-io.h only if !_LIBC.
56448         [_LIBC]: Include <libio/libioP.h>.
56449         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56450         (fflush): Tweak definition to use INTUSE.
56451         (putc): Define.
56452
56453 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56454
56455         * lib/alloca.c [defined emacs]: Include "lisp.h".
56456         (xalloc_die) [defined emacs]: New macro.
56457         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56458         [! defined emacs]: Include <xalloc.h>.
56459         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56460         (pointer): Typedef to POINTER_TYPE *.
56461         (malloc): Remove decl; we now always use xmalloc.
56462         (alloca): Use old-style definition, since Emacs needs this.
56463         Check for arithmetic overflow when computing combined size.
56464
56465 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56466
56467         Do not generate unlocked-io.h automatically, since it's easier to
56468         maintain it by hand.
56469
56470         * lib/unlocked-io.h: New file, from GNU diffutils,
56471         but with proper copyright notice and attribution.
56472         * lib/gen-uio: Remove.
56473         * lib/Makefile.am: Add copyright notice.
56474         (libfetish_a_SOURCES): Add unlocked-io.h.
56475         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56476         (DISTCLEANFILES, io_functions): Remove macros.
56477         (EXTRA_DIST): Remove gen_uio.
56478         (unlocked-io.h): Remove rule.
56479
56480 2002-12-04  Jim Meyering  <jim@meyering.net>
56481
56482         Reflect the fact that stat.c and lstat.c are no longer generated.
56483         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56484         (DISTCLEANFILES): Likewise.
56485         (EXTRA_DIST): Likewise.
56486         (all_local): Don't depend on stat.c or lstat.c.
56487         (stat.c, lstat.c): Remove rules.
56488         (EXTRA_DIST): Remove xstat.in.
56489
56490         * lib/xstat.in: Remove file.  Contents moved into stat.c.
56491         * lib/stat.c: New file.  Contents mostly from xstat.in.
56492         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56493         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56494
56495         * lib/safe-read.c: Rework so that it may serve to define safe_write,
56496         too.
56497         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56498
56499 2002-12-03  Jim Meyering  <jim@meyering.net>
56500
56501         * lib/safe-read.c, safe-write.c: Change variable names and comments,
56502         but not semantics, to minimize the differences between these two files.
56503         (safe_read): Change comment to mention SAFE_READ_ERROR.
56504
56505         * lib/safe-read.c (IS_EINTR): Define.
56506         (safe_read): Use IS_EINTR in place of in-function cpp directives.
56507
56508 2002-12-02  Jim Meyering  <jim@meyering.net>
56509
56510         * lib/safe-read.c (EINTR): Define.
56511         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56512         (INT_MAX): Provide fallback.
56513         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56514
56515         * lib/safe-read.h (SAFE_READ_ERROR): Define.
56516
56517 2002-12-02  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56520         Define, taken from safe-read.c.
56521         (INT_MAX): Provide fallback.
56522         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56523         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56524
56525         * lib/safe-read.c (EINTR): Remove definition.
56526         (safe_read): Don't use EINTR if it is absent.
56527
56528 2002-12-01  Jim Meyering  <jim@meyering.net>
56529
56530         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56531         zero.
56532         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56533
56534 2002-11-27  Paul Eggert  <eggert@twinsun.com>
56535
56536         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56537         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56538         with `if (! (value < limit)) abort ();', for readability.
56539
56540 2002-11-26  Karl Berry  <karl@gnu.org>
56541
56542         * lib/strdup.c: copy from libc again, with jim's ok.
56543         * lib/.cppi-disable: re-add strdup.c
56544
56545 2002-11-25  Karl Berry  <karl@gnu.org>
56546
56547         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56548         instead of "strtol.c".
56549
56550 2002-11-25  Karl Berry  <karl@gnu.org>
56551
56552         * config/install-sh: update from automake for variable quoting, $0 in
56553         error msgs, etc.
56554
56555         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56556         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56557         entry.
56558
56559 2002-11-25  Jim Meyering  <jim@meyering.net>
56560
56561         * lib/mktime.c: Sync from libc, now that it has the latest fix.
56562
56563 2002-11-24  Karl Berry  <karl@gnu.org>
56564
56565         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56566         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56567
56568 2002-11-24  Jim Meyering  <jim@meyering.net>
56569
56570         Update from coreutils:
56571
56572         * lib/mktime.c: Merge in changes from libc.
56573
56574         Avoid a link-time failure on some Linux systems.
56575         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56576         (otherwise).
56577         (__mon_yday): Declare with the STATIC attribute.
56578         (__mktime_internal): Likewise.
56579         Based on a report from Greg Schafer.
56580
56581 2002-11-23  Jim Meyering  <jim@meyering.net>
56582
56583         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56584         Use `unsigned', not `int', as type of index.
56585
56586         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56587
56588         * lib/fsusage.c: Remove unneeded parentheses around operands of
56589         `defined'.
56590
56591 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56592
56593         * lib/quotearg.h: Allow multiple inclusion by surrounding with
56594         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
56595         so that we can be included first.
56596         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
56597         * lib/quotearg.c: Include quotearg.h immediately after config.h.
56598         No need to include stddef.h or sys/types.h any more.
56599         Surround local include files with "", not "<>".
56600         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56601         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56602         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56603         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56604         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56605         (ISPRINT): Remove; no longer needed now that we assume C89.
56606
56607         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56608         Preserve errno.
56609
56610         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56611         quotearg_char): Use SIZE_MAX rather than
56612         (size_t) -1 when we are talking about "infinity".
56613
56614         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56615
56616 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56617
56618         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56619         hint that one should use `if (! x) abort ();' rather than `assert
56620         (x);', and anyway it's one less thing to worry about configuring.
56621         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56622         hash_rehash, hash_insert): Use abort rather than assert.
56623
56624 2002-11-22  Bruno Haible  <bruno@clisp.org>
56625
56626         * lib/safe-read.h: Assume C89. Add comments.
56627         (safe_read): Change return type to size_t.
56628         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56629         byte counts > SSIZE_MAX correctly.
56630         * lib/safe-write.h: New file.
56631         * lib/safe-write.c: New file.
56632         * lib/full-read.h: New file.
56633         * lib/full-read.c: New file.
56634         * lib/full-write.h: Assume C89. Add comments.
56635         * lib/full-write.c: Include safe-write.h.
56636         (full_write): Rewritten to use safe_write.
56637         Suggested by Jim Meyering and Paul Eggert.
56638
56639 2002-11-21  Jim Meyering  <jim@meyering.net>
56640
56641         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56642
56643         Merge in changes from the coreutils.
56644
56645         2002-09-25  Paul Eggert  <eggert@twinsun.com>
56646         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56647         <stdint.h>.
56648         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56649         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56650         int.  Work more efficiently if X is the same width as uintmax_t.
56651         Do not compare X to -1, to avoid bogus compiler warning.
56652         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56653         Don't assume that f_frsize and f_bsize are the same type.
56654
56655         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56656         warning on FreeBSD.
56657
56658         * lib/makepath.c (make_path): Restore umask *before* creating the final
56659         component.
56660         (make_path): Minor reformatting.
56661
56662         * lib/xmalloc.c: Adjust to work with new autoconf macros,
56663         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56664         HAVE_MALLOC/HAVE_REALLOC.
56665
56666         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56667         dummy ones.  At least on GNU/Linux systems, `auto' means something
56668         else.
56669         From Michael Stone.
56670
56671 2002-11-21  Bruno Haible  <bruno@clisp.org>
56672
56673         Remove case insensitive option matching.
56674         * lib/argmatch.h (argcasematch): Remove declaration.
56675         (ARGCASEMATCH): Remove macro.
56676         (__xargmatch_internal): Remove case_sensitive argument.
56677         (XARGMATCH): Update.
56678         (XARGCASEMATCH): Remove macro.
56679         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56680         case_sensitive argument.
56681         (argcasematch): Remove function.
56682         (__xargmatch_internal): Remove case_sensitive argument.
56683         (main): Use XARGMATCH instead of XARGCASEMATCH.
56684
56685         * lib/xmalloc.c: Change compile-time error message. Add comment about
56686         required autoconf version.
56687
56688 2002-11-20  Paul Eggert  <eggert@twinsun.com>
56689
56690         Merge argmatch cleanups from Bison.  Assume C89.
56691
56692         * lib/argmatch.c: Include config.h here, not in argmatch.h.
56693         Include stdlib.h, for EXIT_FAILURE.
56694         Always include <string.h>, since we assume C89.
56695         (EXIT_FAILURE): Remove pre-C89 bug workaround.
56696         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56697         Include <stddef.h> instead, since it's all we need for size_t.
56698         (PARAMS): Remove.  All uses removed.
56699         (ARRAY_CARDINALITY): Do not bother to #undef.
56700         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56701         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56702         Remove unnecessary parentheses.
56703         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56704         Insert necessary parentheses.
56705         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56706         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56707
56708 2002-11-19  Bruno Haible  <bruno@clisp.org>
56709
56710         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56711         * lib/mbswidth.h: Include <stddef.h>, for size_t.
56712
56713         * lib/mbswidth.h (PARAMS): Remove macro.
56714         (mbswidth, mbsnwidth): Use ANSI C function declarations.
56715         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56716
56717         * lib/gcd.h (PARAMS): Remove macro.
56718         (gcd): Use ANSI C function declarations.
56719         * lib/gcd.c (gcd): Likewise.
56720
56721 2002-11-15  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/strcspn.c: Include <stddef.h>.
56724         (strcspn): Use ANSI C function declaration. Change return type to
56725         size_t. Use NULL.
56726         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
56727         (strpbrk): Use NULL.
56728         * lib/strpbrk.h (PARAMS): Remove macro.
56729         (strpbrk): Use ANSI C function declaration.
56730         * lib/strstr.c: Don't include <sys/types.h>.
56731         * lib/strstr.h (PARAMS): Remove macro.
56732         (strstr): Use ANSI C function declarations.
56733
56734 2002-11-14  Karl Berry  <karl@gnu.org>
56735
56736         * config/mkinstalldirs: `do' on separate line, instead of
56737         `for var; do'.
56738
56739 2002-11-06  Bruno Haible  <bruno@clisp.org>
56740
56741         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
56742         * lib/gcd.c (gcd): Likewise.
56743
56744 2002-11-05  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/gcd.h: New file, from gettext-0.11.5.
56747         * lib/gcd.c: New file, from gettext-0.11.5.
56748
56749 2002-11-05  Bruno Haible  <bruno@clisp.org>
56750
56751         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56752         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56753         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56754         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56755
56756         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
56757         <libintl.h>.
56758         * lib/makepath.c: Include gettext.h instead of <locale.h> and
56759         <libintl.h>.
56760
56761         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
56762         * lib/human.c: Include gettext.h instead of <libintl.h>.
56763         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
56764         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
56765         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
56766         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
56767         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
56768         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
56769         (textdomain): Remove definition.
56770         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
56771
56772         * lib/long-options.c: Remove include of <libintl.h> and definition of
56773         _.
56774         * lib/same.c: Remove include of <libintl.h> and definition of _.
56775
56776 2002-11-04  Owen Taylor  <otaylor@redhat.com>
56777
56778         * lib/config.charset: A few additions for Solaris.
56779
56780 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56781
56782         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
56783         * lib/localcharset.c (locale_charset): Declare as extern "C".
56784
56785 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56786
56787         * lib/config.charset: msdos in uk_UA uses CP1125.
56788
56789 2002-11-04  Bruno Haible  <bruno@clisp.org>
56790
56791         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
56792         * lib/strcase.h: New file, from GNU gettext-0.11.5.
56793         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
56794         * lib/strstr.h: New file, from GNU gettext-0.11.5.
56795         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
56796
56797 2002-11-04  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/localcharset.c (locale_charset): Don't return an empty string.
56800
56801 2002-11-04  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
56804         aliases.
56805
56806 2002-11-04  Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/config.charset: Update for newest glibc. Add canonical names
56809         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
56810
56811 2002-11-04  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/config.charset: Add support for NetBSD.
56814
56815 2002-11-04  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
56818
56819 2002-11-01  Bruno Haible  <bruno@clisp.org>
56820
56821         * configure.in: Add AC_CONFIG_AUX_DIR call.
56822         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
56823         test/Makefile.
56824         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
56825
56826 2002-09-28  Karl Berry  <karl@gnu.org>
56827
56828         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
56829         installed automake until the next release, since changes have been
56830         made.
56831
56832 2002-09-25  Karl Berry  <karl@gnu.org>
56833
56834         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
56835         * lib/getopt*: copy from libc/posix.
56836         * lib/gettext.h: copy from gettext.
56837         * lib/.cppi-disable: add strdup.c, gettext.h.
56838
56839 2002-09-25  Karl Berry  <karl@gnu.org>
56840
56841         * config/srclist.txt: enable gettext.h check.
56842         * config/config.{guess,sub}: update from prep.
56843         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
56844                 from automake 1.6.3.
56845         See srclist*.
56846
56847 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
56848
56849         * regex.c (PATFETCH): Remove the translating fetch.
56850         (PATFETCH_RAW): Rename to PATFETCH.
56851         (set_image_of_range): New fun.
56852         (SET_RANGE_TABLE_WORK_AREA): Use it.
56853         (regex_compile): Don't translate the pattern chars so eagerly.
56854         Only do it when inserting an `exactn' bytecode or when handling
56855         a char-range.
56856         (mutually_exclusive_p): Avoid empty statement.
56857
56858 2002-07-06  Jim Meyering  <meyering@lucent.com>
56859
56860         * m4/README: Don't mention Makefile.am.in.
56861         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
56862
56863 2002-07-01  Jim Meyering  <meyering@lucent.com>
56864
56865         * lib/c-stack.c: Include sys/time.h.
56866         From Volker Borchert.
56867
56868 2002-06-26  Paul Eggert  <eggert@twinsun.com>
56869
56870         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
56871
56872 2002-06-26  Paul Eggert  <eggert@twinsun.com>
56873
56874         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
56875         New macro.  Use it uniformly instead of
56876         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
56877         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
56878         reported by Vin Shelton.
56879
56880 2002-06-22  Paul Eggert  <eggert@twinsun.com>
56881
56882         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
56883         Do not assume SA_SIGINFO behavior.
56884         Bug reported by Jim Meyering on NetBSD 1.5.2.
56885
56886 2002-06-22  Jim Meyering  <meyering@lucent.com>
56887
56888         * m4/c-stack.m4: New file, from diffutils-2.8.2.
56889         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
56890
56891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
56892         now that configure.ac uses AC_GNU_SOURCE.
56893         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
56894         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
56895
56896         Update to latest tools.  Suggestions from Paul Eggert.
56897         * m4/stdbool.m4: New file, from diffutils-2.8.2.
56898         * m4/gnu-source.m4: Update from diffutils-2.8.2.
56899         * m4/fnmatch.m4: Likewise.
56900         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
56901         to AC_HEADER_STDBOOL
56902
56903 2002-06-22  Jim Meyering  <meyering@lucent.com>
56904
56905         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
56906         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
56907
56908 2002-06-22  Jim Meyering  <meyering@lucent.com>
56909
56910         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
56911
56912         * lib/exitfail.c, exitfail.h: Likewise.
56913         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
56914
56915         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
56916         of fnmatch.h.
56917         (EXTRA_DIST): Add fnmatch_loop.c.
56918         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
56919
56920         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
56921         * lib/fnmatch.c: Update from diffutils-2.8.2.
56922         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
56923         * lib/fnmatch.h: Remove file.
56924
56925 2002-06-21  Jim Meyering  <meyering@lucent.com>
56926
56927         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
56928         * m4/mbrtowc.m4: Likewise.
56929
56930         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
56931         * m4/mbswidth.m4: Reflect name change:
56932         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
56933         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56934
56935         * m4/lib-link.m4: Update from gettext-0.11.2.
56936         * m4/gettext.m4: Likewise.
56937
56938         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
56939         From Alfred M. Szmidt.
56940
56941 2002-06-18  Paul Eggert  <eggert@twinsun.com>
56942
56943         * lib/file-type.h: Report an error if neither S_ISREG nor
56944         S_IFREG is defined, instead of using a test specific to glibc
56945         2.2.  This should be safe, since POSIX requires S_ISREG and
56946         Unix Version 7 had S_IFREG.  We don't need to check for
56947         <sys/types.h> since we don't use any symbols that it defines.
56948
56949 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
56950
56951         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
56952         $@-t, so that each temporary file name is unique and valid in the first
56953         8 characters, for operation under DOS.
56954
56955 2002-06-15  Paul Eggert  <eggert@twinsun.com>
56956
56957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
56958
56959 2002-06-15  Jim Meyering  <meyering@lucent.com>
56960
56961         Work even with DJGPP 2.03, which lacks support for symlinks.
56962         From Richard Dawe.
56963         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
56964         is defined.
56965         * lib/lchown.c (S_ISLNK): Likewise.
56966
56967 2002-06-15  Jim Meyering  <meyering@lucent.com>
56968
56969         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
56970         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
56971         have been included before this file.
56972
56973 2002-06-14  Jim Meyering  <meyering@lucent.com>
56974
56975         * lib/file-type.h: Use the version from diffutils-2.8.2.
56976         * lib/file-type.c: Likewise.
56977
56978 2002-06-07  Jim Meyering  <meyering@lucent.com>
56979
56980         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
56981         They're needed at least for NetBSD 1.5.2.
56982         ($statxfs_includes): Include those same headers.
56983         ($statxfs_includes): Include sys/vfs.h if available.
56984         ($statxfs_includes): Likewise for sys/statvfs.h.
56985         Check for the following members in both structs statfs and statvfs:
56986         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
56987
56988 2002-06-01  Jim Meyering  <meyering@lucent.com>
56989
56990         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
56991         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
56992
56993 2002-05-28  Jim Meyering  <meyering@lucent.com>
56994
56995         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
56996         Reported by Volker Borchert.
56997
56998 2002-05-27  Jim Meyering  <meyering@lucent.com>
56999
57000         Fix a problem seen only on nonconforming systems whereby ls.c's
57001         use of localtime, and then of gettimeofday would cause trouble:
57002         the localtime call used to initialize rpl_gettimeofday's save
57003         mechanism would clobber ls's current local time information so
57004         that in any long listing the first file would always be listed
57005         with date 1970-01-01.  Analysis by Volker Borchert.
57006
57007         * lib/gettimeofday.c (localtime): Undefine.
57008         (rpl_localtime): New function.
57009
57010 2002-05-27  Jim Meyering  <meyering@lucent.com>
57011
57012         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57013         localtime.
57014
57015         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57016         use the replacement function; it wouldn't resolve at link time.
57017         Reported by Volker Borchert.
57018
57019 2002-05-22  Jim Meyering  <meyering@lucent.com>
57020
57021         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57022         file-type.h.
57023         * lib/file-type.h: New file.
57024         * lib/file-type.c (file_type): New file/function.  Extracted from
57025         diffutils.
57026
57027 2002-04-30  Jim Meyering  <meyering@lucent.com>
57028
57029         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57030
57031 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57032
57033         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57034
57035 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57036
57037         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57038         Do not check for alloca.h (no longer used) or stdbool.h (was never
57039         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57040
57041 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57042
57043         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57044
57045 2002-04-29  Jim Meyering  <meyering@lucent.com>
57046
57047         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57048         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57049         Use AC_FUNC_STRNLEN here instead.
57050
57051         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57052         With autoconf-2.53a, it's part of AC_PROG_CC.
57053
57054 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57055
57056         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57057         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57058
57059 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57060
57061         * lib/sig2str.h, lib/sig2str.c: New files.
57062         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57063
57064 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57065
57066         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57067         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57068         of 127, since 64 is the largest conceivable number for ancient
57069         nonstandard hosts.
57070         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57071
57072 2002-04-28  Jim Meyering  <meyering@lucent.com>
57073
57074         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57075
57076 2002-04-24  Jim Meyering  <meyering@lucent.com>
57077
57078         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57079         (jm_PREREQ): Use it.
57080
57081         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57082         mach/mach.h fcntl.h.
57083         Check for this function: setlocale.
57084
57085 2002-04-24  Jim Meyering  <meyering@lucent.com>
57086
57087         * lib/gettext.h: New file, from Gettext.
57088         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57089         (libfetish_a_SOURCES): Add gettext.h.
57090
57091 2002-04-16  Jim Meyering  <meyering@lucent.com>
57092
57093         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57094         ut_pid, ut_id, ut_exit.
57095
57096 2002-04-16  Jim Meyering  <meyering@lucent.com>
57097
57098         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57099         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57100         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57101
57102 2002-04-12  Jim Meyering  <meyering@lucent.com>
57103
57104         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57105         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57106         existence of the getmntinfo function.  Needed for Darwin 5.3.
57107
57108         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57109         This is necessary at least on Darwin 5.3.
57110
57111         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57112         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57113         strnlen.o in the library, and that makes some versions of ranlib
57114         object.
57115
57116 2002-04-12  Jim Meyering  <meyering@lucent.com>
57117
57118         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57119
57120 2002-04-09  Jim Meyering  <meyering@lucent.com>
57121
57122         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57123         to be more precise.  Rather than saying we're checking whether the
57124         function `works', say what we're testing.
57125         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57126         Reported by Bruno Haible.
57127
57128 2002-03-10  Jim Meyering  <meyering@lucent.com>
57129
57130         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57131         Suggestion from Santiago Vila.
57132
57133 2002-03-08  Jim Meyering  <meyering@lucent.com>
57134
57135         * lib/rename.c: Mention that this wrapper is needed also on
57136         mips-dec-ultrix4.4 systems.
57137
57138 2002-03-02  Jim Meyering  <meyering@lucent.com>
57139
57140         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57141         not HAVE_CLOCK_SETTIME.
57142
57143 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57144
57145         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57146         Check for clock_settime.
57147
57148 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57149
57150         * lib/nanosleep.h: Rename to....
57151         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57152
57153         * lib/gettime.c: New file.
57154         * lib/settime.c: New file.
57155         * lib/stime.c: Remove.
57156
57157         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57158         timespec.h.  Remove nanosleep.h.
57159
57160 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57161
57162         * m4/acl.m4: New file.
57163         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57164         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57165
57166 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57167
57168         * lib/acl.c, lib/acl.h: New files.
57169         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57170
57171 2002-02-24  Jim Meyering  <meyering@lucent.com>
57172
57173         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57174         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57175         cause trouble.  Reported by Nelson Beebe.
57176
57177 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57178
57179         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57180         compilers that don't know that xalloc_die never returns.
57181
57182 2002-02-20  Jim Meyering  <meyering@lucent.com>
57183
57184         * lib/getdate.c: Regenerate using bison-1.33.
57185
57186 2002-02-17  Jim Meyering  <meyering@lucent.com>
57187
57188         * config/config.guess (main): Don't use `head -1'; it's no longer
57189         portable. Use `sed 1q' instead.
57190
57191 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57192
57193         * m4/codeset.m4: Upgrade to gettext-0.11.
57194         * m4/gettext.m4: Upgrade to gettext-0.11.
57195         * m4/glibc21.m4: Upgrade to gettext-0.11.
57196         * m4/iconv.m4: Upgrade to gettext-0.11.
57197         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57198         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57199         * m4/lib-ld.m4: New file, from gettext-0.11.
57200         * m4/lib-link.m4: New file, from gettext-0.11.
57201         * m4/lib-prefix.m4: New file, from gettext-0.11.
57202         * m4/progtest.m4: Upgrade to gettext-0.11.
57203
57204 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57205
57206         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57207         (jm_PREREQ): Use it.
57208
57209 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57210
57211         * lib/posixver.c, lib/posixver.h: New files.
57212         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57213
57214 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57215             Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57218         (fwrite_success_callback): New declaration.
57219         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57220         print_unicode_char. Call failure callback instead of error.
57221         (fwrite_success_callback): New function.
57222         (exit_failure_callback): New function.
57223         (fallback_failure_callback): New function.
57224         (print_unicode_char): Call unicode_to_mb.
57225
57226 2002-01-26  Jim Meyering  <meyering@lucent.com>
57227
57228         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57229         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57230
57231 2002-01-26  Jim Meyering  <meyering@lucent.com>
57232
57233         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57234
57235 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57236
57237         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57238
57239 2002-01-22  Jim Meyering  <meyering@lucent.com>
57240
57241         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57242         Otherwise, some versions of automake would omit the rule that makes
57243         Makefile from Makefile.in.
57244
57245 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57246
57247         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57248         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57249         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57250         (memcoll): Set errno to zero if there is no error.
57251
57252         * lib/quotearg.c (quotearg_buffer_restyled):
57253         Fix bug with quoting buffers containing NUL when backslashing escapes.
57254         This bug was exposed by the other changes in this patch.
57255         (quotearg_n_options): New arg ARGSIZE.
57256         All callers changed.
57257         (quoting_options_from_style): New function.
57258         (quotearg_n_style): Use it.
57259         (quotearg_n_style_mem): New function.
57260
57261         * lib/quotearg.h (quotearg_n_style_mem): New function.
57262
57263 2002-01-19  Jim Meyering  <meyering@lucent.com>
57264
57265         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57266         Remove useless quotes: DF_PROG="df".
57267         * m4/strnlen.m4: New file.
57268
57269 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57270
57271         * lib/backupfile.c (ISDIGIT): Comment fix.
57272         * lib/getdate.y (ISDIGIT): Likewise.
57273         * lib/posixtm.c (ISDIGIT, year): Likewise.
57274         * lib/strverscmp.c (ISDIGIT): Likewise.
57275         * lib/userspec.c (ISDIGIT): Likewise.
57276
57277 2002-01-16  Jim Meyering  <meyering@lucent.com>
57278
57279         * lib/getdate.y: Add three semicolons, each just before a closing
57280         brace. Bison (as of version 1.31) no longer papers over that mistake.
57281
57282 2002-01-05  Jim Meyering  <meyering@lucent.com>
57283
57284         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57285
57286 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57287
57288         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57289         not silently exit merely because the output buffer happens to
57290         have nothing pending.
57291
57292 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57293
57294         See the big note in ../ChangeLog.
57295         * lib/human.c (suffixes): Prefer K to k for 1024.
57296         (generate_suffix_backwards): New function.
57297         (human_readable_inexact): Use it.
57298         * lib/xstrtol.c (__xstrtol): If there is no number but there
57299         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57300         Accept 'K' as well as 'k'.
57301
57302 2001-12-15  Jim Meyering  <meyering@lucent.com>
57303
57304         * lib/regex.h (__restrict_arr): Update from libc.
57305
57306         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57307         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57308         (STREQ): Define.
57309
57310 2001-12-14  Jim Meyering  <meyering@lucent.com>
57311
57312         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57313         Suggestion from Bruno Haible.
57314
57315 2001-12-10  Jim Meyering  <meyering@lucent.com>
57316
57317         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57318         xrealloc, Instead, include "xalloc.h".
57319         (initbuffer): Don't cast xmalloc return value to char*.
57320         (readline): Reword comment.
57321         Don't cast xrealloc return value to char*
57322         Return NULL, not 0.
57323
57324 2001-12-09  Jim Meyering  <meyering@lucent.com>
57325
57326         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57327         about `signed and unsigned type in conditional expression'.
57328         * lib/posixtm.c (posix_time_parse): Likewise.
57329
57330         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57331
57332         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57333         to avoid a pedantic warning.
57334
57335         * lib/getstr.c: Don't include assert.h.
57336         (getstr): Remove warning-evoking assertions.
57337         Return -1 if offset parameter is out of bounds.
57338         Change the type of a local from int to size_t.
57339
57340         * lib/strftime.c (my_strftime_localtime_r): Include this function
57341         definition in the `#if ! HAVE_TM_GMTOFF' block.
57342
57343         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57344         Include xalloc.h instead.
57345
57346 2001-12-02  Jim Meyering  <meyering@lucent.com>
57347
57348         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57349         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57350         included.
57351
57352         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57353         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57354
57355 2001-11-30  Akim Demaille  <akim@epita.fr>
57356
57357         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57358         before being defined.
57359
57360 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57361
57362         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57363         First arg is int, not unsigned.
57364         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57365         (SIZE_MAX, UINT_MAX): New macros.
57366         (quotearg_n_options): Abort if N is negative.
57367         Avoid overflow check on hosts where size_t is 64 bits and int
57368         is 32 bits, as overflow is impossible there.
57369         Fix off-by-one typo that caused unnecessary reallocation.
57370
57371 2001-11-27  Jim Meyering  <meyering@lucent.com>
57372
57373         * lib/tempname.c: Merge with version from libc.
57374         * lib/regex.c: Likewise.
57375
57376         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57377         systems for which STDC_HEADERS is 0, it was not included, resulting in
57378         a warning about an integer-to-pointer conversion problem with getenv.
57379         Reported by Volker Borchert.
57380
57381 2001-11-26  Jim Meyering  <meyering@lucent.com>
57382
57383         * lib/gtod.h: Remove file.
57384         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57385         * lib/gettimeofday.c: Don't include gtod.h.
57386         (GTOD_init): Remove function.
57387         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57388         Suggestion from Volker Borchert.
57389
57390 2001-11-23  Jim Meyering  <meyering@lucent.com>
57391
57392         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57393         it.
57394         * lib/hash.c (struct hash_table): Define it here instead.
57395
57396 2001-11-22  Jim Meyering  <meyering@lucent.com>
57397
57398         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57399
57400 2001-11-20  Jim Meyering  <meyering@lucent.com>
57401
57402         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57403         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57404
57405 2001-11-19  Jim Meyering  <meyering@lucent.com>
57406
57407         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57408         directory.  Use "conftestXXXXXX" as the template.
57409         Suggestion from Paul Eggert.
57410
57411         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57412         immediately, so the test doesn't mistakenly hit the max-open-files
57413         limit.
57414
57415 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57416
57417         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57418         (TEMPORARIES): New macro.
57419         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57420         removes an artificial limitation (e.g. HP-UX 10.20, where
57421         TMP_MAX is 17576).
57422
57423 2001-11-18  Jim Meyering  <meyering@lucent.com>
57424
57425         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57426
57427 2001-11-18  Jim Meyering  <meyering@lucent.com>
57428
57429         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57430         on SunOS 4.
57431
57432         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57433         files will be created before anything else.
57434
57435 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57436
57437         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57438         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57439
57440 2001-11-17  Jim Meyering  <meyering@lucent.com>
57441
57442         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57443         Prompted by a report from Bob Proulx.
57444
57445         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57446         Instead, require UTILS_FUNC_MKSTEMP.
57447
57448 2001-11-17  Jim Meyering  <meyering@lucent.com>
57449
57450         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57451         Now, that's done as part of AC_FUNC_STRTOD.
57452
57453 2001-11-17  Jim Meyering  <meyering@lucent.com>
57454
57455         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57456         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57457         rather than group writable.  Patch by Juan F. Codagnone.
57458
57459         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57460         xrealloc, Instead, include "xalloc.h".
57461
57462         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57463         Remove explicit declarations of xmalloc, xrealloc,
57464         and xstrdup.  Instead, include "xalloc.h".
57465
57466         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57467         unlocked-io.h.
57468         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57469         Likewise.
57470         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57471
57472         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57473         Reported by Padraig Brady.
57474
57475         * lib/mkstemp.c: #undef mkstemp.
57476         Include config.h.
57477         (rpl_mkstemp): Rename from mkstemp.
57478         Protoize.
57479
57480 2001-11-16  Jim Meyering  <meyering@lucent.com>
57481
57482         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57483         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57484         determine the amount of total physical memory, use pstat_getstatic.
57485         HPUX-11 doesn't define _SC_PHYS_PAGES.
57486         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57487         If sysconf couldn't be used to determine the amount of available
57488         physical memory, use both pstat_getstatic and pstat_getdynamic.
57489         Based on a patch from Bob Proulx.
57490
57491 2001-11-10  Jim Meyering  <meyering@lucent.com>
57492
57493         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57494         (jm_PREREQ): Use it.
57495
57496 2001-11-09  Jim Meyering  <meyering@lucent.com>
57497
57498         * m4/jm-macros.m4: Require autoconf-2.52f.
57499         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57500         Use these AC_-prefixed names, not the AM_-prefixed ones.
57501
57502         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
57503
57504 2001-11-05  Jim Meyering  <meyering@lucent.com>
57505
57506         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57507
57508 2001-11-04  Jim Meyering  <meyering@lucent.com>
57509
57510         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57511         $DEFS.
57512
57513 2001-11-03  Jim Meyering  <meyering@lucent.com>
57514
57515         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57516         of AC_DEFUN.
57517
57518         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57519         know the name of the variable in the macro definition.
57520
57521 2001-11-03  Jim Meyering  <meyering@lucent.com>
57522
57523         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57524         in argmatch_to_argument call.
57525
57526         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57527         argument.
57528
57529         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57530         e.g., a fault due to an attempt to free a NULL pointer.
57531
57532 2001-11-01  Jim Meyering  <meyering@lucent.com>
57533
57534         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57535         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57536
57537 2001-11-01  Jim Meyering  <meyering@lucent.com>
57538
57539         * lib/dirfd.c, lib/dirfd.h: New files.
57540         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57541
57542         * lib/hash.c (hash_print) [TESTING]: Clean up.
57543
57544 2001-10-22  Paul Eggert  <eggert@twinsun.com>
57545
57546         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57547         to avoid a warning if -Wall.
57548
57549 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
57550
57551         * README: New file
57552         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57553         (per RMS's instructions, this is now the canonical source)
57554         * lgpl/, gpl/: New directories.
57555
57556 2001-10-21  Paul Eggert  <eggert@twinsun.com>
57557
57558         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57559
57560 2001-10-21  Jim Meyering  <meyering@lucent.com>
57561
57562         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
57563         this code would end up calling gettext even in packages built
57564         with --disable-nls.
57565         * lib/getopt.c (_): Likewise.
57566         * lib/regex.c (_): Likewise.
57567
57568 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57569
57570         * m4/error.m4 (jm_PREREQ_ERROR):
57571         Do not invoke AC_CHECK_FUNCS with strerror_r, as
57572         AC_FUNC_STRERROR_R does that.
57573         Check for strerror declaration.
57574
57575         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57576         are supposed to have them these days.
57577         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57578         Merge changes from latest Autoconf CVS.
57579         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57580         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57581         POSIX decided to standardize on the int flavor of strerror_r.
57582
57583 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57584
57585         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57586         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57587         Use strerror_r that is only a macro, even if it is not a function.
57588         (strerror): Check for HAVE_DECL_STRERROR before declaring.
57589         (private_strerror): Use prototypes, not old-style function definition.
57590         (print_errno_message): New function.
57591         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57592         char*-flavored one.
57593         (error_tail, error, error_at_line): Use it.
57594
57595 2001-10-11  Jim Meyering  <meyering@lucent.com>
57596
57597         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57598         and quote_n (1, ... to avoid clobbering a buffer.
57599
57600 2001-10-05  Jim Meyering  <meyering@lucent.com>
57601
57602         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57603         hash-pjw.h.
57604         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57605         * lib/hash-pjw.h: New file.
57606
57607 2001-09-30  Jim Meyering  <meyering@lucent.com>
57608
57609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57610         `struct fsstat' has the `f_fstypename' member.
57611         Use that to define FS_TYPE, which is now used to make
57612         the getfsstat link test tighter.
57613
57614 2001-09-30  Jim Meyering  <meyering@lucent.com>
57615
57616         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57617         Include <sys/ucred.h>, for Apple Darwin.
57618         Include sys/mount.h and sys/fs_types.h only if available.
57619         (FS_TYPE): Define.
57620         (read_filesystem_list): Use FS_TYPE.
57621
57622 2001-09-29  Paul Eggert  <eggert@twinsun.com>
57623
57624         * lib/exclude.c (excluded_filename): 0 -> false, since it's
57625         a boolean context.
57626
57627 2001-09-29  Jim Meyering  <meyering@lucent.com>
57628
57629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57630         [one-argument getmntent function]): Include stdio.h before mntent.h.
57631         SunOS 4.1.x needs it for the declaration of `FILE'.
57632         Patch by Volker Borchert.
57633
57634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57635         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57636         sys/fs_types.h, and make the link-test for getfsstat guard #include
57637         directives with appropriate #if HAVE_*_H tests so that we can
57638         detect getfsstat on Apple Darwin1.3.7 systems.
57639         Reported by Nelson Beebe.
57640         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57641
57642 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57643
57644         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57645         #defines strtoimax.  Also treat the other strto* functions
57646         like strtoimax.
57647
57648         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57649         Check for strtoul and strtoumax,
57650         as those declarations are made even in the signed case.
57651         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57652         Likewise, for strtol and strtoimax.
57653
57654 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57655
57656         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57657         #defines strtoimax.  Also treat the other strto* functions
57658         like strtoimax.
57659
57660         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57661         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57662         (strtoimax, strtoumax): Do not declare if already defined as a macro.
57663
57664 2001-09-26  Jim Meyering  <meyering@lucent.com>
57665
57666         Most macros in unlocked-io.h had the wrong number of arguments.
57667         * lib/gen-uio: New script.
57668         (USE_UNLOCKED_IO): Define to 1 if not already defined.
57669         * lib/unlocked-io.hin: Remove file.
57670         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57671         rather than trying to embed it here.
57672         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
57673         Reported by Padraig Brady.
57674
57675 2001-09-25  Volker Borchert  <bt@teknon.de>
57676
57677         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57678         `result'.
57679
57680 2001-09-24  Jim Meyering  <meyering@lucent.com>
57681
57682         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57683
57684 2001-09-23  Jim Meyering  <meyering@lucent.com>
57685
57686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57687         instead of the mere test for existence of mntent.h.  The latter
57688         would get a false-positive on AIX 3.4 systems.
57689         In the outer getmntent if-block, don't die if neither of the getmntent
57690         tests succeeds.  Instead, just fall through and continue with the
57691         remaining tests.
57692
57693 2001-09-23  Jim Meyering  <meyering@lucent.com>
57694
57695         * lib/mountlist.c: Remove useless parentheses in #if directives.
57696         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57697         the deprecated MOUNTED symbol is no longer defined in mntent.h.
57698
57699 2001-09-22  Jim Meyering  <meyering@lucent.com>
57700
57701         * m4/gettext.m4: New file.  From gettext.
57702         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57703         * m4/progtest.m4: Likewise
57704         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57705         * m4/glibc21.m4: Likewise.
57706
57707         * m4/libintl.m4: Remove.  No longer used.
57708
57709 2001-09-22  Jim Meyering  <meyering@lucent.com>
57710
57711         * lib/localcharset.c: Update from latest gettext.
57712         * lib/config.charset: Likewise.
57713
57714 2001-09-20  Jim Meyering  <meyering@lucent.com>
57715
57716         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57717         strtoimax.
57718         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57719         strtoumax.
57720
57721 2001-09-20  Jim Meyering  <meyering@lucent.com>
57722
57723         * lib/xstrtol.c (strtoimax): Guard declaration with
57724         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
57725         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
57726         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
57727         (strtoumax): Likewise, for completeness (it wasn't necessary).
57728
57729 2001-09-17  Paul Eggert  <eggert@twinsun.com>
57730
57731         * lib/strtoimax.c (HAVE_LONG_LONG):
57732         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
57733         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
57734         to work around bug in IBM C compiler.
57735
57736 2001-09-17  Jim Meyering  <meyering@lucent.com>
57737
57738         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
57739         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
57740         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
57741         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
57742         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
57743         whenever the right hand side need not be expanded by the shell.
57744
57745 2001-09-16  Paul Eggert  <eggert@twinsun.com>
57746
57747         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
57748         library.  It's not correct, as some older glibcs are buggy.
57749         fnmatch wasn't fixed until glibc 2.2.
57750
57751         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
57752         special shell magic here.
57753
57754 2001-09-16  Jim Meyering  <meyering@lucent.com>
57755
57756         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
57757         * m4/jm-macros.m4: Require it.
57758
57759 2001-09-16  Jim Meyering  <meyering@lucent.com>
57760
57761         * lib/mkdir.c: New file.
57762
57763 2001-09-15  Jim Meyering  <meyering@lucent.com>
57764
57765         * m4/jm-macros.m4: Check for help2man.
57766
57767 2001-09-11  Jim Meyering  <meyering@lucent.com>
57768
57769         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
57770         The body, by Paul Eggert, was moved here from configure.in.
57771         * m4/jm-macros.m4: Require UTILS_HOST_OS.
57772
57773 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57774
57775         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
57776         (jm_PREREQ): Use it.
57777
57778 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57779
57780         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
57781         Use ssize_t, not int, to store result of readlink.
57782         Check for ssize_t overflow as well as size_t overflow,
57783         as POSIX says the result of readlink is implementation-defined
57784         when ssize_t overflows.
57785         Remove unnecessary cast to char*.
57786         Use free+malloc instead of realloc, as the storage doesn't need
57787         to be preserved and it's clearer and can be more efficient that way.
57788         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
57789         * lib/xreadlink.h (xreadlink): Update prototype.
57790
57791 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57792
57793         * lib/xgetcwd.c: Revert some of the previous change; intead,
57794         fix the HAVE_GETCWD_NULL code to behave more like the
57795         !HAVE_GETCWD_NULL code used to.
57796
57797         Include "xalloc.h".
57798         (xgetcwd): Do not return NULL when memory is exhausted; instead,
57799         invoke xalloc_die.
57800
57801 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57802
57803         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
57804         sys/param.h, as pathmax.h includes them.
57805
57806 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57807
57808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
57809         (jm_PREREQ_XGETCWD): New macro.
57810
57811         * m4/getcwd.m4: New file.
57812
57813 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57814
57815         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
57816         like the HAVE_GETCWD_NULL code.
57817         Include pathmax.h if not HAVE_GETCWD.
57818         Do not include xalloc.h.
57819         (INITIAL_BUFFER_SIZE): New symbol.
57820         Do not use xmalloc / xrealloc, since the caller is responsible for
57821         handling errors.  Preserve errno around `free' during failure.
57822         Do not overrun buffer when using getwd.
57823
57824 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57825
57826         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
57827         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
57828         getcwd (NULL, 0).
57829
57830 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57831
57832         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
57833         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
57834         spotted by Jim Meyering.
57835
57836 2001-09-03  Jim Meyering  <meyering@lucent.com>
57837
57838         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
57839         failure.
57840
57841 2001-09-02  Jim Meyering  <meyering@lucent.com>
57842
57843         * lib/error.c: Update from GNU libc.
57844
57845 2001-09-01  Jim Meyering  <meyering@lucent.com>
57846
57847         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
57848         Used by df.
57849
57850 2001-09-01  Jim Meyering  <meyering@lucent.com>
57851
57852         * lib/xreadlink.c: New file.
57853         * lib/xreadlink.h: New file.
57854         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
57855         xreadlink.h.
57856
57857         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
57858         doesn't conflict with sparc Solaris 7's definition in
57859         /usr/include/sys/int_types.h.
57860
57861         * lib/exclude.c: Use `""', not `<>' to #include non-system header
57862         files.
57863         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
57864         and strncasecmp as r-values.  Unixware didn't have declarations.
57865
57866 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57867
57868         * lib/xstrtol.h: Add copyright notice.
57869         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
57870         LONGINT_INVALID_SUFFIX_CHAR.
57871
57872 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57873
57874         * lib/xstrtol.c (strtoimax): New decl.
57875
57876 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57877
57878         * lib/xgetcwd.c: Don't include pathmax.h.
57879         Include stdlib.h and unistd.h if available.
57880         Include xalloc.h.
57881         (xmalloc, xstrdup, free): Remove decls.
57882         (xgetcwd): Don't assume sizes fit in unsigned.
57883         Check for overflow when computing sizes.
57884         Simplify reallocation code.
57885
57886 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57887
57888         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
57889         a directory's st_size can have an arbitrary value, so the old
57890         usage could waste an arbitrary amount of memory.  All uses
57891         changed.
57892         * lib/savedir.h: Update prototype.
57893
57894 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57895
57896         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
57897
57898         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
57899         old strtoimax.c.
57900
57901         Also, make the following further changes to make this file's
57902         configuration more similar to that of strtol.c:
57903         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
57904         (strtoumax, uintmax_t, strtoull, strtol): Remove.
57905         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
57906         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
57907         changed to signed values.
57908
57909         And make the following changes as well:
57910         Fix copyright notice, as 1999 was missing.
57911         (verify): New macro.
57912         (strtoimax): Check sizes at compile-time, not run-time.
57913         Prefer strtol to strtoll if both work.
57914         (main): Remove; it was not that useful and was a pain to maintain.
57915
57916         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
57917
57918 2001-08-31  Jim Meyering  <meyering@lucent.com>
57919
57920         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
57921         Use an initial, malloc'd, buffer of length 128 rather than
57922         a statically allocated one of length 1024.
57923
57924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57925
57926         Simplify code, partly by assuming autoconf 2.52 semantics.
57927
57928         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
57929
57930         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
57931         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
57932         All uses removed.
57933         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
57934         Move AC_REQUIRE to next-to-top level, to avoid confusion.
57935         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
57936         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
57937         jm_AC_HEADER_INTTYPES_H.
57938         * m4/jm-macros.m4 (jm_MACROS): Likewise.
57939
57940         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
57941
57942         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57943         Quote first arg of AC_DEFUN.
57944         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
57945         since they are needed to parse the include file even if we need
57946         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
57947         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
57948         but with opposite signedness.
57949
57950 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57951
57952         Merge 'exclude' changes from tar 1.13.22.
57953         This fixes one or two unlikely storage allocation overflow bugs,
57954         but doesn't change user-visible behavior otherwise.
57955
57956 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57957
57958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
57959         (jm_PREREQ_EXCLUDE): New macro.
57960
57961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57962
57963         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
57964         tm to be declared.
57965
57966 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57967
57968         * lib/hash.c: Remove '2001' from copyright notice.
57969
57970 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57971
57972         * lib/full-write.h: New file.
57973         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
57974         * lib/full-write.c: Correct credits, as cccp.c no longer
57975         exists and anyway it was so heavily changed from the old cccp
57976         code as to be unrecognizable.  Include full-write.h.
57977         (full_write) Return size_t, with short writes meaning failure.
57978         All callers changed.  This fixes a bug with large buffers
57979         on 64-bit hosts.
57980         * lib/utime.c: Include full-write.h.
57981
57982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57983
57984         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
57985         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
57986         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
57987         Include if available.
57988         (<xalloc.h>): Include
57989         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
57990         (verify): New macro.  Use it to verify that EXCLUDE macros do not
57991         collide with FNM macros.
57992         (struct patopts): New struct.
57993         (struct exclude): Use it, as exclude patterns now come with options.
57994         (new_exclude): Support above changes.
57995         (new_exclude, add_exclude_file):
57996         Initial size must now be a power of two to simplify overflow checking.
57997         (free_exclude, fnmatch_no_wildcards): New function.
57998         (excluded_filename): No longer requires options arg, as the options
57999         are determined by add_exclude.  Now returns bool, not int.
58000         (excluded_filename, add_exclude):
58001         Add support for the fancy new exclusion options.
58002         (add_exclude, add_exclude_file): Now takes int options arg.
58003         Check for arithmetic overflow when computing sizes.
58004         (add_exclude_file): xrealloc might modify errno, so don't
58005         realloc until after errno might be used.
58006
58007         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58008         New macros.
58009         (free_exclude): New decl.
58010         (add_exclude, add_exclude_file): Now takes int options arg.
58011         (excluded_filename): No longer requires options arg, as the options
58012         are determined by add_exclude.  Now returns bool, not int.
58013
58014 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58015
58016         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58017
58018 2001-08-27  Jim Meyering  <meyering@lucent.com>
58019
58020         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58021
58022         * lib/version-etc.c (N_): Remove definition.
58023         Revert most of last change.
58024         Instead, simply don't mark the `Copyright...' string for translation.
58025         Based on advice from Paul Eggert.
58026
58027         * lib/strtoxmax.c: Tweak comment.
58028
58029 2001-08-26  Jim Meyering  <meyering@lucent.com>
58030
58031         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58032
58033         * m4/xstrtoimax.m4: New file.
58034         * m4/xstrtoumax.m4: Add comments explaining why we
58035         AC_REPLACE_FUNCS(strtol).
58036
58037 2001-08-26  Jim Meyering  <meyering@lucent.com>
58038
58039         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58040         of copyright with `%s' so translators don't get an untranslated
58041         message in 2002.
58042         (COPYRIGHT_YEAR): Define.
58043         (version_etc): Use fprintf rather than fputs.
58044         Suggestion from Ulrich Drepper.
58045
58046         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58047
58048         * lib/strtoll.c: New file, from GNU libc.
58049         * lib/xstrtoimax.c: New file.
58050
58051         * lib/xstrtol.h: Add xstrtoimax.
58052         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58053         * lib/strtoimax.c: New file.  Likewise, but first define
58054         STRTOUXMAX_SIGNED.
58055
58056         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58057         ...
58058         * lib/strtoxmax.c: ... then renamed to this.
58059
58060 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58061
58062         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58063         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58064         (jm_AC_TYPE_INTMAX_T): New macro.
58065         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58066
58067         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58068
58069         * m4/longlong.m4: Renamed from ulonglong.m4.
58070         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58071         * m4/uintmax_t.m4: Removed.
58072
58073 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58074
58075         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58076         Port to Solaris 8, where 'sed' requires a space after the 'r'
58077         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58078         Redirect output to $tmp just once.
58079
58080 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58081
58082         * lib/addext.c (<errno.h>): Include.
58083         (errno): Declare if not defined.
58084         (addext): Work correctly when pathconf returns -1 and leaves
58085         errno alone because there is no limit.  Also, work even if
58086         pathconf returns a value greater than SIZE_MAX.
58087
58088 2001-08-12  Jim Meyering  <meyering@lucent.com>
58089
58090         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58091         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58092         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58093         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58094         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58095         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58096         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58097         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58098         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58099         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58100         utime.m4, utimes.m4, xstrtoumax.m4:
58101         Quote the first argument in each use of AC_DEFUN.
58102
58103 2001-08-12  Jim Meyering  <meyering@lucent.com>
58104
58105         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58106         Simply `return getcwd (NULL, 0);'.
58107         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58108         Use 1300 as initial value for length, not PATH_MAX.
58109
58110         * lib/pathmax.h: Clean up cpp syntax.
58111
58112 2001-08-12  Jim Meyering  <meyering@lucent.com>
58113
58114         * lib/gettimeofday.c: New file.
58115         * lib/gtod.h: New file.
58116         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58117
58118 2001-08-05  Jim Meyering  <meyering@lucent.com>
58119
58120         * m4/jm-macros.m4: Require autoconf-2.52.
58121
58122 2001-08-04  Jim Meyering  <meyering@lucent.com>
58123
58124         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58125         stmt, to get in sync with glibc.
58126
58127 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58128
58129         The following changes are from gettext 0.10.39 as maintained by
58130         Bruno Haible.
58131
58132         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58133         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58134         with inverted sense.  All uses changed.
58135
58136         * lib/mbswidth.c: Don't include <limits.h>.
58137         Include <stdlib.h> and <string.h> unconditionally.
58138         (iswcntrl, mbsinit, ISCNTRL): New macros.
58139         (mbsnwidth): Use K&R style function declarations.
58140         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58141         can optimize it when MB_CUR_MAX == 1.
58142         The width of control characters is zero, not 1.
58143
58144 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58145
58146         The following changes are from gettext 0.10.39 as maintained by
58147         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58148
58149         * m4/codeset.m4: Upgrade to serial AM1.
58150         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58151         all uses changed.  Quote first arg of AC_DEFUN.
58152         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58153
58154         * m4/iconv.m4: Upgrade to serial AM2.
58155         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58156         Add --with-libconv-prefix.
58157         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58158         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58159         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58160         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58161         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58162
58163         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58164         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58165         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58166         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58167         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58168         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58169         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58170         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58171         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58172
58173         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58174         string.h any more.
58175
58176         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58177         not the default value.
58178
58179         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58181         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58182         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58183         Also check for iswcntrl, used for wcwidth fallback.
58184         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58185         to Autoconf 2.13.
58186
58187 2001-08-03  Jim Meyering  <meyering@lucent.com>
58188
58189         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58190         as it was in the original.  Reported by Paul Eggert.
58191
58192 2001-07-16  Jim Meyering  <meyering@lucent.com>
58193
58194         * m4/gettimeofday.m4: New file.
58195         Prompted by a report from Bernhard Baehr.
58196
58197 2001-07-15  Jim Meyering  <meyering@lucent.com>
58198
58199         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58200         stuff. Now it's in ../Makefile.cfg.
58201
58202 2001-07-15  Jim Meyering  <meyering@lucent.com>
58203
58204         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58205         (BUILT_SOURCES): Add unlocked-io.h.
58206         (io_functions): Define.
58207         (unlocked-io.h): New rule.
58208         (DISTCLEANFILES): Add unlocked-io.h.
58209         (all-local): Depend on unlocked-io.h, to ensure it is created.
58210
58211         * lib/unlocked-io.hin: New file
58212
58213         * lib/regex.c: Update from glibc.
58214
58215 2001-07-05  Jim Meyering  <meyering@lucent.com>
58216
58217         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58218         recommendation.
58219         (libfetish_a_SOURCES): Put all .h files here instead.
58220         Remove a thus-exposed (better checks in automake) duplicate and
58221         two unnecessary .h files.
58222
58223 2001-07-04  Jim Meyering  <meyering@lucent.com>
58224
58225         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58226         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58227         distcheck failure.
58228
58229 2001-07-02  Jim Meyering  <meyering@lucent.com>
58230
58231         The following changes were prompted by suggestions from Bruno Haible.
58232
58233         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58234         is now generated.
58235         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58236         definition of EXTRA_DIST.
58237         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58238         ensure that the generated file is created/updated whenever the list
58239         of $(unlocked_functions) is changed.
58240         (jm-glibc-io.m4): New rule.
58241         (unlocked-io.h): New rule -- currently unused.
58242
58243 2001-06-24  Jim Meyering  <meyering@lucent.com>
58244
58245         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58246         unmatched right bracket, rather than kludging it with an extra,
58247         falsely-matching quote in a comment.  Patch by Akim Demaille.
58248
58249 2001-06-11  Jim Meyering  <meyering@lucent.com>
58250
58251         * lib/regex.c: Update from GNU libc.
58252
58253 2001-05-27  Jim Meyering  <meyering@lucent.com>
58254
58255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58256         Check for ut_type in struct utmp.
58257
58258 2001-05-27  Jim Meyering  <meyering@lucent.com>
58259
58260         * lib/readutmp.h (UT_TYPE): Define.
58261
58262 2001-05-24  Jim Meyering  <meyering@lucent.com>
58263
58264         * lib/argmatch.c: Include "quote.h".
58265         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58266         quote function.  Reported by Göran Uddeborg.
58267
58268 2001-05-22  Jim Meyering  <meyering@lucent.com>
58269
58270         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58271         now that we use the package-supplied version unconditionally.
58272         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58273
58274 2001-05-21  Jim Meyering  <meyering@lucent.com>
58275
58276         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58277         shell syntax errors.
58278
58279 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58280
58281         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58282
58283 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58284
58285         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58286         Don't bother to check library strftime, since
58287         we'll be using our own my_strftime function anyway.
58288         Define my_strftime instead of strftime.
58289
58290 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58291
58292         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58293         which is not yet declared.
58294
58295 2001-05-15  Jim Meyering  <meyering@lucent.com>
58296
58297         * m4/regex.m4: Use proper quoting so brackets appear in the test
58298         program.
58299         Reported by, and with help from, Bruno Haible.
58300
58301 2001-05-13  Jim Meyering  <meyering@lucent.com>
58302
58303         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58304         undefined.
58305
58306 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58307
58308         dirname code cleanup.  base_name now behaves more compatibly
58309         with POSIX basename when given file names that have trailing
58310         slashes, and similarly for dir_name.  Add new primitives
58311         base_len and dir_len.  Put the directory-name-related decls
58312         into dirname.h.
58313
58314         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58315         * lib/backupfile.c (base_name): Likewise.
58316         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58317         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58318         * lib/makepath.c (strip_trailing_slashes): Likewise.
58319         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58320         ISSLASH): Likewise.
58321         * lib/rename.c (strip_trailing_slashes): Likewise.
58322         * lib/same.c (base_name): Likewise.
58323         * lib/stripslash.c (ISSLASH): Likewise.
58324
58325         * lib/addext.c: Include <dirname.h> after size_t is defined.
58326         * lib/backupfile.c: Likewise.
58327
58328         * lib/addext.c (addext): Use base_len to trim redundant
58329         trailing slashes instead of doing it ourselves.
58330         But do not trim the last slash if it is not redundant.
58331
58332         * lib/backupfile.c (find_backup_file_name,
58333         max_backup_version): Use base_len instead of rolling it ourselves.
58334         Handle the case of "" and (on DOS) "C:" correctly.
58335
58336         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58337         needed. Include <string.h>, <dirname.h>.
58338         (base_name): Allow file names ending in slashes, other than names
58339         that are all slashes.  In this case, return the basename followed
58340         by the slashes.  This is more general, and can be used in places
58341         where the original base_name purposely had an assertion failure.
58342         (base_len): New function.
58343
58344         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58345         Do not include <assert.h>; no longer needed.
58346         Include xalloc.h.
58347         (memrchr): Remove decl.
58348         (dir_name_r): Remove.
58349         (dir_len): Renamed from dirlen.  All callers changed.
58350         Rewrite in terms of base_name, for simplicity and consistency.
58351         (dir_name): Never return NULL.  All callers changed.
58352         Do not include <stdlib.h> in test program; no longer needed.
58353         return 0; is fine for test program.
58354
58355         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58356         New macros.
58357         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58358
58359         * lib/path-concat.c (path_concat): Use base_len to compute
58360         base length, not strlen; this means we cannot rely on memcpy
58361         to null-terminate.
58362
58363         * lib/same.c (STREQ): Remove.
58364         (same_name): Handle the case where the basename ends in trailing '/'.
58365
58366         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58367         a slash was stripped.  Do not strip the last slash after a
58368         file system prefix.
58369
58370 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58371
58372         * lib/Makefile.am (libfetish_a_SOURCES):
58373         Add strftime.c, since we now compile it on all hosts.
58374
58375         * lib/strftime.c (my_strftime):
58376         Define to nstrftime if emacs, but only if my_strftime is not defined.
58377         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58378         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58379         Add one more extra argument: a nanoseconds value.
58380         All uses changed.
58381         (ns): New macro.
58382         (my_strftime function): Add %N format.
58383         (emacs_strftimeu): Renamed from emacs_strftime,
58384         with extra ut argument.
58385
58386 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58387
58388         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58389
58390 2001-04-21  Jim Meyering  <meyering@lucent.com>
58391
58392         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58393         doesn't interfere.
58394
58395 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58396
58397         * m4/ftruncate.m4: Check for chsize.
58398         Link with ftruncate.o unconditionally if ftruncate is missing.
58399         This was required when cross-compiling to i586-mingw32msvc.
58400
58401 2001-04-08  Jim Meyering  <meyering@lucent.com>
58402
58403         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58404         recomputed; that's necessary when the offset spans a DST transition.
58405         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58406
58407 2001-04-02  Jim Meyering  <meyering@lucent.com>
58408
58409         * lib/regex.h, regex.c: Update from GNU libc.
58410
58411 2001-03-24  Jim Meyering  <meyering@lucent.com>
58412
58413         * m4/jm-macros.m4: Require autoconf-2.49d.
58414
58415 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58416
58417         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58418
58419 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58420
58421         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58422
58423 2001-03-17  Jim Meyering  <meyering@lucent.com>
58424
58425         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58426         now that the version in autoconf is equivalent.
58427         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58428
58429         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58430         Suggestion from Akim Demaille.
58431
58432         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58433         (jm_PREREQ_TEMPNAME): New function.
58434
58435 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58436
58437         * lib/tempname.c (uint64_t): Define to uintmax_t if
58438         not defined, and if UINT64_MAX is not defined.
58439         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58440         Reported by John David Anglin.
58441
58442 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58443
58444         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58445         resolve alias if codeset is empty.
58446         * lib/config.charset (BeOS): Use wildcard syntax.
58447
58448 2001-03-13  Jim Meyering  <meyering@lucent.com>
58449
58450         * lib/path-concat.c (path_concat)
58451         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58452         concatenating e.g., `C:' and `foo'.
58453         From Bruno Haible.
58454
58455 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58456
58457         * lib/localcharset.c (locale_charset): Don't use
58458         setlocale(LC_CTYPE,NULL). Don't return NULL.
58459         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58460
58461 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58462
58463         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58464         support for DOS/DJGPP.
58465
58466 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58467
58468         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58469         lacks mkstemp.  Compile our own tempname.c if we compile our own
58470         mkstemp.c, as mkstemp relies on tempname.
58471
58472 2001-03-01  Jim Meyering  <meyering@lucent.com>
58473
58474         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58475         AH_VERBATIM really does output its argument verbatim.
58476
58477 2001-02-28  Paul Eggert  <eggert@twinsun.com>
58478
58479         * lib/Makefile.am (libfetish_a_SOURCES):
58480         Add dup-safer.c, fopen-safer.c.
58481         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58482
58483         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58484         * lib/unistd-safer.h: New files.
58485
58486 2001-02-25  Paul Eggert  <eggert@twinsun.com>
58487
58488         The mkstemp replacement is taken from glibc 2.2.2, with some
58489         portability fixes for use outside glibc, as follows:
58490
58491         * lib/tempname.c (struct_stat64): New macro.
58492         (direxists, __gen_tempname): Use it.
58493         This avoids a portability problem with Solaris 8.
58494
58495         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58496         (<stddef.h>, <stdint.h>, <string.h>):
58497         Include only if STDC_HEADERS || _LIBC.
58498         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58499         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58500         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58501         (__set_errno): Define this macro if <errno.h> doesn't.
58502         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58503         Define these macros if <stdio.h> doesn't.
58504         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58505         Define these macros if <sys/stat.h>
58506         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58507         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58508         __xstat64): Define if not _LIBC.
58509         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58510         (__gen_tempname): Invoke gettimeofday only if
58511         HAVE_GETTIMEOFDAY || _LIBC;
58512         otherwise, fall back on plain "time".
58513         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58514
58515         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58516
58517         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58518
58519 2001-02-18  Paul Eggert  <eggert@twinsun.com>
58520
58521         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58522
58523 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58524
58525         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58526         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58527         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58529
58530 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58531
58532         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58533         Remove workaround macros for hosts that have mbrtowc but not
58534         mbstate_t, as we now insist on proper declarations for both
58535         before using mbrtowc.
58536
58537 2001-02-17  Jim Meyering  <meyering@lucent.com>
58538
58539         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58540         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58541         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58542         UnixWare 7.1.1.
58543
58544         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58545         rather than AC_CACHE_VAL.
58546
58547 2001-02-17  Jim Meyering  <meyering@lucent.com>
58548
58549         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
58550         around included file name.
58551
58552         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58553
58554         * lib/strftime.c: Update from GNU libc (the only changes were to
58555         comments).
58556
58557 2001-02-17  Jim Meyering  <meyering@lucent.com>
58558
58559         * lib/regex.c: Update from libc.
58560
58561 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
58562
58563         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58564         clash.
58565
58566 2001-02-16  Paul Eggert  <eggert@twinsun.com>
58567
58568         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58569         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
58570         Reported by Mark Hounschell via Paul Eggert.
58571
58572 2001-02-07  Jim Meyering  <meyering@lucent.com>
58573
58574         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58575
58576 2001-02-05  Jim Meyering  <meyering@lucent.com>
58577
58578         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58579         it includes the patch required for `large file' support with at least
58580         HP-UX's 10.20 /bin/cc.
58581
58582 2001-02-03  Jim Meyering  <meyering@lucent.com>
58583
58584         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58585         AS_IF, now that it works once again (mysteriously).
58586         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58587
58588 2001-01-30  Jim Meyering  <meyering@lucent.com>
58589
58590         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58591         * m4/chown.m4: Rename conftestchown to conftest.chown.
58592         * m4/rename.m4: s/conftestdir/conftest.d1/ and
58593         s/conftestdir2/conftest.d2/.
58594         * m4/utimes.m4: s/conftestdata/conftest.data/
58595         Inspired by Pavel Roskin's change in autoconf.
58596
58597 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
58598
58599         * lib/config.charset: Update for FreeBSD 4.2.
58600
58601 2001-01-27  Jim Meyering  <meyering@lucent.com>
58602
58603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58604         a use of AS_IF.
58605         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58606
58607 2001-01-26  Jim Meyering  <meyering@lucent.com>
58608
58609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58610         quotearg.c includes it.
58611
58612 2001-01-26  Jim Meyering  <meyering@lucent.com>
58613
58614         * lib/quotearg.c: Include stddef.h.
58615         * lib/quote.c: Include stddef.h.
58616         Reported by Axel Kittenberger.
58617
58618         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58619         line in double quotes so that it evokes a better diagnostic.
58620         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58621         Reported by Axel Kittenberger.
58622
58623 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
58624
58625         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58626         as if it was a `charset'.
58627
58628 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58629
58630         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58631         has const.
58632
58633 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58634
58635         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58636         to avoid a warning.  Add back 'const' to inptr.
58637
58638 2001-01-20  Jim Meyering  <meyering@lucent.com>
58639
58640         Be sure that headers are checked before used in code compiled
58641         for the type checks.
58642         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58643         In place of that, invoke jm_CHECK_ALL_TYPES.
58644         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58645         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58646         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58647         The check for ssize_t was mistakenly run before the test for unistd.h.
58648
58649         The configure-time check for stdbool.h was missing.
58650         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58651         (jm_PREREQ_HASH): New function.
58652
58653 2001-01-17  Jim Meyering  <meyering@lucent.com>
58654
58655         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58656         for autoconf-2.49c.
58657         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58658
58659 2001-01-16  Jim Meyering  <meyering@lucent.com>
58660
58661         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58662         From Bruno Haible.
58663
58664 2001-01-14  Jim Meyering  <meyering@lucent.com>
58665
58666         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58667         foo and bar.  Create conftestdir/ in the script, not in the C code.
58668         Remove directories in the script, not in the C code.
58669         Remove conftestdir{,2} before trying to create the directory.
58670         Make the entire configure script fail if the mkdir fails.
58671
58672 2001-01-14  Jim Meyering  <meyering@lucent.com>
58673
58674         * lib/rename.c: New file.  From Volker Borchert.
58675         Include stdlib.h, string.h or strings.h, and xalloc.h.
58676         Use strip_trailing_slashes rather than open-coding it.
58677
58678 2001-01-03  Paul Eggert  <eggert@twinsun.com>
58679
58680         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58681
58682 2001-01-03  Jim Meyering  <meyering@lucent.com>
58683
58684         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58685         of local `inptr' to avoid warning with some system declarations of
58686         iconv.
58687
58688 2001-01-02  Volker Borchert  <bt@teknon.de>
58689
58690         * m4/rename.m4: New file.
58691         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58692
58693 2001-01-01  Jim Meyering  <meyering@lucent.com>
58694
58695         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58696         even on systems with utmpx.h.  It's necessary for the declaration of
58697         utmp's ut_user member.  Reported by Andreas Jaeger.
58698
58699         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58700         available. They are required for the declarations of getgrgid and
58701         getpwuid resp.
58702         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58703         Reported by Andreas Jaeger.
58704
58705 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
58706
58707         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58708         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58709         so `make install' also works in VPATH builds.
58710
58711 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
58712
58713         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58714         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58715         can be used in subdirectories.
58716
58717 2000-12-29  Paul Eggert  <eggert@twinsun.com>
58718
58719         * lib/modechange.c: Do not assume that mode_t uses the
58720         traditional octal encoding.  E.g. "chmod 1 FOO" should set
58721         the other-execute bit of FOO even if S_IXOTH != 1.
58722
58723         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
58724         WOTH, XOTH, ALLM): New macros.
58725         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
58726          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
58727         Use them.
58728         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
58729         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
58730         (mode_compile):
58731         No need to use uintmax_t; unsigned long is long enough.
58732         Don't bother to get suffix since we don't use it.
58733
58734 2000-12-26  Jim Meyering  <meyering@lucent.com>
58735
58736         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
58737         better with autoheader.
58738
58739 2000-12-24  Jim Meyering  <meyering@lucent.com>
58740
58741         * lib/hash.c (is_prime): Return explicit boolean values.
58742         (hash_get_first): Return NULL to appease Irix5.6's 89.
58743         Reported by Nelson Beebe.
58744
58745 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
58746
58747         * lib/localcharset.c (locale_charset): Add support for Win32.
58748
58749 2000-12-18  Paul Eggert  <eggert@twinsun.com>
58750
58751         * lib/physmem.h, lib/physmem.c: New files.
58752
58753         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
58754         (noinst_HEADERS): Add physmem.h.
58755
58756         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
58757         't' for compatibility with Solaris 8 sort.
58758
58759 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
58760
58761         * lib/config.charset: Add support for BeOS.
58762
58763 2000-12-17  Jim Meyering  <meyering@lucent.com>
58764
58765         * m4/dos.m4 (jm_AC_DOS): New file and macro.
58766         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
58767
58768 2000-12-16  Jim Meyering  <meyering@lucent.com>
58769
58770         This bug had a serious impact on chown: `chown N:M FILE' (for integer
58771         N and M) would have treated it like `chown N:N FILE'.
58772
58773         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
58774
58775 2000-12-16  Jim Meyering  <meyering@lucent.com>
58776
58777         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
58778         SHELLS_FILE to a file name that's useful on djgpp systems.
58779         Include stdlib.h.
58780         (ADDITIONAL_DEFAULT_SHELLS): Define.
58781         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
58782         Based mostly on a patch from Prashant TR.
58783
58784 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
58785
58786         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
58787         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
58788         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
58789
58790 2000-12-08  Andreas Schwab  <schwab@suse.de>
58791
58792         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
58793         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
58794
58795 2000-12-07  Jim Meyering  <meyering@lucent.com>
58796
58797         * lib/stripslash.c (ISSLASH): Define.
58798         (strip_trailing_slashes): Use ISSLASH rather than comparing against
58799         `/'.
58800         From Prashant TR.
58801
58802         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
58803         (dir_name_r): Declare this function as static.
58804         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
58805         manifest itself on a name containing a mix of slashes and
58806         backslashes.
58807         Make this function work with names starting with a DOS-style
58808         drive letter and colon prefix.
58809         (dir_name): Append `.' if necessary.
58810         Based mostly on patches from Prashant TR and Eli Zaretskii.
58811
58812         * lib/dirname.h (dir_name_r): Remove prototype.
58813
58814 2000-12-06  Paul Eggert  <eggert@twinsun.com>
58815
58816         * m4/off_t-format.m4: Remove this file.
58817         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
58818
58819 2000-12-06  Jim Meyering  <meyering@lucent.com>
58820
58821         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
58822         replacement strtoull, we may well need the replacement strtoul, too.
58823         Check for declarations of strtoul and strtoull.
58824         Check for strtol.  Mainly as a cue to cause automake to include
58825         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
58826         Check for limits.h -- strtol.c needs it.
58827
58828 2000-12-05  Jim Meyering  <meyering@lucent.com>
58829
58830         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
58831
58832 2000-12-04  Jim Meyering  <meyering@lucent.com>
58833
58834         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
58835         Also include memory.h, stdlib.h, unistd.h if appropriate.
58836         Reported by Andreas Jaeger (conflicting declaration of malloc).
58837
58838 2000-12-02  Jim Meyering  <meyering@lucent.com>
58839
58840         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
58841         * m4/jm-macros.m4 (jm_MACROS): require it.
58842
58843 2000-12-02  Jim Meyering  <meyering@lucent.com>
58844
58845         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
58846
58847 2000-12-01  Paul Eggert  <eggert@twinsun.com>
58848
58849         * lib/memrchr.c: Include <config.h> before any system include file.
58850
58851 2000-11-30  Jim Meyering  <meyering@lucent.com>
58852
58853         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
58854
58855 2000-11-30  Jim Meyering  <meyering@lucent.com>
58856
58857         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
58858
58859 2000-11-29  Paul Eggert  <eggert@twinsun.com>
58860
58861         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
58862
58863 2000-11-26  Jim Meyering  <meyering@lucent.com>
58864
58865         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
58866
58867 2000-11-22  Paul Eggert  <eggert@twinsun.com>
58868
58869         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
58870         size of (size_t) -1; it's not portable.
58871
58872 2000-11-17  Jim Meyering  <meyering@lucent.com>
58873
58874         * lib/strstr.c: Update from GNU libc.
58875
58876 2000-11-17  Akim Demaille  <akim@epita.fr>
58877
58878         * lib/obstack.h: Formatting changes.
58879         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
58880         prevent type checking.
58881         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
58882         cast the value to (void *): assigning a `foo *' to a `void *'
58883         variable is valid.
58884         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
58885
58886 2000-11-16  Jim Meyering  <meyering@lucent.com>
58887
58888         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
58889
58890 2000-11-11  Jim Meyering  <meyering@lucent.com>
58891
58892         * lib/error.c: Add a couple #includes, merging from GNU libc version.
58893
58894 2000-11-10  Jim Meyering  <meyering@lucent.com>
58895
58896         * lib/obstack.h: Update from GNU libc.
58897         * lib/obstack.c: Likewise.
58898
58899 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
58900
58901         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
58902
58903 2000-11-06  Paul Eggert  <eggert@twinsun.com>
58904
58905         * lib/getusershell.c (setusershell): Use rewind rather than
58906         fseek/fseeko, to avoid configuration hassles with fseeko.
58907         Don't bother opening SHELLS_FILE if shellstream is NULL;
58908         it's not necessary.
58909
58910 2000-11-05  Jim Meyering  <meyering@lucent.com>
58911
58912         * lib/makepath.h (make_dir): Declare.
58913         * lib/makepath.c (make_dir): Remove `static' attribute.
58914         Tweak a comment.
58915
58916 2000-11-04  Jim Meyering  <meyering@lucent.com>
58917
58918         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
58919
58920 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
58921
58922         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
58923         last one in a bucket, advance to the next bucket.
58924
58925 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
58926
58927         * lib/fnmatch.c: Do not comment out all the code if we are using
58928         the GNU C library, because in some cases we are replacing buggy
58929         code in the GNU C library itself.
58930
58931 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
58932
58933         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
58934         (regex_compile): Catch bogus \(\1\).
58935
58936 2000-10-30  Paul Eggert  <eggert@twinsun.com>
58937
58938         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
58939         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
58940         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
58941
58942 2000-10-30  Paul Eggert  <eggert@twinsun.com>
58943
58944         * lib/error.h, getline.h, modechange.h:
58945         Remove "2000" from Copyright line, as the file hasn't been
58946         changed this year other than in the copyright notice.
58947
58948         * lib/xalloc.h: Add "2000" to Copyright line, as this file
58949         was changed this year.
58950
58951 2000-10-29  Jim Meyering  <meyering@lucent.com>
58952
58953         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
58954         renaming.
58955         * m4/ls-mntd-fs.m4: Likewise
58956
58957 2000-10-29  Jim Meyering  <meyering@lucent.com>
58958
58959         * lib/xstat.in: Fix grammar in comment.
58960
58961 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
58962
58963         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
58964         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
58965         doesn't define __restrict_arr.
58966
58967 2000-10-28  Jim Meyering  <meyering@lucent.com>
58968
58969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
58970         (jm_PREREQ_MEMCHR): New function.
58971
58972 2000-10-28  Jim Meyering  <meyering@lucent.com>
58973
58974         * lib/memchr.c: Update from libc.
58975         Adjust for portability:
58976         [HAVE_STDLIB_H]: Include stdlib.h.
58977         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
58978         Undef __memchr, too.
58979         [!weak_alias]: Define __memchr to memchr.
58980
58981         * lib/regex.c: Update from libc.
58982         * lib/regex.h: Likewise.
58983         * lib/getopt1.c: Likewise.
58984         * lib/memcmp.c: Likewise.
58985
58986         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
58987         Avoid using fseek, when possible -- it's broken by design.
58988         Patch by Ulrich Drepper.
58989
58990 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
58991
58992         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
58993         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
58994         Giving in to popular pressure to shut up the compiler with casts.
58995
58996 2000-10-26  Jim Meyering  <meyering@lucent.com>
58997
58998         * lib/strftime.c: Update from libc.
58999
59000 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59001
59002         * regex.c: More `unsigned char' -> `re_char' changes.
59003         Also change several `int' into `re_wchar_t'.
59004         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59005         (PUSH_FAILURE_POINTER): Don't cast any more.
59006         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59007         We want GCC to complain, since this piece of code makes
59008         re_match non-reentrant, which *should* be fixed.
59009         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59010         (EXTEND_BUFFER): Use RETALLOC.
59011         (SET_LIST_BIT): Don't cast.
59012         (re_wchar_t): New type.
59013         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59014         that those two functions will always properly return.
59015         (IMMEDIATE_QUIT_CHECK): Cast to void.
59016         (analyse_first): Use recursion rather than an explicit stack.
59017         (re_compile_fastmap): Can't fail anymore.
59018         (re_search_2): Don't check re_compile_fastmap for failure.
59019         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59020         Now also sets the new value (passed in a new argument).
59021         (re_match_2_internal): Use it.
59022         Also, use a new var `reg' of type size_t when looping through regs
59023         rather than reuse the inappropriate `mcnt'.
59024
59025 2000-10-25  Jim Meyering  <meyering@lucent.com>
59026
59027         * lib/obstack.c: Update from libc.
59028
59029 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59030
59031         * regex.c (regex_compile): Change the way of handling a range from
59032         a char less than 256 to a char not less than 256.
59033
59034 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59035
59036         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59037         NT-Emacs only.
59038         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59039         so that re_search functions only quit when callers expect them to.
59040
59041 2000-10-23  Jim Meyering  <meyering@lucent.com>
59042
59043         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59044         wrong.  That set_locale call must not have any side effects.
59045         From Paul Eggert.
59046
59047 2000-10-22  Jim Meyering  <meyering@lucent.com>
59048
59049         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59050         [CYCLIC]: Remove now-unused definition.
59051
59052         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59053         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59054         Suggestion from Ulrich Drepper.
59055
59056 2000-10-21  Jim Meyering  <meyering@lucent.com>
59057
59058         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59059         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59060         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59061
59062 2000-10-21  Jim Meyering  <meyering@lucent.com>
59063
59064         * lib/dirname.c (memrchr): Declare if necessary.
59065         (dir_name): Remove the restriction that there be no
59066         trailing slashes.  Now, this code skips past them, effectively
59067         ignoring them.
59068         [TEST_DIRNAME] (main): New unit tests.
59069
59070         * lib/memrchr.c: New file from GNU libc.
59071         Undef __memrchr, too.
59072         [!weak_alias]: Define __memrchr to memrchr.
59073         Guard weak_alias use with `#ifdef weak_alias'.
59074
59075 2000-10-21  Jim Meyering  <meyering@lucent.com>
59076
59077         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59078         (dir_name): Use dir_name_r.
59079         * lib/dirname.h (dir_name_r): Declare it.
59080
59081 2000-10-17  Jim Meyering  <meyering@lucent.com>
59082
59083         * lib/quote.h (PARAMS): Define and use.
59084         Reported by Akim Demaille.
59085
59086         * lib/getopt.c: Update from libc.
59087
59088 2000-10-16  Jim Meyering  <meyering@lucent.com>
59089
59090         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59091         setlocale.
59092         From Jan Fedak.
59093
59094 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59095
59096         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59097
59098 2000-09-25  Jim Meyering  <meyering@lucent.com>
59099
59100         * lib/md5.h (rol): Define (from GnuPG).
59101
59102         * lib/sha.c: Give credit (GnuPG) where due.
59103         (M): Use rol rather than open-coding it.
59104         Add a FIXME comment.
59105
59106 2000-09-21  Jim Meyering  <meyering@lucent.com>
59107
59108         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59109         Reported by Michael Stone.
59110
59111 2000-09-20  Jim Meyering  <meyering@lucent.com>
59112
59113         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59114         (noinst_HEADERS): Add sha.h.
59115         Based on code from Scott G. Miller and from GnuPG.
59116
59117 2000-09-18  Jim Meyering  <meyering@lucent.com>
59118
59119         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59120         LIBS. Otherwise, everyone ends up linking with -lelf for some
59121         configurations.
59122         Reported by Mike Stone.
59123
59124 2000-09-15  Jim Meyering  <meyering@lucent.com>
59125
59126         * lib/regex.c: Update from libc.
59127
59128 2000-09-10  Jim Meyering  <meyering@lucent.com>
59129
59130         * lib/getopt.c (_getopt_internal): Update from glibc.
59131
59132 2000-09-09  Jim Meyering  <meyering@lucent.com>
59133
59134         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59135         think it should be used as a general replacement for isascii.
59136         * lib/fnmatch.c: Likewise.
59137         * lib/mbswidth.c: Likewise
59138         * lib/regex.c: Likewise.
59139
59140         Don't use atoi.
59141         * lib/userspec.c: Include sys/param.h and limits.h.
59142         Include xstrtol.h.
59143         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59144         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59145         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59146         UID, GID.  Check range.
59147
59148 2000-09-06  Jim Meyering  <meyering@lucent.com>
59149
59150         * lib/getopt.c (_getopt_internal): Update from glibc.
59151
59152 2000-08-30  Jim Meyering  <meyering@lucent.com>
59153
59154         * lib/strftime.c: Merge in changes from GNU libc.
59155
59156 2000-08-26  Jim Meyering  <meyering@lucent.com>
59157
59158         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59159         * m4/fpending.m4: New file.
59160
59161 2000-08-26  Jim Meyering  <meyering@lucent.com>
59162
59163         * lib/closeout.c: Include "__fpending.h".
59164         (close_stdout_status): Return right away if there's nothing to flush.
59165
59166         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59167         * lib/__fpending.c: New file.
59168         * lib/__fpending.h: New file.
59169
59170 2000-08-20  Jim Meyering  <meyering@lucent.com>
59171
59172         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59173         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59174         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59175
59176 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59177
59178         Improve fileutils installation on systems where running
59179         programs (like install) can't be unlinked.
59180         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59181         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59182
59183 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59184
59185         Standardize on "memory exhausted" instead of "Memory exhausted"
59186         or "virtual memory exhausted".
59187         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59188         "virtual memory exhausted".
59189         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59190         our own message.
59191         * lib/userspec.c (parse_user_spec): Likewise.
59192         * lib/bumpalloc.h: comment fix
59193         * lib/same.c, userspec.c: Include xalloc.h.
59194
59195         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59196         not char *const and pointing to a constant array.
59197         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59198         (xrealloc): Comment fix.
59199
59200         * lib/userspec.c (parse_user_spec):
59201         Don't translate a message until just before returning,
59202         to avoid unnecessary translation.
59203
59204 2000-08-07  Jim Meyering  <meyering@lucent.com>
59205
59206         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59207         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59208         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59209         getgroups.c, gethostname.c, getopt.h, group-member.c,
59210         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59211         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59212         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59213         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59214         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59215         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59216         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59217         yesno.c: Back out Copyright date changes for each file with no change
59218         this year.  This eases coordination with other programs using the same
59219         source code modules.  From Paul Eggert.
59220
59221 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59222
59223         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59224         not char, for compatibility with glibc 2.1.3 strftime.c.
59225
59226 2000-08-03  Greg McGary  <greg@mcgary.org>
59227
59228         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59229         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59230         (EXTEND_BUFFER): Use them.
59231
59232 2000-08-01  Jim Meyering  <meyering@lucent.com>
59233
59234         * lib/dirname.c (ISSLASH): Define.
59235         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59236         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59237         both `\' and `/' may be use as path separators.
59238         Based on a patch from Prashant TR.
59239
59240 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59241
59242         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59243         slot vector a constant, since it might get modified.
59244
59245 2000-07-31  Jim Meyering  <meyering@lucent.com>
59246
59247         * lib/xmalloc.c: Use `virtual memory exhausted', not
59248         `Memory exhausted'.
59249         * lib/obstack.c (print_and_abort): Likewise.
59250
59251 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59252
59253         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59254         buffer, so that the caller can always quote one small
59255         component of a "memory exhausted" message in slot 0.
59256         From a suggestion by Jim Meyering.
59257
59258 2000-07-30  Jim Meyering  <meyering@lucent.com>
59259
59260         * lib/makepath.c (make_path): Quote the other instance, too.
59261
59262         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59263         (STATIC_BUF_SIZE): Define.
59264         (quotearg_n_options): Use only statically allocated storage when
59265         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59266         than STATIC_BUF_SIZE.
59267
59268 2000-07-29  Jim Meyering  <meyering@lucent.com>
59269
59270         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59271         * lib/dirname.c (dir_name): Likewise.
59272
59273         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59274         `/'.
59275
59276         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59277         (dir_name): Assert that there are no trailing slashes.
59278
59279 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59280
59281         * lib/mbswidth.h (mbswidth): Add a flags argument.
59282         (mbswidth): New declaration.
59283         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59284         * lib/mbswidth.c (mbswidth): Add a flags argument.
59285         (mbsnwidth): New function.
59286
59287 2000-07-24  Jim Meyering  <meyering@lucent.com>
59288
59289         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59290
59291 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59292
59293         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59294
59295 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59296
59297         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59298         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59299         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59300         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59301         invoke multibyte primitives.
59302
59303 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59304
59305         * lib/quotearg.c:
59306         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59307         so that mbstate_t is always defined.
59308
59309         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59310         be 1 in at least one GCC installation, and this configuration
59311         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59312         performance on hosts that have mbrtowc but have only unibyte
59313         locales, but I assume these hosts are rare.
59314
59315 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59316
59317         * lib/mbswidth.c (_XOPEN_SOURCE):
59318         Don't define; this causes problems on Solaris 7.
59319         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59320
59321 2000-07-23  Jim Meyering  <meyering@lucent.com>
59322
59323         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59324         too: getgrgid, getpwuid, getuid.
59325
59326 2000-07-23  Jim Meyering  <meyering@lucent.com>
59327
59328         * lib/basename.c (base_name): Add an assertion.
59329
59330 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59331
59332         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59333         shadow its mbsinit function.
59334
59335 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59336
59337         * lib/mbswidth.h: New file.
59338         * lib/mbswidth.c: New file.
59339         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59340         (noinst_HEADERS): Add mbswidth.h.
59341
59342 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59343
59344         * lib/config.charset: Add support for FreeBSD. Improve support for
59345         HP-UX and IRIX 6.
59346
59347 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59348
59349         * m4/mbswidth.m4: New file.
59350         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59351
59352 2000-07-15  Jim Meyering  <meyering@lucent.com>
59353
59354         * lib/makepath.c: Include quote.h.
59355         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59356         corresponding argument in a `quote (...)' call.
59357         Give better diagnostics.
59358
59359         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59360         (noinst_HEADERS): Add quote.h.
59361
59362         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59363         from tar's src/misc.c.
59364         * lib/quote.h: New file.  Prototypes for same.
59365
59366 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59367
59368         From a suggestion by Bruno Haible.
59369         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59370         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59371         to decide whether to define the BeOS workaround macro;
59372         this adjusts to the change to AC_MBSTATE_T.
59373
59374 2000-07-14  Jim Meyering  <meyering@lucent.com>
59375
59376         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59377         jm_AC_TYPE_UINTMAX_T.
59378
59379 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59380
59381         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59382
59383         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59384         quotearg_buffer_restyled): Add support for
59385         clocale_quoting_style.  Undo previous change to
59386         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59387         and "{RIGHT QUOTATION MARK}" msgids.
59388
59389 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59390
59391         From a suggestion by Bruno Haible.
59392         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59393         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59394         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59395         and mbstate_t, to a single-part test that simply defines mbstate_t.
59396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59397         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59398
59399 2000-07-10  Jim Meyering  <meyering@lucent.com>
59400
59401         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59402
59403         * m4/gnu-source.m4: Output to confdefs.h directly.
59404         Suggestion from Akim Demaille.
59405
59406 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59407
59408         The old behavior of quoting `like this' doesn't look good with
59409         newer, ISO-style fonts.  See:
59410         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59411
59412         Instead, quote "like this" by default.  Let the translator
59413         tailor the locale-specific quoting behavior by providing
59414         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59415
59416         * lib/quotearg.c (N_): New macro.
59417         (gettext_default): New function.
59418         (quotearg_buffer_restyled): Use
59419         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59420         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59421
59422 2000-07-09  Jim Meyering  <meyering@lucent.com>
59423
59424         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59425         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59426
59427         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59428         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59429
59430 2000-07-09  Jim Meyering  <meyering@lucent.com>
59431
59432         * lib/Most files: Update copyright dates to include 2000.
59433
59434 2000-07-08  Jim Meyering  <meyering@lucent.com>
59435
59436         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59437         if not defined.
59438         (xgethostname): Remove now-unnecessary #ifdef.
59439         Move declaration of `err' into loop where it's used.
59440
59441 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59442         and Bruno Haible  <haible@clisp.cons.org>
59443
59444         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59445         only if the test for an object-type mbstate_t fails.  This
59446         prevents us from mistakenly reporting that mbstate_t is a
59447         system object type after we "#define mbstate_t int" to work
59448         around its lack.
59449
59450 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59451         and Bruno Haible  <haible@clisp.cons.org>
59452
59453         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59454
59455 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59456
59457         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59458         to strerror_r.
59459         Include <ctype.h> for use of isalpha.
59460
59461 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59462
59463         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59464         by allocating a larger buffer. Test the gethostname return value for
59465         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59466         returns an error and ENAMETOOLONG isn't defined.
59467
59468 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59469
59470         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59471         dimension.
59472
59473 2000-07-04  Jim Meyering  <meyering@lucent.com>
59474
59475         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59476         of the deprecated AC_CHECKING.
59477
59478 2000-07-04  Jim Meyering  <meyering@lucent.com>
59479
59480         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59481         Reported by Bruno Haible.
59482
59483 2000-07-04  Jim Meyering  <meyering@lucent.com>
59484
59485         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59486         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
59487         lacks mbrtowc.
59488
59489 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59490
59491         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59492         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59493
59494 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59495         and Bruno Haible  <haible@clisp.cons.org>
59496
59497         * lib/quotearg.c (mbrtowc):
59498         Assign to *pwc, and return 1 only if result is nonzero.
59499         (iswprint): Use ISPRINT when substituting our own mbrtowc.
59500
59501 2000-07-03  Jim Meyering  <meyering@lucent.com>
59502
59503         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59504
59505 2000-07-03  Jim Meyering  <meyering@lucent.com>
59506
59507         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59508         This is necessary to get a definition of e.g., UTMP_FILE on
59509         HP-UX 10.20.
59510         From Bob Proulx.
59511
59512 2000-07-02  Jim Meyering  <meyering@lucent.com>
59513
59514         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59515
59516         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59517         AC_LIBOBJ(function_name).
59518         * m4/chown.m4: Likewise.
59519         * m4/fnmatch.m4: Likewise.
59520         * m4/ftruncate.m4: Likewise.
59521         * m4/getgroups.m4: Likewise.
59522         * m4/getline.m4: Likewise.
59523         * m4/group-member.m4: Likewise.
59524         * m4/jm-macros.m4: Likewise.
59525         * m4/lstat.m4: Likewise.
59526         * m4/malloc.m4: Likewise.
59527         * m4/memcmp.m4: Likewise.
59528         * m4/nanosleep.m4: Likewise.
59529         * m4/putenv.m4: Likewise.
59530         * m4/realloc.m4: Likewise.
59531         * m4/regex.m4: Likewise.
59532         * m4/stat.m4: Likewise.
59533         * m4/strftime.m4: Likewise.
59534
59535 2000-07-02  Jim Meyering  <meyering@lucent.com>
59536
59537         * lib/quotearg.c (mbstate_t): Don't define here.
59538
59539 2000-07-02  Jim Meyering  <meyering@lucent.com>
59540
59541         * lib/nanosleep.c (SIGCONT): Define if not already defined.
59542
59543 2000-07-01  Jim Meyering  <meyering@lucent.com>
59544
59545         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59546
59547 2000-07-01  Jim Meyering  <meyering@lucent.com>
59548
59549         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59550         problem.
59551
59552 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59553
59554         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59555         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59556
59557 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59558
59559         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59560         per change in ../m4/ls-mntd-fs.m4.
59561         (read_filesystem_list): Ignore symbolic links.
59562
59563 2000-06-29  Jim Meyering  <meyering@lucent.com>
59564
59565         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59566         for declaration of strcmp.
59567
59568         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59569
59570         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59571         Avoid warning by casting result to `char *' to remove `const'.
59572
59573 2000-06-28  Jim Meyering  <meyering@lucent.com>
59574
59575         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
59576         included by quotearg.c, for which we perform this test.  From
59577         Bruno Haible.
59578
59579 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59580
59581         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59583         <utmpx.h> exists, put readutmp.o into LIBOBJS.
59584
59585 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59586
59587         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59588
59589 2000-06-26  Paul Eggert  <eggert@twinsun.com>
59590
59591         savedir now sets errno on failure and invokes xmalloc to get memory.
59592         Fix a couple of other minor bugs while we're at it.
59593
59594         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59595         (NAMLEN): Remove macro.
59596         (malloc, realloc): Remove decls.
59597         (stpcpy): Likewise.
59598         ("xalloc.h"): Include.
59599         (NAME_SIZE_DEFAULT): New macro.
59600         (savedir): Use xmalloc / xrealloc to allocate memory.
59601         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59602         Skip "" directory entries.
59603         Use strlen to calculate directory entry length, since the old method
59604         is rarely used these days and isn't worth supporting.
59605         Don't use a pointer after freeing it.
59606         Check for integer overflow when calculating allocation size.
59607         Use memcpy to copy entries, instead of stpcpy.
59608         Set errno properly when returning NULL.
59609         Check for readdir error.
59610
59611 2000-06-26  Jim Meyering  <meyering@lucent.com>
59612
59613         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59614
59615 2000-06-25  Jim Meyering  <meyering@lucent.com>
59616
59617         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59618         Linux header bug when _XOPEN_SOURCE is defined to 500.
59619
59620 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59621
59622         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59623         deficiency.
59624
59625 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59626
59627         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59628         Include xalloc.h.
59629         Don't include <stdlib.h>.  Don't declare malloc, realloc.
59630
59631 2000-06-24  Jim Meyering  <meyering@lucent.com>
59632
59633         * m4/strerror_r.m4: Revive this file -- to try out an experimental
59634         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59635         for which strerror does return char*, but which lacks a conveniently
59636         accessible declaration of the function.  If the compile-test says
59637         strerror_r doesn't work, then resort to a `run'-test that works on
59638         BeOS and segfaults on DEC Unix.
59639
59640 2000-06-24  Jim Meyering  <meyering@lucent.com>
59641
59642         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59643
59644 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59645
59646         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
59648
59649 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59650
59651         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59652         (mbrtowc, mbstate_t): Define substitutes if
59653         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59654         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59655         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59656
59657 2000-06-23  Jim Meyering  <meyering@lucent.com>
59658
59659         * m4/afs.m4: Add missing AC_MSG_RESULT.
59660         Reported by Bruno Haible.
59661
59662         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59663         Suggestion from Bruno Haible.
59664
59665 2000-06-23  Jim Meyering  <meyering@lucent.com>
59666
59667         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
59668
59669 2000-06-21  Jim Meyering  <meyering@lucent.com>
59670
59671         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59672
59673 2000-06-21  Jim Meyering  <meyering@lucent.com>
59674
59675         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59676         (noinst_HEADERS): Add getstr.h.
59677
59678         * lib/getline.c (getstr): Move into a separate file.
59679         * lib/getstr.c (getstr): New file, extracted from getline.c, with
59680         the following changes: new parameter, delim2; both delim[12]
59681         parameters have type `int', not `char'.  The latter would lose
59682         with 8-bit delimiters.
59683         * lib/getstr.h: New file.
59684
59685 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59686
59687         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59688         than 1024, return a memory chunk of least possible size, instead
59689         of size PATH_MAX + 2. In the loop, increment the size proportionally.
59690         Use free/xmalloc instead of xrealloc to avoid copying for very long
59691         paths.
59692
59693 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59694
59695         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59696         the empty string.
59697
59698 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59699
59700         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59701         address, not strdup.  Include <stdlib.h> and don't declare free().
59702
59703 2000-06-19  Jim Meyering  <meyering@lucent.com>
59704
59705         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59706
59707 2000-06-18  Jim Meyering  <meyering@lucent.com>
59708
59709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59710
59711         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59712         `checking whether...' message to be consistent with that of the
59713         lstat test.
59714
59715 2000-06-18  Jim Meyering  <meyering@lucent.com>
59716
59717         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59718         Besides, these days every porting target provides a mkdir function.
59719
59720         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
59721         needed. (this snippet comes from src/system.h).
59722
59723 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
59724
59725         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
59726
59727 2000-06-15  Paul Eggert  <eggert@twinsun.com>
59728
59729         * lib/human.c (adjust_value): New function.
59730         (human_readable_inexact): Apply rounding style even when
59731         printing approximate values.
59732
59733 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59734
59735         * lib/human.c (human_readable_inexact): Allow an input block
59736         size that is not a multiple of the output block size, and vice versa.
59737         Reported by Piergiorgio Sartor.
59738
59739 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59740
59741         * lib/getdate.y (get_date): Apply relative times after time
59742         zone indicator, not before.  Reported by Todd A. Jacobs.
59743
59744 2000-06-13  Jim Meyering  <meyering@lucent.com>
59745
59746         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
59747
59748         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
59749
59750 2000-06-12  Paul Eggert  <eggert@twinsun.com>
59751
59752         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
59753
59754 2000-06-12  Jim Meyering  <meyering@lucent.com>
59755
59756         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
59757         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
59758         optional argument.
59759         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
59760         the optional argument, `lib'.
59761
59762 2000-06-08  Jim Meyering  <meyering@lucent.com>
59763
59764         * m4/largefile.m4: Remove file (now that it's part of autoconf).
59765
59766 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59767
59768         Rewrite largefile configuration so that we don't need to run
59769         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
59770         AC_CANONICAL_HOST in configure.in -- jmm]
59771
59772         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
59773         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
59774         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
59775         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
59776         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
59777         All uses changed.
59778         Instead of inspecting the output of getconf, try to compile the
59779         test program without and with the macro definition.
59780         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
59781         for getconf.  Instead, check for the needed flags by compiling
59782         test programs.
59783
59784 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59785
59786         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
59787
59788 2000-06-04  Jim Meyering  <meyering@lucent.com>
59789
59790         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
59791         SunOS 4.1.4 for which gid_t is an unsigned type.
59792
59793 2000-06-03  Jim Meyering  <meyering@lucent.com>
59794
59795         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
59796         now that autoconf requires that.
59797
59798         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
59799         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
59800         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
59801
59802 2000-06-03  Jim Meyering  <meyering@lucent.com>
59803
59804         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
59805
59806 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
59807
59808         * m4/glibc21.m4: New file.
59809         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
59810
59811 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
59812
59813         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
59814         newer, don't install charset.alias.
59815         * lib/config.charset: Change the Linux/glibc rules so they become empty
59816         on glibc-2.1 or newer.
59817
59818 2000-06-02  Jim Meyering  <meyering@lucent.com>
59819
59820         * lib/mountlist.c: Back out last change.  Instead, do this...
59821         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
59822         me_dummy member using the same `ignore'-testing code.
59823         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
59824         fs_type strings.
59825         From Mark D. Roth.
59826
59827 2000-05-29  Jim Meyering  <meyering@lucent.com>
59828
59829         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
59830         mounts with the `ignore' attribute.  Based on a patch from
59831         Mark D. Roth.
59832
59833 2000-05-28  Jim Meyering  <meyering@lucent.com>
59834
59835         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
59836         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59837         * m4/stat.m4: Likewise.
59838         * m4/lstat.m4: Likewise.
59839         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
59840
59841         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
59842         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
59843
59844 2000-05-26  Jim Meyering  <meyering@lucent.com>
59845
59846         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
59847
59848 2000-05-24  Jim Meyering  <meyering@lucent.com>
59849
59850         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
59851         autoconf requires that.
59852         * m4/lib-check.m4: Likewise.
59853         * m4/jm-macros.m4: Likewise.
59854         * m4/strftime.m4: Likewise.
59855
59856         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
59857         AC_CHECK_DECLS, now that autoconf requires that.
59858
59859 2000-05-22  Jim Meyering  <meyering@lucent.com>
59860
59861         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59862         * m4/lstat.m4: Likewise.
59863
59864 2000-05-22  Jim Meyering  <meyering@lucent.com>
59865
59866         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
59867
59868 2000-05-20  Jim Meyering  <meyering@lucent.com>
59869
59870         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
59871         (jm_PREREQ): Use it.
59872
59873 2000-05-18  Jim Meyering  <meyering@lucent.com>
59874
59875         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
59876         back, too, since it may have been modified by allocate_entry.
59877         (hash_delete): Rewrite to use neither the assignment operator
59878         nor the comma operator in an if-expression.
59879
59880 2000-05-15  Paul Eggert  <eggert@twinsun.com>
59881
59882         * lib/closeout.c:
59883         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
59884         Remove; no longer needed.
59885         "quotearg.h": Add include.
59886         (file_name): Do not bother to explicitly initialize to NULL; it's less
59887         efficient on some hosts.
59888         (close_stdout_status): Remove test as to whether stdout was already
59889         closed; it breaks for the case "echo x | sort >&-".
59890         Quote file name colons.
59891         Do not assume that _("write error") lacks format strings.
59892
59893 2000-05-15  Jim Meyering  <meyering@lucent.com>
59894
59895         * lib/version-etc.c (version_etc_copyright): Update the copyright
59896         string used in all --version output.
59897
59898 2000-05-14  Jim Meyering  <meyering@lucent.com>
59899
59900         * lib/closeout.c (close_stdout_set_file_name): New function.
59901         (close_stdout_status): Use new file-scoped global.
59902         Return right away if fstat says the stdout file descriptor is invalid.
59903         * lib/closeout.h (close_stdout_set_file_name): Declare.
59904
59905 2000-05-10  Jim Meyering  <meyering@lucent.com>
59906
59907         * lib/closeout.c [default_exit_status]: New file-scoped variable.
59908         (close_stdout_set_status): New function.
59909         * lib/closeout.h (close_stdout_set_status): Declare.
59910
59911 2000-05-09  Jim Meyering  <meyering@lucent.com>
59912
59913         * m4/gettext.m4: Rename this...
59914         * m4/libintl.m4: ...to this.
59915
59916 2000-05-08  Jim Meyering  <meyering@lucent.com>
59917
59918         * lib/long-options.c: Don't include closeout.h.
59919         (parse_long_options): Don't call close_stdout for --version.
59920
59921 2000-05-06  Paul Eggert  <eggert@twinsun.com>
59922
59923         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
59924         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
59925         2.1.3 bug.  This avoids a clash when files like regex.c define
59926         _GNU_SOURCE.
59927
59928 2000-05-06  Jim Meyering  <meyering@lucent.com>
59929
59930         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
59931         (AC_REPLACE_FUNCS): Add strnlen.
59932
59933         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
59934         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
59935
59936         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
59937         AC_SEARCH_LIBS call for nanosleep.
59938         (LIB_NANOSLEEP): Set and AC_SUBST.
59939
59940 2000-05-06  Jim Meyering  <meyering@lucent.com>
59941
59942         * lib/strnlen.c: Undefine __strnlen and strnlen.
59943         [!weak_alias]: Define __strnlen to strnlen.
59944
59945         * lib/atexit.c: New file, from libiberty.
59946
59947 2000-05-06  Jim Meyering  <meyering@lucent.com>
59948
59949         * lib/closeout.c (close_stdout_status): Also check for errors on the
59950         stderr stream.
59951
59952 2000-05-05  Jim Meyering  <meyering@lucent.com>
59953
59954         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
59955         AC_SEARCH_LIBS call for clock_gettime.
59956         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
59957
59958         * m4/search-libs.m4: Update from autoconf.
59959
59960         su doesn't work on Solaris 2.6.
59961         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
59962         <shadow.h>.  Reported by Dragos Harabor.
59963
59964 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
59965
59966         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
59967         memcpy instead of xmalloc, xrealloc, path_concat.
59968         (locale_charset): Treat empty environment variables as absent.
59969         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
59970
59971 2000-05-04  Jim Meyering  <meyering@lucent.com>
59972
59973         * lib/getopt.c: Update from glibc.
59974         * lib/obstack.c: Likewise.
59975         * lib/obstack.h: Likewise.
59976         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
59977         file
59978
59979         * lib/regex.h: Likewise.
59980         * lib/strndup.c: Likewise.
59981         * lib/strnlen.c: New file, from glibc.
59982
59983 2000-05-03  Jim Meyering  <meyering@lucent.com>
59984
59985         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
59986
59987 2000-05-02  Paul Eggert  <eggert@twinsun.com>
59988
59989         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
59990         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
59991         compile-time test, rather than inspecting host and OS, to
59992         decide whether to define _LARGEFILE_SOURCE.
59993
59994 2000-05-01  Jim Meyering  <meyering@lucent.com>
59995
59996         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
59997
59998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
59999         Based on a patch from Bruno Haible.
60000
60001 2000-05-01  Jim Meyering  <meyering@lucent.com>
60002
60003         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60004
60005 2000-04-29  Jim Meyering  <meyering@lucent.com>
60006
60007         * lib/path-concat.c: Declare strdup only if it's not defined.
60008         * lib/canon-host.c: Likewise.
60009
60010 2000-04-28  Jim Meyering  <meyering@lucent.com>
60011
60012         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60013         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60014         is included first, then limits.h is included by locale.h by libintl.h.
60015         From John David Anglin.
60016
60017 2000-04-25  Jim Meyering  <meyering@lucent.com>
60018
60019         * lib/makepath.c (S_IRWXUGO): Define.
60020         (make_path): Always perform explicit chmod if MODE specifies any
60021         of the `special' permission bits.  Prompted by a bug report against
60022         install from Mate Wierdl and Joost van Baal.
60023
60024 2000-04-18  Jim Meyering  <meyering@lucent.com>
60025
60026         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60027         (jm_PREREQ): Use it.
60028
60029 2000-04-18  Jim Meyering  <meyering@lucent.com>
60030
60031         * lib/README: New file.
60032
60033         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60034         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60035
60036 2000-04-17  Jim Meyering  <meyering@lucent.com>
60037
60038         Get it right :-)
60039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60040         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60041         Suggestion from Akim Demaille.
60042
60043 2000-04-17  Jim Meyering  <meyering@lucent.com>
60044
60045         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60046         the definition of it to rpl_strftime also defined-away the system's
60047         declaration.
60048
60049 2000-04-15  Jim Meyering  <meyering@lucent.com>
60050
60051         Use `C' to denote so-called `contiguous' files, the same way
60052         that tar does.
60053         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60054         (ftypelet): Use S_ISCTG.
60055         From Michael Deutschmann.
60056
60057 2000-04-14  Jim Meyering  <meyering@lucent.com>
60058
60059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60060         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60061         clobbered.
60062
60063 2000-04-14  Jim Meyering  <meyering@lucent.com>
60064
60065         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60066
60067 2000-04-13  Jim Meyering  <meyering@lucent.com>
60068
60069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60070         AH_VERBATIM to insert required #ifndef into config.h.in.
60071         Suggestion from Akim Demaille.
60072
60073 2000-04-12  Jim Meyering  <meyering@lucent.com>
60074
60075         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60076         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60077         Christian Krackowizer.
60078
60079         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60080         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60081         (AC_SYS_LARGEFILE): Require.
60082         (AM_C_PROTOTYPES): Require.
60083
60084 2000-04-08  Jim Meyering  <meyering@lucent.com>
60085
60086         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60087         names don't conflict.  Reported by Eli Zaretskii.
60088
60089 2000-04-07  Jim Meyering  <meyering@lucent.com>
60090
60091         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60092         sys/types.h, to work around system header problems on AIX 3.2.5.
60093         From Bruno Haible.
60094
60095 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60096
60097         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60098         bug.  Deal with the different error behavior of Irix iconv.
60099
60100 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60101
60102         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60103         IRIX if the installer said otherwise.
60104
60105 2000-04-05  Jim Meyering  <meyering@lucent.com>
60106
60107         Portability tweaks required for ultrix4.3.
60108         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60109         (jm_CHECK_DECLS): Add getutent to the list of functions.
60110         (_jm_DECL_HEADERS): Add utmpx.h.
60111         From John David Anglin.
60112
60113         * m4/strftime.m4: Back out the 2000-04-02 change.
60114         Instead of that change, simply undefine putenv in the test program.
60115
60116 2000-04-05  Jim Meyering  <meyering@lucent.com>
60117
60118         Portability tweaks required for ultrix4.3.
60119         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60120         getutent.
60121         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60122         * lib/canon-host.c: Declare strdup.
60123         * lib/path-concat.c: Likewise.
60124         From John David Anglin.
60125
60126 2000-04-04  Jim Meyering  <meyering@lucent.com>
60127
60128         Be more DOS 8.3-friendly.
60129         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60130         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60131         * lib/Makefile.am: Reflect renaming.
60132         Reported by Eli Zaretskii.
60133
60134         Use a temporary file name that won't clash with `charset.alias'
60135         in the DOS 8.3 name space.
60136         * lib/Makefile.am (charset_tmp): Define.
60137         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60138         (uninstall-local): Likewise.
60139         Reported by Eli Zaretskii.
60140
60141 2000-04-03  Jim Meyering  <meyering@lucent.com>
60142
60143         * m4/gettext.m4: Fix typo in comment.
60144
60145         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60146         textutils/configure.in).  Suggestion from Paul Eggert.
60147         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60148
60149 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60150
60151         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60152         variable in the shell rather than using putenv, which isn't
60153         portable.  This avoids the configure-time inter-test dependency
60154         on the potentially-renamed putenv function.
60155
60156 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60157
60158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60159         before checking struct stat.st_blksize, so that
60160         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60161
60162 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60163
60164         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60165         since strftime.c uses HAVE_STRFTIME to decide whether to use
60166         the underlying strftime.
60167
60168 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60169
60170         * lib/time/strftime.c (my_strftime): Make sure we call the system
60171         strftime, not ourselves, when invoking the underlying strftime.
60172
60173 2000-03-24  Jim Meyering  <meyering@lucent.com>
60174
60175         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60176         (charset_alias): Define.
60177         (install-exec-local): Factor out common code.
60178         (uninstall-local): Split lines longer than 80.
60179         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60180         (SUFFIXES): Define.
60181         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60182         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60183
60184 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60185
60186         * lib/config.charset: Output a line containing "Packages using this
60187         file".
60188         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60189         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60190         ref-del.sed): New rules.
60191
60192 2000-03-17  Jim Meyering  <meyering@lucent.com>
60193
60194         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60195         Otherwise, include <strings.h>
60196
60197 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60198
60199         * lib/unicodeio.c (utf8_wctomb): New function.
60200         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60201         format instead of in UCS-4 with platform dependent endianness.
60202
60203 2000-03-10  Jim Meyering  <meyering@lucent.com>
60204
60205         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60206         From Marco Franzen.
60207
60208 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60209
60210         * lib/savedir.c (savedir): Work even if directory size is
60211         negative; this can happen with some screwy NFS configurations.
60212
60213 2000-03-06  Jim Meyering  <meyering@lucent.com>
60214
60215         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60216         if it's NULL (because we ran out of memory).  From Bruno Haible.
60217
60218 2000-03-05  Jim Meyering  <meyering@lucent.com>
60219
60220         * lib/localcharset.c ("path-concat.h"): Include.
60221         (get_charset_aliases): Use path_concat instead of ANSI string
60222         concatenation.
60223
60224         * lib/unicodeio.h (PARAMS): Define.
60225         Use it to guard prototype.
60226
60227 2000-03-04  Jim Meyering  <meyering@lucent.com>
60228
60229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60230         for lib/localcharset.c.
60231
60232 2000-03-04  Jim Meyering  <meyering@lucent.com>
60233
60234         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60235         installing into it.
60236         (uninstall-local): Uncomment this rule so `make distcheck' works
60237         once again.
60238
60239         * lib/unicodeio.c (<errno.h>): Include it.
60240         (errno): Declare if not defined.
60241
60242         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60243
60244         * lib/config.charset: New version, incorporating remarks from a linux
60245         i18n mailing list.  From Bruno Haible.
60246
60247 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60248
60249         * m4/codeset.m4: New file.
60250         * m4/iconv.m4: New file.
60251         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60252
60253 2000-03-03  Jim Meyering  <meyering@lucent.com>
60254
60255         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60256
60257 2000-03-02  Jim Meyering  <meyering@lucent.com>
60258
60259         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60260         the messages come out on separate lines.
60261
60262         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60263         rather than jm_CHECK_DECLARATIONS.
60264         * m4/decl.m4: Remove now-unused file.
60265
60266         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60267         geteuid.
60268
60269 2000-03-02  Jim Meyering  <meyering@lucent.com>
60270
60271         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60272
60273 2000-03-01  Jim Meyering  <meyering@lucent.com>
60274
60275         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60276         * lib/unicodeio.c: Likewise.
60277
60278 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60279
60280         * lib/config.charset: New file.
60281         * lib/localcharset.c: New file.
60282         * lib/unicodeio.h, lib/unicodeio.c: New files.
60283         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60284         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60285         (noinst_HEADERS): Add unicodeio.h.
60286         (all-local, install-exec-local, charset.alias): New targets.
60287
60288 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60289
60290         * lib/quotearg.c (ALERT_CHAR): New macro.
60291         (quotearg_buffer_restyled): Use it.
60292
60293 2000-02-27  Jim Meyering  <meyering@lucent.com>
60294
60295         * m4/check-decl.m4: Add getenv to the list.
60296
60297 2000-02-27  Jim Meyering  <meyering@lucent.com>
60298
60299         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60300         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60301
60302         * lib/backupfile.c: Guard inclusion of stdlib.h with
60303         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60304         Declare malloc if needed.
60305
60306         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60307         `#ifndef HAVE_DECL..'
60308         now that autoconf always defines the HAVE_DECL_ symbols.
60309         * lib/human.c: Likewise.
60310         * lib/same.c: Likewise.
60311         * lib/strtoumax.c: Likewise.
60312
60313         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60314         declaration check was not run.
60315         * lib/hash.c: Likewise.
60316         * lib/human.c: Likewise.
60317         * lib/same.c: Likewise.
60318         * lib/strtoumax.c: Likewise.
60319
60320         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60321         `.', then first look up the entire `.'-containing string as a login
60322         name.
60323
60324 2000-02-23  Jim Meyering  <meyering@lucent.com>
60325
60326         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60327         in place of my hack.
60328
60329 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60330
60331         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60332         (textint): New typedef.
60333         (parser_control): Member year changed from int to textint.
60334         All uses changed.
60335         (YYSTYPE): Removed; replaced by %union with int and textint members.
60336         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60337         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60338         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60339         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60340         (date, number, to_year): Use width of number in digits, not its value,
60341         to determine whether it's a 2-digit year, or a 2-digit time.
60342         (yylex): Store number of digits of numeric tokens.
60343         Reported by John Kendall.
60344
60345         (parser_control): Changed from struct parser_control to typedef (for
60346         consistency).  All uses changed.
60347
60348         (tID): Removed; not used.
60349         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60350
60351 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60352
60353         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60354         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60355
60356 2000-02-12  Jim Meyering  <meyering@lucent.com>
60357
60358         * lib/userspec.c (ISDIGIT): Define it.
60359         (isdigit): Remove definition.
60360         (is_number): Use ISDIGIT, not isdigit.
60361         <libintl.h>: Include.
60362         (_ and N_): Define.
60363         (parse_user_spec): Mark translatable strings.
60364
60365 2000-02-10  Jim Meyering  <meyering@lucent.com>
60366
60367         With these changes, nanosleep.[ch] are finally enough like the other
60368         lib/* replacement files to compile on a few more losing systems.
60369
60370         * lib/nanosleep.h: Don't include config.h.
60371         Remove prototype from declaration of nanosleep.
60372         (PARAMS): Remove now-unneeded definition.
60373         * lib/nanosleep.c: #undef nanosleep.
60374         (rpl_nanosleep): Rename from nanosleep.
60375
60376 2000-02-10  Jim Meyering  <meyering@lucent.com>
60377
60378         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60379         gnu_nanosleep to rpl_nanosleep.
60380
60381 2000-02-09  Jim Meyering  <meyering@lucent.com>
60382
60383         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60384         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60385
60386 2000-02-08  Akim Demaille  <akim@epita.fr>
60387
60388         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60389         `[' and `]' and remove uses of `changequote'.
60390         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60391         (AC_SYS_LARGEFILE): Likewise.
60392         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60393         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60394         of changequote.
60395         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60396         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60397         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60398         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60399
60400 2000-02-05  Jim Meyering  <meyering@lucent.com>
60401
60402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60403         Remove explicit use of AC_HEADER_TIME.  It is required by
60404         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60405         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60406         in autoconf whereby the expansion of the latter ended up preceding
60407         the expansion of its prerequisite, AC_HEADER_TIME.
60408         Reported by Volker Borchert.
60409
60410 2000-02-03  Jim Meyering  <meyering@lucent.com>
60411
60412         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60413
60414 2000-02-03  Jim Meyering  <meyering@lucent.com>
60415
60416         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60417         rather than with `#if HAVE_UTMPNAME'.
60418
60419 2000-02-02  Jim Meyering  <meyering@lucent.com>
60420
60421         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60422         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60423         Reported by Eli Zaretskii.
60424
60425 2000-02-01  Jim Meyering  <meyering@lucent.com>
60426
60427         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60428
60429 2000-01-31  Jim Meyering  <meyering@lucent.com>
60430
60431         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60432         functions.  Add the time.h and sys/time.h headers along with the
60433         AC_REQUIRE'ment of AC_HEADER_TIME.
60434
60435 2000-01-31  Jim Meyering  <meyering@lucent.com>
60436
60437         * lib/nanosleep.h (nanosleep): Guard declaration with
60438         `#if ! HAVE_DECL_NANOSLEEP'.
60439         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60440         the declaration in that vendor's sys/timers.h.
60441         Reported by Christian Krackowizer.
60442
60443         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60444         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60445         (ISPRINT): Likewise.
60446         Reported by Tom Tromey.
60447
60448 2000-01-30  Jim Meyering  <meyering@lucent.com>
60449
60450         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60451
60452         * m4/prereq.m4 (utmp_includes): Define.
60453         Check for ut_user and ut_name members in both struct utmpx
60454         and struct utmp.
60455
60456 2000-01-30  Jim Meyering  <meyering@lucent.com>
60457
60458         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60459         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60460         header files where only utmpx.ut_user is declared.
60461
60462         * lib/readutmp.h (UT_USER): Define.
60463
60464 2000-01-29  Jim Meyering  <meyering@lucent.com>
60465
60466         * m4/lib-check.m4: New file containing library-related checks from
60467         fileutils and sh-utils (textutils had none).
60468
60469 2000-01-28  Jim Meyering  <meyering@lucent.com>
60470
60471         * m4/perl.m4: Change format of warning message to look more like that
60472         from the missing script.  Suggestion from François Pinard.
60473
60474 2000-01-25  Jim Meyering  <meyering@lucent.com>
60475
60476         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60477         well as time.h in the compile check.
60478         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60479         Fix typo in cross-compiling case: s/yes/no/.
60480
60481 2000-01-23  Jim Meyering  <meyering@lucent.com>
60482
60483         * m4/jm-macros.m4: Move df-related tests here from
60484         fileutils/configure.in
60485
60486         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60487         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60488
60489         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
60490         s/space/ac_fsusage_space/.
60491         (jm_FILE_SYSTEM_USAGE): Take two parameters.
60492
60493         * m4/ftruncate.m4: New file (derived from part of
60494         fileutils/configure.in).
60495         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60496         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60497
60498         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60499         AC_SUBST these here, rather than just in sh-util/configure.in, so
60500         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60501         all the same.
60502         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60503         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60504         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60505         (AC_SUBST(POW_LIBM)): Likewise.
60506         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60507
60508 2000-01-23  Jim Meyering  <meyering@lucent.com>
60509
60510         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60511         obstack.c.
60512
60513 2000-01-22  Jim Meyering  <meyering@lucent.com>
60514
60515         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60516
60517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60518
60519         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60520         configure.in
60521         (AC_CHECK_HEADERS): Likewise for sh-utils.
60522         (AC_CHECK_HEADERS): Likewise for textutils.
60523         Merge the three lists of headers.
60524
60525         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
60526         from fileutils' configure.in.
60527
60528         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60529         code. Moved tests into their own function (_jm_DECL_HEADERS) in
60530         check-decl.m4.
60531
60532         * m4/check-decl.m4: Use #if rather than #ifdef.
60533         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60534         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60535         (_jm_DECL_HEADERS): Define new function.
60536         (jm_CHECK_DECLARATIONS): Require it.
60537
60538 2000-01-22  Jim Meyering  <meyering@lucent.com>
60539
60540         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60541         [! HAVE_DECL_STRTOULL]: Declare strtoull.
60542         Required for some AIX systems.  Reported by Christian Krackowizer.
60543         [TESTING] (main): New function.
60544
60545         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
60546         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60547         letters.
60548
60549         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60550         iswprint.
60551
60552         * lib/strverscmp.c (ISDIGIT): Define.
60553         (strverscmp): Use ISDIGIT, not isdigit.
60554
60555 2000-01-19  Jim Meyering  <meyering@lucent.com>
60556
60557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60558         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
60559         defines `struct timespec' in <sys/time.h>
60560
60561         * m4/c-bs-a.m4: Remove uses of changequote altogether.
60562         Thanks to Akim for explaining.
60563
60564 2000-01-17  Paul Eggert  <eggert@twinsun.com>
60565
60566         * lib/nanosleep.c (nanosleep):
60567         Don't use SA_INTERRUPT to decide whether to call sigaction, as
60568         POSIX.1 doesn't require SA_INTERRUPT and some systems
60569         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
60570         it's been part of POSIX.1 since day 1 (in 1988).
60571
60572 2000-01-17  Jim Meyering  <meyering@lucent.com>
60573
60574         * lib/interlock: Remove unused file.  Reported by François Pinard.
60575
60576 2000-01-16  Paul Eggert  <eggert@twinsun.com>
60577
60578         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60579         alert, backslash, formfeed, and vertical tab unnecessarily in
60580         shell quoting style.
60581
60582 2000-01-16  Jim Meyering  <meyering@lucent.com>
60583
60584         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60585         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60586         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60587         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60588
60589 2000-01-16  Jim Meyering  <meyering@lucent.com>
60590
60591         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60592         because the latter didn't work.
60593
60594 2000-01-15  Jim Meyering  <meyering@lucent.com>
60595
60596         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60597         (AC_REPLACE_FUNCS): Add memcpy and memset.
60598         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60599         Add strpbrk.
60600         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60601
60602 2000-01-12  Jim Meyering  <meyering@lucent.com>
60603
60604         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60605         (jm_PREREQ): Use it.
60606         (jm_PREREQ_READUTMP): New macro.
60607         (jm_PREREQ): Use it.
60608
60609 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60610
60611         Quote multibyte characters correctly.
60612         * m4/c-bs-a.m4: New file.
60613         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60614         (jm_PREREQ): Use it.
60615
60616 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60617
60618         * m4/uintmax_t.m4: Port to autoconf 2.13.
60619
60620 2000-01-08  Jim Meyering  <meyering@ascend.com>
60621
60622         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60623         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60624
60625 2000-01-04  Jim Meyering  <meyering@ascend.com>
60626
60627         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60628         jm_STRUCT_DIRENT_D_TYPE.
60629         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60630         jm_STRUCT_DIRENT_D_INO.
60631         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60632         jm_STRUCT_UTIMBUF.
60633         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60634         renamings.
60635         * m4/utime.m4: Likewise.
60636
60637         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60638         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60639
60640 2000-01-03  Paul Eggert  <eggert@twinsun.com>
60641
60642         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60643         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60644
60645 2000-01-02  Jim Meyering  <meyering@ascend.com>
60646
60647         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
60648         remember if this is necessary.
60649
60650 1999-12-26  Jim Meyering  <meyering@ascend.com>
60651
60652         * m4/jm-macros.m4: Use it here.
60653         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60654
60655 1999-12-23  Jim Meyering  <meyering@ascend.com>
60656
60657         * m4/jm-macros.m4: Check for clock_gettime (moved from
60658         fileutils/configure.in)
60659         Check for gettimeofday.
60660
60661 1999-12-20  Jim Meyering  <meyering@ascend.com>
60662
60663         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60664         autoconf-2.14a-1999-12-20.
60665
60666 1999-12-19  Jim Meyering  <meyering@ascend.com>
60667
60668         * m4/lstat-slash.m4: New file.
60669         * m4/jm-macros.m4: Use the new macro:
60670         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60671
60672 1999-12-07  Jim Meyering  <meyering@ascend.com>
60673
60674         * m4/perl.m4: Require that File::Compare be available, too.
60675         Too many systems seem to lack it.
60676
60677         * m4/strftime.m4: Add checks for most of the cpp macros tested in
60678         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
60679
60680 1999-11-18  Paul Eggert  <eggert@twinsun.com>
60681
60682         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60683         problem with the QNX 4.25 shell, which doesn't propagate exit
60684         status of failed commands inside shell assignments.
60685
60686 1999-11-17  Jim Meyering  <meyering@ascend.com>
60687
60688         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60689
60690 1999-11-07  Jim Meyering  <meyering@ascend.com>
60691
60692         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60693
60694 1999-11-06  Jim Meyering  <meyering@ascend.com>
60695
60696         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60697         * m4/jm-macros.m4 (jm_MACROS): Use it here.
60698
60699 1999-11-05  Jim Meyering  <meyering@ascend.com>
60700
60701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60702         configure.in of textutils, fileutils, and sh-utils into this one
60703         (shared between those packages) file.
60704         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60705         AC_STRUCT_ST_BLKSIZE.
60706
60707 1999-11-03  Jim Meyering  <meyering@ascend.com>
60708
60709         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
60710         of AC_CHECK_TYPE checks includes unistd.h.
60711         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60712         Suggestion from Akim Demaille.
60713
60714 1999-10-30  Jim Meyering  <meyering@ascend.com>
60715
60716         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
60717         m4-quoted string.
60718         * m4/ls-mntd-fs.m4: Likewise.
60719         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
60720         * m4/jm-winsz1.m4: Likewise.
60721
60722         * m4/const.m4: Remove file, since the fix made it into the experimental
60723         version of autoconf.
60724         * m4/mktime.m4: Likewise.
60725
60726         * m4/check-type.m4: Remove file, now that the latest version of
60727         AC_CHECK_TYPE takes a third arg to specify additional #includes.
60728
60729         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
60730         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
60731         AC_CHECK_TYPE.
60732
60733 1999-10-04  Jim Meyering  <meyering@ascend.com>
60734
60735         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
60736
60737 1999-09-22  Paul Eggert  <eggert@twinsun.com>
60738
60739         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
60740         2.95.1 bug with HP-UX 10.20.
60741
60742 1999-09-17  Jim Meyering  <meyering@ascend.com>
60743
60744         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
60745         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
60746         due to missing strdup (against sh-utils-2.0).
60747
60748 1999-08-29  Jim Meyering  <meyering@ascend.com>
60749
60750         * m4/jm-macros.m4: Require jm_BISON.
60751         * m4/bison.m4: New file.
60752
60753 1999-08-17  Paul Eggert  <eggert@twinsun.com>
60754
60755         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
60756         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
60757
60758 1999-08-05  Jim Meyering  <meyering@ascend.com>
60759
60760         * m4/getline.m4: Rename test file from conftestdata to conftest.data
60761         to avoid conflicts with `conftest' on 8+3 filesystems.
60762         Suggestion from Eli Zaretskii.
60763
60764 1999-08-04  Jim Meyering  <meyering@ascend.com>
60765
60766         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
60767         fileutils and sh-utils (textutils's getline test was inadequate).
60768         (AM_FUNC_GETLINE): Run this test.
60769         (AC_CHECK_FUNCS): Check for getdelim.
60770         Reported by Bob Proulx.
60771
60772 1999-08-02  Jim Meyering  <meyering@ascend.com>
60773
60774         * m4/jm-macros.m4: Add a comment.
60775
60776 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60777
60778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
60779         <inttypes.h> defines strtoumax as a macro (and not as a
60780         function).
60781
60782 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60783
60784         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
60785         that we can shift, multiply and divide unsigned long long
60786         values; Ultrix cc can't do it.
60787
60788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60789
60790         * m4/mktime.m4: New file, which is a preview of what should appear
60791         in the next public autoconf release.
60792
60793 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60794
60795         * m4/lfs.m4: Remove this file.
60796         * m4/largefile.m4: New file.  It contains the old contents of
60797         lfs.m4, except that all names with prefix AC_LFS have been
60798         changed to use the prefix AC_SYS_LARGEFILE instead, to be
60799         compatible with future autoconf versions.  Also, some minor m4
60800         quoting problems have been fixed.
60801
60802 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60803
60804         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
60805         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
60806         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
60807         and simplify the shell code.
60808
60809 1999-08-01  Jim Meyering  <meyering@ascend.com>
60810
60811         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
60812         m4.
60813
60814 1999-07-20  Jim Meyering  <meyering@ascend.com>
60815
60816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
60817
60818 1999-07-15  Jim Meyering  <meyering@ascend.com>
60819
60820         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
60821
60822 1999-05-22  Jim Meyering  <meyering@ascend.com>
60823
60824         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
60825
60826 1999-05-20  Jim Meyering  <meyering@ascend.com>
60827
60828         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
60829         Add a colon after each `then' in case $4 is empty.
60830
60831 1999-05-16  Jim Meyering  <meyering@ascend.com>
60832
60833         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
60834
60835 1999-05-10  Jim Meyering  <meyering@ascend.com>
60836
60837         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
60838
60839         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
60840         AC_FUNC_MKTIME.
60841
60842 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
60843
60844         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
60845
60846 1999-05-04  Paul Eggert  <eggert@twinsun.com>
60847
60848         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
60849         not CPPFLAGS, so that linking works correctly in IRIX.
60850
60851 1999-04-30  Paul Eggert  <eggert@twinsun.com>
60852
60853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
60854
60855 1999-04-20  Paul Eggert  <eggert@twinsun.com>
60856
60857         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
60858         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
60859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
60860         jm_AC_TYPE_UNSIGNED_LONG_LONG.
60861         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
60862
60863         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
60864
60865 1999-04-20  Jim Meyering  <meyering@ascend.com>
60866
60867         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
60868         AC_REPLACE xstroull if necessary.  From Paul Eggert.
60869         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
60870
60871 1999-04-18  Jim Meyering  <meyering@ascend.com>
60872
60873         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
60874         * m4/jm-macros.m4: Use it.
60875
60876 1999-04-06  Jim Meyering  <meyering@ascend.com>
60877
60878         * m4/strftime.m4: Remove test for %f.
60879
60880 1999-03-29  Jim Meyering  <meyering@ascend.com>
60881
60882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
60883         superset of the AC_TYPE_* checks in the textutils, fileutils,
60884         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
60885         AC_TYPE_PID_T.
60886
60887 1999-03-28  Jim Meyering  <meyering@ascend.com>
60888
60889         * m4/jm-macros.m4: Define GNU_PACKAGE here.
60890         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
60891         replaced e.g., in the *.sh files of the sh-utils.
60892
60893 1999-03-20  Jim Meyering  <meyering@ascend.com>
60894
60895         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
60896         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
60897         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
60898
60899 1999-03-19  Jim Meyering  <meyering@ascend.com>
60900
60901         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
60902
60903 1999-03-12  Jim Meyering  <meyering@ascend.com>
60904
60905         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
60906
60907 1999-03-07  Jim Meyering  <meyering@ascend.com>
60908
60909         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
60910         declared.
60911
60912 1999-02-17  Jim Meyering  <meyering@ascend.com>
60913
60914         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
60915         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
60916
60917 1999-02-07  Jim Meyering  <meyering@ascend.com>
60918
60919         * m4/group-member.m4: New file -- extracted from sh-utils'
60920         configure.in.
60921
60922         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
60923         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
60924
60925 1999-02-06  Jim Meyering  <meyering@ascend.com>
60926
60927         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
60928         * m4/fnmatch.m4: Likewise.
60929         * m4/getgroups.m4: Likewise.
60930         * m4/lstat.m4: Likewise.
60931         * m4/malloc.m4: Likewise.
60932         * m4/putenv.m4: Likewise.
60933         * m4/realloc.m4: Likewise.
60934         * m4/regex.m4: Likewise.
60935         * m4/stat.m4: Likewise.
60936         * m4/strftime.m4: Likewise.
60937         Suggestion from Alain Magloire.
60938
60939         * m4/chown.m4: Use `.$ac_objext', not `.o'.
60940         * m4/fnmatch.m4: Likewise.
60941         * m4/getgroups.m4: Likewise.
60942         * m4/getline.m4: Likewise.
60943         * m4/lstat.m4: Likewise.
60944         * m4/malloc.m4: Likewise.
60945         * m4/memcmp.m4: Likewise.
60946         * m4/putenv.m4: Likewise.
60947         * m4/realloc.m4: Likewise.
60948         * m4/regex.m4: Likewise.
60949         * m4/stat.m4: Likewise.
60950         * m4/strftime.m4: Likewise.
60951         Suggestion from Alain Magloire.
60952
60953         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
60954         an argument.
60955
60956         * m4/regex.m4: Add a run-time Test for proper operation of
60957         re_compile_pattern.
60958
60959 1999-01-31  Jim Meyering  <meyering@ascend.com>
60960
60961         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
60962
60963 1999-01-30  Jim Meyering  <meyering@ascend.com>
60964
60965         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
60966
60967         * m4/jm-mktime.m4: Make this a wrapper around the official
60968         AM_FUNC_MKTIME rather than my private copy, now that the official one
60969         is up to date.
60970         * m4/mktime.m4: Remove file.
60971
60972         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
60973         * m4/uptime.m4: Likewise.
60974         * m4/uintmax_t.m4: Likewise.
60975
60976 1999-01-28  Jim Meyering  <meyering@ascend.com>
60977
60978         * m4/jm-macros.m4: Use jm_AFS.
60979         * m4/afs.m4: New file (from fileutils' configure.in).
60980
60981         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
60982         * m4/chown.m4: Likewise.
60983         * m4/d-ino.m4: Likewise.
60984         * m4/d-type.m4: Likewise.
60985         * m4/fnmatch.m4: Likewise.
60986         * m4/getgroups.m4: Likewise.
60987         * m4/gettext.m4: Likewise.
60988         * m4/jm-mktime.m4: Likewise.
60989         * m4/jm-winsz2.m4: Likewise.
60990         * m4/lcmessage.m4: Likewise.
60991         * m4/ls-mntd-fs.m4: Likewise.
60992         * m4/malloc.m4: Likewise.
60993         * m4/memcmp.m4: Likewise.
60994         * m4/putenv.m4: Likewise.
60995         * m4/realloc.m4: Likewise.
60996         * m4/st_mtim.m4: Likewise.
60997         * m4/strftime.m4: Likewise.
60998
60999 1999-01-16  Jim Meyering  <meyering@ascend.com>
61000
61001         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61002         (ARGMATCH_DIE_DECL): Define.
61003
61004 1999-01-12  Jim Meyering  <meyering@ascend.com>
61005
61006         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61007         Reported by Lars Hecking.
61008
61009 1999-01-10  Jim Meyering  <meyering@ascend.com>
61010
61011         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61012         gross kludge.
61013         * m4/inttypes_h.m4: Likewise.
61014         * m4/lstat.m4: Likewise.
61015         * m4/malloc.m4: Likewise.
61016         * m4/readdir.m4: Likewise.
61017         * m4/realloc.m4: Likewise.
61018         * m4/st_dm_mode.m4: Likewise.
61019         * m4/stat.m4: Likewise.
61020         * m4/utimbuf.m4: Likewise.
61021         * m4/utimes.m4: Likewise.
61022
61023         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61024         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61025         comments in config.h.in are meaningful.
61026
61027         * m4/jm-macros.m4: Require autoconf-2.13 here.
61028
61029         * m4/regex.m4: By default, don't use the included regex.c on systems
61030         with glibc 2.  Suggestion from Uli Drepper.
61031
61032 1999-01-02  Jim Meyering  <meyering@ascend.com>
61033
61034         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61035
61036 1998-12-18  Jim Meyering  <meyering@ascend.com>
61037
61038         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61039         Based on a suggestion from Lars Hecking.
61040
61041 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61042
61043         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61044
61045 1998-11-16  Jim Meyering  <meyering@ascend.com>
61046
61047         * m4/lfs.m4: Double-quote the `uname...` expression.
61048
61049 1998-11-14  Jim Meyering  <meyering@ascend.com>
61050
61051         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61052         * m4/stat.m4: Likewise.
61053
61054 1998-11-03  Jim Meyering  <meyering@ascend.com>
61055
61056         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61057         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61058
61059 1998-10-18  Jim Meyering  <meyering@ascend.com>
61060
61061         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61062
61063 1998-10-17  Jim Meyering  <meyering@ascend.com>
61064
61065         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61066         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61067         calls for those previously hard-coded headers.  Instead, take a new
61068         parameter.
61069         (jm_CHECK_DECLARATIONS): Reflect interface change.
61070         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61071         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61072
61073         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61074
61075 1998-10-14  Jim Meyering  <meyering@ascend.com>
61076
61077         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61078         instead of "TZ=America/Vancouver".  From Paul Eggert.
61079
61080 1998-10-11  Jim Meyering  <meyering@ascend.com>
61081
61082         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61083         This adds a test for a recently added compatibility fix for mktime.c.
61084         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61085
61086 1998-09-27  Jim Meyering  <meyering@ascend.com>
61087
61088         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61089
61090         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61091         ../configure.in, including a change from Gordon Matzigkeit to allow
61092         cross-compiling for the Hurd.
61093
61094         * m4/glibc.m4: New file/macro to test for the GNU C Library
61095         versions 1 and 2.  From Gordon Matzigkeit.
61096         Indent.
61097
61098 1998-09-21  Jim Meyering  <meyering@ascend.com>
61099
61100         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61101
61102 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61103
61104         Port nanosecond-resolution times to UnixWare 2.1.2 and
61105         pedantic Solaris 2.6.
61106
61107         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61108         AC_STRUCT_ST_MTIM.
61109         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61110         Generate name of ns member, instead of just 1 or undef.
61111         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61112
61113 1998-08-15  Jim Meyering  <meyering@ascend.com>
61114
61115         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61116         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61117         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61118         instead of jm_TYPE_SSIZE_T.
61119
61120 1998-08-12  Jim Meyering  <meyering@ascend.com>
61121
61122         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61123
61124 1998-08-02  Jim Meyering  <meyering@ascend.com>
61125
61126         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61127         in acconfig.h manually.
61128
61129 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61130
61131         * m4/st_mtim.m4: New file.
61132
61133 1998-07-28  Jim Meyering  <meyering@ascend.com>
61134
61135         * m4/utimes.m4: Undef stat.
61136
61137 1998-07-25  Jim Meyering  <meyering@ascend.com>
61138
61139         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61140         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61141
61142 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61143
61144         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61145         uid and gid actually remain unchanged.
61146
61147 1998-07-07  Jim Meyering  <meyering@ascend.com>
61148
61149         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61150
61151 1998-07-04  Jim Meyering  <meyering@ascend.com>
61152
61153         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61154         to prove that this macro can be used in packages without regex.c.
61155
61156 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61157
61158         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61159         is to be used.
61160
61161 1998-07-03  Jim Meyering  <meyering@ascend.com>
61162
61163         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61164
61165         * m4/gettext.m4: New file -- from gettext-0.10.35.
61166         * m4/lcmessage.m4: Likewise.
61167         * m4/progtest.m4: Likewise.
61168
61169         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61170         * m4/jm-macros.m4: Require the new macro.
61171
61172 1998-06-29  Jim Meyering  <meyering@ascend.com>
61173
61174         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61175         for the definition of NGROUPS (used in a system header included
61176         by sys/mount.h).
61177
61178 1998-06-28  Jim Meyering  <meyering@ascend.com>
61179
61180         * m4/ls-mntd-fs.m4: New file.
61181         * m4/fstypename.m4: New file.
61182
61183         * m4/jm-macros.m4: Require the new macro.
61184         * m4/jm-glibc-io.m4: New file.
61185
61186 1998-05-19  Jim Meyering  <meyering@ascend.com>
61187
61188         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61189         * m4/lchown.m4: New file.
61190
61191         * m4/Makefile.am.in: New file.
61192         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61193
61194 1998-05-14  Jim Meyering  <meyering@ascend.com>
61195
61196         * m4/Makefile.am (EXTRA_DIST): Add them.
61197         * m4/jm-macros.m4: New file.
61198         * m4/utimbuf.m4: New file.
61199
61200 1998-05-12  Jim Meyering  <meyering@ascend.com>
61201
61202         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61203
61204 1998-05-11  Jim Meyering  <meyering@ascend.com>
61205
61206         * m4/isc-posix.m4: New file.
61207
61208 1998-05-10  Jim Meyering  <meyering@ascend.com>
61209
61210         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61211
61212 1998-05-09  Jim Meyering  <meyering@ascend.com>
61213
61214         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61215         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61216         with automake.
61217
61218         * m4/ssize_t.m4: New file.
61219         * m4/mktime.m4: Remove file -- the new automake has this now.
61220
61221 1998-04-26  Jim Meyering  <meyering@ascend.com>
61222
61223         * m4/assert.m4: New file.
61224         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61225
61226 1998-04-05  Jim Meyering  <meyering@ascend.com>
61227
61228         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61229         (jm_PREREQ): Use it here.
61230
61231 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61232
61233         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61234         in acconfig.h.
61235
61236 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61237
61238         * m4/prereq.m4: New file.
61239         * m4/error.m4: New file.
61240         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61241
61242 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61243
61244         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61245         cache-check for the same variable -- that defeated the purpose of
61246         the test; the test program was never run.  This was a problem only
61247         on systems with losing getline functions -- HP-UX 10.20 is one.
61248         Reported by Bjorn Helgaas.
61249
61250 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61251
61252         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61253
61254 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61255
61256         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61257
61258         * m4/const.m4: New file.  Use an initializer in this declaration
61259         typedef int charset[2]; const charset x;
61260         Reported by Bob Glickstein.
61261
61262 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61263
61264         * m4/chown.m4: Fix reversed types on -1 args to chown.
61265         From Kaveh Ghazi.
61266
61267 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61268
61269         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61270         Add lseek and memchr.
61271
61272         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61273         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61274         have a 20-character limit on names.
61275
61276 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61277
61278         * m4/inttypes_h.m4: New file.
61279         * m4/uintmax_t.m4: New file.
61280         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61281
61282
61283         -----
61284
61285         Local Variables:
61286         coding: utf-8
61287         End:
61288
61289         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61290
61291         Copying and distribution of this file, with or without
61292         modification, are permitted provided the copyright notice
61293         and this notice are preserved.