New gnulib-tool option --copy-file.
[gnulib.git] / ChangeLog
1 2009-04-05  Bruno Haible  <bruno@clisp.org>
2
3         * gnulib-tool: New option --copy-file.
4         (func_usage): Document it.
5         (func_dest_tmpfilename): Moved out of func_import.
6         (func_add_file, func_update_file): New functions, extracted from
7         func_import.
8         (func_import): Update.
9
10 2009-04-05  Karl Berry  <karl@gnu.org>
11
12         * README: prominently mention gnulib-tool.
13         Rearrange sections so getting the code is near the top.
14
15 2009-04-05  Bruno Haible  <bruno@clisp.org>
16
17         * lib/unicase.h: Mention u*_cmp2.
18         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20         * lib/unicase/ulc-casecmp.c: Likewise.
21         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24         unistr/u8-cmp.
25         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27         unistr/u16-cmp.
28         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29         unistr/u32-cmp.
30
31         * lib/uninorm.h: Mention u*_cmp2.
32         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37         unistr/u8-cmp.
38         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39         unistr/u16-cmp.
40         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41         unistr/u32-cmp.
42
43         New module 'unistr/u32-cmp2'.
44         * lib/unistr/u32-cmp2.c: New file.
45         * modules/unistr/u32-cmp2: New file.
46
47         New module 'unistr/u16-cmp2'.
48         * lib/unistr/u16-cmp2.c: New file.
49         * modules/unistr/u16-cmp2: New file.
50
51         New module 'unistr/u8-cmp2'.
52         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
53         * lib/unistr/u8-cmp2.c: New file.
54         * lib/unistr/u-cmp2.h: New file.
55         * modules/unistr/u8-cmp2: New file.
56
57 2009-04-05  Bruno Haible  <bruno@clisp.org>
58
59         * lib/unictype.h (uc_property_is_valid): New macro.
60         * tests/unictype/test-pr_byname.c (main): Use it.
61
62         * lib/unistr.h: Doc fixes.
63         * lib/uniconv.h: Doc fixes.
64         * lib/unictype.h: Doc fixes.
65
66 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
67
68         Port coreutils 7.2 to Solaris 8.
69
70         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
71         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
72         for Solaris 8.  This is a bit of a hack, as it means it's the
73         caller's responsibility to add -lnsl if needed, but most likely it
74         won't be needed since only getaddrinfo uses this and getaddrinfo
75         isn't needed on Solaris 8.
76
77         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
78         problem to Solaris 8 encountered with coreutils 7.2, which
79         resulted in a message "fnmatch.c:292: warning: passing argument 4
80         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
81         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
82
83 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84
85         * m4/ld-version-script.m4: Add FIXME comment.
86
87 2009-04-02  Simon Josefsson  <simon@josefsson.org>
88
89         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
90         SOVERSION variable.
91
92 2009-04-02  Bruno Haible  <bruno@clisp.org>
93
94         * Makefile (info, html, dvi, pdf): Combine the rules.
95         Suggested by Jim Meyering.
96
97 2009-04-01  Bruno Haible  <bruno@clisp.org>
98
99         * Makefile (info, html, dvi, pdf): New targets.
100         Reported by Reuben Thomas <rrt@sc3d.org>.
101
102 2009-04-01  Bruno Haible  <bruno@clisp.org>
103
104         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
105         can be put into PATH.
106         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
107
108 2009-04-01  Bruno Haible  <bruno@clisp.org>
109
110         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
111
112 2009-04-01  Bruno Haible  <bruno@clisp.org>
113
114         Rename module 'visibility'.
115         * modules/lib-symbol-visibility: Renamed from modules/visibility.
116         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
117         * doc/gnulib.texi: Update.
118         * MODULES.html.sh (Misc): Update.
119         * NEWS: Mention the change.
120
121 2009-04-01  Simon Josefsson  <simon@josefsson.org>
122
123         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
124         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
125         Eric Blake <ebb9@byu.net> for review.
126         * MODULES.html.sh: Add lib-msvc-compat.
127         * doc/gnulib.texi: Link to new section.
128         * m4/ld-output-def.m4: New file.
129         * doc/ld-output-def.texi: New file.
130
131 2009-04-01  Simon Josefsson  <simon@josefsson.org>
132
133         Rename ld-version-script to lib-symbol-versions.  Suggested by
134         Bruno Haible <bruno@clisp.org>.
135         * modules/ld-version-script: Renamed to lib-symbol-versions.
136         * doc/ld-version-script.texi: Fix module name.
137         * MODULES.html.sh: Add lib-symbol-versions.
138
139 2009-03-31  Simon Josefsson  <simon@josefsson.org>
140
141         * modules/u64-tests: New file.
142         * tests/test-u64.c: New file.
143
144 2009-03-04  Simon Josefsson  <simon@josefsson.org>
145
146         * MODULES.html.sh: Mention u64.
147         * modules/u64: New module.
148         * modules/crypto/sha512: Depend on u64 module instead of providing
149         u64.h.
150
151 2009-03-27  Eric Blake  <ebb9@byu.net>
152
153         test-strerror: make debugging EAI_SYSTEM easier
154         * modules/getaddrinfo-tests (Depends-on): Add strerror.
155         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
156         failure was EAI_SYSTEM.
157
158 2009-03-25  Bruno Haible  <bruno@clisp.org>
159
160         Fix a problem with --enable-relocatable on Solaris 7.
161         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
162         since 2008-02-24.
163
164 2009-03-25  Eric Blake  <ebb9@byu.net>
165
166         test-sockets: avoid gcc warning
167         * tests/test-sockets.c (main): Silence compiler warning.
168
169 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
170
171         New modules nproc, pthread, contributed by Glen Lenker.
172
173         * MODULES.html.sh: Add pthread, nproc.
174         * lib/nproc.c: New file.
175         * lib/nproc.h: New file.
176         * lib/pthread.in.h: New file.
177         * m4/pthread.m4: New file.
178         * modules/nproc: New file.
179         * modules/pthread: New file.
180
181 2009-03-24  Simon Josefsson  <simon@josefsson.org>
182
183         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
184         New variable.
185
186 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
187
188         filevercmp: handle simple~ and numbered.~3~ backup suffixes
189         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
190         * tests/test-filevercmp.c: Add tests for backup suffixes.
191
192 2009-03-24  Simon Josefsson  <simon@josefsson.org>
193
194         * modules/stdlib (Depends-on): Add stdint, needed when defining
195         struct random_data on, for example, HP-UX 10.20.  Reported by
196         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
197
198 2009-03-24  Simon Josefsson  <simon@josefsson.org>
199
200         * lib/readline.c (readline): Call fflush on stdout after printing
201         prompt.
202
203 2009-03-20  Bruno Haible  <bruno@clisp.org>
204
205         Remove dependency from 'close' module to -lws2_32 on native Windows.
206         * lib/close-hook.h: New file.
207         * lib/close-hook.c: New file.
208         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
209         w32sock.h.
210         (_gl_close_fd_maybe_socket): Remove function.
211         (rpl_close): Invoke execute_all_close_hooks instead of
212         _gl_close_fd_maybe_socket.
213         * lib/sockets.c: Include close-hook.h, w32sock.h.
214         (close_fd_maybe_socket): New function, essentially from lib/close.c.
215         (close_sockets_hook): New variable.
216         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
217         (gl_sockets_cleanup): Unregister it.
218         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
219         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
220         * modules/close-hook: New file.
221         * modules/close (Files): Remove lib/w32sock.h.
222         (Depends-on): Add close-hook.
223         (Link): Remove section.
224         * modules/sockets (Files): Add lib/w32sock.h.
225         (Depends-on): Add close-hook.
226         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
227         invocation.
228         * NEWS: Mention that LIB_CLOSE is gone.
229
230 2009-03-23  Eric Blake  <ebb9@byu.net>
231
232         signal-tests: test previous patch
233         * tests/test-signal.c: New file.
234         * modules/signal-tests: Likewise.
235
236         signal.h: always support 'volatile sig_atomic_t'
237         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
238         (gl_SIGNAL_H_DEFAULTS): Add a default.
239         * modules/signal (Makefile.am): Substitute if needed.
240         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
241         users can blindly add volatile.
242         * doc/posix-headers/signal.texi (signal.h): Document it.
243         Reported by Matthew Woehlke.
244
245 2009-03-23  Jim Meyering  <meyering@redhat.com>
246
247         pathmax: PATH_MAX: use pathconf only when available
248         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
249         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
250         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
251         This avoids a link failure in a PSP cross-compilation environment
252         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
253
254         * lib/vasnprintf.c (divide): Fix typo in comment.
255
256 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
257
258         * gnulib-tool (func_filter_filelist): Fix comment.
259
260 2009-03-20  Bruno Haible  <bruno@clisp.org>
261
262         Make sockets.h self-contained.
263         * lib/sockets.c: Include sockets.h first.
264         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
265
266 2009-03-19  Eric Blake  <ebb9@byu.net>
267
268         doc: mention more functions added in cygwin 1.7.0
269         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
270         addition.
271         * doc/posix-functions/log2f.texi: Likewise.
272
273 2009-03-19  Jim Meyering  <meyering@redhat.com>
274
275         fsusage: avoid syntax error due to statement-before-declaration
276         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
277         after all declarations.  Reported by Matthew Woehlke in
278         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
279
280 2009-03-18  Eric Blake  <ebb9@byu.net>
281
282         build-aux/compile: sync from automake
283         * build-aux/compile: New file, from automake.
284         * config/srclist.txt: Mention build-aux/compile.
285
286 2009-03-17  Bruno Haible  <bruno@clisp.org>
287
288         * lib/git-merge-changelog.c: Fix typo in comment.
289         Reported by Reuben Thomas <rrt@sc3d.org>.
290
291 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
292
293         * m4/regex.m4: update and improve help for
294         --without-included-regex.
295
296 2009-03-17  Simon Josefsson  <simon@josefsson.org>
297
298         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
299         failure on missing include files.
300
301 2009-03-17  Eric Blake  <ebb9@byu.net>
302
303         doc: mention more functions added in cygwin 1.7.0
304         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
305         addition.
306         * doc/posix-functions/fwscanf.texi: Likewise.
307         * doc/posix-functions/swprintf.texi: Likewise.
308         * doc/posix-functions/swscanf.texi: Likewise.
309         * doc/posix-functions/vfwprintf.texi: Likewise.
310         * doc/posix-functions/vfwscanf.texi: Likewise.
311         * doc/posix-functions/vswprintf.texi: Likewise.
312         * doc/posix-functions/vswscanf.texi: Likewise.
313         * doc/posix-functions/vwprintf.texi: Likewise.
314         * doc/posix-functions/vwscanf.texi: Likewise.
315         * doc/posix-functions/wcscasecmp.texi: Likewise.
316         * doc/posix-functions/wcsdup.texi: Likewise.
317         * doc/posix-functions/wcsftime.texi: Likewise.
318         * doc/posix-functions/wcsncasecmp.texi: Likewise.
319         * doc/posix-functions/wprintf.texi: Likewise.
320         * doc/posix-functions/wscanf.texi: Likewise.
321         * doc/glibc-functions/gethostbyname2.texi: Likewise.
322
323 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
324
325         maint.mk: really add $(AM_MAKEFLAGS)
326         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
327         was inadvertently omitted in the last commit.
328         Spotted by Bruno Haible.
329
330         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
331         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
332         $(AM_MAKEFLAGS)' rather than plain `make'.
333
334         gnulib-tool: execute $MAKE not make
335         * gnulib-tool: Default $MAKE to 'make'.
336         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
337         than make.  Initialize $MAKE in the do-autobuild script.
338
339         gnulib-tool: use $MAKE not make in generated files
340         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
341         make, in generated files.  Initialize $MAKE in the do-autobuild
342         script.
343
344         * top/GNUmakefile (_have-git-version-gen): Fix typo.
345
346         GNUmakefile: disable parallelism only for multiple, recursive targets
347         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
348         additions in the Makefile.
349         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
350         by Automake.
351         (.NOTPARALLEL): Only disable parallel builds if multiple targets
352         are listed on the command line and at least one of them is
353         listed in $(ALL_RECURSIVE_TARGETS).
354
355 2009-03-14  Bruno Haible  <bruno@clisp.org>
356
357         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
358         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
359         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
360         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
361         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
362         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
363         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
364         unistr/u8-uctomb.
365         * modules/unistr/u8-strchr (Depends-on): Likewise.
366         * modules/unistr/u8-strrchr (Depends-on): Likewise.
367         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
368         unistr/u16-uctomb.
369         * modules/unistr/u16-strchr (Depends-on): Likewise.
370         * modules/unistr/u16-strrchr (Depends-on): Likewise.
371
372 2009-03-12  Bruno Haible  <bruno@clisp.org>
373
374         Work around select() bug on Interix 3.5.
375         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
376         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
377         * m4/select.m4: New file.
378         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
379         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
380         * modules/select (Files): Add m4/select.m4.
381         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
382         * modules/nanosleep (Depends-on): Add select.
383         * modules/poll (Depends-on): Likewise.
384         * doc/posix-functions/select.texi: Mention the Interix bug.
385         Reported by Markus Duft <mduft@gentoo.org>.
386
387         * lib/select.c: Renamed from lib/winsock-select.c.
388         * modules/select (Files): Add lib/select.c, remove
389         lib/winsock-select.c.
390         (configure.ac): Update.
391
392 2009-03-12  Jim Meyering  <meyering@redhat.com>
393
394         avoid gcc warnings about unused macro definitions
395         * lib/readtokens.c (STREQ): Remove unused definition.
396         * lib/xmalloc.c (SIZE_MAX): Likewise.
397         * lib/openat-die.c (N_): Likewise.
398         * lib/mountlist.c (SIZE_MAX): Remove definition.
399         Instead, include <stdint.h>.
400         * lib/readutmp.c: Likewise.
401         * modules/readutmp (Depends-on): Add stdint.
402         * modules/mountlist (Depends-on): Add stdint.
403         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
404
405 2009-03-10  Bruno Haible  <bruno@clisp.org>
406
407         Tests for module 'mbmemcasecoll'.
408         * modules/mbmemcasecoll-tests: New file.
409         * tests/test-mbmemcasecoll1.sh: New file.
410         * tests/test-mbmemcasecoll2.sh: New file.
411         * tests/test-mbmemcasecoll3.sh: New file.
412         * tests/test-mbmemcasecoll.c: New file.
413
414         New module 'mbmemcasecoll'.
415         * lib/mbmemcasecoll.h: New file.
416         * lib/mbmemcasecoll.c: New file.
417         * modules/mbmemcasecoll: New file.
418
419         * tests/test-mbmemcasecmp.h: New file, extracted from
420         tests/test-mbmemcasecmp.c.
421         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
422         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
423         (main): Update.
424         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
425
426 2009-03-09  Bruno Haible  <bruno@clisp.org>
427
428         Tests for module 'mbmemcasecmp'.
429         * modules/mbmemcasecmp-tests: New file.
430         * tests/test-mbmemcasecmp1.sh: New file.
431         * tests/test-mbmemcasecmp2.sh: New file.
432         * tests/test-mbmemcasecmp3.sh: New file.
433         * tests/test-mbmemcasecmp.c: New file.
434
435         New module 'mbmemcasecmp'.
436         * lib/mbmemcasecmp.h: New file.
437         * lib/mbmemcasecmp.c: New file.
438         * modules/mbmemcasecmp: New file.
439
440 2009-03-09  Bruno Haible  <bruno@clisp.org>
441
442         Tests for module 'unicase/ulc-casecoll'.
443         * modules/unicase/ulc-casecoll-tests: New file.
444         * tests/unicase/test-ulc-casecoll1.sh: New file.
445         * tests/unicase/test-ulc-casecoll2.sh: New file.
446         * tests/unicase/test-ulc-casecoll.c: New file.
447
448         New module 'unicase/ulc-casecoll'.
449         * lib/unicase.h (ulc_casecoll): New declaration.
450         * lib/unicase/ulc-casecoll.c: New file.
451         * modules/unicase/ulc-casecoll: New file.
452
453         New module 'unicase/ulc-casexfrm'.
454         * lib/unicase.h (ulc_casexfrm): New declaration.
455         * lib/unicase/ulc-casexfrm.c: New file.
456         * modules/unicase/ulc-casexfrm: New file.
457
458 2009-03-09  Bruno Haible  <bruno@clisp.org>
459
460         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
461         invocations.
462
463         * m4/mbscasecmp.m4: Remove file.
464         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
465         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
466
467         * m4/mbscasestr.m4: Remove file.
468         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
469         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
470
471         * m4/mbschr.m4: Remove file.
472         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
473         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
474
475         * m4/mbscspn.m4: Remove file.
476         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
477         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
478
479         * m4/mbslen.m4: Remove file.
480         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
481         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
482
483         * m4/mbsncasecmp.m4: Remove file.
484         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
485         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
486
487         * m4/mbsnlen.m4: Remove file.
488         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
489         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
490
491         * m4/mbspbrk.m4: Remove file.
492         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
493         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
494
495         * m4/mbspcasecmp.m4: Remove file.
496         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
497         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
498
499         * m4/mbsrchr.m4: Remove file.
500         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
501         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
502
503         * m4/mbssep.m4: Remove file.
504         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
505         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
506
507         * m4/mbsspn.m4: Remove file.
508         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
509         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
510
511         * m4/mbsstr.m4: Remove file.
512         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
513         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
514
515         * m4/mbstok_r.m4: Remove file.
516         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
517         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
518
519         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
520
521         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
522         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
523
524         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
525
526 2009-03-08  Bruno Haible  <bruno@clisp.org>
527
528         Tests for module 'unicase/ulc-casecmp'.
529         * modules/unicase/ulc-casecmp-tests: New file.
530         * tests/unicase/test-ulc-casecmp1.sh: New file.
531         * tests/unicase/test-ulc-casecmp2.sh: New file.
532         * tests/unicase/test-ulc-casecmp.c: New file.
533
534         New module 'unicase/ulc-casecmp'.
535         * lib/unicase.h (ulc_casecmp): New declaration.
536         * lib/unicase/ulc-casecmp.c: New file.
537         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
538         'const SRC_UNIT *'.
539         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
540         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
541         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
542         * modules/unicase/ulc-casecmp: New file.
543
544         Tests for module 'unicase/u32-is-cased'.
545         * modules/unicase/u32-is-cased-tests: New file.
546         * tests/unicase/test-u32-is-cased.c: New file.
547
548         Tests for module 'unicase/u16-is-cased'.
549         * modules/unicase/u16-is-cased-tests: New file.
550         * tests/unicase/test-u16-is-cased.c: New file.
551
552         Tests for module 'unicase/u8-is-cased'.
553         * modules/unicase/u8-is-cased-tests: New file.
554         * tests/unicase/test-u8-is-cased.c: New file.
555         * tests/unicase/test-is-cased.h: New file.
556
557         New module 'unicase/u32-is-cased'.
558         * lib/unicase/u32-is-cased.c: New file.
559         * modules/unicase/u32-is-cased: New file.
560
561         New module 'unicase/u16-is-cased'.
562         * lib/unicase/u16-is-cased.c: New file.
563         * modules/unicase/u16-is-cased: New file.
564
565         New module 'unicase/u8-is-cased'.
566         * lib/unicase/u8-is-cased.c: New file.
567         * lib/unicase/u-is-cased.h: New file.
568         * modules/unicase/u8-is-cased: New file.
569
570         Tests for module 'unicase/u32-is-casefolded'.
571         * modules/unicase/u32-is-casefolded-tests: New file.
572         * tests/unicase/test-u32-is-casefolded.c: New file.
573
574         Tests for module 'unicase/u16-is-casefolded'.
575         * modules/unicase/u16-is-casefolded-tests: New file.
576         * tests/unicase/test-u16-is-casefolded.c: New file.
577
578         Tests for module 'unicase/u8-is-casefolded'.
579         * modules/unicase/u8-is-casefolded-tests: New file.
580         * tests/unicase/test-u8-is-casefolded.c: New file.
581         * tests/unicase/test-is-casefolded.h: New file.
582
583         New module 'unicase/u32-is-casefolded'.
584         * lib/unicase/u32-is-casefolded.c: New file.
585         * modules/unicase/u32-is-casefolded: New file.
586
587         New module 'unicase/u16-is-casefolded'.
588         * lib/unicase/u16-is-casefolded.c: New file.
589         * modules/unicase/u16-is-casefolded: New file.
590
591         New module 'unicase/u8-is-casefolded'.
592         * lib/unicase/u8-is-casefolded.c: New file.
593         * modules/unicase/u8-is-casefolded: New file.
594
595         Tests for module 'unicase/u32-is-titlecase'.
596         * modules/unicase/u32-is-titlecase-tests: New file.
597         * tests/unicase/test-u32-is-titlecase.c: New file.
598
599         Tests for module 'unicase/u16-is-titlecase'.
600         * modules/unicase/u16-is-titlecase-tests: New file.
601         * tests/unicase/test-u16-is-titlecase.c: New file.
602
603         Tests for module 'unicase/u8-is-titlecase'.
604         * modules/unicase/u8-is-titlecase-tests: New file.
605         * tests/unicase/test-u8-is-titlecase.c: New file.
606         * tests/unicase/test-is-titlecase.h: New file.
607
608         New module 'unicase/u32-is-titlecase'.
609         * lib/unicase/u32-is-titlecase.c: New file.
610         * modules/unicase/u32-is-titlecase: New file.
611
612         New module 'unicase/u16-is-titlecase'.
613         * lib/unicase/u16-is-titlecase.c: New file.
614         * modules/unicase/u16-is-titlecase: New file.
615
616         New module 'unicase/u8-is-titlecase'.
617         * lib/unicase/u8-is-titlecase.c: New file.
618         * modules/unicase/u8-is-titlecase: New file.
619
620         Tests for module 'unicase/u32-is-lowercase'.
621         * modules/unicase/u32-is-lowercase-tests: New file.
622         * tests/unicase/test-u32-is-lowercase.c: New file.
623
624         Tests for module 'unicase/u16-is-lowercase'.
625         * modules/unicase/u16-is-lowercase-tests: New file.
626         * tests/unicase/test-u16-is-lowercase.c: New file.
627
628         Tests for module 'unicase/u8-is-lowercase'.
629         * modules/unicase/u8-is-lowercase-tests: New file.
630         * tests/unicase/test-u8-is-lowercase.c: New file.
631         * tests/unicase/test-is-lowercase.h: New file.
632
633         New module 'unicase/u32-is-lowercase'.
634         * lib/unicase/u32-is-lowercase.c: New file.
635         * modules/unicase/u32-is-lowercase: New file.
636
637         New module 'unicase/u16-is-lowercase'.
638         * lib/unicase/u16-is-lowercase.c: New file.
639         * modules/unicase/u16-is-lowercase: New file.
640
641         New module 'unicase/u8-is-lowercase'.
642         * lib/unicase/u8-is-lowercase.c: New file.
643         * modules/unicase/u8-is-lowercase: New file.
644
645         Tests for module 'unicase/u32-is-uppercase'.
646         * modules/unicase/u32-is-uppercase-tests: New file.
647         * tests/unicase/test-u32-is-uppercase.c: New file.
648
649         Tests for module 'unicase/u16-is-uppercase'.
650         * modules/unicase/u16-is-uppercase-tests: New file.
651         * tests/unicase/test-u16-is-uppercase.c: New file.
652
653         Tests for module 'unicase/u8-is-uppercase'.
654         * modules/unicase/u8-is-uppercase-tests: New file.
655         * tests/unicase/test-u8-is-uppercase.c: New file.
656         * tests/unicase/test-is-uppercase.h: New file.
657
658         New module 'unicase/u32-is-uppercase'.
659         * lib/unicase/u32-is-uppercase.c: New file.
660         * modules/unicase/u32-is-uppercase: New file.
661
662         New module 'unicase/u16-is-uppercase'.
663         * lib/unicase/u16-is-uppercase.c: New file.
664         * modules/unicase/u16-is-uppercase: New file.
665
666         New module 'unicase/u8-is-uppercase'.
667         * lib/unicase/u8-is-uppercase.c: New file.
668         * modules/unicase/u8-is-uppercase: New file.
669
670         New module 'unicase/u32-is-invariant'.
671         * lib/unicase/u32-is-invariant.c: New file.
672         * modules/unicase/u32-is-invariant: New file.
673
674         New module 'unicase/u16-is-invariant'.
675         * lib/unicase/u16-is-invariant.c: New file.
676         * modules/unicase/u16-is-invariant: New file.
677
678         New module 'unicase/u8-is-invariant'.
679         * lib/unicase/u8-is-invariant.c: New file.
680         * lib/unicase/invariant.h: New file.
681         * lib/unicase/u-is-invariant.h: New file.
682         * modules/unicase/u8-is-invariant: New file.
683
684         Tests for module 'unicase/u32-casecoll'.
685         * modules/unicase/u32-casecoll-tests: New file.
686         * tests/unicase/test-u32-casecoll.c: New file.
687
688         Tests for module 'unicase/u16-casecoll'.
689         * modules/unicase/u16-casecoll-tests: New file.
690         * tests/unicase/test-u16-casecoll.c: New file.
691
692         Tests for module 'unicase/u8-casecoll'.
693         * modules/unicase/u8-casecoll-tests: New file.
694         * tests/unicase/test-u8-casecoll.c: New file.
695
696         New module 'unicase/u32-casecoll'.
697         * lib/unicase/u32-casecoll.c: New file.
698         * modules/unicase/u32-casecoll: New file.
699
700         New module 'unicase/u16-casecoll'.
701         * lib/unicase/u16-casecoll.c: New file.
702         * modules/unicase/u16-casecoll: New file.
703
704         New module 'unicase/u8-casecoll'.
705         * lib/unicase/u8-casecoll.c: New file.
706         * lib/unicase/u-casecoll.h: New file.
707         * modules/unicase/u8-casecoll: New file.
708
709         New module 'unicase/u32-casexfrm'.
710         * lib/unicase/u32-casexfrm.c: New file.
711         * modules/unicase/u32-casexfrm: New file.
712
713         New module 'unicase/u16-casexfrm'.
714         * lib/unicase/u16-casexfrm.c: New file.
715         * modules/unicase/u16-casexfrm: New file.
716
717         New module 'unicase/u8-casexfrm'.
718         * lib/unicase/u8-casexfrm.c: New file.
719         * lib/unicase/u-casexfrm.h: New file.
720         * modules/unicase/u8-casexfrm: New file.
721
722         Tests for module 'unicase/u32-casecmp'.
723         * modules/unicase/u32-casecmp-tests: New file.
724         * tests/unicase/test-u32-casecmp.c: New file.
725
726         Tests for module 'unicase/u16-casecmp'.
727         * modules/unicase/u16-casecmp-tests: New file.
728         * tests/unicase/test-u16-casecmp.c: New file.
729
730         Tests for module 'unicase/u8-casecmp'.
731         * modules/unicase/u8-casecmp-tests: New file.
732         * tests/unicase/test-u8-casecmp.c: New file.
733         * tests/unicase/test-casecmp.h: New file.
734
735         New module 'unicase/u32-casecmp'.
736         * lib/unicase/u32-casecmp.c: New file.
737         * modules/unicase/u32-casecmp: New file.
738
739         New module 'unicase/u16-casecmp'.
740         * lib/unicase/u16-casecmp.c: New file.
741         * modules/unicase/u16-casecmp: New file.
742
743         New module 'unicase/u8-casecmp'.
744         * lib/unicase/u8-casecmp.c: New file.
745         * lib/unicase/u-casecmp.h: New file.
746         * modules/unicase/u8-casecmp: New file.
747
748         Tests for module 'unicase/u32-casefold'.
749         * modules/unicase/u32-casefold-tests: New file.
750         * tests/unicase/test-u32-casefold.c: New file.
751
752         Tests for module 'unicase/u16-casefold'.
753         * modules/unicase/u16-casefold-tests: New file.
754         * tests/unicase/test-u16-casefold.c: New file.
755
756         Tests for module 'unicase/u8-casefold'.
757         * modules/unicase/u8-casefold-tests: New file.
758         * tests/unicase/test-u8-casefold.c: New file.
759
760         New module 'unicase/u32-casefold'.
761         * lib/unicase/u32-casefold.c: New file.
762         * modules/unicase/u32-casefold: New file.
763
764         New module 'unicase/u16-casefold'.
765         * lib/unicase/u16-casefold.c: New file.
766         * modules/unicase/u16-casefold: New file.
767
768         New module 'unicase/u8-casefold'.
769         * lib/unicase/u8-casefold.c: New file.
770         * lib/unicase/u-casefold.h: New file.
771         * modules/unicase/u8-casefold: New file.
772
773         New module 'unicase/tocasefold'.
774         * lib/unicase/casefold.h: New file.
775         * lib/unicase/tocasefold.c: New file.
776         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
777         * modules/unicase/tocasefold: New file.
778
779         Tests for module 'unicase/u32-totitle'.
780         * modules/unicase/u32-totitle-tests: New file.
781         * tests/unicase/test-u32-totitle.c: New file.
782
783         Tests for module 'unicase/u16-totitle'.
784         * modules/unicase/u16-totitle-tests: New file.
785         * tests/unicase/test-u16-totitle.c: New file.
786
787         Tests for module 'unicase/u8-totitle'.
788         * modules/unicase/u8-totitle-tests: New file.
789         * tests/unicase/test-u8-totitle.c: New file.
790
791         New module 'unicase/u32-totitle'.
792         * lib/unicase/u32-totitle.c: New file.
793         * modules/unicase/u32-totitle: New file.
794
795         New module 'unicase/u16-totitle'.
796         * lib/unicase/u16-totitle.c: New file.
797         * modules/unicase/u16-totitle: New file.
798
799         New module 'unicase/u8-totitle'.
800         * lib/unicase/u8-totitle.c: New file.
801         * lib/unicase/u-totitle.h: New file.
802         * modules/unicase/u8-totitle: New file.
803
804         Tests for module 'unicase/u32-tolower'.
805         * modules/unicase/u32-tolower-tests: New file.
806         * tests/unicase/test-u32-tolower.c: New file.
807
808         Tests for module 'unicase/u16-tolower'.
809         * modules/unicase/u16-tolower-tests: New file.
810         * tests/unicase/test-u16-tolower.c: New file.
811
812         Tests for module 'unicase/u8-tolower'.
813         * modules/unicase/u8-tolower-tests: New file.
814         * tests/unicase/test-u8-tolower.c: New file.
815
816         New module 'unicase/u32-tolower'.
817         * lib/unicase/u32-tolower.c: New file.
818         * modules/unicase/u32-tolower: New file.
819
820         New module 'unicase/u16-tolower'.
821         * lib/unicase/u16-tolower.c: New file.
822         * modules/unicase/u16-tolower: New file.
823
824         New module 'unicase/u8-tolower'.
825         * lib/unicase/u8-tolower.c: New file.
826         * modules/unicase/u8-tolower: New file.
827
828         Tests for module 'unicase/u32-toupper'.
829         * modules/unicase/u32-toupper-tests: New file.
830         * tests/unicase/test-u32-toupper.c: New file.
831
832         Tests for module 'unicase/u16-toupper'.
833         * modules/unicase/u16-toupper-tests: New file.
834         * tests/unicase/test-u16-toupper.c: New file.
835
836         Tests for module 'unicase/u8-toupper'.
837         * modules/unicase/u8-toupper-tests: New file.
838         * tests/unicase/test-u8-toupper.c: New file.
839
840         New module 'unicase/u32-toupper'.
841         * lib/unicase/u32-toupper.c: New file.
842         * modules/unicase/u32-toupper: New file.
843
844         New module 'unicase/u16-toupper'.
845         * lib/unicase/u16-toupper.c: New file.
846         * modules/unicase/u16-toupper: New file.
847
848         New module 'unicase/u8-toupper'.
849         * lib/unicase/u8-toupper.c: New file.
850         * modules/unicase/u8-toupper: New file.
851
852         New module 'unicase/u32-casemap'.
853         * lib/unicase/u32-casemap.c: New file.
854         * modules/unicase/u32-casemap: New file.
855
856         New module 'unicase/u16-casemap'.
857         * lib/unicase/u16-casemap.c: New file.
858         * modules/unicase/u16-casemap: New file.
859
860         New module 'unicase/u8-casemap'.
861         * lib/unicase/unicasemap.h: New file.
862         * lib/unicase/u8-casemap.c: New file.
863         * lib/unicase/u-casemap.h: New file.
864         * modules/unicase/u8-casemap: New file.
865
866         New module 'unicase/special-casing'.
867         * lib/unicase/special-casing.h: New file.
868         * lib/unicase/special-casing.c: New file.
869         * lib/unicase/special-casing-table.gperf: New file, generated by
870         gen-uni-tables.c.
871         * modules/unicase/special-casing: New file.
872
873         Tests for module 'unicase/locale-language'.
874         * modules/unicase/locale-language-tests: New file.
875         * tests/unicase/test-locale-language.sh: New file.
876         * tests/unicase/test-locale-language.c: New file.
877
878         New module 'unicase/locale-language'.
879         * lib/unicase/locale-language.c: New file.
880         * lib/unicase/locale-languages.gperf: New file.
881         * modules/unicase/locale-language: New file.
882
883         Generate more tables for case conversion and case folding.
884         * lib/gen-uni-tables.c (SCC_*): New enum items.
885         (struct special_casing_rule): New type.
886         (casing_rules, num_casing_rules, allocated_casing_rules): New
887         variables.
888         (add_casing_rule, fill_casing_rules): New functions.
889         (struct casefold_rule): New type.
890         (casefolding_rules, num_casefolding_rules,
891         allocated_casefolding_rules): New variables.
892         (fill_casefolding_rules): New function.
893         (unicode_casefold): New variable.
894         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
895         sort_casing_rules, output_casing_rules): New functions.
896         (main): Accept to more arguments: SpecialCasing.txt and
897         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
898         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
899         Output mapping for casefolding.
900
901         * lib/unicase.h: Include stdbool.h, uninorm.h.
902         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
903         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
904         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
905         arguments.
906         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
907         resultp arguments.
908         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
909         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
910         resultp arguments.
911         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
912         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
913         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
914         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
915         declarations.
916         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
917
918 2009-03-08  Bruno Haible  <bruno@clisp.org>
919
920         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
921         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
922         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
923         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
924
925 2009-03-07  Bruno Haible  <bruno@clisp.org>
926
927         Adjust u*_normcmp, u*_normcoll API.
928         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
929         u16_normcoll, u32_normcoll): Change failure conventions.
930         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
931         errno and return -1.
932         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
933
934 2009-03-07  Bruno Haible  <bruno@clisp.org>
935
936         Tests for module 'uninorm/u32-normcoll'.
937         * modules/uninorm/u32-normcoll-tests: New file.
938         * tests/uninorm/test-u32-normcoll.c: New file.
939
940         Tests for module 'uninorm/u16-normcoll'.
941         * modules/uninorm/u16-normcoll-tests: New file.
942         * tests/uninorm/test-u16-normcoll.c: New file.
943
944         Tests for module 'uninorm/u8-normcoll'.
945         * modules/uninorm/u8-normcoll-tests: New file.
946         * tests/uninorm/test-u8-normcoll.c: New file.
947
948 2009-03-07  Bruno Haible  <bruno@clisp.org>
949
950         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
951         tests/uninorm/test-u32-normcmp.c.
952         * tests/uninorm/test-u32-normcmp.c: Include it.
953         (test_nonascii): New function, extracted from main. Add some more
954         tests.
955         (main): Invoke test_ascii and test_nonascii.
956         * modules/uninorm/u32-normcmp-tests (Files): Add
957         tests/uninorm/test-u32-normcmp.h.
958         (Depends-on): Remove uninorm/u32-normcmp.
959
960         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
961         tests/uninorm/test-u16-normcmp.c.
962         * tests/uninorm/test-u16-normcmp.c: Include it.
963         (test_nonascii): New function, extracted from main. Add some more
964         tests.
965         (main): Invoke test_ascii and test_nonascii.
966         * modules/uninorm/u16-normcmp-tests (Files): Add
967         tests/uninorm/test-u16-normcmp.h.
968         (Depends-on): Remove uninorm/u16-normcmp.
969
970         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
971         tests/uninorm/test-u8-normcmp.c.
972         * tests/uninorm/test-u8-normcmp.c: Include it.
973         (test_nonascii): New function, extracted from main. Add some more
974         tests.
975         (main): Invoke test_ascii and test_nonascii.
976         * modules/uninorm/u8-normcmp-tests (Files): Add
977         tests/uninorm/test-u8-normcmp.h.
978         (Depends-on): Remove uninorm/u8-normcmp.
979
980 2009-03-07  Bruno Haible  <bruno@clisp.org>
981
982         New module 'uninorm/u32-normcoll'.
983         * lib/uninorm/u32-normcoll.c: New file.
984         * modules/uninorm/u32-normcoll: New file.
985
986         New module 'uninorm/u16-normcoll'.
987         * lib/uninorm/u16-normcoll.c: New file.
988         * modules/uninorm/u16-normcoll: New file.
989
990         New module 'uninorm/u8-normcoll'.
991         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
992         declarations.
993         * lib/uninorm/u8-normcoll.c: New file.
994         * lib/uninorm/u-normcoll.h: New file.
995         * modules/uninorm/u8-normcoll: New file.
996
997         New module 'uninorm/u32-normxfrm'.
998         * lib/uninorm/u32-normxfrm.c: New file.
999         * modules/uninorm/u32-normxfrm: New file.
1000
1001         New module 'uninorm/u16-normxfrm'.
1002         * lib/uninorm/u16-normxfrm.c: New file.
1003         * modules/uninorm/u16-normxfrm: New file.
1004
1005         New module 'uninorm/u8-normxfrm'.
1006         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
1007         declarations.
1008         * lib/uninorm/u8-normxfrm.c: New file.
1009         * lib/uninorm/u-normxfrm.h: New file.
1010         * modules/uninorm/u8-normxfrm: New file.
1011
1012 2009-03-07  Bruno Haible  <bruno@clisp.org>
1013
1014         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
1015         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
1016         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
1017
1018 2009-03-07  Bruno Haible  <bruno@clisp.org>
1019
1020         New module 'memxfrm'.
1021         * lib/memxfrm.h: New file.
1022         * lib/memxfrm.c: New file.
1023         * modules/memxfrm: New file.
1024
1025 2009-03-07  Bruno Haible  <bruno@clisp.org>
1026
1027         New module 'memcmp2'.
1028         * lib/memcmp2.h: New file.
1029         * lib/memcmp2.c: New file.
1030         * modules/memcmp2: New file.
1031
1032 2009-03-07  Bruno Haible  <bruno@clisp.org>
1033
1034         Tests for module 'uninorm/decomposing-form'.
1035         * modules/uninorm/decomposing-form-tests: New file.
1036         * tests/uninorm/test-decomposing-form.c: New file.
1037
1038         New module 'uninorm/decomposing-form'.
1039         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
1040         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
1041         Add 'decomposing_variant' field.
1042         * lib/uninorm/decomposing-form.c: New file.
1043         * lib/uninorm/nfc.c (uninorm_nfc): Update.
1044         * lib/uninorm/nfd.c (uninorm_nfd): Update.
1045         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
1046         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
1047         * modules/uninorm/decomposing-form: New file.
1048         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
1049         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
1050
1051 2009-03-07  Bruno Haible  <bruno@clisp.org>
1052
1053         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
1054         strings.
1055
1056 2009-03-06  Bruno Haible  <bruno@clisp.org>
1057
1058         Tests for module 'uninorm/u32-normcmp'.
1059         * tests/uninorm/test-u32-normcmp.c: New file.
1060         * modules/uninorm/u32-normcmp-tests: New file.
1061
1062         Tests for module 'uninorm/u16-normcmp'.
1063         * tests/uninorm/test-u16-normcmp.c: New file.
1064         * modules/uninorm/u16-normcmp-tests: New file.
1065
1066         Tests for module 'uninorm/u8-normcmp'.
1067         * tests/uninorm/test-u8-normcmp.c: New file.
1068         * modules/uninorm/u8-normcmp-tests: New file.
1069
1070         New module 'uninorm/u32-normcmp'.
1071         * lib/uninorm/u32-normcmp.c: New file.
1072         * modules/uninorm/u32-normcmp: New file.
1073
1074         New module 'uninorm/u16-normcmp'.
1075         * lib/uninorm/u16-normcmp.c: New file.
1076         * modules/uninorm/u16-normcmp: New file.
1077
1078         New module 'uninorm/u8-normcmp'.
1079         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
1080         declarations.
1081         * lib/uninorm/u8-normcmp.c: New file.
1082         * lib/uninorm/u-normcmp.h: New file.
1083         * modules/uninorm/u8-normcmp: New file.
1084
1085 2009-03-06  Bruno Haible  <bruno@clisp.org>
1086
1087         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
1088         Reported by Eric Blake.
1089
1090 2009-03-06  Eric Blake  <ebb9@byu.net>
1091             Bruno Haible  <bruno@clisp.org>
1092
1093         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
1094         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
1095         condition.
1096         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1097         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
1098         condition.
1099         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1100
1101 2009-03-06  Eric Blake  <ebb9@byu.net>
1102
1103         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
1104         to avoid compiler warnings.
1105         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
1106
1107 2009-03-05  Bruno Haible  <bruno@clisp.org>
1108
1109         * tests/test-ftell.c (main): Disable test beyond end of file on
1110         FreeMiNT.
1111         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1112
1113 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
1114
1115         * lib/filevercmp.c: Move hidden files up in ordering.
1116         * tests/test-filevercmp.c: Add tests for hidden files.
1117
1118 2009-03-04  Bruno Haible  <bruno@clisp.org>
1119
1120         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
1121         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
1122         AM_CFLAGS.
1123         Reported by Simon Josefsson.
1124
1125 2009-03-03  Bruno Haible  <bruno@clisp.org>
1126
1127         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
1128         Reported by Simon Josefsson.
1129
1130         * doc/ld-version-script.texi: Update node reference.
1131
1132 2009-03-03  Bruno Haible  <bruno@clisp.org>
1133
1134         * modules/visibility (License): Change to 'unlimited'.
1135         Suggested by Simon Josefsson.
1136
1137 2009-03-03  Jim Meyering  <meyering@redhat.com>
1138
1139         unlinkdir: cannot_unlink_dir may modify process state
1140         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
1141         it's neither thread-safe nor appropriate for use in a library.
1142
1143 2009-03-03  Eric Blake  <ebb9@byu.net>
1144
1145         test-closein: silence test under Darwin
1146         * tests/test-closein.sh: Ignore stderr from cat, since we don't
1147         care if it dies from EPIPE or EBADF.
1148
1149 2009-03-03  Bruno Haible  <bruno@clisp.org>
1150
1151         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1152         earlier.
1153         * doc/visibility.texi: Fix @node and @section.
1154
1155 2009-03-03  Simon Josefsson  <simon@josefsson.org>
1156
1157         * doc/gnulib.texi: Link to sections for ld version script and
1158         visibility.
1159         * doc/visibility.texi: Add @node and @section.
1160         * modules/ld-version-script: New module.
1161         * m4/ld-version-script.m4: New file.
1162         * doc/ld-version-script.texi: New file.
1163
1164 2009-03-02  David Lutterkort  <lutter@redhat.com>
1165
1166         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1168
1169 2009-03-02  Bruno Haible  <bruno@clisp.org>
1170
1171         * doc/visibility.texi: Mention libtool's -export-symbols option.
1172
1173 2009-03-02  Jim Meyering  <meyering@redhat.com>
1174
1175         announce-gen: new option: --no-print-checksums
1176         * build-aux/announce-gen (usage): Describe it.
1177         (print_checksums): Print a newline here, not in the [*] footnote.
1178         (main): Honor it.
1179
1180 2009-03-01  Bruno Haible  <bruno@clisp.org>
1181
1182         Use socklen_t in the native Windows replacements prototypes.
1183         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1184         instead of 'int'.
1185         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1186         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1187         * modules/getsockopt (Depends-on): Add socklen.
1188         * modules/setsockopt (Depends-on): Add socklen.
1189
1190 2009-03-01  Bruno Haible  <bruno@clisp.org>
1191
1192         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1193         least 4.2.
1194
1195 2009-03-01  Eric Blake  <ebb9@byu.net>
1196             Bruno Haible  <bruno@clisp.org>
1197
1198         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1199         error messages.
1200         * lib/wait-process.c (wait_subprocess): Omit error message about
1201         deadly signal sent to the child of termsigp != NULL.
1202
1203 2009-03-01  Eric Blake  <ebb9@byu.net>
1204
1205         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1206
1207 2009-03-01  Bruno Haible  <bruno@clisp.org>
1208
1209         Avoid a gcc warning.
1210         * tests/test-sched.c (b): Make global.
1211         Reported by Eric Blake.
1212
1213 2009-01-19  Martin Lambers  <marlam@marlam.de>
1214
1215         Provide POSIX semantics for socket timeout options on W32.
1216         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1217         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1218         * modules/setsockopt: Depend on sys_time module for struct timeval.
1219         * modules/getsockopt: Depend on sys_time module for struct timeval.
1220
1221 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1222
1223         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1224         __USE_GNU, for consistency with netdb.in.h.
1225         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1226
1227 2009-03-01  Bruno Haible  <bruno@clisp.org>
1228
1229         More support for FreeMiNT.
1230         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1231         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1232
1233 2009-03-01  Bruno Haible  <bruno@clisp.org>
1234
1235         More support for FreeMiNT.
1236         * lib/fpurge.c (fpurge): Correct last commit.
1237         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1238
1239 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1240
1241         Fix unportable awk script in vc-list-files.
1242         * build-aux/vc-list-files: In the replacement awk script, use
1243         substr with a second argument of 1, not zero.
1244         Report by Simon Josefsson.
1245
1246 2009-02-28  Bruno Haible  <bruno@clisp.org>
1247
1248         More support for FreeMiNT.
1249         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1250         to FreeMiNT today.
1251         * lib/fwriting.c (fwriting): Likewise.
1252         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1253
1254 2009-02-28  Bruno Haible  <bruno@clisp.org>
1255
1256         * tests/test-freadseek.c (main): Disable test beyond end of file on
1257         FreeMiNT.
1258         * tests/test-ftello.c (main): Likewise.
1259         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1260
1261 2009-02-28  Bruno Haible  <bruno@clisp.org>
1262
1263         Add tentative support for FreeMiNT.
1264         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1265         * lib/fpurge.c (fpurge): Likewise.
1266         * lib/freadable.c (freadable): Likewise.
1267         * lib/freading.c (freading): Likewise.
1268         * lib/freadptr.c (freadptr): Likewise.
1269         * lib/freadseek.c (freadptrinc): Likewise.
1270         * lib/fseeko.c (rpl_fseeko): Likewise.
1271         * lib/fseterr.c (fseterr): Likewise.
1272         * lib/fwritable.c (fwritable): Likewise.
1273         * lib/fwriting.c (fwriting): Likewise.
1274         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1275         Hourihane.
1276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1277
1278 2009-02-28  Bruno Haible  <bruno@clisp.org>
1279
1280         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1281         SIGCHLD.
1282         Reported by Jim Meyering.
1283
1284 2009-02-28  Bruno Haible  <bruno@clisp.org>
1285
1286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1287         Mention the results of these tests on various platforms.
1288         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1289         order.
1290         * doc/posix-functions/printf.texi: Likewise.
1291         * doc/posix-functions/snprintf.texi: Likewise.
1292         * doc/posix-functions/sprintf.texi: Likewise.
1293         * doc/posix-functions/vfprintf.texi: Likewise.
1294         * doc/posix-functions/vprintf.texi: Likewise.
1295         * doc/posix-functions/vsnprintf.texi: Likewise.
1296         * doc/posix-functions/vsprintf.texi: Likewise.
1297         * doc/glibc-functions/obstack_printf.texi: Likewise.
1298         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1299
1300 2009-02-28  Bruno Haible  <bruno@clisp.org>
1301
1302         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1303         Reported by Loïc Minier <lool@dooz.org>.
1304
1305 2009-02-27  Bruno Haible  <bruno@clisp.org>
1306
1307         * gnulib-tool (func_import): Make the sed expression used to create the
1308         sed script for updating the .gitignore file POSIX compliant.
1309         Reported by Eric Blake.
1310
1311 2009-02-27  Bruno Haible  <bruno@clisp.org>
1312
1313         * gnulib-tool (sed): Don't alias as "sed --posix".
1314         Reported by Eric Blake.
1315
1316 2009-02-27  Bruno Haible  <bruno@clisp.org>
1317
1318         Avoid test link errors.
1319         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1320         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1321         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1322         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1324
1325 2009-02-27  Bruno Haible  <bruno@clisp.org>
1326
1327         Avoid spurious "(cached)" in configure output.
1328         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1329         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1330         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1331         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1332         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1333         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1334         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1335         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1336         Reported by Eric Blake.
1337
1338 2009-02-27  Eric Blake  <ebb9@byu.net>
1339
1340         printf: fix regression in previous patch
1341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1342
1343 2009-02-27  Bruno Haible  <bruno@clisp.org>
1344
1345         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1346         value.
1347         * lib/stdint.in.h: Likewise.
1348         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1349
1350 2009-02-27  Eric Blake  <ebb9@byu.net>
1351
1352         doc: mention more functions added in cygwin 1.7.0
1353         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1354         addition.
1355         * doc/posix-functions/open_wmemstream.texi: Likewise.
1356         * doc/posix-functions/wcsnlen.texi: Likewise.
1357         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1358         * doc/posix-functions/wcstod.texi: Likewise.
1359         * doc/posix-functions/wcstof.texi: Likewise.
1360         * doc/posix-functions/wcstoimax.texi: Likewise.
1361         * doc/posix-functions/wcstok.texi: Likewise.
1362         * doc/posix-functions/wcstoumax.texi: Likewise.
1363
1364         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1366         * doc/posix-functions/fprintf.texi: Update.
1367         * doc/posix-functions/printf.texi: Update.
1368         * doc/posix-functions/snprintf.texi: Update.
1369         * doc/posix-functions/sprintf.texi: Update.
1370         * doc/posix-functions/vfprintf.texi: Update.
1371         * doc/posix-functions/vprintf.texi: Update.
1372         * doc/posix-functions/vsnprintf.texi: Update.
1373         * doc/posix-functions/vsprintf.texi: Update.
1374         * doc/glibc-functions/obstack_printf.texi: Update.
1375         * doc/glibc-functions/obstack_vprintf.texi: Update.
1376
1377 2009-02-26  Eric Blake  <ebb9@byu.net>
1378
1379         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1380         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1381         compilation bug by using runtime conversion.
1382         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1383         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1384         * modules/ceill-tests (Files): Use nan.h.
1385         * modules/floorl-tests (Files): Likewise.
1386         * modules/frexpl-tests (Files): Likewise.
1387         * modules/isnanl-tests (Files): Likewise.
1388         * modules/ldexpl-tests (Files): Likewise.
1389         * modules/roundl-tests (Files): Likewise.
1390         * modules/truncl-tests (Files): Likewise.
1391         * tests/test-ceill.c (main): Use a working NaN.
1392         * tests/test-floorl.c (main): Likewise.
1393         * tests/test-frexpl.c (main): Likewise.
1394         * tests/test-isnan.c (test_long_double): Likewise.
1395         * tests/test-isnanl.h (main): Likewise.
1396         * tests/test-ldexpl.h (main): Likewise.
1397         * tests/test-roundl.h (main): Likewise.
1398         * tests/test-truncl.h (main): Likewise.
1399         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1400
1401 2009-02-26  Eric Blake  <ebb9@byu.net>
1402             Bruno Haible  <bruno@clisp.org>
1403
1404         Work around a *printf bug with %ls on Solaris.
1405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1406         precision is specified, sprintf stops converting the wide string
1407         argument when the number of bytes that have been produced by this
1408         conversion equals or exceeds the precision.
1409         * doc/posix-functions/fprintf.texi: Update.
1410         * doc/posix-functions/printf.texi: Update.
1411         * doc/posix-functions/snprintf.texi: Update.
1412         * doc/posix-functions/sprintf.texi: Update.
1413         * doc/posix-functions/vfprintf.texi: Update.
1414         * doc/posix-functions/vprintf.texi: Update.
1415         * doc/posix-functions/vsnprintf.texi: Update.
1416         * doc/posix-functions/vsprintf.texi: Update.
1417         * doc/glibc-functions/obstack_printf.texi: Update.
1418         * doc/glibc-functions/obstack_vprintf.texi: Update.
1419
1420 2009-02-26  Eric Blake  <ebb9@byu.net>
1421
1422         stdlib: favor compiler check of random.h
1423         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1424         to avoid an ObjC random.h installed by Swarm.
1425
1426 2009-02-26  Bruno Haible  <bruno@clisp.org>
1427
1428         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1429         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1430         Reported by Gary V. Vaughan <gary@gnu.org>.
1431
1432 2009-02-26  Bruno Haible  <bruno@clisp.org>
1433
1434         Fix *printf behaviour regarding the %ls directive.
1435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1436         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1437         NEED_PRINTF_DIRECTIVE_LS.
1438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1439         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1441         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1442         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1443         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1444         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1449         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1450         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1452         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1453         * doc/posix-functions/fprintf.texi: Update.
1454         * doc/posix-functions/printf.texi: Update.
1455         * doc/posix-functions/snprintf.texi: Update.
1456         * doc/posix-functions/sprintf.texi: Update.
1457         * doc/posix-functions/vfprintf.texi: Update.
1458         * doc/posix-functions/vprintf.texi: Update.
1459         * doc/posix-functions/vsnprintf.texi: Update.
1460         * doc/posix-functions/vsprintf.texi: Update.
1461         * doc/glibc-functions/obstack_printf.texi: Update.
1462         * doc/glibc-functions/obstack_vprintf.texi: Update.
1463         Reported by Eric Blake.
1464
1465 2009-02-25  Bruno Haible  <bruno@clisp.org>
1466
1467         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1468         with known value.
1469         Reported by Gary V. Vaughan <gary@gnu.org>.
1470
1471 2009-02-25  Bruno Haible  <bruno@clisp.org>
1472
1473         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1474         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1475         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1476         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1477         Reported by Gary V. Vaughan <gary@gnu.org>.
1478
1479 2009-02-25  Bruno Haible  <bruno@clisp.org>
1480
1481         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1482         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1483         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1484         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1485         Reported by Gary V. Vaughan <gary@gnu.org>.
1486
1487 2009-02-25  Eric Blake  <ebb9@byu.net>
1488
1489         tests: skip fseek/ftell tests if ungetc is broken
1490         * m4/ungetc.m4: New file.
1491         * modules/fseek-tests: Split test, so ungetc dependency is
1492         separate from rest of test.
1493         * modules/fseeko-tests: Likewise.
1494         * modules/ftell-tests: Likewise.
1495         * modules/ftello-tests: Likewise.
1496         * tests/test-fseek.c (main): Isolate ungetc dependency.
1497         * tests/test-fseeko.c (main): Likewise.
1498         * tests/test-ftell.c (main): Likewise.
1499         * tests/test-ftello.c (main): Likewise.
1500         * tests/test-fseek2.sh: New file.
1501         * tests/test-fseeko2.sh: Likewise.
1502         * tests/test-ftell2.sh: Likewise.
1503         * tests/test-ftello2.sh: Likewise.
1504
1505 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1506
1507         test-getaddrinfo: fix usage of skip return code 77
1508         * tests/test-gettaddrinfo.c: Return skip code 77 only
1509         for first occurance of skip (4x77 is not 77)
1510
1511 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1512
1513         strtod: avoid C99 decl-after-statement
1514         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1515
1516 2009-02-24  Eric Blake  <ebb9@byu.net>
1517
1518         strtod: detect HP-UX 11.31 bug
1519         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1520         Reported by Gary V. Vaughan.
1521
1522 2009-02-23  Bruno Haible  <bruno@clisp.org>
1523
1524         Fix invalid read past end of memory block.
1525         * lib/vasnprintf.c (DCHAR_SET): Define.
1526         (local_wcslen): Define only when needed.
1527         (local_strnlen, local_wcsnlen): New functions.
1528         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1529         directives that involve a conversion ourselves.
1530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1531         wcsnlen, mbrtowc, wcrtomb.
1532         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1533         * tests/test-vasprintf-posix.c (test_function): Likewise.
1534         * tests/test-snprintf-posix.h (test_function): Likewise.
1535         * tests/test-sprintf-posix.h (test_function): Likewise.
1536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1537
1538 2009-02-22  Bruno Haible  <bruno@clisp.org>
1539
1540         Implement new clarified decomposition of Hangul syllables.
1541         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1542         of type LTV, return only a pairwise decomposition.
1543         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1544         Likewise.
1545         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1546         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1547         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1548
1549 2009-02-22  Bruno Haible  <bruno@clisp.org>
1550
1551         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1552         zero-length results and shrink excess allocated memory.
1553         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1554         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1555         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1556         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1557         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1558         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1559         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1560         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1561         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1562         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1563         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1564         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1565
1566 2009-02-21  Bruno Haible  <bruno@clisp.org>
1567
1568         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1569         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1570         spaces after a period. Put a space between a macro name and its
1571         argument list. Trivial rewordings.
1572         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1573         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1574         (main): Return 0 explicitly.
1575
1576 2009-02-21  Bruno Haible  <bruno@clisp.org>
1577
1578         Tests for module 'uninorm/filter'.
1579         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1580         * modules/uninorm/filter-tests: New file.
1581
1582         New module 'uninorm/filter'.
1583         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1584         uninorm_filter_flush, uninorm_filter_free): New declarations.
1585         * lib/uninorm/uninorm-filter.c: New file.
1586         * modules/uninorm/filter: New file.
1587
1588 2009-02-21  Bruno Haible  <bruno@clisp.org>
1589
1590         Tests for module 'uninorm/nfkc'.
1591         * tests/uninorm/test-nfkc.c: New file.
1592         * tests/uninorm/test-u8-nfkc.c: New file.
1593         * tests/uninorm/test-u16-nfkc.c: New file.
1594         * tests/uninorm/test-u32-nfkc.c: New file.
1595         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1596         * tests/uninorm/test-u32-nfkc-big.c: New file.
1597         * modules/uninorm/nfkc-tests: New file.
1598
1599         New module 'uninorm/nfkc'.
1600         * lib/uninorm/nfkc.c: New file.
1601         * modules/uninorm/nfkc: New file.
1602
1603         Tests for module 'uninorm/nfkd'.
1604         * tests/uninorm/test-nfkd.c: New file.
1605         * tests/uninorm/test-u8-nfkd.c: New file.
1606         * tests/uninorm/test-u16-nfkd.c: New file.
1607         * tests/uninorm/test-u32-nfkd.c: New file.
1608         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1609         * tests/uninorm/test-u32-nfkd-big.c: New file.
1610         * modules/uninorm/nfkd-tests: New file.
1611
1612         New module 'uninorm/nfkd'.
1613         * lib/uninorm/nfkd.c: New file.
1614         * modules/uninorm/nfkd: New file.
1615
1616         Tests for module 'uninorm/nfc'.
1617         * tests/uninorm/test-nfc.c: New file.
1618         * tests/uninorm/test-u8-nfc.c: New file.
1619         * tests/uninorm/test-u16-nfc.c: New file.
1620         * tests/uninorm/test-u32-nfc.c: New file.
1621         * tests/uninorm/test-u32-nfc-big.sh: New file.
1622         * tests/uninorm/test-u32-nfc-big.c: New file.
1623         * modules/uninorm/nfc-tests: New file.
1624
1625         New module 'uninorm/nfc'.
1626         * lib/uninorm/nfc.c: New file.
1627         * modules/uninorm/nfc: New file.
1628
1629         Tests for module 'uninorm/nfd'.
1630         * tests/uninorm/test-nfd.c: New file.
1631         * tests/uninorm/test-u8-nfd.c: New file.
1632         * tests/uninorm/test-u16-nfd.c: New file.
1633         * tests/uninorm/test-u32-nfd.c: New file.
1634         * tests/uninorm/test-u32-nfd-big.sh: New file.
1635         * tests/uninorm/test-u32-nfd-big.c: New file.
1636         * tests/uninorm/test-u32-normalize-big.h: New file.
1637         * tests/uninorm/test-u32-normalize-big.c: New file.
1638         * tests/uninorm/NormalizationTest.txt: New file, created from
1639         Unicode 5.1.0 NormalizationTest.txt.
1640         * modules/uninorm/nfd-tests: New file.
1641
1642         New module 'uninorm/nfd'.
1643         * lib/uninorm/nfd.c: New file.
1644         * modules/uninorm/nfd: New file.
1645
1646         New module 'uninorm/u32-normalize'.
1647         * lib/uninorm/u32-normalize.c: New file.
1648         * modules/uninorm/u32-normalize: New file.
1649
1650         New module 'uninorm/u16-normalize'.
1651         * lib/uninorm/u16-normalize.c: New file.
1652         * modules/uninorm/u16-normalize: New file.
1653
1654         New module 'uninorm/u8-normalize'.
1655         * lib/uninorm/u8-normalize.c: New file.
1656         * lib/uninorm/normalize-internal.h: New file.
1657         * lib/uninorm/u-normalize-internal.h: New file.
1658         * modules/uninorm/u8-normalize: New file.
1659
1660         New module 'uninorm/decompose-internal'.
1661         * lib/uninorm/decompose-internal.c: New file.
1662         * modules/uninorm/decompose-internal: New file.
1663
1664         Tests for module 'uninorm/composition'.
1665         * tests/uninorm/test-composition.c: New file.
1666         * modules/uninorm/composition-tests: New file.
1667
1668         New module 'uninorm/composition'.
1669         * lib/uninorm/composition.c: New file.
1670         * lib/uninorm/composition-table.gperf: New file, generated by
1671         gen-uni-tables.
1672         * modules/uninorm/composition: New file.
1673
1674         Tests for module 'uninorm/compat-decomposition'.
1675         * tests/uninorm/test-compat-decomposition.c: New file.
1676         * modules/uninorm/compat-decomposition-tests: New file.
1677
1678         New module 'uninorm/compat-decomposition'.
1679         * lib/uninorm/decompose-internal.h: New file.
1680         * lib/uninorm/compat-decomposition.c: New file.
1681         * modules/uninorm/compat-decomposition: New file.
1682
1683         Tests for module 'uninorm/canonical-decomposition'.
1684         * tests/uninorm/test-canonical-decomposition.c: New file.
1685         * modules/uninorm/canonical-decomposition-tests: New file.
1686
1687         New module 'uninorm/canonical-decomposition'.
1688         * lib/uninorm/canonical-decomposition.c: New file.
1689         * modules/uninorm/canonical-decomposition: New file.
1690
1691         Tests for module 'uninorm/decomposition'.
1692         * tests/uninorm/test-decomposition.c: New file.
1693         * modules/uninorm/decomposition-tests: New file.
1694
1695         New module 'uninorm/decomposition'.
1696         * lib/uninorm/decomposition.c: New file.
1697         * modules/uninorm/decomposition: New file.
1698
1699         New module 'uninorm/decomposition-table'.
1700         * lib/uninorm/decomposition-table.h: New file.
1701         * lib/uninorm/decomposition-table.c: New file.
1702         * lib/uninorm/decomposition-table1.h: New file, generated by
1703         gen-uni-tables.
1704         * lib/uninorm/decomposition-table2.h: New file, generated by
1705         gen-uni-tables.
1706         * modules/uninorm/decomposition-table: New file.
1707
1708         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1709         (UC_DECOMP_*): New enumeration items.
1710         (get_decomposition): New function.
1711         (struct decomp_table): New type.
1712         (output_decomposition, output_decomposition_tables): New functions.
1713         (unicode_composition_exclusions): New variable.
1714         (fill_composition_exclusions, debug_output_composition_tables): New
1715         functions.
1716         (main): Accept one more argument. Invoke fill_composition_exclusions.
1717         Output decomposition and composition tables.
1718
1719         New module 'uninorm/base'.
1720         * lib/uninorm.h: New file.
1721         * lib/unictype.h: Update comment.
1722         * modules/uninorm/base: New file.
1723
1724 2009-02-21  David Lutterkort  <lutter@redhat.com>
1725
1726         Tests for module 'safe-alloc'.
1727         * tests/test-safe-alloc.c: New file.
1728         * modules/safe-alloc-tests: New file.
1729
1730         New module 'safe-alloc'.
1731         * lib/safe-alloc.h: New file.
1732         * lib/safe-alloc.c: New file.
1733         * m4/safe-alloc.m4: New file.
1734         * modules/safe-alloc: New file.
1735         * doc/safe-alloc.texi: New file.
1736         * doc/gnulib.texi: Include it.
1737         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1738         safe-alloc.
1739
1740 2009-02-18  Bruno Haible  <bruno@clisp.org>
1741
1742         Fix link error on non-glibc systems.
1743         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1744         variable.
1745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1746
1747 2009-02-18  Jim Meyering  <meyering@redhat.com>
1748
1749         fts: avoid used-uninitialized error due to recent change
1750         * lib/fts.c (fts_read): Guard uses of the new member,
1751         parent->fts_n_dirs_remaining, since it's not relevant for
1752         the parent of a directory specified on the command-line.
1753
1754 2009-02-17  James Youngman  <jay@gnu.org>
1755             Bruno Haible  <bruno@clisp.org>
1756
1757         * m4/include_next.m4: Reformulate comment.
1758
1759 2009-02-16  Jim Meyering  <meyering@redhat.com>
1760
1761         fts: add #if guards so that the fts_lgpl module still builds
1762         * lib/fts.c: Guard just-added hash-table-using parts with
1763         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1764         Reported by Simon Josefsson.
1765
1766 2009-02-15  Bruno Haible  <bruno@clisp.org>
1767
1768         * modules/array-mergesort-tests: New file.
1769         * tests/test-array-mergesort.c: New file.
1770
1771         New module 'array-mergesort'.
1772         * modules/array-mergesort: New file.
1773         * lib/array-mergesort.h: New file.
1774
1775 2009-02-15  Bruno Haible  <bruno@clisp.org>
1776
1777         Fix 2009-02-07 commit.
1778         * lib/gen-uni-tables.c (output_predicate, output_category,
1779         output_combclass, output_bidi_category, output_decimal_digit,
1780         output_digit, output_numeric, output_mirror, output_scripts,
1781         output_ident_category, output_simple_mapping): Fix format directives.
1782         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1783
1784 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1785
1786         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1787         fixes are available from IBM.
1788
1789 2009-02-13  Jim Meyering  <meyering@redhat.com>
1790
1791         fts: arrange not to stat non-directories in more cases
1792         This makes GNU find (when it doesn't need to stat each file)
1793         *much* more efficient at traversing reiserfs file systems.
1794         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1795         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1796         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1797         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1798         (leaf_optimization_applies): New function.
1799         (LCO_hash, LCO_compare): New helper functions.
1800         (link_count_optimize_ok): New function.
1801         (fts_stat): Initialize new member (if dir).
1802         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1803         we've just stat'ed a directory.  Skip the stat call when possible.
1804         ---
1805         Note this AFS-related exchange:
1806         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1807         and note find's pioctl call in find/fstype.c.
1808         But that is necessary only if you want to enable the
1809         optimization for AFS, and for now, I don't.
1810
1811         fts: move a function definition "up" (no semantic change)
1812         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1813         "up" to precede upcoming use of a related function.
1814
1815 2009-02-11  Jim Meyering  <meyering@redhat.com>
1816
1817         fts: correct internal computation of nlinks (optimization-related)
1818         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1819         whether the current entry is a directory, so don't test it.
1820
1821 2009-02-10  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests for module 'uniwbrk/ulc-wordbreaks'.
1824         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1825         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1826         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1827
1828         Tests for module 'uniwbrk/u32-wordbreaks'.
1829         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1830         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1831
1832         Tests for module 'uniwbrk/u16-wordbreaks'.
1833         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1834         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1835
1836         Tests for module 'uniwbrk/u8-wordbreaks'.
1837         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1838         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1839
1840 2009-02-10  Bruno Haible  <bruno@clisp.org>
1841
1842         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1843         property.
1844         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1845         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1846         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1847
1848 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1849
1850         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1851         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1852
1853 2009-02-10  Bruno Haible  <bruno@clisp.org>
1854
1855         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1856         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1857         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1858         * lib/unilbrk/u8-possible-linebreaks.c: Update.
1859         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1860         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1861
1862 2009-02-09  Simon Josefsson  <simon@josefsson.org>
1863
1864         * lib/sockets.h (gl_fd_to_handle): New function.
1865
1866         * tests/test-sockets.c: Call gl_fd_to_handle.
1867
1868 2009-02-09  Bruno Haible  <bruno@clisp.org>
1869
1870         * doc/havelib.texi: Document the conventions on bi-arch systems.
1871
1872 2009-02-08  Bruno Haible  <bruno@clisp.org>
1873
1874         Document the AC_LIB_LINKFLAGS macro.
1875         * doc/havelib.texi: New file, mostly written on 2005-05-24.
1876         * doc/gnulib.texi: Include it.
1877
1878 2009-02-08  Bruno Haible  <bruno@clisp.org>
1879
1880         Fix wrong order of sections, compared to TOC.
1881         * doc/gnulib.texi: Include relocatable-maint.texi after the
1882         "Regular expressions" node, not before.
1883
1884 2009-02-08  Bruno Haible  <bruno@clisp.org>
1885
1886         Tests for module 'unicase/totitle'.
1887         * modules/unicase/totitle-tests: New file.
1888
1889         Tests for module 'unicase/tolower'.
1890         * modules/unicase/tolower-tests: New file.
1891
1892         Tests for module 'unicase/toupper'.
1893         * modules/unicase/toupper-tests: New file.
1894         * tests/unicase/test-mapping-part1.h: New file.
1895         * tests/unicase/test-mapping-part2.h: New file.
1896
1897         New module 'unicase/totitle'.
1898         * modules/unicase/totitle: New file.
1899         * lib/unicase/totitle.c: New file.
1900
1901         New module 'unicase/tolower'.
1902         * modules/unicase/tolower: New file.
1903         * lib/unicase/tolower.c: New file.
1904
1905         New module 'unicase/toupper'.
1906         * modules/unicase/toupper: New file.
1907         * lib/unicase/toupper.c: New file.
1908         * lib/unicase/simple-mapping.h: New file.
1909
1910         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1911         (mapping_table): New structure.
1912         (output_simple_mapping): New function.
1913         (main): Invoke output_simple_mapping_test and output_simple_mapping.
1914         * modules/gen-uni-tables (Description): Update.
1915         * lib/unicase/toupper.h: New file, automatically generated by
1916         gen-uni-tables.
1917         * lib/unicase/tolower.h: New file, automatically generated by
1918         gen-uni-tables.
1919         * lib/unicase/totitle.h: New file, automatically generated by
1920         gen-uni-tables.
1921         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1922         gen-uni-tables.
1923         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1924         gen-uni-tables.
1925         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1926         gen-uni-tables.
1927
1928         New module 'unicase/base'.
1929         * modules/unicase/base: New file.
1930         * lib/unicase.h: New file.
1931
1932 2009-02-08  Bruno Haible  <bruno@clisp.org>
1933
1934         New module 'uniwbrk/ulc-wordbreaks'.
1935         * modules/uniwbrk/ulc-wordbreaks: New file.
1936         * lib/uniwbrk/ulc-wordbreaks.c: New file.
1937
1938         New module 'uniwbrk/u32-wordbreaks'.
1939         * modules/uniwbrk/u32-wordbreaks: New file.
1940         * lib/uniwbrk/u32-wordbreaks.c: New file.
1941
1942         New module 'uniwbrk/u16-wordbreaks'.
1943         * modules/uniwbrk/u16-wordbreaks: New file.
1944         * lib/uniwbrk/u16-wordbreaks.c: New file.
1945
1946         New module 'uniwbrk/u8-wordbreaks'.
1947         * modules/uniwbrk/u8-wordbreaks: New file.
1948         * lib/uniwbrk/u8-wordbreaks.c: New file.
1949         * lib/uniwbrk/u-wordbreaks.h: New file.
1950
1951         New module 'uniwbrk/table'.
1952         * modules/uniwbrk/table: New file.
1953         * lib/uniwbrk/wbrktable.h: New file.
1954         * lib/uniwbrk/wbrktable.c: New file.
1955
1956         New module 'uniwbrk/wordbreak-property'.
1957         * modules/uniwbrk/wordbreak-property: New file.
1958         * lib/uniwbrk/wordbreak-property.c: New file.
1959
1960         * lib/gen-uni-tables.c (WBP_*): New enum items.
1961         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1962         (unicode_org_wbp): New variable.
1963         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1964         New functions.
1965         (wbp_table): New structure.
1966         (output_wbp, output_wbrk_tables): New functions.
1967         (main): Accept additional argument. Invoke fill_org_wbp,
1968         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1969         output_wbrk_tables.
1970         * modules/gen-uni-tables (Description): Update.
1971         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1972         gen-uni-tables.
1973
1974         New module 'uniwbrk/base'.
1975         * modules/uniwbrk/base: New file.
1976         * lib/uniwbrk.h: New file.
1977
1978 2009-02-08  Bruno Haible  <bruno@clisp.org>
1979
1980         Update to Unicode 5.1.0.
1981         * lib/gen-uni-tables.c (is_property_alphabetic): Include
1982         U+2185..U+2188.
1983         (is_property_default_ignorable_code_point): Don't include characters
1984         of category Cc or Cs and not-a-characters.
1985         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1986         U+0D79, U+109E, U+109F, U+A60C.
1987         * lib/unictype/bidi_of.h: Regenerated.
1988         * lib/unictype/blocks.h: Regenerated.
1989         * lib/unictype/categ_C.h: Regenerated.
1990         * lib/unictype/categ_Cf.h: Regenerated.
1991         * lib/unictype/categ_Cn.h: Regenerated.
1992         * lib/unictype/categ_L.h: Regenerated.
1993         * lib/unictype/categ_Ll.h: Regenerated.
1994         * lib/unictype/categ_Lm.h: Regenerated.
1995         * lib/unictype/categ_Lo.h: Regenerated.
1996         * lib/unictype/categ_Lu.h: Regenerated.
1997         * lib/unictype/categ_M.h: Regenerated.
1998         * lib/unictype/categ_Mc.h: Regenerated.
1999         * lib/unictype/categ_Me.h: Regenerated.
2000         * lib/unictype/categ_Mn.h: Regenerated.
2001         * lib/unictype/categ_N.h: Regenerated.
2002         * lib/unictype/categ_Nd.h: Regenerated.
2003         * lib/unictype/categ_Nl.h: Regenerated.
2004         * lib/unictype/categ_No.h: Regenerated.
2005         * lib/unictype/categ_P.h: Regenerated.
2006         * lib/unictype/categ_Pd.h: Regenerated.
2007         * lib/unictype/categ_Pe.h: Regenerated.
2008         * lib/unictype/categ_Pf.h: Regenerated.
2009         * lib/unictype/categ_Pi.h: Regenerated.
2010         * lib/unictype/categ_Po.h: Regenerated.
2011         * lib/unictype/categ_Ps.h: Regenerated.
2012         * lib/unictype/categ_S.h: Regenerated.
2013         * lib/unictype/categ_Sk.h: Regenerated.
2014         * lib/unictype/categ_Sm.h: Regenerated.
2015         * lib/unictype/categ_So.h: Regenerated.
2016         * lib/unictype/categ_of.h: Regenerated.
2017         * lib/unictype/combining.h: Regenerated.
2018         * lib/unictype/ctype_alnum.h: Regenerated.
2019         * lib/unictype/ctype_alpha.h: Regenerated.
2020         * lib/unictype/ctype_graph.h: Regenerated.
2021         * lib/unictype/ctype_lower.h: Regenerated.
2022         * lib/unictype/ctype_print.h: Regenerated.
2023         * lib/unictype/ctype_punct.h: Regenerated.
2024         * lib/unictype/ctype_upper.h: Regenerated.
2025         * lib/unictype/decdigit.h: Regenerated.
2026         * lib/unictype/digit.h: Regenerated.
2027         * lib/unictype/mirror.h: Regenerated.
2028         * lib/unictype/numeric.h: Regenerated.
2029         * lib/unictype/pr_alphabetic.h: Regenerated.
2030         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
2031         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
2032         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
2033         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
2034         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
2035         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
2036         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
2037         * lib/unictype/pr_combining.h: Regenerated.
2038         * lib/unictype/pr_dash.h: Regenerated.
2039         * lib/unictype/pr_decimal_digit.h: Regenerated.
2040         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
2041         * lib/unictype/pr_deprecated.h: Regenerated.
2042         * lib/unictype/pr_diacritic.h: Regenerated.
2043         * lib/unictype/pr_extender.h: Regenerated.
2044         * lib/unictype/pr_format_control.h: Regenerated.
2045         * lib/unictype/pr_grapheme_base.h: Regenerated.
2046         * lib/unictype/pr_grapheme_extend.h: Regenerated.
2047         * lib/unictype/pr_grapheme_link.h: Regenerated.
2048         * lib/unictype/pr_id_continue.h: Regenerated.
2049         * lib/unictype/pr_id_start.h: Regenerated.
2050         * lib/unictype/pr_ideographic.h: Regenerated.
2051         * lib/unictype/pr_ignorable_control.h: Regenerated.
2052         * lib/unictype/pr_lowercase.h: Regenerated.
2053         * lib/unictype/pr_math.h: Regenerated.
2054         * lib/unictype/pr_numeric.h: Regenerated.
2055         * lib/unictype/pr_other_alphabetic.h: Regenerated.
2056         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
2057         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
2058         * lib/unictype/pr_other_id_continue.h: Regenerated.
2059         * lib/unictype/pr_other_lowercase.h: Regenerated.
2060         * lib/unictype/pr_other_math.h: Regenerated.
2061         * lib/unictype/pr_punctuation.h: Regenerated.
2062         * lib/unictype/pr_sentence_terminal.h: Regenerated.
2063         * lib/unictype/pr_soft_dotted.h: Regenerated.
2064         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
2065         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
2066         * lib/unictype/pr_unified_ideograph.h: Regenerated.
2067         * lib/unictype/pr_uppercase.h: Regenerated.
2068         * lib/unictype/pr_xid_continue.h: Regenerated.
2069         * lib/unictype/pr_xid_start.h: Regenerated.
2070         * lib/unictype/pr_zero_width.h: Regenerated.
2071         * lib/unictype/scripts.h: Regenerated.
2072         * lib/unictype/scripts_byname.gperf: Regenerated.
2073         * lib/unictype/sy_java_ident.h: Regenerated.
2074         * lib/unilbrk/lbrkprop1.h: Regenerated.
2075         * lib/unilbrk/lbrkprop2.h: Regenerated.
2076         * tests/unictype/test-categ_C.c: Regenerated.
2077         * tests/unictype/test-categ_Cf.c: Regenerated.
2078         * tests/unictype/test-categ_Cn.c: Regenerated.
2079         * tests/unictype/test-categ_L.c: Regenerated.
2080         * tests/unictype/test-categ_Ll.c: Regenerated.
2081         * tests/unictype/test-categ_Lm.c: Regenerated.
2082         * tests/unictype/test-categ_Lo.c: Regenerated.
2083         * tests/unictype/test-categ_Lu.c: Regenerated.
2084         * tests/unictype/test-categ_M.c: Regenerated.
2085         * tests/unictype/test-categ_Mc.c: Regenerated.
2086         * tests/unictype/test-categ_Me.c: Regenerated.
2087         * tests/unictype/test-categ_Mn.c: Regenerated.
2088         * tests/unictype/test-categ_N.c: Regenerated.
2089         * tests/unictype/test-categ_Nd.c: Regenerated.
2090         * tests/unictype/test-categ_Nl.c: Regenerated.
2091         * tests/unictype/test-categ_No.c: Regenerated.
2092         * tests/unictype/test-categ_P.c: Regenerated.
2093         * tests/unictype/test-categ_Pd.c: Regenerated.
2094         * tests/unictype/test-categ_Pe.c: Regenerated.
2095         * tests/unictype/test-categ_Pf.c: Regenerated.
2096         * tests/unictype/test-categ_Pi.c: Regenerated.
2097         * tests/unictype/test-categ_Po.c: Regenerated.
2098         * tests/unictype/test-categ_Ps.c: Regenerated.
2099         * tests/unictype/test-categ_S.c: Regenerated.
2100         * tests/unictype/test-categ_Sk.c: Regenerated.
2101         * tests/unictype/test-categ_Sm.c: Regenerated.
2102         * tests/unictype/test-categ_So.c: Regenerated.
2103         * tests/unictype/test-ctype_alnum.c: Regenerated.
2104         * tests/unictype/test-ctype_alpha.c: Regenerated.
2105         * tests/unictype/test-ctype_graph.c: Regenerated.
2106         * tests/unictype/test-ctype_lower.c: Regenerated.
2107         * tests/unictype/test-ctype_print.c: Regenerated.
2108         * tests/unictype/test-ctype_punct.c: Regenerated.
2109         * tests/unictype/test-ctype_upper.c: Regenerated.
2110         * tests/unictype/test-decdigit.h: Regenerated.
2111         * tests/unictype/test-digit.h: Regenerated.
2112         * tests/unictype/test-numeric.h: Regenerated.
2113         * tests/unictype/test-pr_alphabetic.c: Regenerated.
2114         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
2115         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
2116         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
2117         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
2118         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
2119         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
2120         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
2121         * tests/unictype/test-pr_combining.c: Regenerated.
2122         * tests/unictype/test-pr_dash.c: Regenerated.
2123         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
2124         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
2125         * tests/unictype/test-pr_deprecated.c: Regenerated.
2126         * tests/unictype/test-pr_diacritic.c: Regenerated.
2127         * tests/unictype/test-pr_extender.c: Regenerated.
2128         * tests/unictype/test-pr_format_control.c: Regenerated.
2129         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
2130         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
2131         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
2132         * tests/unictype/test-pr_id_continue.c: Regenerated.
2133         * tests/unictype/test-pr_id_start.c: Regenerated.
2134         * tests/unictype/test-pr_ideographic.c: Regenerated.
2135         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
2136         * tests/unictype/test-pr_lowercase.c: Regenerated.
2137         * tests/unictype/test-pr_math.c: Regenerated.
2138         * tests/unictype/test-pr_numeric.c: Regenerated.
2139         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
2140         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
2141         Regenerated.
2142         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
2143         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
2144         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
2145         * tests/unictype/test-pr_other_math.c: Regenerated.
2146         * tests/unictype/test-pr_punctuation.c: Regenerated.
2147         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
2148         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
2149         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2150         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2151         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2152         * tests/unictype/test-pr_uppercase.c: Regenerated.
2153         * tests/unictype/test-pr_xid_continue.c: Regenerated.
2154         * tests/unictype/test-pr_xid_start.c: Regenerated.
2155         * tests/unictype/test-pr_zero_width.c: Regenerated.
2156
2157         Update to Unicode 5.1.0.
2158         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2159         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2160         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2161         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2162         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2163         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2164         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2165         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2166         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2167         (nonspacing_table_ind): Update.
2168         * tests/uniwidth/test-uc_width2.sh: Update expected result.
2169
2170         Update to Unicode 5.1.0.
2171         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2172         code transform.
2173         * lib/uniname/uniname.c (unicode_character_name,
2174         unicode_name_character): Add the range 0x1Fxxx to the code transform.
2175         * lib/uniname/uninames.h: Regenerated.
2176         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2177
2178 2009-02-07  Bruno Haible  <bruno@clisp.org>
2179
2180         Merge gen-ctype and gen-lbrk into a single program.
2181         * lib/gen-uni-tables.c: New file, incorporating
2182         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2183         Add directory prefixes to the names of the generated files.
2184         * lib/unictype/gen-ctype.c: Remove file.
2185         * lib/unilbrk/gen-lbrk.c: Remove file.
2186         * modules/gen-uni-tables: New file.
2187         * modules/unictype/gen-ctype: Remove file.
2188         * modules/unilbrk/gen-lbrk: Remove file.
2189
2190 2009-02-07  Bruno Haible  <bruno@clisp.org>
2191
2192         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2193
2194         New module 'unistr/u32-strcoll'.
2195         * modules/unistr/u32-strcoll: New file.
2196         * lib/unistr/u32-strcoll.c: New file.
2197
2198         New module 'unistr/u16-strcoll'.
2199         * modules/unistr/u16-strcoll: New file.
2200         * lib/unistr/u16-strcoll.c: New file.
2201
2202         New module 'unistr/u8-strcoll'.
2203         * modules/unistr/u8-strcoll: New file.
2204         * lib/unistr/u8-strcoll.c: New file.
2205         * lib/unistr/u-strcoll.h: New file.
2206
2207 2009-02-07  Bruno Haible  <bruno@clisp.org>
2208
2209         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2210         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2211         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2212         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2213         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2214         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2215
2216 2009-02-07  Bruno Haible  <bruno@clisp.org>
2217
2218         Make 64-bit clean.
2219         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2220         output_combclass, output_bidi_category, output_decimal_digit,
2221         output_digit, output_numeric, output_mirror, output_scripts,
2222         output_ident_category): Use proper width specifier in format strings.
2223
2224 2009-02-07  Bruno Haible  <bruno@clisp.org>
2225
2226         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2227         failure behaviour.
2228
2229 2009-02-07  Jim Meyering  <meyering@redhat.com>
2230
2231         regex: avoid compilation failure with upcoming gcc-4.4
2232         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2233         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
2234         "... error: integer overflow in preprocessor expression".
2235
2236 2009-02-05  Ben Pfaff  <blp@gnu.org>
2237
2238         Fix link errors on Windows when close module is used.
2239         * modules/close: Add $(LIB_CLOSE) to Link section.
2240         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2241         $(LIB_CLOSE) on Windows.
2242
2243 2009-02-05  Jim Meyering  <meyering@redhat.com>
2244
2245         still avoid unused-parameter warnings, but do it cleanly
2246         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2247         (get_fs_usage): Cast to void instead.
2248         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2249         (dev_from_mount_options, read_file_system_list): Cast to void.
2250         Prompted by Bruno Haible.
2251
2252 2009-02-04  Jim Meyering  <meyering@redhat.com>
2253
2254         fsusage.c: correct copyright year
2255         * lib/fsusage.c: Reflect year in which the change is pushed into
2256
2257         avoid misc. warnings
2258         * lib/fsusage.c (UNUSED_PARAM): Define.
2259         (get_fs_usage): Mark parameter "disk" as unused.
2260         * lib/getugroups.c (getgrent): Use "void" in prototype.
2261         * lib/mountlist.c: Mark unused parameters.
2262         (read_file_system_list): Declare a local with "const".
2263         * lib/nanosleep.c (getnow): Declare static.
2264         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2265
2266         dirfd: set errno upon failure
2267         * lib/dirfd.c: Include <errno.h>.
2268         Set errno to ENOTSUP when returning -1.
2269         * modules/dirfd (Depends-on): Add errno.
2270         Suggested by John Kodis <kodis@comcast.net>.
2271
2272 2009-02-01  Bruno Haible  <bruno@clisp.org>
2273
2274         Don't assume sizeof (long) >= sizeof (void *).
2275         * lib/memcmp.c: Include stdint.h.
2276         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2277         srcp2 to 'const byte *'.
2278         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2279         types to uintptr_t.
2280         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2281         * modules/memcmp (Depends-on): Add stdint.
2282         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2283
2284 2009-01-30  Eric Blake  <ebb9@byu.net>
2285
2286         fix more require-before-expand issues
2287         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2288         expand, AC_PROG_AWK.
2289         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2290
2291 2009-01-28  Eric Blake  <ebb9@byu.net>
2292
2293         version-etc: use consistent URL formatting
2294         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2295         Improve formatting.  Use fputs for string without %.
2296
2297 2009-01-28  Jim Meyering  <meyering@redhat.com>
2298
2299         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2300         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2301         "underquoted definition of NAME" from autoconf-2.59.
2302
2303 2009-01-28  Bruno Haible  <bruno@clisp.org>
2304
2305         * doc/gnulib.texi: Add "Obsolete modules" to index.
2306
2307 2009-01-28  Jim Meyering  <meyering@redhat.com>
2308
2309         useless-if-before-free: recognize more variants
2310         * build-aux/useless-if-before-free: Also recognize e.g.,
2311         if (NULL != p) free (p);
2312
2313 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2314
2315         test-getaddrinfo: skip (don't fail) this test when there's no network
2316         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2317         on the presumption that it means you lack network access.
2318
2319 2009-01-26  Jim Meyering  <meyering@redhat.com>
2320
2321         fflush: avoid warnings on modern systems
2322         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2323         pos and result, into scopes where they're used.
2324
2325 2009-01-26  Eric Blake  <ebb9@byu.net>
2326
2327         Silence warning reintroduced by recent extensions patch.
2328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2329         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2330         autoconf.
2331
2332         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2333         * m4/00gnulib.m4: New file.
2334         * gnulib-tool (func_get_filelist): Always use it.
2335         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2336         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2337
2338 2009-01-25  Bruno Haible  <bruno@clisp.org>
2339
2340         Make test-quotearg work on MacOS X and AIX.
2341         * tests/test-quotearg.sh: New file.
2342         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2343         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2344         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2345         include <libintl.h>.
2346         (fake_locale): Remove variable.
2347         (gettext, dgettext, dcgettext): Remove functions.
2348         (main): Instead of setting a fake locale, set a real locale. Call
2349         textdomain and bindtextdomain.
2350         * modules/quotearg-tests (Files): Add the new files.
2351         (Depends-on): Add gettext, setenv, unsetenv.
2352         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2353         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2354         Augment TESTS_ENVIRONMENT.
2355
2356 2009-01-25  Bruno Haible  <bruno@clisp.org>
2357
2358         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2359         fr_FR.ISO8859-1 locale on MacOS X.
2360         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2361         ja_JP.eucJP locale on MacOS X.
2362         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2363         zh_CN.GB18030 locale on MacOS X.
2364
2365 2009-01-25  Bruno Haible  <bruno@clisp.org>
2366
2367         Avoid link errors on MacOS X 10.3.
2368         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2369         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2370
2371 2009-01-25  Bruno Haible  <bruno@clisp.org>
2372
2373         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2374         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2375         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2376         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2377         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2378         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2379         posix_spawnattr_init, posix_spawnattr_setsigmask,
2380         posix_spawnattr_setflags, posix_spawnattr_destroy.
2381
2382         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2383         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2384         * modules/execute (Files): Remove m4/posix_spawn.m4.
2385         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2386         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2387         posix_spawnattr_init, posix_spawnattr_setsigmask,
2388         posix_spawnattr_setflags, posix_spawnattr_destroy.
2389
2390 2009-01-25  Bruno Haible  <bruno@clisp.org>
2391
2392         * lib/glthread/threadlib.c: Include <stdlib.h>.
2393
2394 2009-01-25  Bruno Haible  <bruno@clisp.org>
2395
2396         * lib/glthread/threadlib.c (dummy): New declaration.
2397
2398 2009-01-25  Bruno Haible  <bruno@clisp.org>
2399
2400         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2401         multibyte characters also for the GB18030 encoding. Don't crash when
2402         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2403
2404 2009-01-25  Bruno Haible  <bruno@clisp.org>
2405
2406         Avoid redefining 'struct random_data' on OSF/1 5.1.
2407         * lib/stdlib.in.h: Include <random.h> if it exists.
2408         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2409         HAVE_RANDOM_H. Include <random.h> when testing whether
2410         'struct random_data' exists.
2411         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2412
2413 2009-01-25  Bruno Haible  <bruno@clisp.org>
2414
2415         Don't install charset.alias on MacOS X >= 10.3.
2416         * lib/localcharset.c (DARWIN7): New macro.
2417         (get_charset_aliases): Hardcode the result for Darwin7.
2418         * modules/localcharset (install-exec-local): Don't install
2419         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2420
2421 2009-01-25  Bruno Haible  <bruno@clisp.org>
2422
2423         Don't install charset.alias on mingw and Cygwin.
2424         * modules/localcharset (install-exec-local): Don't install
2425         charset.alias on mingw and Cygwin, if the file does not yet exist.
2426         The result for these platforms is hardcoded in localcharset.c.
2427
2428 2009-01-25  Bruno Haible  <bruno@clisp.org>
2429
2430         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2431         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2432         before requiring AC_USE_SYSTEM_EXTENSIONS.
2433
2434 2009-01-25  Jim Meyering  <meyering@redhat.com>
2435
2436         c-strtod: avoid warnings
2437         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2438         "assignment discards qualifiers from pointer target type" warnings.
2439
2440 2009-01-24  Bruno Haible  <bruno@clisp.org>
2441
2442         Add support for non-UTF-8 locales on MacOS X.
2443         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2444         canonical encodings. For Darwin 7 and newer, don't map traditional
2445         encodings to UTF-8.
2446         Reported by Vincent Lefevre <vincent@vinc17.org>
2447         at <http://savannah.gnu.org/bugs/?25235>.
2448
2449 2009-01-24  Bruno Haible  <bruno@clisp.org>
2450
2451         * doc/gnulib.texi (Obsolete modules): New section.
2452         Reported by Mike Frysinger <vapier@gentoo.org>.
2453
2454 2009-01-24  Bruno Haible  <bruno@clisp.org>
2455
2456         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2457         (%.dvi): New rule.
2458
2459 2009-01-24  Bruno Haible  <bruno@clisp.org>
2460
2461         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2462         Reported by Eric Blake.
2463
2464 2009-01-24  Bruno Haible  <bruno@clisp.org>
2465
2466         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2467         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2468         Reported by Gary V. Vaughan <gary@gnu.org>.
2469
2470 2009-01-24  Bruno Haible  <bruno@clisp.org>
2471
2472         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2473
2474 2009-01-23  Bruno Haible  <bruno@clisp.org>
2475
2476         Make c-strtod, c-strtold usable in libraries.
2477         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2478         (C_STRTOD): Call strdup instead of xstrdup.
2479         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2480         * modules/c-strtold (Depends-on): Likewise.
2481         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2482         * NEWS: Mention the change.
2483         Reported by Michael Gold <mgold@ncf.ca>.
2484
2485 2009-01-23  Jim Meyering  <meyering@redhat.com>
2486
2487         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2488         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2489         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2490
2491 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2492
2493         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2494         GNU CoreUtils.
2495         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2496         * modules/version-etc (Description): Update.
2497
2498 2009-01-22  Bruno Haible  <bruno@clisp.org>
2499
2500         Cache the C locale object.
2501         * lib/c-strtod.c (c_locale_cache): New variable.
2502         (c_locale): New function.
2503         (C_STRTOD): Use it, and don't call freelocale.
2504         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2505         Suggested by Paolo Bonzini.
2506
2507 2009-01-21  Bruno Haible  <bruno@clisp.org>
2508
2509         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2510         conditions other than overflow.
2511
2512 2009-01-21  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/c-strtod.c: Include errno.h.
2515         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2516         value from STRTOD_L and STRTOD.
2517
2518 2009-01-21  Bruno Haible  <bruno@clisp.org>
2519         and Jim Meyering  <meyering@redhat.com>
2520
2521         nanosleep: skip configure test (fail it) for apple universal builds
2522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2523         universal builds, assume that nanosleep does not work.
2524         * modules/nanosleep (Depends-on): Add multiarch.
2525
2526         mktime: skip configure test (fail it) for apple universal builds
2527         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2528         universal builds, assume that mktime does not work.
2529         * modules/mktime (Depends-on): Add multiarch.
2530
2531 2009-01-21  Eric Blake  <ebb9@byu.net>
2532
2533         multiarch: avoid expand-before-require warning
2534         * modules/multiarch (configure.ac): Require, rather than expand,
2535         gl_MULTIARCH.
2536         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2537         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2538         enforce that all clients require it.  Partial reversion of
2539         2008-12-29 patch.
2540
2541         error: avoid expand-before-require warning
2542         * modules/errno (configure.ac): Require, rather than expand,
2543         gl_HEADER_ERRNO_H.
2544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2545         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2546         enforce that all clients require it.
2547
2548         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2549         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2550         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2551         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2552
2553 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2554
2555         Revert:
2556         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2557
2558         regex: do not depend on obsolete modules.
2559         * modules/regex: Remove memcmp and memmove.
2560
2561 2009-01-20  Bruno Haible  <bruno@clisp.org>
2562
2563         Make the 'link' module link on Windows NT 4.
2564         * lib/link.c (_WIN32_WINNT): Don't define.
2565         (CreateHardLinkFuncType): New type.
2566         (CreateHardLinkFunc, initialized): New variables.
2567         (initialize): New function.
2568         (link): Invoke CreateHardLink indirectly through the function pointer.
2569
2570 2009-01-20  Bruno Haible  <bruno@clisp.org>
2571
2572         Fix compilation failure on mingw.
2573         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2574
2575 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2576
2577         * doc/c-strtod.texi: Mention a couple of restrictions.
2578
2579 2009-01-20  Jim Meyering  <meyering@redhat.com>
2580
2581         gettimeofday: move more declarations out of functions
2582         * lib/gettimeofday.c: Move extern declarations of tzset and
2583         gmtime out of containing functions.  Prompted by Bruno Haible.
2584
2585 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2586
2587         regex: do not depend on obsolete modules.
2588         * modules/regex: Remove memcmp and memmove.
2589
2590 2009-01-19  Bruno Haible  <bruno@clisp.org>
2591
2592         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2593         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2594         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2595         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2596         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2597
2598 2009-01-19  Bruno Haible  <bruno@clisp.org>
2599
2600         * tests/test-link.c: Include <errno.h>.
2601         (main): Exit with code 77 when a hard link cannot be created due to
2602         the file system.
2603         * tests/test-link.sh: Skip test when a hard link cannot be created due
2604         to the file system.
2605         Suggested by Eric Blake.
2606
2607 2009-01-19  Martin Lambers  <marlam@marlam.de>
2608
2609         * modules/link-tests: New file.
2610         * tests/test-link.sh: New file.
2611         * tests/test-link.c: New file.
2612
2613 2009-01-19  Eric Blake  <ebb9@byu.net>
2614
2615         doc: mention another function added in cygwin 1.7.0
2616         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2617         Another new function in cygwin 1.7.
2618
2619 2009-01-19  Bruno Haible  <bruno@clisp.org>
2620
2621         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2622         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2623         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2624         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2626         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2627         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2628         * m4/md4.m4 (gl_MD4): Likewise.
2629         * m4/md5.m4 (gl_MD5): Likewise.
2630         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2631         * m4/sha1.m4 (gl_SHA1): Likewise.
2632         * m4/sha256.m4 (gl_SHA256): Likewise.
2633         * m4/sha512.m4 (gl_SHA512): Likewise.
2634
2635 2009-01-19  Bruno Haible  <bruno@clisp.org>
2636
2637         * modules/uniname/uniname-tests (Depends-on): Add progname.
2638         * tests/uniname/test-uninames.c: Include progname.h.
2639         (main): Call set_program_name.
2640
2641         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2642         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2643         (main): Call set_program_name.
2644
2645         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2646         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2647         (main): Call set_program_name.
2648
2649         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2650         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2651         (main): Call set_program_name.
2652
2653         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2654         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2655         (main): Call set_program_name.
2656
2657         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2658         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2659         (main): Call set_program_name.
2660
2661         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2662         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2663         (main): Call set_program_name.
2664
2665         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2666         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2667         (main): Call set_program_name.
2668
2669         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2670         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2671         (main): Call set_program_name.
2672
2673 2009-01-19  Eric Blake  <ebb9@byu.net>
2674
2675         test-unistd: test previous patch
2676         * tests/test-unistd.c: Test *_FILENO macros.
2677
2678         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2679         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2680         Guarantee a definition.
2681         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2682         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2683         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2684         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2685         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2686         Likewise.
2687         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2688         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2689         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2690         Likewise.
2691         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2692         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2693         (STDERR_FILENO): Likewise.
2694         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2695         (STDERR_FILENO): Likewise.
2696         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2697         (STDERR_FILENO): Likewise.
2698         Reported by Elbert Pol.
2699
2700 2009-01-19  Eric Blake  <ebb9@byu.net>
2701
2702         doc: mention more functions added in cygwin 1.7.0
2703         * doc/posix-functions/abort.texi (abort): Update wording related
2704         to cygwin.
2705         * doc/posix-functions/daylight.texi (daylight): Likewise.
2706         * doc/posix-functions/optarg.texi (optarg): Likewise.
2707         * doc/posix-functions/optarg.texi (opterr): Likewise.
2708         * doc/posix-functions/optarg.texi (optind): Likewise.
2709         * doc/posix-functions/optarg.texi (optopt): Likewise.
2710         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2711         worked in 1.5.x, and was withdrawn in 1.7.
2712         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2713         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2714         cygwin versions.
2715         * doc/posix-functions/perror.texi (perror): Likewise.
2716         * doc/posix-functions/printf.texi (printf): Likewise.
2717         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2718         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2719         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2720         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2721         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2722         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2723         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2724         Likewise.
2725         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2726         Likewise.
2727         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2728         this function.
2729         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2730         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2731         Likewise.
2732         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2733         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2734         * doc/posix-functions/confstr.texi (confstr): Likewise.
2735         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2736         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2737         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2738         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2739         * doc/posix-functions/fputws.texi (fputws): Likewise.
2740         * doc/posix-functions/fwide.texi (fwide): Likewise.
2741         * doc/posix-functions/getwc.texi (getwc): Likewise.
2742         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2743         * doc/posix-functions/putwc.texi (putwc): Likewise.
2744         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2745         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2746         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2747         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2748         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2749         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2750         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2751         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2752         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2753         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2754         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2755
2756 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2757
2758         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2759         * lib/ioctl.c: Include <sys/ioctl.h>.
2760
2761 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2762
2763         * modules/getdate-tests (Depends-on): Add progname.
2764         * tests/test-getdate.c: Use progname module, to avoid link errors
2765         on non-glibc systems.
2766
2767 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2768
2769         * modules/filenamecat-tests (Depends-on): Add progname.
2770         * modules/fstrcmp-tests (Depends-on): Likewise.
2771
2772         * tests/test-filenamecat.c: Use progname module, to avoid link
2773         errors on non-glibc systems.
2774         * tests/test-fstrcmp.c: Likewise.
2775
2776 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2777
2778         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2779         * lib/gettimeofday.c: Move extern declaration out of function.
2780
2781 2009-01-18  Bruno Haible  <bruno@clisp.org>
2782
2783         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2784         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2785         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2786
2787 2009-01-18  Bruno Haible  <bruno@clisp.org>
2788
2789         * lib/strftime.c (MEMPCPY): Remove unused macro.
2790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2791
2792 2009-01-18  Martin Lambers  <marlam@marlam.de>
2793
2794         New module 'link'.
2795         * lib/unistd.in.h (link): New declaration.
2796         * lib/link.c: New file.
2797         * m4/link.m4: New file.
2798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2799         HAVE_LINK.
2800         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2801         * modules/link: New file.
2802         * doc/posix-functions/link.texi: Mention the new module.
2803
2804 2009-01-18  Bruno Haible  <bruno@clisp.org>
2805
2806         * tests/test-avltree_list.c (main): Call set_program_name.
2807         * tests/test-avltree_oset.c (main): Likewise.
2808         * tests/test-obstack-printf.c: Include progname.h.
2809         (main): Call set_program_name.
2810         * tests/test-quotearg.c: Include progname.h.
2811         (main): Call set_program_name.
2812         * tests/test-xmemdup0.c: Include progname.h.
2813         (main): Call set_program_name.
2814
2815 2009-01-18  Bruno Haible  <bruno@clisp.org>
2816
2817         New module 'alphasort'.
2818         * lib/dirent.in.h (alphasort): New declaration.
2819         * lib/alphasort.c: New file, from glibc with modifications.
2820         * m4/alphasort.m4: New file.
2821         * modules/alphasort: New file.
2822         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2823         HAVE_ALPHASORT.
2824         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2825         HAVE_ALPHASORT.
2826         * doc/posix-functions/alphasort.texi: Mention the new module and the
2827         portability problems.
2828
2829 2009-01-18  Bruno Haible  <bruno@clisp.org>
2830
2831         New module 'scandir'.
2832         * lib/dirent.in.h (scandir): New declaration.
2833         * lib/scandir.c: New file, from glibc with modifications.
2834         * m4/scandir.m4: New file.
2835         * modules/scandir: New file.
2836         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2837         HAVE_SCANDIR.
2838         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2839         HAVE_SCANDIR.
2840         * doc/posix-functions/scandir.texi: Mention the new module and the
2841         portability problems.
2842
2843 2009-01-17  Bruno Haible  <bruno@clisp.org>
2844
2845         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2846         Update documentation.
2847         (func_remove_suffix): Escape all dots in the suffix. Update
2848         documentation.
2849         (func_filter_filelist): Update documentation.
2850         Reported by Ralf Wildenhues.
2851
2852 2009-01-17  Bruno Haible  <bruno@clisp.org>
2853
2854         * modules/dprintf-posix-tests: New file.
2855         * tests/test-dprintf-posix.sh: New file.
2856         * tests/test-dprintf-posix.c: New file.
2857
2858         New modules 'dprintf', 'dprintf-posix'.
2859         * lib/stdio.in.h (dprintf): New declaration.
2860         * lib/dprintf.c: New file.
2861         * m4/dprintf.m4: New file.
2862         * m4/dprintf-posix.m4: New file.
2863         * modules/dprintf: New file.
2864         * modules/dprintf-posix: New file.
2865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2866         HAVE_DPRINTF, REPLACE_DPRINTF.
2867         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2868         HAVE_DPRINTF, REPLACE_DPRINTF.
2869         * doc/posix-functions/dprintf.texi: Mention the new modules.
2870
2871 2009-01-17  Bruno Haible  <bruno@clisp.org>
2872
2873         * modules/vdprintf-posix-tests: New file.
2874         * tests/test-vdprintf-posix.sh: New file.
2875         * tests/test-vdprintf-posix.c: New file.
2876
2877         New modules 'vdprintf', 'vdprintf-posix'.
2878         * lib/stdio.in.h (vdprintf): New declaration.
2879         * lib/vdprintf.c: New file.
2880         * m4/vdprintf.m4: New file.
2881         * m4/vdprintf-posix.m4: New file.
2882         * modules/vdprintf: New file.
2883         * modules/vdprintf-posix: New file.
2884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2885         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2886         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2887         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2888         * doc/posix-functions/vdprintf.texi: Mention the new modules.
2889
2890 2009-01-17  Bruno Haible  <bruno@clisp.org>
2891
2892         Fix replacement of fopen on mingw.
2893         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2894         mingw.
2895
2896 2009-01-17  Bruno Haible  <bruno@clisp.org>
2897
2898         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2899         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2900
2901 2009-01-17  Bruno Haible  <bruno@clisp.org>
2902
2903         Avoid test-fflush2.sh failure on mingw.
2904         * tests/test-fflush2.c: Include binary-io.h.
2905         (main): Put standard input into binary mode.
2906         * modules/fflush-tests (Depends-on): Add binary-io.
2907
2908 2009-01-17  Bruno Haible  <bruno@clisp.org>
2909
2910         * lib/wchar.in.h: In another particular situation, include only the
2911         system's <wchar.h> file.
2912         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2913         Reported by Albert Chin-A-Young <china@thewrittenword.com>
2914         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2915
2916 2009-01-17  Bruno Haible  <bruno@clisp.org>
2917
2918         Support for stripping executables in --enable-relocatable.
2919         * build-aux/install-reloc: Expect one more argument, or an environment
2920         variable RELOC_STRIP_PROG. If set, strip the destination program and
2921         its wrapper.
2922         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2923         RELOC_STRIP_PROG.
2924         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2925         to set RELOCATABLE_STRIP.
2926         * NEWS: Mention the new Makefile requirement.
2927
2928 2009-01-17  Bruno Haible  <bruno@clisp.org>
2929
2930         * build-aux/install-reloc: Remove debugging information left over by
2931         C compiler on MacOS X.
2932
2933 2009-01-17  Bruno Haible  <bruno@clisp.org>
2934
2935         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2936         * lib/progreloc.c (find_executable): Fix type of pointer passed to
2937         _NSGetExecutablePath.
2938
2939 2009-01-16  Jim Meyering  <meyering@redhat.com>
2940
2941         strerror: avoid warnings about discarding "const"
2942         * lib/strerror.c (rpl_strerror): Instead of returning a const
2943         string from each and every "case", use a variable, and add a single
2944         cast after the switch.
2945
2946 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
2947
2948         * lib/arpa_inet.in.h: Add extern "C" block for C++.
2949
2950 2009-01-16  Bruno Haible  <bruno@clisp.org>
2951
2952         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2953         array initializer syntax that also works in C++ mode.
2954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2955
2956 2009-01-16  Jim Meyering  <meyering@redhat.com>
2957
2958         poll: suppress a warning
2959         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2960         to ignore "...unsigned expression < 0 is always false" warnings.
2961
2962 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
2963
2964         poll: remove declarations of unused variables
2965         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2966         sockbuf and optlen.
2967
2968 2009-01-15  Bruno Haible  <bruno@clisp.org>
2969
2970         Make fflush-after-ungetc POSIX compliant on BSD systems.
2971         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2972         (clear_ungetc_buffer): Implement also for other systems.
2973         (rpl_fflush): On glibc systems, invoke
2974         clear_ungetc_buffer_preserving_position. Otherwise, invoke
2975         clear_ungetc_buffer after fetching the stream's position, not before.
2976
2977 2009-01-15  Bruno Haible  <bruno@clisp.org>
2978
2979         Make fflush-after-ungetc POSIX compliant on glibc systems.
2980         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2981         after ungetc.
2982         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2983         (rpl_fflush): On glibc systems, simply call the system's fflush
2984         function after clearing the ungetc buffer.
2985         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2986         Instead, lseek only to the end of file, then use the system's fseeko
2987         for the rest. On glibc systems, reset the EOF indicator bit.
2988
2989 2009-01-15  Jim Meyering  <meyering@redhat.com>
2990
2991         openmp.m4: revert quote-adding change, for portability to older autoconf
2992         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2993         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2994         Simon Josefsson noticed the problem when using autoconf-2.61.
2995
2996 2009-01-15  Bruno Haible  <bruno@clisp.org>
2997
2998         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2999         * tests/test-fflush2.c (ASSERT): Always fail.
3000         (main): Add two tests for fflush() after ungetc(), taking into account
3001         the Austin Group's clarification.
3002         Suggested by Eric Blake.
3003
3004 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
3005
3006         mktime.m4: remove K&R-style function prototypes
3007         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
3008         for the Sun C++ compiler.
3009
3010 2009-01-14  Bruno Haible  <bruno@clisp.org>
3011
3012         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
3013         while including <wchar.h>.
3014         * lib/wchar.in.h: In two particular situations on HP-UX, include only
3015         the system's <wchar.h> file.
3016         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3017
3018 2009-01-14  Bruno Haible  <bruno@clisp.org>
3019
3020         * m4/csharp.m4: Don't mention gettext on the serial number line.
3021         * m4/csharpexec.m4: Likewise.
3022         * m4/eaccess.m4: Likewise.
3023         * m4/javaexec.m4: Likewise.
3024         * m4/sig_atomic_t.m4: Likewise.
3025         * m4/tmpdir.m4: Likewise.
3026         * m4/intldir.m4: Bump gettext version.
3027         * m4/lib-ld.m4: Likewise.
3028
3029 2009-01-14  Bruno Haible  <bruno@clisp.org>
3030
3031         * lib/progname.c (set_program_name): Add more comments.
3032         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3033
3034 2009-01-14  Simon Josefsson  <simon@josefsson.org>
3035
3036         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
3037         were sys/stat.h does not define it.
3038
3039 2009-01-14  Jim Meyering  <meyering@redhat.com>
3040
3041         many *.m4 files: improve m4 quoting
3042         99% of this change was performed by running the following commands:
3043         git ls-files | grep '\.m4$' | xargs perl -pi \
3044           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
3045           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3046           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3047           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
3048         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
3049         The remainder were to add Copyright dates, increment serial numbers,
3050         undo some changes in comments, exclude m4/intl.m4, and add quotes
3051         around the "1" in ",1" where the unusual spacing prohibited the
3052         above regexps from doing the job.  For more details, see
3053         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
3054         * m4/acl.m4: Modified.
3055         * m4/afs.m4: Likewise.
3056         * m4/alloca.m4: Likewise.
3057         * m4/argp.m4: Likewise.
3058         * m4/argz.m4: Likewise.
3059         * m4/atexit.m4: Likewise.
3060         * m4/bison-i18n.m4: Likewise.
3061         * m4/bison.m4: Likewise.
3062         * m4/byteswap.m4: Likewise.
3063         * m4/c-stack.m4: Likewise.
3064         * m4/c-strtod.m4: Likewise.
3065         * m4/calloc.m4: Likewise.
3066         * m4/canonicalize-lgpl.m4: Likewise.
3067         * m4/chown.m4: Likewise.
3068         * m4/clock_time.m4: Likewise.
3069         * m4/codeset.m4: Likewise.
3070         * m4/copy-file.m4: Likewise.
3071         * m4/csharp.m4: Likewise.
3072         * m4/csharpcomp.m4: Likewise.
3073         * m4/csharpexec.m4: Likewise.
3074         * m4/d-ino.m4: Likewise.
3075         * m4/d-type.m4: Likewise.
3076         * m4/dirfd.m4: Likewise.
3077         * m4/double-slash-root.m4: Likewise.
3078         * m4/eaccess.m4: Likewise.
3079         * m4/eealloc.m4: Likewise.
3080         * m4/environ.m4: Likewise.
3081         * m4/errno_h.m4: Likewise.
3082         * m4/euidaccess.m4: Likewise.
3083         * m4/execute.m4: Likewise.
3084         * m4/fatal-signal.m4: Likewise.
3085         * m4/fchdir.m4: Likewise.
3086         * m4/fcntl_h.m4: Likewise.
3087         * m4/fileblocks.m4: Likewise.
3088         * m4/filenamecat.m4: Likewise.
3089         * m4/findprog.m4: Likewise.
3090         * m4/flexmember.m4: Likewise.
3091         * m4/fnmatch.m4: Likewise.
3092         * m4/fopen.m4: Likewise.
3093         * m4/fpending.m4: Likewise.
3094         * m4/fprintf-posix.m4: Likewise.
3095         * m4/free.m4: Likewise.
3096         * m4/frexp.m4: Likewise.
3097         * m4/frexpl.m4: Likewise.
3098         * m4/fsusage.m4: Likewise.
3099         * m4/ftruncate.m4: Likewise.
3100         * m4/gc-camellia.m4: Likewise.
3101         * m4/gc-random.m4: Likewise.
3102         * m4/gc.m4: Likewise.
3103         * m4/getaddrinfo.m4: Likewise.
3104         * m4/getcwd-abort-bug.m4: Likewise.
3105         * m4/getcwd-path-max.m4: Likewise.
3106         * m4/getdate.m4: Likewise.
3107         * m4/getdomainname.m4: Likewise.
3108         * m4/getgroups.m4: Likewise.
3109         * m4/gethostname.m4: Likewise.
3110         * m4/gethrxtime.m4: Likewise.
3111         * m4/getline.m4: Likewise.
3112         * m4/getloadavg.m4: Likewise.
3113         * m4/getndelim2.m4: Likewise.
3114         * m4/getpass.m4: Likewise.
3115         * m4/gettext.m4: Likewise.
3116         * m4/gettime.m4: Likewise.
3117         * m4/gettimeofday.m4: Likewise.
3118         * m4/gnulib-common.m4: Likewise.
3119         * m4/group-member.m4: Likewise.
3120         * m4/host-os.m4: Likewise.
3121         * m4/iconv.m4: Likewise.
3122         * m4/iconv_open.m4: Likewise.
3123         * m4/inet_ntop.m4: Likewise.
3124         * m4/inet_pton.m4: Likewise.
3125         * m4/inline.m4: Likewise.
3126         * m4/intldir.m4: Likewise.
3127         * m4/intlmacosx.m4: Likewise.
3128         * m4/intmax.m4: Likewise.
3129         * m4/intmax_t.m4: Likewise.
3130         * m4/inttypes.m4: Likewise.
3131         * m4/inttypes_h.m4: Likewise.
3132         * m4/inttypes-pri.m4: Likewise.
3133         * m4/isapipe.m4: Likewise.
3134         * m4/isnand.m4: Likewise.
3135         * m4/isnanf.m4: Likewise.
3136         * m4/isnanl.m4: Likewise.
3137         * m4/javacomp.m4: Likewise.
3138         * m4/javaexec.m4: Likewise.
3139         * m4/jm-winsz1.m4: Likewise.
3140         * m4/jm-winsz2.m4: Likewise.
3141         * m4/lchown.m4: Likewise.
3142         * m4/lcmessage.m4: Likewise.
3143         * m4/ldexpl.m4: Likewise.
3144         * m4/lib-ld.m4: Likewise.
3145         * m4/lib-link.m4: Likewise.
3146         * m4/libsigsegv.m4: Likewise.
3147         * m4/link-follow.m4: Likewise.
3148         * m4/localcharset.m4: Likewise.
3149         * m4/locale-fr.m4: Likewise.
3150         * m4/locale-ja.m4: Likewise.
3151         * m4/locale-tr.m4: Likewise.
3152         * m4/locale-zh.m4: Likewise.
3153         * m4/lock.m4: Likewise.
3154         * m4/longlong.m4: Likewise.
3155         * m4/ls-mntd-fs.m4: Likewise.
3156         * m4/lstat.m4: Likewise.
3157         * m4/malloc.m4: Likewise.
3158         * m4/mathl.m4: Likewise.
3159         * m4/mbrtowc.m4: Likewise.
3160         * m4/mbstate_t.m4: Likewise.
3161         * m4/mbswidth.m4: Likewise.
3162         * m4/memchr.m4: Likewise.
3163         * m4/memcmp.m4: Likewise.
3164         * m4/memcpy.m4: Likewise.
3165         * m4/memmem.m4: Likewise.
3166         * m4/memmove.m4: Likewise.
3167         * m4/mempcpy.m4: Likewise.
3168         * m4/memrchr.m4: Likewise.
3169         * m4/memset.m4: Likewise.
3170         * m4/minmax.m4: Likewise.
3171         * m4/mkdir-slash.m4: Likewise.
3172         * m4/mkdtemp.m4: Likewise.
3173         * m4/mktime.m4: Likewise.
3174         * m4/mmap-anon.m4: Likewise.
3175         * m4/mountlist.m4: Likewise.
3176         * m4/nanosleep.m4: Likewise.
3177         * m4/nls.m4: Likewise.
3178         * m4/nocrash.m4: Likewise.
3179         * m4/open.m4: Likewise.
3180         * m4/openat.m4: Likewise.
3181         * m4/openmp.m4: Likewise.
3182         * m4/pathmax.m4: Likewise.
3183         * m4/perl.m4: Likewise.
3184         * m4/physmem.m4: Likewise.
3185         * m4/pipe.m4: Likewise.
3186         * m4/po.m4: Likewise.
3187         * m4/poll.m4: Likewise.
3188         * m4/posixtm.m4: Likewise.
3189         * m4/posixver.m4: Likewise.
3190         * m4/printf-frexp.m4: Likewise.
3191         * m4/printf-frexpl.m4: Likewise.
3192         * m4/printf-posix.m4: Likewise.
3193         * m4/printf-posix-rpl.m4: Likewise.
3194         * m4/printf.m4: Likewise.
3195         * m4/progtest.m4: Likewise.
3196         * m4/putenv.m4: Likewise.
3197         * m4/readline.m4: Likewise.
3198         * m4/readlink.m4: Likewise.
3199         * m4/readutmp.m4: Likewise.
3200         * m4/realloc.m4: Likewise.
3201         * m4/regex.m4: Likewise.
3202         * m4/relocatable.m4: Likewise.
3203         * m4/relocatable-lib.m4: Likewise.
3204         * m4/rename-dest-slash.m4: Likewise.
3205         * m4/rename.m4: Likewise.
3206         * m4/rmdir-errno.m4: Likewise.
3207         * m4/rmdir.m4: Likewise.
3208         * m4/roundf.m4: Likewise.
3209         * m4/roundl.m4: Likewise.
3210         * m4/rpmatch.m4: Likewise.
3211         * m4/save-cwd.m4: Likewise.
3212         * m4/selinux-selinux-h.m4: Likewise.
3213         * m4/setenv.m4: Likewise.
3214         * m4/settime.m4: Likewise.
3215         * m4/sig2str.m4: Likewise.
3216         * m4/sig_atomic_t.m4: Likewise.
3217         * m4/signalblocking.m4: Likewise.
3218         * m4/signbit.m4: Likewise.
3219         * m4/sigpipe.m4: Likewise.
3220         * m4/sockets.m4: Likewise.
3221         * m4/sockpfaf.m4: Likewise.
3222         * m4/st_dm_mode.m4: Likewise.
3223         * m4/stat-time.m4: Likewise.
3224         * m4/stdbool.m4: Likewise.
3225         * m4/stdint.m4: Likewise.
3226         * m4/stdint_h.m4: Likewise.
3227         * m4/stpcpy.m4: Likewise.
3228         * m4/stpncpy.m4: Likewise.
3229         * m4/strcase.m4: Likewise.
3230         * m4/strchrnul.m4: Likewise.
3231         * m4/strcspn.m4: Likewise.
3232         * m4/strdup.m4: Likewise.
3233         * m4/strftime.m4: Likewise.
3234         * m4/strndup.m4: Likewise.
3235         * m4/strnlen.m4: Likewise.
3236         * m4/strpbrk.m4: Likewise.
3237         * m4/strptime.m4: Likewise.
3238         * m4/strsep.m4: Likewise.
3239         * m4/strtod.m4: Likewise.
3240         * m4/strtoimax.m4: Likewise.
3241         * m4/strtok_r.m4: Likewise.
3242         * m4/strtol.m4: Likewise.
3243         * m4/strtoll.m4: Likewise.
3244         * m4/strtoul.m4: Likewise.
3245         * m4/strtoull.m4: Likewise.
3246         * m4/strtoumax.m4: Likewise.
3247         * m4/strverscmp.m4: Likewise.
3248         * m4/threadlib.m4: Likewise.
3249         * m4/timegm.m4: Likewise.
3250         * m4/tm_gmtoff.m4: Likewise.
3251         * m4/tmpdir.m4: Likewise.
3252         * m4/tmpfile.m4: Likewise.
3253         * m4/tzset.m4: Likewise.
3254         * m4/uintmax_t.m4: Likewise.
3255         * m4/unlinkdir.m4: Likewise.
3256         * m4/unlocked-io.m4: Likewise.
3257         * m4/uptime.m4: Likewise.
3258         * m4/userspec.m4: Likewise.
3259         * m4/utimbuf.m4: Likewise.
3260         * m4/utime.m4: Likewise.
3261         * m4/utimes-null.m4: Likewise.
3262         * m4/utimes.m4: Likewise.
3263         * m4/vararrays.m4: Likewise.
3264         * m4/vasnprintf.m4: Likewise.
3265         * m4/vfprintf-posix.m4: Likewise.
3266         * m4/vprintf-posix.m4: Likewise.
3267         * m4/wait-process.m4: Likewise.
3268         * m4/wchar_t.m4: Likewise.
3269         * m4/wint_t.m4: Likewise.
3270         * m4/write-any-file.m4: Likewise.
3271         * m4/yield.m4: Likewise.
3272
3273 2009-01-13  Bruno Haible  <bruno@clisp.org>
3274
3275         Avoid test-copy-file.sh failures when ACL support insufficient.
3276         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3277         TESTS_ENVIRONMENT.
3278         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3279         Reported by Jim Meyering.
3280
3281 2009-01-13  Bruno Haible  <bruno@clisp.org>
3282
3283         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3284         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3285         * modules/unistdio/u8-printf-parse (Files): Likewise.
3286         * modules/unistdio/u32-printf-parse (Files): Likewise.
3287         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3288
3289 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3290
3291         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3292         and m4/inttypes_h.m4 too.
3293
3294 2009-01-12  Eric Blake  <ebb9@byu.net>
3295
3296         tests: IRIX 6.2 cc can't compile -0.0 into .data
3297         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3298         rather than at compile-time.
3299         * tests/test-floorl.c (minus_zero): Likewise.
3300         * tests/test-frexpl.c (minus_zero): Likewise.
3301         * tests/test-isnan.c (minus_zerol): Likewise.
3302         * tests/test-isnanl.h (minus_zero): Likewise.
3303         * tests/test-ldexpl.c (minus_zero): Likewise.
3304         * tests/test-roundl.c (minus_zero): Likewise.
3305         * tests/test-signbit.c (minus_zerol): Likewise.
3306         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3307         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3308         * tests/test-truncl.c (minus_zero): Likewise.
3309         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3310         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3311         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3312
3313 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3314
3315         regex: fix glibc bug 9697
3316         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3317         handling.
3318
3319 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3320
3321         regex: fix glibc bug 697
3322         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3323         being NULL also if there are no backreferences.
3324
3325 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3326
3327         regex: merge glibc changes
3328         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3329         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3330         re_string_skip_chars, re_string_reconstruct): Likewise.
3331         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3332
3333 2009-01-07  Jim Meyering  <meyering@redhat.com>
3334
3335         poll: filter through cppi
3336         * lib/poll.c: Indent cpp directives to reflect nesting.
3337
3338 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3339
3340         poll: don't return uninitialized
3341         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3342
3343 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3344
3345         avoid compile failure on AIX 6.1
3346         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3347         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3348
3349 2009-01-04  Jim Meyering  <meyering@redhat.com>
3350
3351         remove duplicate inclusion of <stdio.h>
3352         * tests/test-fprintf-posix.c: Likewise.
3353         * tests/test-printf-posix.c: Likewise.
3354         * tests/test-snprintf-posix.c: Likewise.
3355         * tests/test-sprintf-posix.c: Likewise.
3356         * tests/test-vasprintf-posix.c: Likewise.
3357         * tests/test-vfprintf-posix.c: Likewise.
3358         * tests/test-vprintf-posix.c: Likewise.
3359         * tests/test-vsnprintf-posix.c: Likewise.
3360         * tests/test-vsprintf-posix.c: Likewise.
3361
3362 2009-01-03  Jim Meyering  <meyering@redhat.com>
3363
3364         gnulib-tool: fix sed-based filtering
3365         * gnulib-tool (func_filter_filelist): Remove extra backslash
3366         in sed_fff_filter definition.
3367
3368 2009-01-02  Jim Meyering  <meyering@redhat.com>
3369
3370         strftime: avoid compilation failure on Solaris 2.6
3371         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3372         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3373         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3374         be available.  Reported by Tom G. Christensen.  Details in
3375         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3376
3377 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3378             Bruno Haible  <bruno@clisp.org>
3379
3380         Speed up gnulib-tool by doing more string processing through shell
3381         built-ins.
3382         * gnulib-tool (fast_func_append): New variable.
3383         (func_remove_prefix, func_remove_suffix): New functions.
3384         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3385         (func_filter_filelist): New function.
3386         (func_get_dependencies): Use func_remove_suffix instead of sed.
3387         (func_get_automake_snippet): Use func_filter_filelist instead of a
3388         subshell and sed invocation.
3389
3390 2009-01-01  Bruno Haible  <bruno@clisp.org>
3391
3392         Fix a security bug.
3393         * gnulib-tool (func_import, import, update): Don't allow the characters
3394         '"', '$', '`', '\' in macro arguments that become part of commands that
3395         are evaluated.
3396
3397 2009-01-01  Bruno Haible  <bruno@clisp.org>
3398
3399         * gnulib-tool (func_reset_sigpipe): Add more comments.
3400
3401 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3402
3403         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3404         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3405         already know the answer.
3406
3407 2009-01-01  Jim Meyering  <meyering@redhat.com>
3408
3409         * lib/version-etc.c (version_etc_va): Update copyright year.
3410
3411 2008-12-30  Bruno Haible  <bruno@clisp.org>
3412
3413         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3414         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3415         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3416
3417 2008-12-29  Eric Blake  <ebb9@byu.net>
3418
3419         multiarch: avoid autoconf AC_REQUIRE bug
3420         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3421         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3422         2.63 and older.
3423         Reported by Bruno Haible, and analyzed in
3424         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3425
3426 2008-12-29  Bruno Haible  <bruno@clisp.org>
3427
3428         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3429         files in subdirectories correctly.
3430         Reported by Ralf Wildenhues.
3431
3432 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3433
3434         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3435         rather than 'join FILE -', for Solaris join.
3436
3437 2008-12-29  Bruno Haible  <bruno@clisp.org>
3438
3439         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3440         quoting.
3441         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3442         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3443         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3444         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3445         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3446         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3447         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3448         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3449         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3450         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3451         * m4/nls.m4 (AM_NLS): Likewise.
3452         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3453         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3454         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3455         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3456         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3457         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3458         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3459         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3460         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3461         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3462         * m4/xsize.m4 (gl_XSIZE): Likewise.
3463         Suggested by Jim Meyering.
3464
3465 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3466
3467         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3468         * lib/parse-duration.c: use a switch instead of cascading if's.
3469
3470 2008-12-29  Eric Blake  <ebb9@byu.net>
3471
3472         wchar.h: supply WEOF on Irix 5.3
3473         * lib/wchar.in.h (wint_t): Also supply WEOF.
3474         * lib/wctype.in.h (wint_t): Likewise.
3475         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3476         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3477         Reported by Tom G. Christensen.
3478
3479 2008-12-26  Bruno Haible  <bruno@clisp.org>
3480
3481         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3482         i486, i586, i686.
3483
3484 2008-12-26  Bruno Haible  <bruno@clisp.org>
3485
3486         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3487
3488 2008-12-26  Bruno Haible  <bruno@clisp.org>
3489
3490         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3491         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3492         not __STDC_CONSTANT_MACROS.
3493         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3494
3495 2008-12-25  Bruno Haible  <bruno@clisp.org>
3496
3497         Add support for universal builds to vasnprintf.
3498         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3499         universal builds, guess no.
3500         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3501         * modules/vasprintf-posix (Depends-on): Likewise.
3502         * modules/fprintf-posix (Depends-on): Likewise.
3503         * modules/vfprintf-posix (Depends-on): Likewise.
3504         * modules/snprintf-posix (Depends-on): Likewise.
3505         * modules/vsnprintf-posix (Depends-on): Likewise.
3506         * modules/sprintf-posix (Depends-on): Likewise.
3507         * modules/vsprintf-posix (Depends-on): Likewise.
3508         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3509         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3510         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3511         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3512         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3513         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3514         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3515
3516         Add support for universal builds to <inttypes.h>.
3517         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3518         _SCNu64_PREFIX): In Apple
3519         universal builds, define directly, using _LP64.
3520         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3521         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3522         * modules/inttypes (Depends-on): Add multiarch.
3523         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3524
3525         Add support for universal builds to <stdint.h>.
3526         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3527         universal builds, define directly, using _LP64.
3528         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3529         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3530         and size_t.
3531         * modules/stdint (Depends-on): Add multiarch.
3532         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3533
3534         New module 'multiarch'.
3535         * modules/multiarch: New file.
3536         * m4/multiarch.m4: New file.
3537
3538 2008-12-25  Bruno Haible  <bruno@clisp.org>
3539
3540         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3541
3542 2008-12-25  Bruno Haible  <bruno@clisp.org>
3543
3544         * modules/btowc (License): Relicense under LGPLv2+.
3545         * modules/mbsinit (License): Likewise.
3546         * modules/mbrtowc (License): Likewise.
3547         * modules/wcrtomb (License): Likewise.
3548         * modules/streq (License): Likewise.
3549         Reported by David Lutterkort <lutter@redhat.com>.
3550
3551 2008-12-23  Bruno Haible  <bruno@clisp.org>
3552
3553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3554
3555 2008-12-23  Bruno Haible  <bruno@clisp.org>
3556
3557         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3559         GETADDRINFO_LIB, not in LIBS.
3560         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3561         * modules/canon-host (Link): Likewise.
3562         * NEWS: Mention the change.
3563         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3564         GETADDRINFO_LIB.
3565
3566 2008-12-22  Bruno Haible  <bruno@clisp.org>
3567
3568         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3569         * doc/posix-functions/iswalpha_l.texi: Likewise.
3570         * doc/posix-functions/iswblank_l.texi: Likewise.
3571         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3572         * doc/posix-functions/iswctype_l.texi: Likewise.
3573         * doc/posix-functions/iswdigit_l.texi: Likewise.
3574         * doc/posix-functions/iswgraph_l.texi: Likewise.
3575         * doc/posix-functions/iswlower_l.texi: Likewise.
3576         * doc/posix-functions/iswprint_l.texi: Likewise.
3577         * doc/posix-functions/iswpunct_l.texi: Likewise.
3578         * doc/posix-functions/iswspace_l.texi: Likewise.
3579         * doc/posix-functions/iswupper_l.texi: Likewise.
3580         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3581         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3582         * doc/posix-functions/open_wmemstream.texi: Likewise.
3583         * doc/posix-functions/swscanf.texi: Likewise.
3584         * doc/posix-functions/towctrans_l.texi: Likewise.
3585         * doc/posix-functions/towlower.texi: Likewise.
3586         * doc/posix-functions/towlower_l.texi: Likewise.
3587         * doc/posix-functions/towupper.texi: Likewise.
3588         * doc/posix-functions/towupper_l.texi: Likewise.
3589         * doc/posix-functions/vfwprintf.texi: Likewise.
3590         * doc/posix-functions/vfwscanf.texi: Likewise.
3591         * doc/posix-functions/vswscanf.texi: Likewise.
3592         * doc/posix-functions/vwprintf.texi: Likewise.
3593         * doc/posix-functions/vwscanf.texi: Likewise.
3594         * doc/posix-functions/wcpcpy.texi: Likewise.
3595         * doc/posix-functions/wcpncpy.texi: Likewise.
3596         * doc/posix-functions/wcscasecmp.texi: Likewise.
3597         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3598         * doc/posix-functions/wcscoll_l.texi: Likewise.
3599         * doc/posix-functions/wcsdup.texi: Likewise.
3600         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3601         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3602         * doc/posix-functions/wcsnlen.texi: Likewise.
3603         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3604         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3605         * doc/posix-functions/wctrans_l.texi: Likewise.
3606         * doc/posix-functions/wctype_l.texi: Likewise.
3607         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3608         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3609         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3610         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3611         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3612         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3613         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3614         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3615         * doc/glibc-functions/wcschrnul.texi: Likewise.
3616         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3617         * doc/glibc-functions/wcstod_l.texi: Likewise.
3618         * doc/glibc-functions/wcstof_l.texi: Likewise.
3619         * doc/glibc-functions/wcstol_l.texi: Likewise.
3620         * doc/glibc-functions/wcstold_l.texi: Likewise.
3621         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3622         * doc/glibc-functions/wcstoq.texi: Likewise.
3623         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3624         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3625         * doc/glibc-functions/wcstouq.texi: Likewise.
3626         * doc/glibc-functions/wmempcpy.texi: Likewise.
3627
3628 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3629             Eric Blake  <ebb9@byu.net>
3630             Paolo Bonzini  <bonzini@gnu.org>
3631             Bruno Haible  <bruno@clisp.org>
3632
3633         Make c-stack work on Haiku.
3634         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3635         (c_stack_action): Use SA_ONSTACK flag.
3636
3637 2008-12-22  Bruno Haible  <bruno@clisp.org>
3638
3639         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3640
3641 2008-12-22  Bruno Haible  <bruno@clisp.org>
3642
3643         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3644         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3645         being overridden.
3646         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3647         New macros.
3648         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3650         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3651         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3652
3653 2008-12-22  Bruno Haible  <bruno@clisp.org>
3654
3655         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3656         from test code.
3657
3658 2008-12-22  Eric Blake  <ebb9@byu.net>
3659
3660         Avoid gcc warnings on cygwin.
3661         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3662         Avoid unused variable.
3663         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3664         Likewise.
3665
3666 2008-12-22  Bruno Haible  <bruno@clisp.org>
3667
3668         Remove HAVE_MBRTOWC conditionals.
3669         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3670         (mbscasecmp): Assume mbrtowc function.
3671         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3672         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3673         * lib/mbschr.c: Include mbuiter.h unconditionally.
3674         (mbschr): Assume mbrtowc function.
3675         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3676         (mbscspn): Assume mbrtowc function.
3677         * lib/mbslen.c: Include mbuiter.h unconditionally.
3678         (mbslen): Assume mbrtowc function.
3679         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3680         (mbsncasecmp): Assume mbrtowc function.
3681         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3682         (mbsnlen): Assume mbrtowc function.
3683         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3684         (mbspbrk): Assume mbrtowc function.
3685         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3686         (mbspcasecmp): Assume mbrtowc function.
3687         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3688         (mbsrchr): Assume mbrtowc function.
3689         * lib/mbssep.c: Include mbuiter.h unconditionally.
3690         (mbssep): Assume mbrtowc function.
3691         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3692         (mbsspn): Assume mbrtowc function.
3693         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3694         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3695         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3696         (mbstok_r): Assume mbrtowc function.
3697         * lib/propername.c: Include mbuiter.h unconditionally.
3698         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3699         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3700         (trim2): Assume mbrtowc function.
3701         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3702         (mbsnwidth): Assume mbrtowc function.
3703         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3704         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3705         fallback definitions.
3706         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3707
3708 2008-12-22  Bruno Haible  <bruno@clisp.org>
3709
3710         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3711
3712 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3713
3714         * modules/regex: Request emulations for the mb*/wc* functions we need.
3715         * m4/regex.m4: Don't look for those functions here.
3716         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3717
3718 2008-12-22  Bruno Haible  <bruno@clisp.org>
3719
3720         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3721
3722 2008-12-21  Bruno Haible  <bruno@clisp.org>
3723
3724         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3725         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3726         (Include): Remove conditionalization.
3727         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3728         (Include): Remove conditionalization.
3729         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3730         (Include): Remove conditionalization.
3731         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3732         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3733         * NEWS: Mention the change.
3734         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3735         via Sergey Poznyakoff <gray@gnu.org.ua>.
3736
3737 2008-12-21  Bruno Haible  <bruno@clisp.org>
3738
3739         * MODULES.html.sh (Extended multibyte and wide character utilities
3740         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3741         wcrtomb, wcsrtombs.
3742         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3743         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3744         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3745         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3746
3747 2008-12-21  Bruno Haible  <bruno@clisp.org>
3748
3749         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3750
3751 2008-12-21  Bruno Haible  <bruno@clisp.org>
3752
3753         * modules/wcsnrtombs-tests: New file.
3754         * tests/test-wcsnrtombs1.sh: New file.
3755         * tests/test-wcsnrtombs2.sh: New file.
3756         * tests/test-wcsnrtombs3.sh: New file.
3757         * tests/test-wcsnrtombs4.sh: New file.
3758         * tests/test-wcsnrtombs.c: New file.
3759
3760         New module 'wcsnrtombs'.
3761         * lib/wchar.in.h (wcsnrtombs): New declaration.
3762         * lib/wcsnrtombs.c: New file.
3763         * lib/wcsrtombs-state.c: New file.
3764         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3765         (internal_state): Remove variable.
3766         * m4/wcsnrtombs.m4: New file.
3767         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3768         compilation units.
3769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3770         HAVE_WCSNRTOMBS.
3771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3772         HAVE_WCSNRTOMBS.
3773         * modules/wcsnrtombs: New file.
3774         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3775         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3776
3777 2008-12-21  Bruno Haible  <bruno@clisp.org>
3778
3779         * modules/wcsrtombs-tests: New file.
3780         * tests/test-wcsrtombs1.sh: New file.
3781         * tests/test-wcsrtombs2.sh: New file.
3782         * tests/test-wcsrtombs3.sh: New file.
3783         * tests/test-wcsrtombs4.sh: New file.
3784         * tests/test-wcsrtombs.c: New file.
3785
3786         New module 'wcsrtombs'.
3787         * lib/wchar.in.h (wcsrtombs): New declaration.
3788         * lib/wcsrtombs.c: New file.
3789         * m4/wcsrtombs.m4: New file.
3790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3791         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3793         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3794         * modules/wcsrtombs: New file.
3795         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3796         bugs.
3797
3798 2008-12-21  Bruno Haible  <bruno@clisp.org>
3799
3800         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3801         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3803         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3804         if not correct.
3805         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3806         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3807         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3808         m4/locale-zh.m4, m4/codeset.m4.
3809         * doc/posix-functions/wcrtomb.texi: Document the bug.
3810
3811 2008-12-21  Bruno Haible  <bruno@clisp.org>
3812
3813         Work around a btowc() bug on IRIX 6.5.
3814         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3815         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3816         REPLACE_WTOBC if not.
3817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3818         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3819         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3820
3821 2008-12-21  Bruno Haible  <bruno@clisp.org>
3822
3823         * modules/wcrtomb-tests: New file.
3824         * tests/test-wcrtomb.sh: New file.
3825         * tests/test-wcrtomb.c: New file.
3826
3827         New module 'wcrtomb'.
3828         * lib/wchar.in.h (wcrtomb): New declaration.
3829         * lib/wcrtomb.c: New file.
3830         * m4/wcrtomb.m4: New file.
3831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3832         HAVE_WCRTOMB.
3833         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3834         HAVE_WCRTOMB.
3835         * modules/wcrtomb: New file.
3836         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3837
3838 2008-12-21  Bruno Haible  <bruno@clisp.org>
3839
3840         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3841         * modules/mbsrtowcs (Files): Likewise.
3842         * modules/wctob (Files): Likewise.
3843         * modules/c-strcase-tests (Files): Likewise.
3844         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3845         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3846         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3847         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3848         * modules/vasnprintf-posix-tests (Files): Likewise.
3849
3850 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3851
3852         gitlog-to-changelog: pass all command-line arguments to git-log
3853         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3854         it is sometimes convenient to filter the commits in various ways.
3855         gitlog-to-changelog only allows --since to specify a start date,
3856         but git-log itself supports many other filtering mechanisms.
3857         At the moment, I want to filter by branch name.  Rather than
3858         adding a --branch option to gitlog-to-changelog, it seems more
3859         flexible to simply pass all options directly to git-log and let
3860         git do the work.  Notice that this effectively makes --since a
3861         redundant option for gitlog-to-changelog, but removing it would
3862         require current usage to change since calls would then require
3863         an additional '--'.
3864
3865 2008-12-21  Bruno Haible  <bruno@clisp.org>
3866
3867         * modules/mbsnrtowcs-tests: New file.
3868         * tests/test-mbsnrtowcs1.sh: New file.
3869         * tests/test-mbsnrtowcs2.sh: New file.
3870         * tests/test-mbsnrtowcs3.sh: New file.
3871         * tests/test-mbsnrtowcs4.sh: New file.
3872         * tests/test-mbsnrtowcs.c: New file.
3873
3874         New module 'mbsnrtowcs'.
3875         * lib/wchar.in.h (mbsnrtowcs): New declaration.
3876         * lib/mbsnrtowcs.c: New file.
3877         * lib/mbsrtowcs-state.c: New file.
3878         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3879         (internal_state): Remove variable.
3880         * m4/mbsnrtowcs.m4: New file.
3881         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3882         compilation units.
3883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3884         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3885         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3886         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3887         * modules/mbsnrtowcs: New file.
3888         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3889         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3890         portability problem.
3891
3892 2008-12-21  Bruno Haible  <bruno@clisp.org>
3893
3894         Work around mbsrtowcs bug.
3895         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3896         (gl_FUNC_MBSRTOWCS): Invoke it.
3897         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3898         m4/locale-zh.m4.
3899         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3900
3901 2008-12-21  Bruno Haible  <bruno@clisp.org>
3902
3903         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3904
3905 2008-12-21  Bruno Haible  <bruno@clisp.org>
3906
3907         Update doc for AIX.
3908         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3909         16-bit wchar_t type.
3910         * doc/posix-functions/btowc.texi: Likewise.
3911         * doc/posix-functions/fgetwc.texi: Likewise.
3912         * doc/posix-functions/fgetws.texi: Likewise.
3913         * doc/posix-functions/fputwc.texi: Likewise.
3914         * doc/posix-functions/fputws.texi: Likewise.
3915         * doc/posix-functions/fwide.texi: Likewise.
3916         * doc/posix-functions/fwprintf.texi: Likewise.
3917         * doc/posix-functions/fwscanf.texi: Likewise.
3918         * doc/posix-functions/getwchar.texi: Likewise.
3919         * doc/posix-functions/getwc.texi: Likewise.
3920         * doc/posix-functions/iswalnum.texi: Likewise.
3921         * doc/posix-functions/iswalpha.texi: Likewise.
3922         * doc/posix-functions/iswblank.texi: Likewise.
3923         * doc/posix-functions/iswcntrl.texi: Likewise.
3924         * doc/posix-functions/iswctype.texi: Likewise.
3925         * doc/posix-functions/iswdigit.texi: Likewise.
3926         * doc/posix-functions/iswgraph.texi: Likewise.
3927         * doc/posix-functions/iswlower.texi: Likewise.
3928         * doc/posix-functions/iswprint.texi: Likewise.
3929         * doc/posix-functions/iswpunct.texi: Likewise.
3930         * doc/posix-functions/iswspace.texi: Likewise.
3931         * doc/posix-functions/iswupper.texi: Likewise.
3932         * doc/posix-functions/iswxdigit.texi: Likewise.
3933         * doc/posix-functions/mbrtowc.texi: Likewise.
3934         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3935         * doc/posix-functions/mbstowcs.texi: Likewise.
3936         * doc/posix-functions/mbtowc.texi: Likewise.
3937         * doc/posix-functions/putwchar.texi: Likewise.
3938         * doc/posix-functions/putwc.texi: Likewise.
3939         * doc/posix-functions/swprintf.texi: Likewise.
3940         * doc/posix-functions/tolower.texi: Likewise.
3941         * doc/posix-functions/toupper.texi: Likewise.
3942         * doc/posix-functions/towctrans.texi: Likewise.
3943         * doc/posix-functions/ungetwc.texi: Likewise.
3944         * doc/posix-functions/vswprintf.texi: Likewise.
3945         * doc/posix-functions/wcrtomb.texi: Likewise.
3946         * doc/posix-functions/wcscat.texi: Likewise.
3947         * doc/posix-functions/wcschr.texi: Likewise.
3948         * doc/posix-functions/wcscmp.texi: Likewise.
3949         * doc/posix-functions/wcscoll.texi: Likewise.
3950         * doc/posix-functions/wcscpy.texi: Likewise.
3951         * doc/posix-functions/wcscspn.texi: Likewise.
3952         * doc/posix-functions/wcsftime.texi: Likewise.
3953         * doc/posix-functions/wcslen.texi: Likewise.
3954         * doc/posix-functions/wcsncat.texi: Likewise.
3955         * doc/posix-functions/wcsncmp.texi: Likewise.
3956         * doc/posix-functions/wcsncpy.texi: Likewise.
3957         * doc/posix-functions/wcspbrk.texi: Likewise.
3958         * doc/posix-functions/wcsrchr.texi: Likewise.
3959         * doc/posix-functions/wcsrtombs.texi: Likewise.
3960         * doc/posix-functions/wcsspn.texi: Likewise.
3961         * doc/posix-functions/wcsstr.texi: Likewise.
3962         * doc/posix-functions/wcstod.texi: Likewise.
3963         * doc/posix-functions/wcstof.texi: Likewise.
3964         * doc/posix-functions/wcstoimax.texi: Likewise.
3965         * doc/posix-functions/wcstok.texi: Likewise.
3966         * doc/posix-functions/wcstold.texi: Likewise.
3967         * doc/posix-functions/wcstoll.texi: Likewise.
3968         * doc/posix-functions/wcstol.texi: Likewise.
3969         * doc/posix-functions/wcstombs.texi: Likewise.
3970         * doc/posix-functions/wcstoull.texi: Likewise.
3971         * doc/posix-functions/wcstoul.texi: Likewise.
3972         * doc/posix-functions/wcstoumax.texi: Likewise.
3973         * doc/posix-functions/wcswidth.texi: Likewise.
3974         * doc/posix-functions/wcsxfrm.texi: Likewise.
3975         * doc/posix-functions/wctob.texi: Likewise.
3976         * doc/posix-functions/wctomb.texi: Likewise.
3977         * doc/posix-functions/wctrans.texi: Likewise.
3978         * doc/posix-functions/wctype.texi: Likewise.
3979         * doc/posix-functions/wcwidth.texi: Likewise.
3980         * doc/posix-functions/wmemchr.texi: Likewise.
3981         * doc/posix-functions/wmemcmp.texi: Likewise.
3982         * doc/posix-functions/wmemcpy.texi: Likewise.
3983         * doc/posix-functions/wmemmove.texi: Likewise.
3984         * doc/posix-functions/wmemset.texi: Likewise.
3985         * doc/posix-functions/wprintf.texi: Likewise.
3986         * doc/posix-functions/wscanf.texi: Likewise.
3987
3988 2008-12-21  Bruno Haible  <bruno@clisp.org>
3989
3990         Update doc for HP-UX 11.11.
3991         * doc/posix-functions/btowc.texi: Clarify that the function is missing
3992         in HP-UX version 11.00, not in all versions of HP-UX 11.
3993         * doc/posix-functions/fwide.texi: Likewise.
3994         * doc/posix-functions/fwprintf.texi: Likewise.
3995         * doc/posix-functions/fwscanf.texi: Likewise.
3996         * doc/posix-functions/inet_ntop.texi: Likewise.
3997         * doc/posix-functions/inet_pton.texi: Likewise.
3998         * doc/posix-functions/mbrlen.texi: Likewise.
3999         * doc/posix-functions/mbrtowc.texi: Likewise.
4000         * doc/posix-functions/mbsinit.texi: Likewise.
4001         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4002         * doc/posix-functions/swprintf.texi: Likewise.
4003         * doc/posix-functions/swscanf.texi: Likewise.
4004         * doc/posix-functions/towctrans.texi: Likewise.
4005         * doc/posix-functions/vfwprintf.texi: Likewise.
4006         * doc/posix-functions/vswprintf.texi: Likewise.
4007         * doc/posix-functions/vwprintf.texi: Likewise.
4008         * doc/posix-functions/wcrtomb.texi: Likewise.
4009         * doc/posix-functions/wcsrtombs.texi: Likewise.
4010         * doc/posix-functions/wcsstr.texi: Likewise.
4011         * doc/posix-functions/wctob.texi: Likewise.
4012         * doc/posix-functions/wctrans.texi: Likewise.
4013         * doc/posix-functions/wmemchr.texi: Likewise.
4014         * doc/posix-functions/wmemcmp.texi: Likewise.
4015         * doc/posix-functions/wmemcpy.texi: Likewise.
4016         * doc/posix-functions/wmemmove.texi: Likewise.
4017         * doc/posix-functions/wmemset.texi: Likewise.
4018         * doc/posix-functions/wprintf.texi: Likewise.
4019         * doc/posix-functions/wscanf.texi: Likewise.
4020
4021 2008-12-21  Bruno Haible  <bruno@clisp.org>
4022
4023         Work around a portability problem.
4024         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
4025         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
4026
4027 2008-12-20  Bruno Haible  <bruno@clisp.org>
4028
4029         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
4030         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
4031         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
4032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
4033         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
4034
4035         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
4036         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
4037         set.
4038         (GNULIB_defined_mbstate_t): New macro.
4039         (mbsinit): Redefine if REPLACE_MBSINIT is set.
4040         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
4041         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
4042         reuses the system's mbrtowc function but works around the bugs.
4043         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
4044         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
4045         macros.
4046         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
4047         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
4048         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
4049         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
4050         REPLACE_MBSINIT if mbsinit needs to be overridden.
4051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
4052         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4053         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
4054         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4055         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4056         m4/locale-zh.m4.
4057         (Depends): Add mbsinit.
4058         * modules/mbsinit (Depends): Add mbrtowc.
4059         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
4060
4061 2008-12-20  Bruno Haible  <bruno@clisp.org>
4062
4063         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
4064         so that there are no conversion errors on AIX.
4065         * tests/test-mbsrtowcs.c (main): LIkewise.
4066
4067 2008-12-20  Bruno Haible  <bruno@clisp.org>
4068
4069         Work around wctob bug on Solaris <= 9.
4070         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
4071         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
4072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
4073         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
4074         * modules/wctob (Files): Add m4/locale-fr.m4.
4075         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
4076
4077 2008-12-20  Bruno Haible  <bruno@clisp.org>
4078
4079         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
4080         /dev/null.
4081         * tests/test-select-in.sh: Likewise.
4082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4083
4084 2008-12-20  Bruno Haible  <bruno@clisp.org>
4085
4086         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
4087         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
4088         Cygwin 1.5.x.
4089
4090 2008-12-20  Bruno Haible  <bruno@clisp.org>
4091
4092         Ensure mbstate_t is defined on HP-UX 11.11.
4093         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
4094         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
4095         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
4096         AC_USE_SYSTEM_EXTENSIONS.
4097         * modules/fnmatch (Depends-on): Add extensions.
4098         * modules/mbrlen (Depends-on): Likewise.
4099         * modules/mbrtowc (Depends-on): Likewise.
4100         * modules/mbsinit (Depends-on): Likewise.
4101         * modules/mbsrtowcs (Depends-on): Likewise.
4102         * modules/mbswidth (Depends-on): Likewise.
4103         * modules/quotearg (Depends-on): Likewise.
4104         * modules/strftime (Depends-on): Likewise.
4105
4106 2008-12-20  Bruno Haible  <bruno@clisp.org>
4107
4108         Ensure wctob is declared on IRIX 6.5.
4109         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
4110         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
4111         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
4112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
4113         of HAVE_WCTOB.
4114         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
4115         HAVE_WCTOB.
4116         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
4117
4118 2008-12-19  Bruno Haible  <bruno@clisp.org>
4119
4120         * modules/mbsrtowcs-tests: New file.
4121         * tests/test-mbsrtowcs1.sh: New file.
4122         * tests/test-mbsrtowcs2.sh: New file.
4123         * tests/test-mbsrtowcs3.sh: New file.
4124         * tests/test-mbsrtowcs4.sh: New file.
4125         * tests/test-mbsrtowcs.c: New file.
4126
4127         New module 'mbsrtowcs'.
4128         * lib/wchar.in.h (mbsrtowcs): New declaration.
4129         * lib/mbsrtowcs.c: New file.
4130         * m4/mbsrtowcs.m4: New file.
4131         * modules/mbsrtowcs: New file.
4132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
4133         HAVE_MBSRTOWCS.
4134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
4135         HAVE_MBSRTOWCS.
4136         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
4137
4138 2008-12-19  Bruno Haible  <bruno@clisp.org>
4139
4140         New module 'mbrlen'.
4141         * lib/wchar.in.h (mbrlen): New declaration.
4142         * lib/mbrlen.c: New file.
4143         * m4/mbrlen.m4: New file.
4144         * modules/mbrlen: New file.
4145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
4146         HAVE_MBRLEN.
4147         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
4148         HAVE_MBRLEN.
4149         * doc/posix-functions/mbrlen.texi: Document the new module.
4150
4151 2008-12-19  Bruno Haible  <bruno@clisp.org>
4152
4153         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4154         * modules/mbrtowc (Depends-on): Add verify.
4155         Suggested by Paul Eggert.
4156
4157 2008-12-18  Bruno Haible  <bruno@clisp.org>
4158
4159         * modules/mbsinit-tests: New file.
4160         * tests/test-mbsinit.sh: New file.
4161         * tests/test-mbsinit.c: New file.
4162
4163 2008-12-18  Bruno Haible  <bruno@clisp.org>
4164
4165         * modules/mbrtowc-tests: New file.
4166         * tests/test-mbrtowc1.sh: New file.
4167         * tests/test-mbrtowc2.sh: New file.
4168         * tests/test-mbrtowc3.sh: New file.
4169         * tests/test-mbrtowc4.sh: New file.
4170         * tests/test-mbrtowc.c: New file.
4171
4172         New module 'mbrtowc'.
4173         * lib/wchar.in.h (mbstate_t): Override when the system does not have
4174         mbsinit and mbrtowc.
4175         (mbrtowc): New declaration.
4176         * lib/mbrtowc.c: New file.
4177         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4178         * modules/mbrtowc: New file.
4179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4180         HAVE_MBRTOWC.
4181         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4182         HAVE_MBRTOWC.
4183         * doc/posix-functions/mbrtowc.texi: Document the new module.
4184
4185 2008-12-18  Bruno Haible  <bruno@clisp.org>
4186
4187         New module 'wctob'.
4188         * lib/wchar.in.h (wctob): New declaration.
4189         * lib/wctob.c: New file.
4190         * m4/wctob.m4: New file.
4191         * modules/wctob: New file.
4192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4193         HAVE_WCTOB.
4194         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4195         * doc/posix-functions/wctob.texi: Document the new module.
4196
4197 2008-12-18  Bruno Haible  <bruno@clisp.org>
4198
4199         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4200         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4201
4202 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4203
4204         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4205         G. Christensen" <tgc@jupiterrise.com>.
4206
4207         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4208         G. Christensen" <tgc@jupiterrise.com>.
4209
4210         * lib/flock.c: Need to include string.h.  Reported by "Tom
4211         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4212         <ebb9@byu.net>.
4213
4214 2008-12-18  Bruno Haible  <bruno@clisp.org>
4215
4216         * m4/locale-ja.m4: New file, from GNU gettext.
4217
4218 2008-12-17  Bruno Haible  <bruno@clisp.org>
4219
4220         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4221         Suggested by Eric Blake.
4222
4223 2008-12-17  Bruno Haible  <bruno@clisp.org>
4224
4225         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4226
4227 2008-12-17  Bruno Haible  <bruno@clisp.org>
4228
4229         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4230         * modules/mbsinit (Depends-on): Add verify.
4231         Suggested by Paul Eggert.
4232
4233 2008-12-17  Bruno Haible  <bruno@clisp.org>
4234
4235         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4236         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4237         gl_FUNC_MBRTOWC.
4238         * m4/mbiter.m4 (gl_MBITER): LIkewise.
4239         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4240         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4241         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4242         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4243         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4244         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4245         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4246         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4247         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4248         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4249         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4250         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4251         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4252         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4253         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4254         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4255         * modules/trim (configure.ac): Likewise.
4256
4257 2008-12-17  Bruno Haible  <bruno@clisp.org>
4258
4259         * modules/btowc-tests: New file.
4260         * tests/test-btowc1.sh: New file.
4261         * tests/test-btowc2.sh: New file.
4262         * tests/test-btowc.c: New file.
4263
4264         New module 'btowc'.
4265         * lib/wchar.in.h (btowc): New declaration.
4266         * lib/btowc.c: New file.
4267         * m4/btowc.m4: New file.
4268         * modules/btowc: New file.
4269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4270         HAVE_BTOWC.
4271         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4272         * doc/posix-functions/btowc.texi: Document the new module.
4273
4274 2008-12-17  Bruno Haible  <bruno@clisp.org>
4275
4276         New module 'mbsinit'.
4277         * lib/wchar.in.h (mbsinit): New declaration.
4278         * lib/mbsinit.c: New file.
4279         * m4/mbsinit.m4: New file.
4280         * modules/mbsinit: New file.
4281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4282         HAVE_MBSINIT.
4283         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4284         HAVE_MBSINIT.
4285         * doc/posix-functions/mbsinit.texi: Document the new module.
4286
4287 2008-12-16  Bruno Haible  <bruno@clisp.org>
4288
4289         * lib/unistd.in.h: Add comment.
4290         * tests/test-environ.c: Don't include <stdlib.h>.
4291
4292 2008-12-16  Bruno Haible  <bruno@clisp.org>
4293
4294         * lib/parse-duration.h (parse_duration): Document return value
4295         convention.
4296         * lib/parse-duration.c: Include specification header first. Add
4297         comments.
4298         (_): Remove macro.
4299         (parse_year_month_day, parse_hour_minute_second): Move side effects
4300         outside of strchr call.
4301         (parse_non_iso8601): Move side effects outside of isspace call.
4302         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4303         call.
4304
4305 2008-12-16  Bruno Haible  <bruno@clisp.org>
4306
4307         * tests/test-parse-duration.sh: Produce no output when the test
4308         succeeds.
4309
4310 2008-12-16  Bruno Haible  <bruno@clisp.org>
4311
4312         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4313         expressions.
4314
4315 2008-12-15  Bruno Haible  <bruno@clisp.org>
4316
4317         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4318         * doc/glibc-functions/flistxattr.texi: Likewise.
4319         * doc/glibc-functions/fopencookie.texi: Likewise.
4320         * doc/glibc-functions/fremovexattr.texi: Likewise.
4321         * doc/glibc-functions/fsetxattr.texi: Likewise.
4322         * doc/glibc-functions/getxattr.texi: Likewise.
4323         * doc/glibc-functions/lgetxattr.texi: Likewise.
4324         * doc/glibc-functions/listxattr.texi: Likewise.
4325         * doc/glibc-functions/llistxattr.texi: Likewise.
4326         * doc/glibc-functions/lremovexattr.texi: Likewise.
4327         * doc/glibc-functions/lsetxattr.texi: Likewise.
4328         * doc/glibc-functions/removexattr.texi: Likewise.
4329         * doc/glibc-functions/setxattr.texi: Likewise.
4330         * doc/posix-functions/open_memstream.texi: Likewise.
4331
4332 2008-12-15  Eric Blake  <ebb9@byu.net>
4333
4334         Update doc for cygwin 1.7.
4335         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4336         functions.
4337         * doc/posix-functions/fchmodat.texi: Likewise.
4338         * doc/posix-functions/fchownat.texi: Likewise.
4339         * doc/posix-functions/fdopendir.texi: Likewise.
4340         * doc/posix-functions/fmemopen.texi: Likewise.
4341         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4342         * doc/posix-functions/fstatat.texi: Likewise.
4343         * doc/posix-functions/futimens.texi: Likewise.
4344         * doc/posix-functions/gai_strerror.texi: Likewise.
4345         * doc/posix-functions/getaddrinfo.texi: Likewise.
4346         * doc/posix-functions/getnameinfo.texi: Likewise.
4347         * doc/posix-functions/if_freenameindex.texi: Likewise.
4348         * doc/posix-functions/if_indextoname.texi: Likewise.
4349         * doc/posix-functions/if_nameindex.texi: Likewise.
4350         * doc/posix-functions/if_nametoindex.texi: Likewise.
4351         * doc/posix-functions/insque.texi: Likewise.
4352         * doc/posix-functions/linkat.texi: Likewise.
4353         * doc/posix-functions/llrint.texi: Likewise.
4354         * doc/posix-functions/llrintf.texi: Likewise.
4355         * doc/posix-functions/llrintl.texi: Likewise.
4356         * doc/posix-functions/lockf.texi: Likewise.
4357         * doc/posix-functions/lrintl.texi: Likewise.
4358         * doc/posix-functions/mkdirat.texi: Likewise.
4359         * doc/posix-functions/mkfifoat.texi: Likewise.
4360         * doc/posix-functions/mknodat.texi: Likewise.
4361         * doc/posix-functions/mq_close.texi: Likewise.
4362         * doc/posix-functions/mq_getattr.texi: Likewise.
4363         * doc/posix-functions/mq_notify.texi: Likewise.
4364         * doc/posix-functions/mq_open.texi: Likewise.
4365         * doc/posix-functions/mq_receive.texi: Likewise.
4366         * doc/posix-functions/mq_send.texi: Likewise.
4367         * doc/posix-functions/mq_setattr.texi: Likewise.
4368         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4369         * doc/posix-functions/mq_timedsend.texi: Likewise.
4370         * doc/posix-functions/mq_unlink.texi: Likewise.
4371         * doc/posix-functions/open_memstream.texi: Likewise.
4372         * doc/posix-functions/openat.texi: Likewise.
4373         * doc/posix-functions/posix_fadvise.texi: Likewise.
4374         * doc/posix-functions/posix_fallocate.texi: Likewise.
4375         * doc/posix-functions/posix_madvise.texi: Likewise.
4376         * doc/posix-functions/posix_memalign.texi: Likewise.
4377         * doc/posix-functions/posix_openpt.texi: Likewise.
4378         * doc/posix-functions/readlinkat.texi: Likewise.
4379         * doc/posix-functions/remque.texi: Likewise.
4380         * doc/posix-functions/renameat.texi: Likewise.
4381         * doc/posix-functions/rintl.texi: Likewise.
4382         * doc/posix-functions/sem_unlink.texi: Likewise.
4383         * doc/posix-functions/shm_open.texi: Likewise.
4384         * doc/posix-functions/shm_unlink.texi: Likewise.
4385         * doc/posix-functions/signgam.texi: Likewise.
4386         * doc/posix-functions/sigset.texi: Likewise.
4387         * doc/posix-functions/stpcpy.texi: Likewise.
4388         * doc/posix-functions/stpncpy.texi: Likewise.
4389         * doc/posix-functions/strerror.texi: Likewise.
4390         * doc/posix-functions/strtod.texi: Likewise.
4391         * doc/posix-functions/symlinkat.texi: Likewise.
4392         * doc/posix-functions/unlinkat.texi: Likewise.
4393         * doc/posix-functions/utimensat.texi: Likewise.
4394         * doc/glibc-functions/bindresvport.texi: Likewise.
4395         * doc/glibc-functions/dn_expand.texi: Likewise.
4396         * doc/glibc-functions/exp10.texi: Likewise.
4397         * doc/glibc-functions/exp10f.texi: Likewise.
4398         * doc/glibc-functions/fgetxattr.texi: Likewise.
4399         * doc/glibc-functions/flistxattr.texi: Likewise.
4400         * doc/glibc-functions/fopencookie.texi: Likewise.
4401         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4402         * doc/glibc-functions/fremovexattr.texi: Likewise.
4403         * doc/glibc-functions/fsetxattr.texi: Likewise.
4404         * doc/glibc-functions/getifaddrs.texi: Likewise.
4405         * doc/glibc-functions/getxattr.texi: Likewise.
4406         * doc/glibc-functions/lgetxattr.texi: Likewise.
4407         * doc/glibc-functions/listxattr.texi: Likewise.
4408         * doc/glibc-functions/llistxattr.texi: Likewise.
4409         * doc/glibc-functions/lremovexattr.texi: Likewise.
4410         * doc/glibc-functions/lsetxattr.texi: Likewise.
4411         * doc/glibc-functions/pow10.texi: Likewise.
4412         * doc/glibc-functions/pow10f.texi: Likewise.
4413         * doc/glibc-functions/rcmd_af.texi: Likewise.
4414         * doc/glibc-functions/removexattr.texi: Likewise.
4415         * doc/glibc-functions/res_init.texi: Likewise.
4416         * doc/glibc-functions/res_mkquery.texi: Likewise.
4417         * doc/glibc-functions/res_query.texi: Likewise.
4418         * doc/glibc-functions/res_querydomain.texi: Likewise.
4419         * doc/glibc-functions/res_send.texi: Likewise.
4420         * doc/glibc-functions/rresvport_af.texi: Likewise.
4421         * doc/glibc-functions/setxattr.texi: Likewise.
4422         * doc/glibc-functions/strcasestr.texi: Likewise.
4423
4424 2008-12-15  Bruno Haible  <bruno@clisp.org>
4425
4426         Fix compilation error on OSF/1 4.0.
4427         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4428         <sys/time.h>, simply delegate to the system header.
4429         Reported by Daniel Richard G. <oss@teragram.com>.
4430
4431 2008-12-15  Bruno Haible  <bruno@clisp.org>
4432
4433         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4434         * doc/posix-functions/fchmodat.texi: Likewise.
4435         * doc/posix-functions/fchownat.texi: Likewise.
4436         * doc/posix-functions/fdopendir.texi: Likewise.
4437         * doc/posix-functions/fstatat.texi: Likewise.
4438         * doc/posix-functions/mkdirat.texi: Likewise.
4439         * doc/posix-functions/unlinkat.texi: Likewise.
4440
4441 2008-12-14  Bruno Haible  <bruno@clisp.org>
4442
4443         Update doc for POSIX:2008.
4444         * doc/posix-functions/faccessat.texi: New file.
4445         * doc/posix-functions/fchmodat.texi: New file.
4446         * doc/posix-functions/fchownat.texi: New file.
4447         * doc/posix-functions/fdopendir.texi: New file.
4448         * doc/posix-functions/fstatat.texi: New file.
4449         * doc/posix-functions/futimens.texi: New file.
4450         * doc/posix-functions/linkat.texi: New file.
4451         * doc/posix-functions/mkdirat.texi: New file.
4452         * doc/posix-functions/mkfifoat.texi: New file.
4453         * doc/posix-functions/mknodat.texi: New file.
4454         * doc/posix-functions/open_wmemstream.texi: New file.
4455         * doc/posix-functions/openat.texi: New file.
4456         * doc/posix-functions/psiginfo.texi: New file.
4457         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4458         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4459         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4460         * doc/posix-functions/readlinkat.texi: New file.
4461         * doc/posix-functions/renameat.texi: New file.
4462         * doc/posix-functions/strerror_l.texi: New file.
4463         * doc/posix-functions/symlinkat.texi: New file.
4464         * doc/posix-functions/unlinkat.texi: New file.
4465         * doc/posix-functions/utimensat.texi: New file.
4466         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4467
4468 2008-12-14  Bruno Haible  <bruno@clisp.org>
4469
4470         Update doc for POSIX:2008.
4471         * doc/posix-functions/alphasort.texi: Renamed from
4472         doc/glibc-functions/alphasort.texi.
4473         * doc/posix-functions/dirfd.texi: Renamed from
4474         doc/glibc-functions/dirfd.texi.
4475         * doc/posix-functions/dprintf.texi: Renamed from
4476         doc/glibc-functions/dprintf.texi.
4477         * doc/posix-functions/duplocale.texi: Renamed from
4478         doc/glibc-functions/duplocale.texi.
4479         * doc/posix-functions/fexecve.texi: Renamed from
4480         doc/glibc-functions/fexecve.texi.
4481         * doc/posix-functions/fmemopen.texi: Renamed from
4482         doc/glibc-functions/fmemopen.texi.
4483         * doc/posix-functions/freelocale.texi: Renamed from
4484         doc/glibc-functions/freelocale.texi.
4485         * doc/posix-functions/getdate_err.texi: Renamed from
4486         doc/glibc-functions/getdate_err.texi.
4487         * doc/posix-functions/isalnum_l.texi: Renamed from
4488         doc/glibc-functions/isalnum_l.texi.
4489         * doc/posix-functions/isalpha_l.texi: Renamed from
4490         doc/glibc-functions/isalpha_l.texi.
4491         * doc/posix-functions/isblank_l.texi: Renamed from
4492         doc/glibc-functions/isblank_l.texi.
4493         * doc/posix-functions/iscntrl_l.texi: Renamed from
4494         doc/glibc-functions/iscntrl_l.texi.
4495         * doc/posix-functions/isdigit_l.texi: Renamed from
4496         doc/glibc-functions/isdigit_l.texi.
4497         * doc/posix-functions/isgraph_l.texi: Renamed from
4498         doc/glibc-functions/isgraph_l.texi.
4499         * doc/posix-functions/islower_l.texi: Renamed from
4500         doc/glibc-functions/islower_l.texi.
4501         * doc/posix-functions/isprint_l.texi: Renamed from
4502         doc/glibc-functions/isprint_l.texi.
4503         * doc/posix-functions/ispunct_l.texi: Renamed from
4504         doc/glibc-functions/ispunct_l.texi.
4505         * doc/posix-functions/isspace_l.texi: Renamed from
4506         doc/glibc-functions/isspace_l.texi.
4507         * doc/posix-functions/isupper_l.texi: Renamed from
4508         doc/glibc-functions/isupper_l.texi.
4509         * doc/posix-functions/iswalnum_l.texi: Renamed from
4510         doc/glibc-functions/iswalnum_l.texi.
4511         * doc/posix-functions/iswalpha_l.texi: Renamed from
4512         doc/glibc-functions/iswalpha_l.texi.
4513         * doc/posix-functions/iswblank_l.texi: Renamed from
4514         doc/glibc-functions/iswblank_l.texi.
4515         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4516         doc/glibc-functions/iswcntrl_l.texi.
4517         * doc/posix-functions/iswctype_l.texi: Renamed from
4518         doc/glibc-functions/iswctype_l.texi.
4519         * doc/posix-functions/iswdigit_l.texi: Renamed from
4520         doc/glibc-functions/iswdigit_l.texi.
4521         * doc/posix-functions/iswgraph_l.texi: Renamed from
4522         doc/glibc-functions/iswgraph_l.texi.
4523         * doc/posix-functions/iswlower_l.texi: Renamed from
4524         doc/glibc-functions/iswlower_l.texi.
4525         * doc/posix-functions/iswprint_l.texi: Renamed from
4526         doc/glibc-functions/iswprint_l.texi.
4527         * doc/posix-functions/iswpunct_l.texi: Renamed from
4528         doc/glibc-functions/iswpunct_l.texi.
4529         * doc/posix-functions/iswspace_l.texi: Renamed from
4530         doc/glibc-functions/iswspace_l.texi.
4531         * doc/posix-functions/iswupper_l.texi: Renamed from
4532         doc/glibc-functions/iswupper_l.texi.
4533         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4534         doc/glibc-functions/iswxdigit_l.texi.
4535         * doc/posix-functions/isxdigit_l.texi: Renamed from
4536         doc/glibc-functions/isxdigit_l.texi.
4537         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4538         doc/glibc-functions/mbsnrtowcs.texi.
4539         * doc/posix-functions/mkdtemp.texi: Renamed from
4540         doc/glibc-functions/mkdtemp.texi.
4541         * doc/posix-functions/newlocale.texi: Renamed from
4542         doc/glibc-functions/newlocale.texi.
4543         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4544         doc/glibc-functions/nl_langinfo_l.texi.
4545         * doc/posix-functions/open_memstream.texi: Renamed from
4546         doc/glibc-functions/open_memstream.texi.
4547         * doc/posix-functions/opterr.texi: Renamed from
4548         doc/glibc-functions/opterr.texi.
4549         * doc/posix-functions/optind.texi: Renamed from
4550         doc/glibc-functions/optind.texi.
4551         * doc/posix-functions/optopt.texi: Renamed from
4552         doc/glibc-functions/optopt.texi.
4553         * doc/posix-functions/psignal.texi: Renamed from
4554         doc/glibc-functions/psignal.texi.
4555         * doc/posix-functions/scandir.texi: Renamed from
4556         doc/glibc-functions/scandir.texi.
4557         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4558         doc/glibc-functions/sched_get_priority_min.texi.
4559         * doc/posix-functions/signgam.texi: Renamed from
4560         doc/glibc-functions/signgam.texi.
4561         * doc/posix-functions/stpcpy.texi: Renamed from
4562         doc/glibc-functions/stpcpy.texi.
4563         * doc/posix-functions/stpncpy.texi: Renamed from
4564         doc/glibc-functions/stpncpy.texi.
4565         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4566         doc/glibc-functions/strcasecmp_l.texi.
4567         * doc/posix-functions/strcoll_l.texi: Renamed from
4568         doc/glibc-functions/strcoll_l.texi.
4569         * doc/posix-functions/strfmon_l.texi: Renamed from
4570         doc/glibc-functions/strfmon_l.texi.
4571         * doc/posix-functions/strftime_l.texi: Renamed from
4572         doc/glibc-functions/strftime_l.texi.
4573         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4574         doc/glibc-functions/strncasecmp_l.texi.
4575         * doc/posix-functions/strndup.texi: Renamed from
4576         doc/glibc-functions/strndup.texi.
4577         * doc/posix-functions/strnlen.texi: Renamed from
4578         doc/glibc-functions/strnlen.texi.
4579         * doc/posix-functions/strsignal.texi: Renamed from
4580         doc/glibc-functions/strsignal.texi.
4581         * doc/posix-functions/strxfrm_l.texi: Renamed from
4582         doc/glibc-functions/strxfrm_l.texi.
4583         * doc/posix-functions/timer_gettime.texi: Renamed from
4584         doc/glibc-functions/timer_gettime.texi.
4585         * doc/posix-functions/tolower_l.texi: Renamed from
4586         doc/glibc-functions/tolower_l.texi.
4587         * doc/posix-functions/toupper_l.texi: Renamed from
4588         doc/glibc-functions/toupper_l.texi.
4589         * doc/posix-functions/towctrans_l.texi: Renamed from
4590         doc/glibc-functions/towctrans_l.texi.
4591         * doc/posix-functions/towlower_l.texi: Renamed from
4592         doc/glibc-functions/towlower_l.texi.
4593         * doc/posix-functions/towupper_l.texi: Renamed from
4594         doc/glibc-functions/towupper_l.texi.
4595         * doc/posix-functions/uselocale.texi: Renamed from
4596         doc/glibc-functions/uselocale.texi.
4597         * doc/posix-functions/vdprintf.texi: Renamed from
4598         doc/glibc-functions/vdprintf.texi.
4599         * doc/posix-functions/wcpcpy.texi:
4600         Renamed from doc/glibc-functions/wcpcpy.texi.
4601         * doc/posix-functions/wcpncpy.texi: Renamed from
4602         doc/glibc-functions/wcpncpy.texi.
4603         * doc/posix-functions/wcscasecmp.texi: Renamed from
4604         doc/glibc-functions/wcscasecmp.texi.
4605         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4606         doc/glibc-functions/wcscasecmp_l.texi.
4607         * doc/posix-functions/wcscoll_l.texi: Renamed from
4608         doc/glibc-functions/wcscoll_l.texi.
4609         * doc/posix-functions/wcsdup.texi: Renamed from
4610         doc/glibc-functions/wcsdup.texi.
4611         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4612         doc/glibc-functions/wcsncasecmp.texi.
4613         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4614         doc/glibc-functions/wcsncasecmp_l.texi.
4615         * doc/posix-functions/wcsnlen.texi: Renamed from
4616         doc/glibc-functions/wcsnlen.texi.
4617         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4618         doc/glibc-functions/wcsnrtombs.texi.
4619         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4620         doc/glibc-functions/wcsxfrm_l.texi.
4621         * doc/posix-functions/wctrans_l.texi: Renamed from
4622         doc/glibc-functions/wctrans_l.texi.
4623         * doc/posix-functions/wctype_l.texi: Renamed from
4624         doc/glibc-functions/wctype_l.texi.
4625         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4626         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4627         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4628         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4629         these subsections.
4630         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4631         Remove sections.
4632
4633 2008-12-14  Bruno Haible  <bruno@clisp.org>
4634
4635         Update doc for POSIX:2008.
4636         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4637
4638 2008-12-14  Bruno Haible  <bruno@clisp.org>
4639
4640         Update doc for POSIX:2008.
4641         * doc/pastposix-functions/bcmp.texi: Renamed from
4642         doc/posix-functions/bcmp.texi.
4643         * doc/pastposix-functions/bcopy.texi: Renamed from
4644         doc/posix-functions/bcopy.texi.
4645         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4646         doc/posix-functions/bsd_signal.texi.
4647         * doc/pastposix-functions/bzero.texi: Renamed from
4648         doc/posix-functions/bzero.texi.
4649         * doc/pastposix-functions/ecvt.texi: Renamed from
4650         doc/posix-functions/ecvt.texi.
4651         * doc/pastposix-functions/fcvt.texi: Renamed from
4652         doc/posix-functions/fcvt.texi.
4653         * doc/pastposix-functions/ftime.texi: Renamed from
4654         doc/posix-functions/ftime.texi.
4655         * doc/pastposix-functions/gcvt.texi: Renamed from
4656         doc/posix-functions/gcvt.texi.
4657         * doc/pastposix-functions/getcontext.texi: Renamed from
4658         doc/posix-functions/getcontext.texi.
4659         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4660         doc/posix-functions/gethostbyaddr.texi.
4661         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4662         doc/posix-functions/gethostbyname.texi.
4663         * doc/pastposix-functions/getwd.texi: Renamed from
4664         doc/posix-functions/getwd.texi.
4665         * doc/pastposix-functions/h_errno.texi: Renamed from
4666         doc/posix-functions/h_errno.texi.
4667         * doc/pastposix-functions/index.texi: Renamed from
4668         doc/posix-functions/index.texi.
4669         * doc/pastposix-functions/makecontext.texi: Renamed from
4670         doc/posix-functions/makecontext.texi.
4671         * doc/pastposix-functions/mktemp.texi: Renamed from
4672         doc/posix-functions/mktemp.texi.
4673         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4674         doc/posix-functions/pthread_attr_getstackaddr.texi.
4675         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4676         doc/posix-functions/pthread_attr_setstackaddr.texi.
4677         * doc/pastposix-functions/rindex.texi: Renamed from
4678         doc/posix-functions/rindex.texi.
4679         * doc/pastposix-functions/scalb.texi: Renamed from
4680         doc/posix-functions/scalb.texi.
4681         * doc/pastposix-functions/setcontext.texi: Renamed from
4682         doc/posix-functions/setcontext.texi.
4683         * doc/pastposix-functions/swapcontext.texi: Renamed from
4684         doc/posix-functions/swapcontext.texi.
4685         * doc/pastposix-functions/ualarm.texi: Renamed from
4686         doc/posix-functions/ualarm.texi.
4687         * doc/pastposix-functions/usleep.texi: Renamed from
4688         doc/posix-functions/usleep.texi.
4689         * doc/pastposix-functions/vfork.texi: Renamed from
4690         doc/posix-functions/vfork.texi.
4691         * doc/pastposix-functions/wcswcs.texi: Renamed from
4692         doc/posix-functions/wcswcs.texi.
4693         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4694         (Function Substitutes): Update.
4695
4696 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4697
4698         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4699         m4/strerror.m4.
4700
4701 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4702             Bruno Haible  <bruno@clisp.org>
4703
4704         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4705
4706 2008-12-13  Bruno Haible  <bruno@clisp.org>
4707
4708         * modules/strtoull (Depends-on): Remove unistd.
4709
4710 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4711
4712         * modules/strtoull (Depends-on): Add stdlib.
4713
4714 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4715
4716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4717
4718 2008-12-10  Jim Meyering  <meyering@redhat.com>
4719
4720         gl_ASSERT: don't say assertions are disabled when they're not
4721         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4722         "checking whether to enable assertions... no", when they are in
4723         fact enabled.  This is solely a bug in the output of configure.
4724         In spite of saying "no", NDEBUG was not defined in that case.
4725         Also, as noted by Eric Blake, leave assertions enabled upon
4726         --enable-assert=INVALID.
4727
4728 2008-12-10  Bruno Haible  <bruno@clisp.org>
4729
4730         Change MODULES.html to refer to POSIX:2008 where possible.
4731         * MODULES.html.sh (POSIX2008_URL): New variable.
4732         (posix_headers): Remove sys/timeb, ucontext.
4733         (posix2001_headers): New variable.
4734         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4735         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4736         index, makecontext, mktemp, pthread_attr_getstackaddr,
4737         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4738         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4739         (posix2001_functions): New variable.
4740         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4741         otherwise.
4742
4743 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4744
4745         add missing include to parse-duration.c
4746         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4747         * modules/parse-duration (Depends-on): Add xalloc.
4748
4749         fix sed script reading maint.mk
4750         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4751         (syntax-check-rules): Use it.
4752
4753 2008-12-09  Bruno Haible  <bruno@clisp.org>
4754
4755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4756         MacOS X 10.4/PowerPC.
4757         Reported by Simon Josefsson.
4758
4759 2008-12-08  Jim Meyering  <meyering@redhat.com>
4760
4761         work around mingw's lack of some S_IF definitions
4762         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4763         Reported by Simon Josefsson.
4764
4765 2008-12-08  Bruno Haible  <bruno@clisp.org>
4766
4767         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4768         applied to variables. Needed on MacOS X 10.4/PowerPC.
4769         Reported by Simon Josefsson.
4770
4771 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4772         and Eric Blake  <ebb9@byu.net>
4773
4774         assert: honor --enable-assert
4775         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4776         order to honor --enable-assert, rather than treating it as a
4777         synonym for --disable-assert.
4778
4779 2008-12-08  Jim Meyering  <meyering@redhat.com>
4780
4781         * lib/posixtm.c: Remove now-useless declaration of mktime.
4782
4783         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4784
4785 2008-12-07  Bruno Haible  <bruno@clisp.org>
4786
4787         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4788         test_once): Mark functions as static.
4789         * tests/test-tls.c (test_tls): Likewise.
4790
4791 2008-12-07  Bruno Haible  <bruno@clisp.org>
4792
4793         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4794         iconv_register_autodetect.
4795
4796 2008-12-07  Jim Meyering  <meyering@redhat.com>
4797
4798         posixtm.c: avoid a warning
4799         * lib/posixtm.c (posixtime): Don't initialize tm0.
4800         It's no longer needed to placate gcc4's -Wuninitialized,
4801         and the attempt to placate would elicit a new warning.
4802
4803         unicodeio.c: mark unused parameters
4804         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4805         (fallback_failure_callback): Likewise.
4806
4807 2008-12-07  Bruno Haible  <bruno@clisp.org>
4808
4809         * gnulib-tool (func_create_testdir): When building the tests
4810         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4811         Reported by Simon Josefsson.
4812
4813 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4814
4815         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4816
4817 2008-12-06  Bruno Haible  <bruno@clisp.org>
4818
4819         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4820         Suggested by Eric Blake.
4821
4822 2008-12-06  Bruno Haible  <bruno@clisp.org>
4823
4824         Fix a c-stack test failure on MacOS X.
4825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4826         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4827         handler for SIGBUS as well.
4828         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4829         install a signal handler for SIGBUS as well.
4830         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4831
4832 2008-12-06  Bruno Haible  <bruno@clisp.org>
4833
4834         Advocacy documentation.
4835         * doc/gnulib-intro.texi (Benefits): New section.
4836         * doc/gnulib.texi: Update.
4837
4838 2008-12-06  Bruno Haible  <bruno@clisp.org>
4839
4840         Document the 'manywarnings' module.
4841         * doc/manywarnings.texi: New file.
4842         * doc/gnulib.texi: Include it.
4843
4844 2008-12-05  Eric Blake  <ebb9@byu.net>
4845
4846         tests: silence some gcc warnings
4847         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4848         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4849         type mismatches.
4850
4851 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4852             Bruno Haible  <bruno@clisp.org>
4853
4854         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4855
4856 2008-11-29  Jim Meyering  <meyering@redhat.com>
4857
4858         unicodeio.c: mark unused parameters
4859         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4860         (fallback_failure_callback): Likewise.
4861
4862         fts: fix a thinko
4863         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
4864         (set_stat_type): Return S_IF*-valued "type" directly.
4865         Prompted by James Youngman's spotting a related bug.
4866         Confirmed by further testing through find.
4867
4868         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4869         * lib/fts.c (D_TYPE): Define.
4870         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4871         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4872         (s_ifmt_shift_bits): New function.
4873         (set_stat_type): New function.
4874         (fts_build): When not calling fts_stat, call set_stat_type
4875         to propagate dirent.d_type info to fts_read caller.
4876         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4877         fts_statp->st_mode type information may be valid.
4878
4879 2008-11-28  Simon Josefsson  <simon@josefsson.org>
4880
4881         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
4882         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
4883         <sds@gnu.org>.
4884
4885 2008-11-20  Bruno Haible  <bruno@clisp.org>
4886
4887         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4888         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4889         INCLUDE_NEXT.
4890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4891         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4892         * modules/math (Makefile.am): Substitute
4893         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4895
4896 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
4897             Bruno Haible  <bruno@clisp.org>
4898
4899         * lib/stdint.in.h: Define all type macros so that their expansion is
4900         a single typedef'ed token. Fixes a compilation failure in Boost which
4901         does "using ::int8_t;".
4902
4903 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4904
4905         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4906         gl_MANYWARN_ALL_GCC.
4907         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4908         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
4909         * modules/manywarnings: New file.
4910         * MODULES.html.sh: Mention manywarnings module.
4911
4912 2008-11-18  Bruno Haible  <bruno@clisp.org>
4913
4914         * doc/gnulib-tool.texi (Unit tests): New section.
4915
4916 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4917
4918         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4919         paths like 'lib/po/foo.po'.
4920
4921 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4922
4923         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
4924         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4925
4926 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4927
4928         * m4/warnings.m4: Use CPPFLAGS to really check whether the
4929         parameter works.
4930
4931 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4932
4933         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4934
4935 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4936
4937         * modules/parse-duration-tests: New file.
4938         * tests/test-parse-duration.sh: New file.
4939         * tests/test-parse-duration.c: New file.
4940
4941         New module 'parse-duration'.
4942         * lib/parse-duration.h: New file.
4943         * lib/parse-duration.c: New file.
4944         * modules/parse-duration: New file.
4945
4946 2008-11-17  Bruno Haible  <bruno@clisp.org>
4947
4948         * tests/test-select-out.sh: Comment out the first pipe test.
4949         Reported by Simon Josefsson.
4950
4951 2008-11-17  Bruno Haible  <bruno@clisp.org>
4952
4953         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4955         gl_HOSTENT.
4956
4957 2008-11-17  Bruno Haible  <bruno@clisp.org>
4958
4959         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4960         -lnetwork and -lnet. Needed for Haiku and BeOS.
4961
4962 2008-11-16  Bruno Haible  <bruno@clisp.org>
4963
4964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4965
4966 2008-11-16  Bruno Haible  <bruno@clisp.org>
4967
4968         Avoid test failure on Haiku.
4969         * tests/test-fsync.c: Include <errno.h>.
4970         (main): Don't require that fsync (0) fails.
4971
4972 2008-11-15  Bruno Haible  <bruno@clisp.org>
4973
4974         New module 'hostent'.
4975         * modules/hostent: New file.
4976         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4977
4978 2008-11-15  Bruno Haible  <bruno@clisp.org>
4979
4980         New module 'servent'.
4981         * modules/servent: New file.
4982         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4983
4984 2008-11-15  Bruno Haible  <bruno@clisp.org>
4985
4986         Avoid generating same test program with two different rules.
4987         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4988         test-frexp to test-frexp-nolibm.
4989         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4990         test-frexpl to test-frexpl-nolibm.
4991
4992 2008-11-15  Bruno Haible  <bruno@clisp.org>
4993
4994         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4995         $(FREXPL_LIBM).
4996
4997 2008-11-15  Bruno Haible  <bruno@clisp.org>
4998
4999         * lib/netdb.in.h: Activate the definitions also when the system's
5000         <netdb.h> has 'struct addrinfo'.
5001         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
5002         EAI_OVERFLOW or AI_NUMERICSERV.
5003         * doc/posix-headers/netdb.texi: Document the problem.
5004
5005 2008-11-15  Bruno Haible  <bruno@clisp.org>
5006
5007         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
5008
5009         Make the 'sched' module work on platforms where <sched.h> exists but
5010         is incomplete (such as Haiku).
5011         * lib/sched.in.h; Include the system's <sched.h> if it exists.
5012         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
5013         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
5014         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
5015         HAVE_STRUCT_SCHED_PARAM.
5016         * modules/sched (Depends-on): Add include_next.
5017         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
5018         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
5019         * doc/posix-headers/sched.texi: Document the issue.
5020
5021 2008-11-13  Jim Meyering  <meyering@redhat.com>
5022
5023         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
5024         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
5025         test would fail due to the difference in the Report bugs to ...
5026         line.  The expected address is empty, "<>", while the actual
5027         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
5028
5029 2008-11-12  Bruno Haible  <bruno@clisp.org>
5030
5031         lstat: don't compile lstat.c on systems lacking lstat
5032         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
5033         which don't have lstat; this is handled by lib/sys_stat.in.h already.
5034         Reported by Daniel P. Berrange via Jim Meyering.
5035
5036 2008-11-12  Jim Meyering  <meyering@redhat.com>
5037
5038         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
5039
5040 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5041
5042         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
5043         instead.
5044
5045 2008-11-12  Bruno Haible  <bruno@clisp.org>
5046
5047         * lib/unicodeio.c: Include unistr.h.
5048         (utf8_wctomb): Remove function.
5049         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
5050
5051 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5052
5053         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
5054         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
5055         <bruno@clisp.org>.
5056         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
5057
5058 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5059
5060         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
5061         * doc/gnulib.texi: Add section for warnings.
5062
5063 2008-11-11  Bruno Haible  <bruno@clisp.org>
5064
5065         * lib/sockets.h: Add a comment.
5066
5067 2008-11-11  Karl Berry  <karl@gnu.org>
5068
5069         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
5070
5071 2008-11-11  Eric Blake  <ebb9@byu.net>
5072
5073         fdl.texi: avoid git symlinks
5074         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
5075
5076 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5077
5078         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
5079
5080 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5081
5082         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
5083         (gl_WARN_ADD): Substitute $2 if literal.
5084
5085 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5086
5087         * m4/warning.m4: Remove.
5088
5089 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5090
5091         * m4/warnings.m4: Almost complete rewrite. :-)
5092
5093 2008-11-10  Simon Josefsson  <simon@josefsson.org>
5094
5095         * modules/warnings: New module.
5096         * m4/warnings.m4: New file.
5097         * MODULES.html.sh: Mention warnings module.
5098         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
5099         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5100
5101 2008-11-10  Eric Blake  <ebb9@byu.net>
5102
5103         fdl.texi: make a symlink to the latest version
5104         * doc/standards.texi: Revert today's earlier change.
5105         * doc/fdl-1.2.texi: Rename from old fdl.texi...
5106         * doc/fdl.texi: ...and replace this with a symlink to the newer
5107         fdl-1.3.texi.
5108
5109 2008-11-10  Bruno Haible  <bruno@clisp.org>
5110
5111         * tests/test-select-fd.c (main): Accept the result file name as fourth
5112         argument.
5113         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
5114         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
5115
5116 2008-11-10  Bruno Haible  <bruno@clisp.org>
5117
5118         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
5119         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
5120         as autoconf-substituted macros.
5121         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
5122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
5123         gl_NETDB_H_DEFAULTS. Set these variables.
5124         * modules/netdb (Makefile.am): Substitute these variables.
5125
5126 2008-11-10  Eric Blake  <ebb9@byu.net>
5127
5128         standards.texi: include correct file for FDL 1.3
5129         * doc/standards.texi (GNU Free Documentation License): Change
5130         include file to pull in FDL 1.3, not 1.2.
5131
5132         fdl.texi: revert accidental change to license
5133         * doc/fdl.texi: This is FDL 1.2, not 1.3.
5134
5135 2008-11-10  Bruno Haible  <bruno@clisp.org>
5136
5137         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
5138         cross-compiling guesses also when the native compile gives no result.
5139
5140 2008-11-10  Bruno Haible  <bruno@clisp.org>
5141
5142         * lib/spawni.c (__spawni): Force variable into the stack.
5143
5144 2008-11-10  Bruno Haible  <bruno@clisp.org>
5145
5146         Add support for Haiku.
5147         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
5148         glibc and BeOS, but also on Haiku.
5149         * lib/fpurge.c (fpurge): Likewise.
5150         * lib/freadable.c (freadable): Likewise.
5151         * lib/freadahead.c (freadahead): Likewise.
5152         * lib/freading.c (freading): Likewise.
5153         * lib/freadptr.c (freadptr): Likewise.
5154         * lib/freadseek.c (freadptrinc): Likewise.
5155         * lib/fseeko.c (rpl_fseeko): Likewise.
5156         * lib/fseterr.c (fseterr): Likewise.
5157         * lib/fwritable.c (fwritable): Likewise.
5158         * lib/fwriting.c (fwriting): Likewise.
5159         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5160
5161 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5162
5163         * lib/config.charset: Treat Haiku like BeOS.
5164
5165 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5166
5167         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5168         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5169
5170 2008-11-08  Bruno Haible  <bruno@clisp.org>
5171
5172         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5173         AC_CACHE_CHECK.
5174
5175 2008-11-08  Bruno Haible  <bruno@clisp.org>
5176
5177         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5178
5179 2008-11-08  Bruno Haible  <bruno@clisp.org>
5180
5181         * tests/test-select-fd.c: New file.
5182         * tests/test-select-in.sh: New file.
5183         * tests/test-select-out.sh: New file.
5184         * tests/test-select-stdin.c: New file.
5185         * modules/select-tests (Files): Add the new files.
5186         (Depends-on): Add gettimeofday.
5187         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5188         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5189         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5190
5191 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
5192             Bruno Haible  <bruno@clisp.org>
5193
5194         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5195
5196 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
5197
5198         * build-aux/pmccabe2html: Added support for C++ source files.
5199
5200 2008-11-05  Ben Pfaff  <blp@gnu.org>
5201
5202         Fix lib/close.c build on Windows.
5203         * modules/close (Files): Add lib/w32sock.h.
5204
5205 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5206
5207         Accept Bison's NEWS format.
5208         * build-aux/announce-gen (print_news_deltas): Tweak
5209         $re_prefix.
5210
5211 2008-11-04  Bruno Haible  <bruno@clisp.org>
5212
5213         * modules/random_r (Maintainer): Add glibc.
5214
5215 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5216
5217         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5218         by karl@freefriends.org (Karl Berry).
5219         * doc/alloca.texi: Likewise.
5220         * doc/c-ctype.texi: Likewise.
5221         * doc/c-strcase.texi: Likewise.
5222         * doc/c-strcaseeq.texi: Likewise.
5223         * doc/c-strcasestr.texi: Likewise.
5224         * doc/c-strstr.texi: Likewise.
5225         * doc/c-strtod.texi: Likewise.
5226         * doc/c-strtold.texi: Likewise.
5227         * doc/ctime.texi: Likewise.
5228         * doc/error.texi: Likewise.
5229         * doc/fdl.texi: Likewise.
5230         * doc/gcd.texi: Likewise.
5231         * doc/getdate.texi: Likewise.
5232         * doc/gnulib-intro.texi: Likewise.
5233         * doc/gnulib-tool.texi: Likewise.
5234         * doc/gnulib.texi: Likewise.
5235         * doc/inet_ntoa.texi: Likewise.
5236         * doc/maintain.texi: Likewise.
5237         * doc/make-stds.texi: Likewise.
5238         * doc/quote.texi: Likewise.
5239         * doc/regexprops-generic.texi: Likewise.
5240         * doc/standards.texi: Likewise.
5241         * doc/verify.texi: Likewise.
5242         * doc/visibility.texi: Likewise.
5243         * doc/gnulib.texi (GNU Free Documentation License): Include
5244         fdl-1.3.texi instead of fdl.texi.
5245
5246 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5247
5248         * doc/fdl-1.3.texi: New file, from
5249         <http://www.gnu.org/licenses/fdl-1.3.texi>.
5250         * modules/fdl-1.3: Add.
5251         * MODULES.html.sh: Add fdl-1.3.
5252
5253 2008-11-03  Bruno Haible  <bruno@clisp.org>
5254
5255         Make determination of absolute name of header file work with AIX xlc.
5256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5257         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5258         preprocessing.
5259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5260         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5261
5262 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5263
5264         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5265         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5266         <ludo@gnu.org>.
5267
5268 2008-11-02  Bruno Haible  <bruno@clisp.org>
5269
5270         Mark 'strpbrk' obsolete.
5271         * modules/strpbrk (Status, Notice): New sections.
5272         * modules/strtok_r (Depends-on): Add strpbrk.
5273
5274 2008-11-02  Bruno Haible  <bruno@clisp.org>
5275
5276         Mark 'strdup' obsolete.
5277         * modules/strdup (Status, Notice): New sections.
5278         * modules/findprog (Depends-on): Add strdup.
5279         * modules/getaddrinfo (Depends-on): Likewise.
5280         * modules/localename (Depends-on): Likewise.
5281         * modules/relocatable-lib (Depends-on): Likewise.
5282         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5283         * modules/relocatable-prog (Depends-on): Likewise.
5284         * modules/trim (Depends-on): Likewise.
5285         * modules/unictype/gen-ctype (Depends-on): Likewise.
5286         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5287
5288 2008-11-02  Bruno Haible  <bruno@clisp.org>
5289
5290         Mark 'strcspn' obsolete.
5291         * modules/strcspn (Status, Notice): New sections.
5292
5293 2008-11-02  Bruno Haible  <bruno@clisp.org>
5294
5295         Mark 'rmdir' obsolete.
5296         * modules/rmdir (Status, Notice): New sections.
5297         * modules/clean-temp (Depends-on): Add rmdir.
5298         * modules/openat (Depends-on): Likewise.
5299
5300 2008-11-02  Bruno Haible  <bruno@clisp.org>
5301
5302         Mark 'raise' obsolete.
5303         * modules/raise (Status, Notice): New sections.
5304         (Include): Specify <signal.h>.
5305         * modules/stdio (Depends-on): Add raise.
5306         * modules/write (Depends-on): Likewise.
5307
5308 2008-11-02  Bruno Haible  <bruno@clisp.org>
5309
5310         Mark 'memset' obsolete.
5311         * modules/memset (Status, Notice): New sections.
5312
5313 2008-11-02  Bruno Haible  <bruno@clisp.org>
5314
5315         Mark 'memmove' obsolete.
5316         * modules/memmove (Status, Notice): New sections.
5317         * modules/argp (Depends-on): Add memmove.
5318         * modules/argz (Depends-on): Likewise.
5319         * modules/canonicalize (Depends-on): Likewise.
5320         * modules/canonicalize-lgpl (Depends-on): Likewise.
5321         * modules/fts (Depends-on): Likewise.
5322         * modules/getcwd (Depends-on): Likewise.
5323         * modules/human (Depends-on): Likewise.
5324         * modules/regex (Depends-on): Likewise.
5325         * modules/striconveh (Depends-on): Likewise.
5326         * modules/trim (Depends-on): Likewise.
5327         * modules/unistr/u8-move (Depends-on): Likewise.
5328         * modules/unistr/u16-move (Depends-on): Likewise.
5329         * modules/unistr/u32-move (Depends-on): Likewise.
5330
5331 2008-11-02  Bruno Haible  <bruno@clisp.org>
5332
5333         Mark 'memcpy' obsolete.
5334         * modules/memcpy (Status, Notice): New sections.
5335
5336 2008-11-02  Bruno Haible  <bruno@clisp.org>
5337
5338         Mark 'memcmp' obsolete.
5339         * modules/memcmp (Status, Notice): New sections.
5340         * modules/argmatch (Depends-on): Add memchr.
5341         * modules/backupfile (Depends-on): Likewise.
5342         * modules/c-strcasestr (Depends-on): Likewise.
5343         * modules/crypto/des (Depends-on): Likewise.
5344         * modules/csharpcomp (Depends-on): Likewise.
5345         * modules/fnmatch (Depends-on): Likewise.
5346         * modules/git-merge-changelog (Depends-on): Likewise.
5347         * modules/isnand (Depends-on): Likewise.
5348         * modules/isnand-nolibm (Depends-on): Likewise.
5349         * modules/isnanf (Depends-on): Likewise.
5350         * modules/isnanf-nolibm (Depends-on): Likewise.
5351         * modules/isnanl (Depends-on): Likewise.
5352         * modules/isnanl-nolibm (Depends-on): Likewise.
5353         * modules/mbchar (Depends-on): Likewise.
5354         * modules/memcoll (Depends-on): Likewise.
5355         * modules/quotearg (Depends-on): Likewise.
5356         * modules/regex (Depends-on): Likewise.
5357         * modules/relocatable-prog (Depends-on): Likewise.
5358         * modules/same (Depends-on): Likewise.
5359         * modules/signbit (Depends-on): Likewise.
5360         * modules/strcasestr-simple (Depends-on): Likewise.
5361         * modules/unictype/gen-ctype (Depends-on): Likewise.
5362         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5363         * modules/uniname/uniname (Depends-on): Likewise.
5364         * modules/unistr/u8-cmp (Depends-on): Likewise.
5365
5366 2008-11-02  Bruno Haible  <bruno@clisp.org>
5367
5368         Mark 'memchr' obsolete.
5369         * modules/memchr (Status, Notice): New sections.
5370         * modules/argp (Depends-on): Add memchr.
5371         * modules/base64 (Depends-on): Likewise.
5372         * modules/c-strcasestr (Depends-on): Likewise.
5373         * modules/chdir-long (Depends-on): Likewise.
5374         * modules/fnmatch (Depends-on): Likewise.
5375         * modules/getsubopt (Depends-on): Likewise.
5376         * modules/git-merge-changelog (Depends-on): Likewise.
5377         * modules/glob (Depends-on): Likewise.
5378         * modules/strcasestr-simple (Depends-on): Likewise.
5379         * modules/strnlen (Depends-on): Likewise.
5380
5381 2008-11-02  Bruno Haible  <bruno@clisp.org>
5382
5383         Mark 'atexit' obsolete.
5384         * modules/atexit (Status, Notice): New sections.
5385         * modules/chdir-long (Depends-on): Add atexit.
5386         * modules/wait-process (Depends-on): Likewise.
5387
5388 2008-11-02  Bruno Haible  <bruno@clisp.org>
5389
5390         * gnulib-tool: New option --with-obsolete.
5391         (func_usage): Document it.
5392         (func_modules_transitive_closure): Drop obsolete dependencies if
5393         incobsolete is not true.
5394         (func_import): Read and save the incobsolete variable to the cache.
5395
5396 2008-11-02  Bruno Haible  <bruno@clisp.org>
5397
5398         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5399         * gnulib-tool: New option --extract-status.
5400         (func_usage): Document it.
5401         (sed_extract_prog): Recognize it.
5402         (func_get_status): New function.
5403
5404 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5405
5406         * modules/sockets (License): Change from LGPL to LGPLv2+.
5407
5408 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5409
5410         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5411
5412 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5413
5414         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5415         Mention times and sys_times.
5416         * modules/sys_times, modules/sys_times-tests: New modules.
5417         * modules/times, modules/times-tests: Likewise
5418         * m4/sys_times_h.m4: New file.
5419         * lib/sys_times.in.h: Likewise
5420         * lib/times.c: Likewise.
5421         * tests/test-sys_times.c: Likewise.
5422         * tests/test-times.c: Likewise.
5423         * doc/posix-headers/sys_times.texi: Update.
5424         * doc/posix-functions/times.texi: Update.
5425
5426 2008-10-28  Jim Meyering  <meyering@redhat.com>
5427
5428         * modules/tempname (Depends-on): Add lstat.
5429
5430         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5431
5432 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5433
5434         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5435         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5436         using idiom used elsewhere in gnulib.
5437
5438 2008-10-27  Jim Meyering  <meyering@redhat.com>
5439
5440         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5441
5442 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5443
5444         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5445         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5446         programs.
5447         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5448
5449 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5450
5451         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5452
5453 2008-10-27  Bruno Haible  <bruno@clisp.org>
5454
5455         * tests/test-lstat.c: Include <stdio.h>.
5456
5457 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5458
5459         * modules/lstat-tests: New module.
5460         * tests/test-lstat.c: New file.
5461
5462 2008-10-26  Jim Meyering  <meyering@redhat.com>
5463
5464         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5465
5466 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5467             Bruno Haible  <bruno@clisp.org>
5468
5469         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5470         * modules/configmake (Include): Add a note that the include must come
5471         after all system headers.
5472         * lib/javaversion.c: Include configmake.h after all other includes.
5473
5474 2008-10-26  Bruno Haible  <bruno@clisp.org>
5475
5476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5477         HAVE_STRUCT_RANDOM_DATA to 1.
5478         (gl_STDLIB_H): Simplify.
5479
5480 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5481
5482         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5483         substitute HAVE_STRUCT_RANDOM_DATA.
5484         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5485         random_data.
5486         * modules/stdlib (Makefile.am): Substitute
5487         HAVE_STRUCT_RANDOM_DATA.
5488
5489 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5490
5491         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5492         * doc/gnulib-intro.texi (Copyright): Likewise.
5493
5494 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5495
5496         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5497         findings.
5498
5499 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5500             Bruno Haible  <bruno@clisp.org>
5501
5502         * lib/unistd.in.h: Include <winsock2.h>.
5503         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5504         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5505         Provide dummy declarations.
5506         (gethostname): Override.
5507         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5508         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5509         gl_PREREQ_SYS_H_WINSOCK2.
5510         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5511         * doc/posix-functions/gethostname.texi: More details.
5512
5513 2008-10-25  Bruno Haible  <bruno@clisp.org>
5514
5515         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5516         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5517         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5518
5519         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5520         here ...
5521         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5523         gl_UNISTD_H_DEFAULTS.
5524
5525 2008-10-25  Eric Blake  <ebb9@byu.net>
5526
5527         signbit: avoid spurious compiler failure
5528         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5529         declarations inside function.
5530
5531 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5532             Bruno Haible  <bruno@clisp.org>
5533
5534         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5535         * modules/random_r (Depends-on): Add stdint.
5536
5537 2008-10-24  Bruno Haible  <bruno@clisp.org>
5538
5539         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5540         Eggert.
5541         * modules/strerror (License): Likewise.
5542
5543 2008-10-24  Jim Meyering  <meyering@redhat.com>
5544
5545         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5546         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5547
5548 2008-10-24  Eric Blake  <ebb9@byu.net>
5549
5550         getgroups: fix compilation when getgroups is available
5551         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5552         but with <config.h> override of getgroups disabled.
5553
5554 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5555
5556         * doc/gnulib.texi (Header files): Add note about C++ problems.
5557         Explained by Bruno Haible <bruno@clisp.org>.
5558
5559 2008-10-23  Bruno Haible  <bruno@clisp.org>
5560
5561         Define a dummy SA_NODEFER macro on Interix.
5562         * lib/signal.in.h (SA_NODEFER): Define fallback.
5563         Reported by Aleksey Cheusov <cheusov@tut.by> via
5564         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5565
5566 2008-10-23  Bruno Haible  <bruno@clisp.org>
5567
5568         * modules/freadahead (License): Change to LGPLv2+.
5569         Suggested by Simon Josefsson.
5570
5571 2008-10-23  Jim Meyering  <meyering@redhat.com>
5572
5573         random_r: new module
5574         * modules/random_r: New file.
5575         * m4/random_r.m4: New file.
5576         * lib/random_r.c: New file, from glibc.
5577         * modules/random_r-tests: New file.
5578         * tests/test-random_r.c: New file.
5579         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5580          Declare.
5581         (RAND_MAX): Define.
5582         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5583         * modules/stdlib: Substitute them, too.
5584         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5585         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5586         * doc/glibc-functions/random_r.texi: Likewise.
5587         * doc/glibc-functions/setstate_r.texi: Likewise.
5588         * doc/glibc-functions/srandom_r.texi: Likewise.
5589         * config/srclist.txt: Mention it.
5590
5591 2008-10-23  David Lutterkort  <lutter@redhat.com>
5592
5593         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5594         link requirement
5595
5596 2008-10-23  Jim Meyering  <meyering@redhat.com>
5597
5598         selinux-h: mark parameters of stub functions as intentionally unused
5599         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5600         * lib/se-context.in.h: Likewise.
5601
5602 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5603
5604         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5605
5606 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5607
5608         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5609
5610 2008-10-22  Eric Blake  <ebb9@byu.net>
5611
5612         glthread/thread: avoid compiler warning
5613         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5614         Add unreachable abort to silence compiler.
5615
5616 2008-10-22  Eric Blake  <ebb9@byu.net>
5617
5618         netdb: also supply struct addrinfo for cygwin 1.5.x
5619         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5620         older cygwin.
5621         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5622         cygwin.
5623         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5624
5625 2008-10-22  Bruno Haible  <bruno@clisp.org>
5626
5627         * users.txt: Update entry about pspp.
5628
5629 2008-10-21  Bruno Haible  <bruno@clisp.org>
5630
5631         Simplification.
5632         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5633         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5634
5635         Simplification.
5636         * lib/ioctl.c (ioctl): Don't undefine.
5637         * lib/socket.c (socket): Don't undefine.
5638
5639         Remove unused module indicator macros.
5640         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5641         GNULIB_$1 as a C macro.
5642
5643         * doc/posix-functions/close.texi: Undo last change.
5644         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5645         Windows platforms.
5646
5647 2008-10-21  Bruno Haible  <bruno@clisp.org>
5648
5649         Add gethostname() declaration to <unistd.h>.
5650         * lib/unistd.in.h (gethostname): New declaration.
5651         * lib/gethostname.c: Include <unistd.h>.
5652         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5653         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5655         and HAVE_GETHOSTNAME.
5656         * modules/gethostname (Depends-on): Add unistd.
5657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5658         (Include): Specify <unistd.h>.
5659         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5660         HAVE_GETHOSTNAME.
5661         * tests/test-gethostname.c: Include <unistd.h> first.
5662
5663 2008-10-21  Bruno Haible  <bruno@clisp.org>
5664
5665         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5666         * modules/select-tests (Depends-on): Likewise.
5667         Reported by Simon Josefsson.
5668
5669 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5670
5671         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5672         * lib/accept.c: New file, based on winsock.c.
5673         * lib/bind.c: New file, based on winsock.c.
5674         * lib/connect.c: New file, based on winsock.c.
5675         * lib/getpeername.c: New file, based on winsock.c.
5676         * lib/getsockname.c: New file, based on winsock.c.
5677         * lib/getsockopt.c: New file, based on winsock.c.
5678         * lib/ioctl.c: New file, based on winsock.c.
5679         * lib/listen.c: New file, based on winsock.c.
5680         * lib/recv.c: New file, based on winsock.c.
5681         * lib/recvfrom.c: New file, based on winsock.c.
5682         * lib/send.c: New file, based on winsock.c.
5683         * lib/sendto.c: New file, based on winsock.c.
5684         * lib/setsockopt.c: New file, based on winsock.c.
5685         * lib/shutdown.c: New file, based on winsock.c.
5686         * lib/socket.c: New file, based on winsock.c.
5687         * lib/w32sock.h: New file, based on winsock.c.
5688         * lib/winsock.c: Remove file.
5689         * modules/accept: Likewise.
5690         * modules/bind: Likewise.
5691         * modules/connect: Likewise.
5692         * modules/getpeername: Likewise.
5693         * modules/getsockname: Likewise.
5694         * modules/getsockopt: Likewise.
5695         * modules/ioctl: Likewise.
5696         * modules/listen: Likewise.
5697         * modules/recv: Likewise.
5698         * modules/recvfrom: Likewise.
5699         * modules/send: Likewise.
5700         * modules/sendto: Likewise.
5701         * modules/setsockopt: Likewise.
5702         * modules/shutdown: Likewise.
5703         * modules/socket: Use socket.c instead of winsock.c.
5704         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5705         * doc/posix-functions/accept.texi: Doc fix.
5706         * doc/posix-functions/bind.texi: Doc fix.
5707         * doc/posix-functions/close.texi: Doc fix.
5708         * doc/posix-functions/connect.texi: Doc fix.
5709         * doc/posix-functions/getpeername.texi: Doc fix.
5710         * doc/posix-functions/getsockname.texi: Doc fix.
5711         * doc/posix-functions/getsockopt.texi: Doc fix.
5712         * doc/posix-functions/ioctl.texi: Doc fix.
5713         * doc/posix-functions/listen.texi: Doc fix.
5714         * doc/posix-functions/recv.texi: Doc fix.
5715         * doc/posix-functions/recvfrom.texi: Doc fix.
5716         * doc/posix-functions/send.texi: Doc fix.
5717         * doc/posix-functions/sendto.texi: Doc fix.
5718         * doc/posix-functions/setsockopt.texi: Doc fix.
5719         * doc/posix-functions/shutdown.texi: Doc fix.
5720         * doc/posix-functions/socket.texi: Doc fix.
5721
5722 2008-10-20  Bruno Haible  <bruno@clisp.org>
5723
5724         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5725         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5726         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5727         as an alias for SIGABRT.
5728         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5729         (sigaction): Map it to SIGABRT.
5730         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5731
5732 2008-10-20  Bruno Haible  <bruno@clisp.org>
5733
5734         * lib/fts.c: Don't include lstat.h.
5735         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5736
5737         Move the lstat() declaration to <sys/stat.h>.
5738         * lib/lstat.h: Remove file.
5739         * lib/sys_stat.in.h: Add special invocation convention.
5740         (lstat): New declaration.
5741         * lib/lstat.c (orig_lstat): New function.
5742         (rpl_lstat): Use orig_lstat instead of lstat.
5743         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5744         AC_C_INLINE. Set REPLACE_LSTAT.
5745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5746         and REPLACE_LSTAT.
5747         * modules/lstat (Files): Remove lib/lstat.h.
5748         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5749         (Include): Specify <sys/stat.h> instead of lstat.h.
5750         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5751         REPLACE_LSTAT.
5752         * NEWS: Mention the change.
5753
5754 2008-10-20  Bruno Haible  <bruno@clisp.org>
5755
5756         * modules/posix_spawn-tests: New file.
5757         * tests/test-posix_spawn3.c: New file.
5758
5759 2008-10-20  Bruno Haible  <bruno@clisp.org>
5760
5761         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5762         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5763         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5764         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5765         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5766
5767 2008-10-20  Bruno Haible  <bruno@clisp.org>
5768
5769         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5770         of posix_spawn on AIX 5.3.
5771
5772 2008-10-20  Bruno Haible  <bruno@clisp.org>
5773
5774         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5775
5776 2008-10-20  Bruno Haible  <bruno@clisp.org>
5777
5778         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5779         of AC_LANG_PROGRAM.
5780
5781 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5782
5783         * lib/netdb.in.h: Don't define GNU specific constants until they
5784         are supported or needed.  Reported by Bruno Haible
5785         <bruno@clisp.org>.
5786
5787 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5788
5789         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5790
5791 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5792
5793         * lib/getaddrinfo.h: Remove file.
5794         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5795         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5796         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5797         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5798         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5799         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5800         * tests/test-getaddrinfo.c: Likewise.
5801         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5802         * NEWS: Mention change.
5803
5804 2008-10-19  Bruno Haible  <bruno@clisp.org>
5805
5806         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5807
5808 2008-10-19  Bruno Haible  <bruno@clisp.org>
5809
5810         * lib/wait-process.c: Include simply <sys/wait.h>.
5811         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5812         WIFSTOPPED): Remove fallback definitions.
5813         * modules/wait-process (Depends-on): Add sys_wait.
5814
5815         New module 'sys_wait'.
5816         * modules/sys_wait: New file.
5817         * lib/sys_wait.in.h: New file, partially copied from
5818         lib/wait-process.c.
5819         * m4/sys_wait_h.m4: New file.
5820         * doc/posix-headers/sys_wait.texi: Mention the new module.
5821
5822 2008-10-19  Bruno Haible  <bruno@clisp.org>
5823
5824         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5825
5826 2008-10-19  Bruno Haible  <bruno@clisp.org>
5827
5828         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5829         * lib/wait-process.c (WAIT_T): Remove type.
5830         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5831         (wait_subprocess): Update.
5832
5833 2008-10-19  Bruno Haible  <bruno@clisp.org>
5834
5835         New module 'atoll'.
5836         * modules/atoll: New file.
5837         * lib/stdlib.in.h (atoll): New declaration.
5838         * lib/atoll.c: New file, from glibc with modifications.
5839         * m4/atoll.m4: New file.
5840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5841         HAVE_ATOLL.
5842         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5843         * doc/posix-functions/atoll.texi: Mention the new module.
5844
5845 2008-10-19  Bruno Haible  <bruno@clisp.org>
5846
5847         Add strtoull() declaration to <stdlib.h>.
5848         * lib/stdlib.in.h (strtoull): New declaration.
5849         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5850         Set HAVE_STRTOULL.
5851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5852         HAVE_STRTOULL.
5853         * modules/strtoull (Depends-on): Add stdlib.
5854         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5855         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5856         HAVE_STRTOULL.
5857
5858 2008-10-19  Bruno Haible  <bruno@clisp.org>
5859
5860         Add strtoll() declaration to <stdlib.h>.
5861         * lib/stdlib.in.h (strtoll): New declaration.
5862         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5863         Set HAVE_STRTOLL.
5864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5865         HAVE_STRTOLL.
5866         * modules/strtoll (Depends-on): Add stdlib.
5867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5868         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5869
5870 2008-10-19  Bruno Haible  <bruno@clisp.org>
5871
5872         * modules/bcopy (Depends-on): Add strings.
5873         (Include): Specify <strings.h>.
5874
5875 2008-10-19  Bruno Haible  <bruno@clisp.org>
5876
5877         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5878
5879 2008-10-19  Bruno Haible  <bruno@clisp.org>
5880
5881         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5882         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5883         mingw.
5884
5885 2008-10-19  Bruno Haible  <bruno@clisp.org>
5886
5887         * lib/atanl.c: Don't include isnanl.h.
5888         * lib/cosl.c: Likewise.
5889         * lib/ldexpl.c: Likewise.
5890         * lib/logl.c: Likewise.
5891         * lib/sinl.c: Likewise.
5892         * lib/sqrtl.c: Likewise.
5893         * lib/tanl.c: Likewise.
5894
5895         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5896         * lib/isnanf.h: Remove file.
5897         * lib/isnand.h: Remove file.
5898         * lib/isnanl.h: Remove file.
5899         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5900         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5901         macros.
5902         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5903         HAVE_ISNANF, don't define it as a C macro.
5904         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5905         HAVE_ISNAND, don't define it as a C macro.
5906         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5907         HAVE_ISNANL, don't define it as a C macro.
5908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5909         HAVE_ISNAN[FDL].
5910         * modules/isnanf (Files): Remove lib/isnanf.h.
5911         (Depends-on): Add math.
5912         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5913         (Include): Specify <math.h> instead of isnanf.h.
5914         * modules/isnand (Files): Remove lib/isnand.h.
5915         (Depends-on): Add math.
5916         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5917         (Include): Specify <math.h> instead of isnand.h.
5918         * modules/isnanl (Files): Remove lib/isnanl.h.
5919         (Depends-on): Add math.
5920         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5921         (Include): Specify <math.h> instead of isnanl.h.
5922         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5923         HAVE_ISNAN[FDL].
5924         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5925         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5926         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5927         * NEWS: Mention the change.
5928
5929 2008-10-18  Bruno Haible  <bruno@clisp.org>
5930
5931         Add getusershell(), setusershell(), endusershell() declarations to
5932         <unistd.h>.
5933         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5934         declarations.
5935         * lib/getusershell.c: Include unistd.h.
5936         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5937         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5938         HAVE_GETUSERSHELL.
5939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5940         and HAVE_GETUSERSHELL.
5941         * modules/getusershell (Depends-on): Add unistd, extensions.
5942         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5943         (Include): Specify <unistd.h>.
5944         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5945         HAVE_GETUSERSHELL.
5946
5947 2008-10-18  Bruno Haible  <bruno@clisp.org>
5948
5949         Add a getloadavg() declaration to <stdlib.h>.
5950         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5951         getloadavg declaration.
5952         (getloadavg): New declaration.
5953         * lib/getloadavg.c: Include <stdlib.h> first.
5954         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5955         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5956         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5958         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5959         * modules/getloadavg (Depends-on): Add stdlib, extensions.
5960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5961         (Include): Specify <stdlib.h>.
5962         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5963         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5964
5965 2008-10-18  Bruno Haible  <bruno@clisp.org>
5966
5967         * lib/dirchownmod.c: Don't include lchmod.h.
5968
5969         Move the lchmod() declaration to <sys/stat.h>.
5970         * lib/lchmod.h: Remove file.
5971         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5972         (lchmod): New declaration, moved here from lib/lchown.h.
5973         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5974         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5976         and HAVE_LCHMOD.
5977         * modules/lchmod (Files): Remove lib/lchmod.h.
5978         (Depends-on): Add sys_stat, extensions.
5979         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5980         (Include): Specify <sys/stat.h> instead of lchmod.h.
5981         * modules/sys_stat (Depends-on): Add link-warning.
5982         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5983         definition of GL_LINK_WARNING.
5984         * NEWS: Mention the change.
5985
5986 2008-10-18  Bruno Haible  <bruno@clisp.org>
5987
5988         * lib/fchdir.c: Don't include dirfd.h.
5989         * lib/fts.c: Likewise.
5990         * lib/getcwd.c: Likewise.
5991         * lib/glob.c: Likewise.
5992
5993         Move the dirfd() declaration to <dirent.h>.
5994         * lib/dirfd.h: Remove file.
5995         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5996         (dirfd): New declaration.
5997         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5999         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
6000         HAVE_DECL_DIRFD.
6001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
6002         HAVE_DECL_DIRFD.
6003         * modules/dirfd (Files): Remove lib/dirfd.h.
6004         (Depends-on): Add dirent, extensions.
6005         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
6006         (Include): Specify <dirent.h> instead of dirfd.h.
6007         * modules/dirent (Depends-on): Add link-warning.
6008         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
6009         definition of GL_LINK_WARNING.
6010         * NEWS: Mention the change.
6011
6012 2008-10-18  Bruno Haible  <bruno@clisp.org>
6013
6014         Move the euidaccess() declaration to <unistd.h>.
6015         * lib/euidaccess.h: Remove file.
6016         * lib/unistd.in.h (euidaccess): New declaration.
6017         * lib/euidaccess.c: Don't include euidaccess.h.
6018         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
6019         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
6020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
6021         and HAVE_EUIDACCESS.
6022         * modules/euidaccess (Files): Remove lib/euidaccess.h.
6023         (Depends-on): Add unistd.
6024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6025         (Include): Specify <unistd.h> instead of euidaccess.h.
6026         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
6027         HAVE_EUIDACCESS.
6028         * NEWS: Mention the change.
6029
6030 2008-10-18  Bruno Haible  <bruno@clisp.org>
6031
6032         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
6033
6034         Move the getdomainname() declaration to <unistd.h>.
6035         * lib/getdomainname.h: Remove file.
6036         * lib/unistd.in.h (getdomainname): New declaration.
6037         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
6038         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6039         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6040         HAVE_GETDOMAINNAME.
6041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6042         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
6043         * modules/getdomainname (Files): Remove lib/getdomainname.h.
6044         (Depends-on): Add unistd, extensions.
6045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6046         (Includes): Specify <unistd.h> instead of getdomainname.h.
6047         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
6048         HAVE_GETDOMAINNAME.
6049         * NEWS: Mention the change.
6050
6051 2008-10-18  Bruno Haible  <bruno@clisp.org>
6052
6053         * modules/dirent: New file.
6054         * m4/dirent_h.m4: New file.
6055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6056         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
6057         * modules/fchdir (Files): Remove lib/dirent.in.h.
6058         (Depends-on): Add dirent.
6059         (Makefile.am): Move rules to modules/dirent.
6060         * doc/posix-headers/dirent.texi: Mention the new module.
6061
6062 2008-10-18  Bruno Haible  <bruno@clisp.org>
6063
6064         Avoid -Wunused-parameter warnings in public gnulib header files.
6065         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
6066         macro.
6067         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
6068
6069 2008-10-18  Bruno Haible  <bruno@clisp.org>
6070
6071         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
6072         * doc/glibc-functions/error.texi: Mention the module 'error'.
6073         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
6074         * doc/glibc-functions/getdomainname.texi: Mention the module
6075         'getdomainname'.
6076         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
6077         * doc/glibc-functions/getpagesize.texi: Mention the module
6078         'getpagesize'.
6079         * doc/glibc-functions/getusershell.texi: Mention the module
6080         'getusershell'.
6081         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
6082         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
6083         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
6084         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
6085         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
6086         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
6087         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
6088         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
6089         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
6090         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
6091         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
6092         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
6093         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
6094         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
6095
6096 2008-10-17  Bruno Haible  <bruno@clisp.org>
6097
6098         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
6099         HP-UX and IRIX, use -0.0L.
6100         * tests/test-ceill.c (minus_zero): Likewise.
6101         * tests/test-floorl.c (minus_zero): Likewise.
6102         * tests/test-frexpl.c (minus_zero): Likewise.
6103         * tests/test-isnan.c (minus_zerol): Likewise.
6104         * tests/test-isnanl.h (minus_zero): Likewise.
6105         * tests/test-ldexpl.c (minus_zero): Likewise.
6106         * tests/test-roundl.c (minus_zero): Likewise.
6107         * tests/test-signbit.c (minus_zerol): Likewise.
6108         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6109         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6110         * tests/test-truncl.c (minus_zero): Likewise.
6111         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6112         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6113         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
6114         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6115
6116 2008-10-17  Bruno Haible  <bruno@clisp.org>
6117
6118         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
6119         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
6120         that it gets activated only for gcc >= 3.0.
6121         * lib/dirent.in.h: Likewise.
6122         * lib/errno.in.h: Likewise.
6123         * lib/fcntl.in.h: Likewise.
6124         * lib/float.in.h: Likewise.
6125         * lib/iconv.in.h: Likewise.
6126         * lib/inttypes.in.h: Likewise.
6127         * lib/locale.in.h: Likewise.
6128         * lib/math.in.h: Likewise.
6129         * lib/netdb.in.h: Likewise.
6130         * lib/netinet_in.in.h: Likewise.
6131         * lib/search.in.h: Likewise.
6132         * lib/signal.in.h: Likewise.
6133         * lib/spawn.in.h: Likewise.
6134         * lib/stdarg.in.h: Likewise.
6135         * lib/stdint.in.h: Likewise.
6136         * lib/stdio.in.h: Likewise.
6137         * lib/stdlib.in.h: Likewise.
6138         * lib/string.in.h: Likewise.
6139         * lib/strings.in.h: Likewise.
6140         * lib/sys_file.in.h: Likewise.
6141         * lib/sys_ioctl.in.h: Likewise.
6142         * lib/sys_select.in.h: Likewise.
6143         * lib/sys_socket.in.h: Likewise.
6144         * lib/sys_stat.in.h: Likewise.
6145         * lib/sys_time.in.h: Likewise.
6146         * lib/sysexits.in.h: Likewise.
6147         * lib/time.in.h: Likewise.
6148         * lib/unistd.in.h: Likewise.
6149         * lib/wchar.in.h: Likewise.
6150         * lib/wctype.in.h: Likewise.
6151         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6152
6153 2008-10-17  Jim Meyering  <meyering@redhat.com>
6154
6155         ignore-value: don't depend on inline module
6156         * modules/ignore-value (Depends-on): Remove 'inline'.
6157         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6158         Suggestion from Bruno Haible.
6159
6160 2008-10-17  Bruno Haible  <bruno@clisp.org>
6161
6162         New implementation of condition variables for Win32.
6163         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6164         (gl_linked_waitqueue_t): New type.
6165         (gl_cond_t): Use it.
6166         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6167         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6168         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6169         (glthread_cond_init_func, glthread_cond_wait_func,
6170         glthread_cond_timedwait_func, glthread_cond_signal_func,
6171         glthread_cond_broadcast_func, glthread_cond_destroy_func):
6172         Reimplemented on the basis of gl_linked_waitqueue_t.
6173         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6174         gl_waitqueue_t.
6175         (gl_rwlock_t): Update.
6176         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6177
6178 2008-10-17  Simon Josefsson  <simon@josefsson.org>
6179
6180         * modules/recvfrom (Depends-on): Add dependency on getpeername.
6181         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6182
6183 2008-10-17  Jim Meyering  <meyering@redhat.com>
6184
6185         ignore-value: new module
6186         * modules/ignore-value: New file.
6187         * lib/ignore-value.h: New file.
6188         * MODULES.html.sh (Compiler warning management): New section,
6189         just for this module.  More to come.
6190
6191 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6192
6193         open-safer.c: avoid 'signed and unsigned in conditional...' warning
6194         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6195         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6196
6197 2008-10-16  Jim Meyering  <meyering@redhat.com>
6198
6199         openat-die.c: avoid 'no previous prototype' warning
6200         * lib/openat-die.c: Include "openat.h".
6201         Reported by Reuben Thomas <rrt@sc3d.org>.
6202
6203 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6204
6205         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6206         * lib/netdb.in.h: Fix typo.
6207         Reported by Bruno Haible  <bruno@clisp.org>
6208
6209         * lib/netdb.in.h: Include sys/socket.h for platforms without
6210         netdb.h, to get structures like hostent on MinGW.
6211         * modules/netdb (Depends-on): Add sys_socket.
6212
6213 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6214
6215         * modules/netdb, modules/netdb-tests: New file.
6216         * m4/netdb_h.m4: New file.
6217         * lib/netdb.in.h: Add, currently just an empty file pending
6218         definitions.
6219         * tests/test-netdb.c: New file.
6220         * doc/posix-headers/netdb.texi: Mention that we replace it if
6221         needed.
6222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6223         netdb.
6224
6225 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6226
6227         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6228         with code.
6229
6230 2008-10-13  Bruno Haible  <bruno@clisp.org>
6231
6232         * lib/glthread/cond.c (glthread_cond_wait_func,
6233         glthread_cond_timedwait_func): Add a comment.
6234
6235 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6236
6237         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6238         * tests/test-select.c: Likewise,
6239
6240 2008-10-13  Bruno Haible  <bruno@clisp.org>
6241
6242         * lib/glthread/cond.c (glthread_cond_wait_func,
6243         glthread_cond_timedwait_func): Fix variable name.
6244         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6245
6246 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
6247
6248         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6250         struct sockaddr.sa_len.
6251         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6252
6253 2008-10-13  Simon Josefsson  <simon@josefsson.org>
6254
6255         * build-aux/pmccabe2html: Add css and css_url parameters.
6256
6257 2008-10-12  Bruno Haible  <bruno@clisp.org>
6258
6259         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6260         calling aclx_get.
6261         Reported by Rainer Tammer <tammer@tammer.net>.
6262
6263 2008-10-12  Bruno Haible  <bruno@clisp.org>
6264
6265         Use msvcrt aware primitives for creation/termination of Win32 threads.
6266         * lib/glthread/thread.c: Include <process.h>.
6267         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6268         (wrapper_func): Update signature.
6269         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6270
6271 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6272             Bruno Haible  <bruno@clisp.org>
6273
6274         Provide a Win32 implementation of the 'cond' module.
6275         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6276         * lib/glthread/cond.c (glthread_cond_init_func,
6277         glthread_cond_wait_func, glthread_cond_timedwait_func,
6278         glthread_cond_signal_func, glthread_cond_broadcast_func,
6279         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6280         * modules/cond (Dependencies): Add gettimeofday.
6281
6282 2008-10-11  Bruno Haible  <bruno@clisp.org>
6283
6284         Make sleep work on older versions of mingw.
6285         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6286         only whether it exists.
6287         * doc/posix-functions/sleep.texi: Mention the problem with older
6288         versions of mingw.
6289
6290 2008-10-11  Bruno Haible  <bruno@clisp.org>
6291
6292         New module 'shutdown'.
6293         * modules/shutdown: New file.
6294         * lib/sys_socket.in.h (shutdown): New declaration.
6295         * lib/winsock.c (shutdown): New function.
6296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6297         GNULIB_SHUTDOWN.
6298         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6299         * doc/posix-functions/shutdown.texi: Document the new module.
6300
6301 2008-10-11  Jim Meyering  <meyering@redhat.com>
6302
6303         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6304
6305 2008-10-11  Bruno Haible  <bruno@clisp.org>
6306
6307         New module 'fclose'.
6308         * modules/fclose: New file.
6309         * lib/stdio.in.h (fclose): New declaration.
6310         * lib/fclose.c: New file.
6311         * m4/fclose.m4: New file.
6312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6313         REPLACE_FCLOSE.
6314         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6315         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6316         REPLACE_FCLOSE.
6317         * modules/close (Depends-on): fclose.
6318         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6319
6320 2008-10-11  Bruno Haible  <bruno@clisp.org>
6321
6322         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6323         set errno and don't call _close.
6324
6325 2008-10-10  Bruno Haible  <bruno@clisp.org>
6326
6327         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6328         ACL, not afterwards. Fixes test failure on Cygwin.
6329
6330 2008-10-09  Ben Pfaff  <blp@gnu.org>
6331
6332         * build-aux/announce-gen: Fix gnulib version related part of usage
6333         message.  Die with a useful error message if no tarballs are
6334         found.
6335
6336 2008-10-10  Jim Meyering  <meyering@redhat.com>
6337
6338         bootstrap: use git's --depth=N option only if it's supported
6339         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6340         recognize the --depth option.  Reported by Pádraig Brady.
6341
6342 2008-10-09  Bruno Haible  <bruno@clisp.org>
6343
6344         New module 'ioctl'.
6345         * modules/ioctl: New file.
6346         * lib/sys_socket.in.h (ioctl): Remove declaration.
6347         * lib/winsock.c: Include <sys/ioctl.h>.
6348         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6349         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6350         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6351         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6352         * doc/posix-functions/ioctl.texi: Mention the new module.
6353
6354 2008-10-09  Bruno Haible  <bruno@clisp.org>
6355
6356         New module 'sys_ioctl'.
6357         * lib/sys_ioctl.in.h: New file.
6358         * m4/sys_ioctl_h.m4: New file.
6359         * modules/sys_ioctl: New file.
6360         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6361
6362 2008-10-09  Bruno Haible  <bruno@clisp.org>
6363
6364         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6365         * lib/winsock.c: Include <stdarg.h>.
6366         (rpl_ioctl): Change to second argument 'int' and then varargs.
6367
6368 2008-10-09  Bruno Haible  <bruno@clisp.org>
6369
6370         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6371         when the sys_socket module is present and the system has <winsock2.h>.
6372
6373 2008-10-09  Bruno Haible  <bruno@clisp.org>
6374
6375         * doc/posix-functions/close.texi: Mention module 'close' instead of
6376         module 'sys_socket'.
6377
6378 2008-10-09  Bruno Haible  <bruno@clisp.org>
6379
6380         * doc/glibc-headers/sys_ioctl.texi: New file.
6381         * doc/gnulib.texi: Include it.
6382
6383 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6384             Bruno Haible  <bruno@clisp.org>
6385
6386         Combine the two replacements of 'close'.
6387         * lib/sys_socket.in.h (close): Define to a reminder to include
6388         <unistd.h>.
6389         (_gl_close_fd_maybe_socket): New declaration.
6390         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6391         * lib/winsock.c (close): Remove undefinition.
6392         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6393         needed for the gnulib module 'close'.
6394         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6395         define to an error symbol or to a warning, if suitable.
6396         * lib/close.c: Include <sys/socket.h>.
6397         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6398         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6399         UNISTD_H_HAVE_WINSOCK2_H.
6400         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6402         UNISTD_H_HAVE_WINSOCK2_H.
6403         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6404         (configure.ac): Set a module indicator.
6405         (Makefile.am): Substitute GNULIB_CLOSE.
6406         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6407         * modules/poll-tests (Depends-on): Add close.
6408         * modules/select-tests (Depends-on): Likewise.
6409
6410 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6411             Bruno Haible  <bruno@clisp.org>
6412
6413         New module 'close'.
6414         * modules/close: New file.
6415         * lib/unistd.in.h (close): Move declaration out of the
6416         FCHDIR_REPLACEMENT scope.
6417         (_gl_unregister_fd): New declaration.
6418         * lib/close.c: New file.
6419         * lib/fchdir.c (rpl_close): Remove function.
6420         * m4/close.m4: New file.
6421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6422         close.
6423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6424         REPLACE_CLOSE.
6425         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6426         REPLACE_CLOSE.
6427         * modules/fchdir (Depends-on): Add close.
6428
6429 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6430             Bruno Haible  <bruno@clisp.org>
6431
6432         * lib/fcntl.in.h (open): Simplify conditionals.
6433         (_gl_register_fd): New declaration.
6434         * lib/fchdir.c (rpl_open): Remove function.
6435         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6436         also.
6437         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6439         open.
6440
6441 2008-10-09  Jim Meyering  <meyering@redhat.com>
6442
6443         GNUmakefile: use the more name-space-friendly "_version"
6444         * top/GNUmakefile (_dummy): Update.
6445         (_version): Rename from "version".
6446
6447 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6448             Bruno Haible  <bruno@clisp.org>
6449
6450         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6451         rpl_close.
6452         (_gl_register_fd): New function, extracted from rpl_open.
6453         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6454         (rpl_open, rpl_opendir): Use _gl_register_fd.
6455
6456 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6457
6458         Fix organization of 'open' replacement.
6459         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6460         (gl_FUNC_OPEN): Use it.
6461         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6462
6463 2008-10-08  Bruno Haible  <bruno@clisp.org>
6464
6465         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6466
6467 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6468
6469         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6470         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6471         listen).
6472
6473 2008-10-08  Eric Blake  <ebb9@byu.net>
6474
6475         GNUmakefile: add 'make version' target
6476         * top/GNUmakefile (_curr-ver): Split version update rules...
6477         (version): ...into a target.
6478
6479 2008-10-07  Bruno Haible  <bruno@clisp.org>
6480
6481         Use a more portable replacement expression for -0.0L.
6482         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6483         instead of -0.0L. Fix m4 quotation.
6484
6485         * tests/test-signbit.c: Include <float.h>.
6486         (minus_zero): New variable.
6487         (test_signbitl): Use minus_zero instead of -zero.
6488         * modules/signbit-tests (Depends-on): Add float.
6489
6490         * tests/test-ceill.c: Include <float.h>.
6491         (zero): Remove variable.
6492         (minus_zero): New variable.
6493         (main): Use minus_zero instead of -zero.
6494         * modules/ceill-tests (Depends-on): Add float.
6495
6496         * tests/test-floorl.c: Include <float.h>.
6497         (zero): Remove variable.
6498         (minus_zero): New variable.
6499         (main): Use minus_zero instead of -zero.
6500         * modules/floorl-tests (Depends-on): Add float.
6501
6502         * tests/test-roundl.c: Include <float.h>.
6503         (zero): Remove variable.
6504         (minus_zero): New variable.
6505         (main): Use minus_zero instead of -zero.
6506         * modules/roundl-tests (Depends-on): Add float.
6507
6508         * tests/test-truncl.c: Include <float.h>.
6509         (zero): Remove variable.
6510         (minus_zero): New variable.
6511         (main): Use minus_zero instead of -zero.
6512         * modules/truncl-tests (Depends-on): Add float.
6513
6514         * tests/test-frexpl.c (zero): Remove variable.
6515         (minus_zero): New variable.
6516         (main): Use minus_zero instead of -zero.
6517         * modules/frexpl-tests (Depends-on): Add float.
6518
6519         * tests/test-isnan.c (zerol): Remove variable.
6520         (minus_zerol): New variable.
6521         (test_long_double): Use minus_zerol instead of -zerol.
6522         * modules/isnan-tests (Depends-on): Add float.
6523
6524         * tests/test-isnanl.h (zero): Remove variable.
6525         (minus_zero): New variable.
6526         (main): Use minus_zero instead of -zero.
6527         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6528         * modules/isnanl-tests (Depends-on): Add float.
6529
6530         * tests/test-ldexpl.c (zero): Remove variable.
6531         (minus_zero): New variable.
6532         (main): Use minus_zero instead of -zero.
6533         * modules/ldexpl-tests (Depends-on): Add float.
6534
6535         * tests/test-snprintf-posix.h (zerol): Remove variable.
6536         (minus_zerol): New variable.
6537         (test_function): Use minus_zerol instead of -zerol.
6538         * modules/snprintf-posix-tests (Depends-on): Add float.
6539         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6540
6541         * tests/test-sprintf-posix.h (zerol): Remove variable.
6542         (minus_zerol): New variable.
6543         (test_function): Use minus_zerol instead of -zerol.
6544         * modules/sprintf-posix-tests (Depends-on): Add float.
6545         * modules/vsprintf-posix-tests (Depends-on): Add float.
6546
6547         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6548         (minus_zerol): New variable.
6549         (test_function): Use minus_zerol instead of -zerol.
6550         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6551
6552         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6553         (minus_zerol): New variable.
6554         (test_function): Use minus_zerol instead of -zerol.
6555         * modules/vasprintf-posix-tests (Depends-on): Add float.
6556
6557 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6558
6559         * MODULES.html.sh (Support for building documentation): Mention
6560         pmccabe2html.  Sort entries.
6561
6562         Add pmccabe2html module, from gnupdf.
6563         * build-aux/pmccabe.css: New file.
6564         * build-aux/pmccabe2html: New file.
6565         * m4/pmccabe2html.m4: New file.
6566         * modules/pmccabe2html: New file.
6567
6568 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6569
6570         flock: new module
6571         * MODULES.html.sh: Add to list of modules.
6572         * lib/flock.c: flock implementation for Windows and Unix systems
6573         which have fcntl.
6574         * doc/glibc-functions/flock.texi: Update documentation.
6575         * lib/sys_file.in.h: <sys/file.h> header file.
6576         * m4/flock.m4: M4 macros.
6577         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6578         * modules/flock: flock module.
6579         * modules/flock-tests: flock tests module.
6580         * modules/sys_file: sys/file.h module.
6581         * tests/test-flock.c: test suite for flock.
6582
6583 2008-10-06  Jim Meyering  <meyering@redhat.com>
6584
6585         bootstrap: check for LT_INIT more portably still ;-)
6586         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6587         Spotted by Bruno Haible.
6588
6589 2008-10-06  Eric Blake  <ebb9@byu.net>
6590
6591         test-signbit: avoid tripping Irix cc bug on -0.0L
6592         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6593         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6594         entire testsuite consistent and avoids an Irix 6.2 bug.
6595
6596 2008-10-05  Bruno Haible  <bruno@clisp.org>
6597             Jim Meyering  <jim@meyering.net>
6598
6599         Add an option for ignoring EPIPE during close_stdout.
6600         * lib/closeout.h: Include <stdbool.h>.
6601         (close_stdout_set_ignore_EPIPE): New declaration.
6602         * lib/closeout.c: Include <stdbool.h>.
6603         (ignore_EPIPE): New variable.
6604         (close_stdout_set_ignore_EPIPE): New function.
6605         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6606         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6607         failure.
6608         * modules/closeout (Depends-on): Add stdbool.
6609
6610 2008-10-05  Bruno Haible  <bruno@clisp.org>
6611
6612         * modules/accept: New file.
6613         * modules/bind: New file.
6614         * modules/connect: New file.
6615         * modules/getpeername: New file.
6616         * modules/getsockname: New file.
6617         * modules/getsockopt: New file.
6618         * modules/listen: New file.
6619         * modules/recv: New file.
6620         * modules/recvfrom: New file.
6621         * modules/send: New file.
6622         * modules/sendto: New file.
6623         * modules/setsockopt: New file.
6624         * modules/socket: New file.
6625         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6626         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6627         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6628         the particular module is requested. Add a link warning when the
6629         particular module is not requested.
6630         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6631         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6632         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6633         the particular module is requested.
6634         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6635         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6636         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6637         * modules/sys_socket (Depends-on): Add link-warning.
6638         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6639         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6640         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6641         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6642         GL_LINK_WARNING.
6643         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6644         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6645         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6646         * doc/posix-functions/getpeername.texi: Mention the new module
6647         'getpeername'.
6648         * doc/posix-functions/getsockname.texi: Mention the new module
6649         'getsockname'.
6650         * doc/posix-functions/getsockopt.texi: Mention the new module
6651         'getsockopt'.
6652         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6653         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6654         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6655         * doc/posix-functions/send.texi: Mention the new module 'send'.
6656         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6657         * doc/posix-functions/setsockopt.texi: Mention the new module
6658         'setsockopt'.
6659         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6660         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6661         listen, connect, accept.
6662         * modules/select-tests (Depends-on): Likewise.
6663
6664 2008-10-05  Bruno Haible  <bruno@clisp.org>
6665
6666         * lib/winsock.c (strerror): Remove unused #undef.
6667         (rpl_close): Remove unused local variable.
6668
6669         * modules/sys_socket (Depends-on); Add errno.
6670
6671 2008-10-05  Bruno Haible  <bruno@clisp.org>
6672
6673         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6674         (select): Add a link warning when the 'select' module is not used.
6675         * modules/sys_select (Depends-on): Add link-warning.
6676         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6677         Suggested by Paolo Bonzini.
6678
6679 2008-10-05  Jim Meyering  <meyering@redhat.com>
6680
6681         bootstrap: check for LT_INIT more portably
6682         * build-aux/bootstrap: Avoid using grep -E, since it's not
6683         portable enough.  Suggestion from Bruno Haible.
6684
6685 2008-10-05  Bruno Haible  <bruno@clisp.org>
6686
6687         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6688         as being fixed by gnulib.
6689
6690 2008-10-05  Bruno Haible  <bruno@clisp.org>
6691
6692         * modules/select-tests: New file, mostly copied from
6693         modules/sys_select-tests.
6694         * tests/test-select.c: New file, mostly copied from
6695         tests/test-sys_select.c.
6696         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6697         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6698         (Makefile.am): Remove test_sys_select_LDADD.
6699
6700         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6701         to an undefined symbol, for an error message.
6702         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6703         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6704         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6705         winsock-select.c here.
6706         * modules/sys_select (Files): Remove lib/winsock-select.c.
6707         (Depends-on): Remove alloca.
6708         (Makefile.am): Substitute GNULIB_SELECT.
6709         * modules/select: New file.
6710         * doc/posix-functions/select.texi: Update.
6711
6712 2008-10-05  Bruno Haible  <bruno@clisp.org>
6713
6714         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6715         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6716         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6717         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6718         getdtablesize.
6719         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6720         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6721
6722 2008-10-05  Bruno Haible  <bruno@clisp.org>
6723
6724         * modules/getdtablesize-tests: New file.
6725         * tests/test-getdtablesize.c: New file.
6726
6727         New module 'getdtablesize'.
6728         * lib/unistd.in.h (getdtablesize): New declaration.
6729         * lib/getdtablesize.c: New file.
6730         * m4/getdtablesize.m4: New file.
6731         * modules/getdtablesize: New file.
6732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6733         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6734         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6735         HAVE_GETDTABLESIZE.
6736         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6737
6738 2008-10-05  Bruno Haible  <bruno@clisp.org>
6739
6740         * modules/sched (Makefile.am): Fix typo.
6741         Reported by Simon Josefsson.
6742
6743 2008-10-05  Jim Meyering  <meyering@redhat.com>
6744
6745         bootstrap: check for LT_INIT, too
6746         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6747         are deprecated.  Suggestion from Ralf Wildenhues.
6748
6749 2008-10-05  Bruno Haible  <bruno@clisp.org>
6750
6751         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6752         overriding them by ours.
6753         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6754
6755 2008-10-05  Jim Meyering  <meyering@redhat.com>
6756
6757         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6758         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6759         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6760
6761 2008-10-04  Bruno Haible  <bruno@clisp.org>
6762
6763         * modules/dup2 (License): Change to LGPLv2+.
6764         * modules/sleep (License): Likewise.
6765         * modules/perror (License): Likewise.
6766         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6767         Blake.
6768         * modules/signal (License): Likewise.
6769         * modules/sigprocmask (License): Likewise.
6770         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6771         Meyering.
6772
6773 2008-10-04  Bruno Haible  <bruno@clisp.org>
6774
6775         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6776         Reported by Rainer Tammer <tammer@tammer.net>.
6777
6778 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6779             Bruno Haible  <bruno@clisp.org>
6780
6781         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6782         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6783         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6784
6785 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6786
6787         filevercmp: new module
6788         * lib/filevercmp.h: New function filevercmp comparing version strings.
6789         * lib/filevercmp.c: Implementation of filevercmp function.
6790         * modules/filevercmp: Module metadata.
6791         * tests/test-filevercmp.c: Unit test for new module.
6792         * modules/filevercmp-tests: Unit test metadata.
6793         * MODULES.html.sh: Add filevercmp module.
6794
6795 2008-10-03  Bruno Haible  <bruno@clisp.org>
6796
6797         * lib/c-ctype.h: Add comment.
6798         Reported by Jim Meyering.
6799
6800 2008-10-02  Bruno Haible  <bruno@clisp.org>
6801
6802         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6803
6804 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6805
6806         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6807         name of bootstrap.conf accordingly.
6808
6809 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6810
6811         * build-aux/bootstrap: Install git-merge-changelog configuration
6812         items into .gitconfig if needed.
6813
6814 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6815
6816         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6817         git repository, and initialize/update it accordingly.
6818
6819 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6820
6821         * modules/fsync-tests: New file.
6822         * tests/test-fsync.c: New file.
6823
6824         New module 'fsync'.
6825         * lib/fsync.c: New file.
6826         * m4/fsync.m4: New file.
6827         * modules/fsync: New file.
6828         * lib/unistd.in.h (fsync): New declaration.
6829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6830         GNULIB_FSYNC and HAVE_FSYNC.
6831         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6832         * MODULES.html.sh (posix_functions): Add fsync.
6833         * doc/posix-functions/fsync.texi: Mention the new module.
6834
6835 2008-10-02  Jim Meyering  <meyering@redhat.com>
6836
6837         fts.c: sync with similar code from coreutils' remove.c
6838         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6839         Guard also with "#if defined __linux__", since for now at least,
6840         this code is Linux-kernel-specific.
6841
6842 2008-10-02  Jim Meyering  <meyering@redhat.com>
6843
6844         fts: bug fixes
6845         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6846         Include <sys/vfs.h>, not <sys/statfs.h>.
6847
6848         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6849         Include <sys/vfs.h>, not <sys/statfs.h>.
6850
6851 2008-10-01  Bruno Haible  <bruno@clisp.org>
6852
6853         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6854         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6855         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6856         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6857         * doc/posix-functions/posix_spawnp.texi: Likewise.
6858         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6859         whether posix_spawn actually works.
6860         * m4/pipe.m4 (gl_PIPE): Likewise.
6861         * modules/execute (Files): Add m4/posix_spawn.m4.
6862         * modules/pipe (Files): Add m4/posix_spawn.m4.
6863         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6864
6865 2008-10-01  Jim Meyering  <meyering@redhat.com>
6866
6867         remove trailing spaces
6868         * NEWS: Likewise.
6869         * lib/poll.c (poll): Likewise.
6870         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6871         * lib/winsock.c (rpl_close): Likewise.
6872         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6873         * modules/yield: Likewise.
6874         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6875         * tests/test-sys_select.c (connect_to_socket): Likewise.
6876
6877         fts.c: adjust a new interface to be more generally useful
6878         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6879         (fts_build): Adjust caller.
6880
6881 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6882
6883         * modules/cond-tests: New file.
6884         * tests/test-cond.c: New file.
6885
6886 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6887             Bruno Haible  <bruno@clisp.org>
6888
6889         * modules/cond (Dependencies): Add errno, time.
6890         * lib/glthread/cond.h: Include <time.h>.
6891         (gl_cond_define, gl_cond_define_initialized): Use the same definition
6892         across platforms.
6893
6894 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6895             Bruno Haible  <bruno@clisp.org>
6896
6897         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6898
6899 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6900             Bruno Haible  <bruno@clisp.org>
6901
6902         * modules/tls-tests (Depends-on): Add thread, yield.
6903         (configure.ac): Remove all checks.
6904         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6905         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6906         gl_thread_self): Remove definitions. Include glthread/thread.h and
6907         glthread/yield.h instead.
6908         (test_tls): Pass an additional NULL argument to gl_thread_join.
6909
6910 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6911             Bruno Haible  <bruno@clisp.org>
6912
6913         * modules/lock-tests (Depends-on): Add thread, yield.
6914         (configure.ac): Remove all checks.
6915         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6916         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6917         gl_thread_self): Remove definitions. Include glthread/thread.h and
6918         glthread/yield.h instead.
6919         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6920         additional NULL argument to gl_thread_join.
6921
6922 2008-09-30  Bruno Haible  <bruno@clisp.org>
6923
6924         Fix the Win32 implementation of the 'thread' module.
6925         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6926         pointer type.
6927         (gl_thread_self): Invoke gl_thread_self_func.
6928         (gl_thread_self_func): New declaration.
6929         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6930         (do_init_self_key, init_self_key): New functions.
6931         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6932         Remove some fields.
6933         (running_threads, running_lock): Remove variables.
6934         (get_current_thread_handle): New function.
6935         (gl_thread_self_func, wrapper_func, glthread_create_func,
6936         glthread_join_func, gl_thread_exit_func): Largely rewritten and
6937         simplified.
6938
6939 2008-09-30  Bruno Haible  <bruno@clisp.org>
6940
6941         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6942         files.
6943
6944 2008-09-30  Jim Meyering  <meyering@redhat.com>
6945
6946         fts.m4: correct the test for statfs.f_type
6947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6948         when checking for statfs.f_type.
6949
6950 2008-09-15  Simon Josefsson  <simon@josefsson.org>
6951
6952         tests: avoid some compiler warnings
6953         * tests/test-memchr.c (main): Pass NULL indirectly.
6954         * tests/test-getdate.c (main): Remove unused variable 'ret'.
6955
6956 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
6957
6958         getdate.y: disallow countable dayshifts like "4 yesterday ago"
6959         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6960         exactly specified dayshifts.
6961         (dayshift): New rule.
6962         (rel): Add dayshift.
6963         (relative_time_table) [tomorrow, yesterday, today, now]:
6964         Use tDAY_SHIFT in place of tDAY_UNIT.
6965         * tests/test-getdate.c: Add tests for now-disallowed countable
6966         dayshifts, e.g., "4 yesterday ago".
6967
6968 2008-09-29  Bruno Haible  <bruno@clisp.org>
6969
6970         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6971         * tests/test-posix_spawn1.in.sh: Renamed from
6972         tests/test-posix_spawn.in.sh.
6973         * tests/test-posix_spawn2.c: New file.
6974         * tests/test-posix_spawn2.in.sh: New file.
6975         * modules/posix_spawnp-tests (Files): Update.
6976         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6977
6978 2008-09-29  Bruno Haible  <bruno@clisp.org>
6979
6980         Propagate effects of putenv/setenv/unsetenv to child processes.
6981         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6982         * lib/pipe.c (create_pipe): Likewise.
6983
6984 2008-09-29  Bruno Haible  <bruno@clisp.org>
6985
6986         Enable use of shell scripts as executables in mingw.
6987         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6988         run the program as a shell script.
6989         * lib/pipe.c (create_pipe): Likewise.
6990         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6991         resulting array.
6992
6993 2008-09-29  Eric Blake  <ebb9@byu.net>
6994
6995         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6996
6997 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
6998
6999         * doc/posix-functions/accept.texi: Update mingw problems.
7000         * doc/posix-functions/bind.texi: Update mingw problems.
7001         * doc/posix-functions/close.texi: Update mingw problems.
7002         * doc/posix-functions/connect.texi: Update mingw problems.
7003         * doc/posix-functions/getpeername.texi: Update mingw problems.
7004         * doc/posix-functions/getsockname.texi: Update mingw problems.
7005         * doc/posix-functions/getsockopt.texi: Update mingw problems.
7006         * doc/posix-functions/ioctl.texi: Update mingw problems.
7007         * doc/posix-functions/listen.texi: Update mingw problems.
7008         * doc/posix-functions/recv.texi: Update mingw problems.
7009         * doc/posix-functions/recvfrom.texi: Update mingw problems.
7010         * doc/posix-functions/select.texi: Update mingw problems.
7011         * doc/posix-functions/send.texi: Update mingw problems.
7012         * doc/posix-functions/sendto.texi: Update mingw problems.
7013         * doc/posix-functions/setsockopt.texi: Update mingw problems.
7014         * doc/posix-functions/socket.texi: Update mingw problems.
7015
7016 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
7017             Bruno Haible  <bruno@clisp.org>
7018
7019         * lib/sys_select.in.h: Include sys/time.h.
7020         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
7021         * modules/sys_select: Depend on sys_time.
7022         * tests/test-sys_select.c: Test that sys/select.h defines struct
7023         timeval fully.
7024
7025 2008-09-29  Bruno Haible  <bruno@clisp.org>
7026
7027         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
7028         * lib/sys_select.in.h: Likewise.
7029
7030 2008-09-29  Bruno Haible  <bruno@clisp.org>
7031
7032         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
7033
7034 2008-09-29  Bruno Haible  <bruno@clisp.org>
7035
7036         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
7037         Set LIBSOCKET instead of augmenting LIBS.
7038         * modules/sockets (Link): New section.
7039         * modules/sockets-tests (test_sockets_LDADD): New variable.
7040         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
7041         * modules/poll-tests (test_poll_LDADD): New variable.
7042         * NEWS: Document the change.
7043
7044 2008-09-29  Bruno Haible  <bruno@clisp.org>
7045
7046         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
7047         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
7048         ARPA_INET_H directly.
7049         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7050
7051 2008-09-28  Bruno Haible  <bruno@clisp.org>
7052
7053         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
7054         from gl_HEADER_SYS_SOCKET.
7055         (gl_HEADER_SYS_SOCKET): Invoke it.
7056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7057
7058 2008-09-28  Bruno Haible  <bruno@clisp.org>
7059
7060         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
7061         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
7062         Needed on OSF/1 4.0.
7063
7064 2008-09-28  Bruno Haible  <bruno@clisp.org>
7065
7066         Override open more carefully.
7067         * lib/open.c (orig_open): New function.
7068         (rpl_open): Use orig_open instead of open.
7069         * lib/fcntl.in.h: Add special invocation convention.
7070         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
7071         (gl_FUNC_OPEN): Invoke it.
7072
7073         Override freopen more carefully.
7074         * lib/freopen.c (orig_freopen): New function.
7075         (rpl_freopen): Use orig_freopen instead of freopen.
7076         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
7077         (gl_FUNC_FREOPEN): Invoke it.
7078
7079         Override fopen more carefully.
7080         * lib/fopen.c (orig_fopen): New function.
7081         (rpl_fopen): Use orig_fopen instead of fopen.
7082         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
7083         (gl_FUNC_FOPEN): Invoke it.
7084         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
7085
7086 2008-09-28  Bruno Haible  <bruno@clisp.org>
7087
7088         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
7089         SIGPIPE.
7090
7091 2008-09-28  Bruno Haible  <bruno@clisp.org>
7092
7093         * tests/test-sigaction.c (handler, main): Disable the check whether
7094         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
7095         glibc systems with LinuxThreads.
7096
7097 2008-09-28  Bruno Haible  <bruno@clisp.org>
7098
7099         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
7100
7101         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
7102         with AIX xlc.
7103         * lib/fcntl.in.h (open): Likewise.
7104         Reported by Rainer Tammer <tammer@tammer.net>.
7105
7106 2008-09-28  Bruno Haible  <bruno@clisp.org>
7107
7108         * modules/posix_spawnp-tests: New file.
7109         * tests/test-posix_spawn.c: New file.
7110         * tests/test-posix_spawn.in.sh: New file.
7111
7112         New module 'posix_spawnp'.
7113         * modules/posix_spawnp: New file.
7114         * lib/spawnp.c: New file, from GNU libc with modifications.
7115         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
7116
7117         New module 'posix_spawn'.
7118         * modules/posix_spawn: New file.
7119         * lib/spawn.c: New file, from GNU libc with modifications.
7120         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7121
7122         New module 'posix_spawnattr_destroy'.
7123         * modules/posix_spawnattr_destroy: New file.
7124         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
7125         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
7126         module.
7127
7128         New module 'posix_spawnattr_setsigmask'.
7129         * modules/posix_spawnattr_setsigmask: New file.
7130         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
7131         modifications.
7132         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
7133         new module.
7134
7135         New module 'posix_spawnattr_getsigmask'.
7136         * modules/posix_spawnattr_getsigmask: New file.
7137         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
7138         modifications.
7139         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
7140         new module.
7141
7142         New module 'posix_spawnattr_setsigdefault'.
7143         * modules/posix_spawnattr_setsigdefault: New file.
7144         * lib/spawnattr_setdefault.c: New file, from GNU libc with
7145         modifications.
7146         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
7147         new module.
7148
7149         New module 'posix_spawnattr_getsigdefault'.
7150         * modules/posix_spawnattr_getsigdefault: New file.
7151         * lib/spawnattr_getdefault.c: New file, from GNU libc with
7152         modifications.
7153         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7154         new module.
7155
7156         New module 'posix_spawnattr_setschedpolicy'.
7157         * modules/posix_spawnattr_setschedpolicy: New file.
7158         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7159         modifications.
7160         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7161         new module.
7162
7163         New module 'posix_spawnattr_getschedpolicy'.
7164         * modules/posix_spawnattr_getschedpolicy: New file.
7165         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7166         modifications.
7167         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7168         new module.
7169
7170         New module 'posix_spawnattr_setschedparam'.
7171         * modules/posix_spawnattr_setschedparam: New file.
7172         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7173         modifications.
7174         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7175         new module.
7176
7177         New module 'posix_spawnattr_getschedparam'.
7178         * modules/posix_spawnattr_getschedparam: New file.
7179         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7180         modifications.
7181         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7182         new module.
7183
7184         New module 'posix_spawnattr_setpgroup'.
7185         * modules/posix_spawnattr_setpgroup: New file.
7186         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7187         modifications.
7188         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7189         module.
7190
7191         New module 'posix_spawnattr_getpgroup'.
7192         * modules/posix_spawnattr_getpgroup: New file.
7193         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7194         modifications.
7195         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7196         module.
7197
7198         New module 'posix_spawnattr_setflags'.
7199         * modules/posix_spawnattr_setflags: New file.
7200         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7201         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7202         module.
7203
7204         New module 'posix_spawnattr_getflags'.
7205         * modules/posix_spawnattr_getflags: New file.
7206         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7207         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7208         module.
7209
7210         New module 'posix_spawnattr_init'.
7211         * modules/posix_spawnattr_init: New file.
7212         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7213         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7214         module.
7215
7216         New module 'posix_spawn_file_actions_destroy'.
7217         * modules/posix_spawn_file_actions_destroy: New file.
7218         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7219         modifications.
7220         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7221         the new module.
7222
7223         New module 'posix_spawn_file_actions_addopen'.
7224         * modules/posix_spawn_file_actions_addopen: New file.
7225         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7226         modifications.
7227         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7228         the new module.
7229
7230         New module 'posix_spawn_file_actions_adddup2'.
7231         * modules/posix_spawn_file_actions_adddup2: New file.
7232         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7233         modifications.
7234         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7235         the new module.
7236
7237         New module 'posix_spawn_file_actions_addclose'.
7238         * modules/posix_spawn_file_actions_addclose: New file.
7239         * lib/spawn_faction_addclose.c: New file, from GNU libc with
7240         modifications.
7241         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7242         the new module.
7243
7244         New module 'posix_spawn_file_actions_init'.
7245         * modules/posix_spawn_file_actions_init: New file.
7246         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7247         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7248         new module.
7249
7250         New module 'posix_spawn-internal'.
7251         * modules/posix_spawn-internal: New file.
7252         * lib/spawn_int.h: New file, from GNU libc with modifications.
7253         * lib/spawni.c: New file, from GNU libc with modifications.
7254         * m4/posix_spawn.m4: New file.
7255
7256         New module 'spawn'.
7257         * modules/spawn: New file.
7258         * lib/spawn.in.h: New file, from GNU libc with modifications.
7259         * m4/spawn_h.m4: New file.
7260         * doc/posix-headers/spawn.texi: Mention the new module.
7261
7262 2008-09-28  Bruno Haible  <bruno@clisp.org>
7263
7264         * modules/sched-tests: New file.
7265         * tests/test-sched.c: New file.
7266
7267         New module 'sched'.
7268         * modules/sched: New file.
7269         * lib/sched.in.h: New file.
7270         * m4/sched_h.m4: New file.
7271         * doc/posix-headers/sched.texi: Mention the new module.
7272
7273 2008-09-27  Eric Blake  <ebb9@byu.net>
7274
7275         Fix previous patch, and tweak references to $0.
7276         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7277         (func_version, func_gnulib_dir): Don't call this program
7278         gnulib-tool.
7279         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7280         with using $0 in function.
7281         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7282         (func_fatal_error): Reuse the name the user invoked us with.
7283
7284 2008-09-27  Bruno Haible  <bruno@clisp.org>
7285
7286         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7287         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7288         (gl_ICONV_H): Not here.
7289         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7290         instead of assigning ICONV_H directly.
7291
7292         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7294         WCHAR_H directly.
7295
7296 2008-09-27  Bruno Haible  <bruno@clisp.org>
7297
7298         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7299         * modules/arpa_inet (Depends-on): Add link-warning.
7300         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7301         * modules/unistd (Makefile.am): Likewise.
7302
7303 2008-09-26  Bruno Haible  <bruno@clisp.org>
7304
7305         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7306         variables.
7307         (func_version): Essentially copied from gnulib-tool.
7308         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7309         func_readlink): Copied from gnulib-tool.
7310
7311 2008-09-26  Bruno Haible  <bruno@clisp.org>
7312
7313         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7314         invoking git-version-gen.
7315
7316 2008-09-26  Bruno Haible  <bruno@clisp.org>
7317
7318         * posix-modules: Update to directory names changed on 2008-01-19.
7319         Remove commas in output before splitting into words. No more need to
7320         avoid 'ftruncate' since 2007-02-19.
7321
7322 2008-09-26  Bruno Haible  <bruno@clisp.org>
7323
7324         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7325
7326 2008-09-26  Bruno Haible  <bruno@clisp.org>
7327
7328         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7329         * modules/fwriteerror (Depends-on): Add errno.
7330
7331 2008-09-26  Bruno Haible  <bruno@clisp.org>
7332
7333         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7334         * tests/test-vc-list-files-cvs.sh: Likewise.
7335
7336 2008-09-26  Bruno Haible  <bruno@clisp.org>
7337
7338         * doc/posix-headers/sys_resource.texi: Reorder items.
7339
7340 2008-09-26  Jim Meyering  <meyering@redhat.com>
7341
7342         fts: tweak inode comparison function
7343         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7344         inode numbers, as documented.
7345
7346         fts: sort dirent entries on inode number before traversing
7347         This avoids a quadratic, seek-related performance penalty when
7348         operating on a directory containing many entries (measurable at 10k;
7349         3.5 hours at 2 million entries with a cold cache) on certain types
7350         of file systems, including ext3 and ext4, but not tmpfs.
7351         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7352         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7353         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7354         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7355         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7356         (fts_build): Set the stat.st_ino member from D_INO.
7357         If it is likely to be useful, sort dirent entries on inode number.
7358
7359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7360         and the struct statfs.f_type member.
7361         * modules/fts (Depends-on): Add d-ino.
7362
7363 2008-09-26  Bruno Haible  <bruno@clisp.org>
7364
7365         * modules/sigpipe-die (Depends-on): Add sigpipe.
7366
7367         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7368         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7369         and GNULIB_STDIO_H_SIGPIPE are set.
7370         * lib/stdio-write.c: New file.
7371         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7372         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7373         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7374         REPLACE_STDIO_WRITE_FUNCS.
7375         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7376         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7377         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7378         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7379         * modules/stdio (Files): Add lib/stdio-write.c.
7380         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7381         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7382         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7383         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7384         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7385         REPLACE_FPRINTF_POSIX.
7386         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7387         REPLACE_PRINTF_POSIX.
7388         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7389         REPLACE_VFPRINTF_POSIX.
7390         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7391         REPLACE_VPRINTF_POSIX.
7392         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7393         SIGPIPE issue.
7394         * doc/posix-functions/fputc.texi: Likewise.
7395         * doc/posix-functions/fputs.texi: Likewise.
7396         * doc/posix-functions/fwrite.texi: Likewise.
7397         * doc/posix-functions/printf.texi: Likewise.
7398         * doc/posix-functions/putc.texi: Likewise.
7399         * doc/posix-functions/putchar.texi: Likewise.
7400         * doc/posix-functions/puts.texi: Likewise.
7401         * doc/posix-functions/vfprintf.texi: Likewise.
7402         * doc/posix-functions/vprintf.texi: Likewise.
7403
7404         * modules/safe-write (Depends-on): Add write.
7405
7406         * modules/sigpipe-tests: New file.
7407         * tests/test-sigpipe.c: New file.
7408         * tests/test-sigpipe.sh: New file.
7409
7410         * modules/write: New file.
7411         * lib/unistd.in.h: Include <sys/types.h>.
7412         (write): New declaration.
7413         * lib/write.c: New file.
7414         * m4/write.m4: New file.
7415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7416         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7417         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7418         GNULIB_WRITE, REPLACE_WRITE.
7419         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7420         and the SIGPIPE issue.
7421
7422         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7423         (raise): New declaration.
7424         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7425         (ext_signal): New function.
7426         (rpl_raise): New function.
7427         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7428         GNULIB_SIGNAL_H_SIGPIPE.
7429         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7430         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7431
7432         * modules/sigpipe: New file.
7433         * m4/sigpipe.m4: New file.
7434
7435 2008-09-25  Derek Price  <derek@ximbiot.com>
7436             Bruno Haible  <bruno@clisp.org>
7437
7438         * gnulib-tool (func_import): Report all license incompatibilities, not
7439         just the first one.
7440
7441 2008-09-25  Bruno Haible  <bruno@clisp.org>
7442
7443         * gnulib-tool (func_import): When computing the edits, consider not
7444         only the Makefile.ams that exist but also those that will be generated.
7445
7446 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7447
7448         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7449         fixes gnulib-tool --test warning about duplicate dependency.
7450
7451 2008-09-25  Bruno Haible  <bruno@clisp.org>
7452
7453         * gnulib-tool: Don't ask the user to perform edits in the generated
7454         Makefile.ams.
7455         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7456         apply to the Makefile.am being generated.
7457         (func_emit_tests_Makefile_am): Execute edits that apply to the
7458         Makefile.am being generated.
7459         (func_import): Setup list of Makefile.am edits before emitting the
7460         Makefile.ams, not at the end.
7461         (func_create_testdir): Update.
7462         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7463
7464 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7465
7466         * gnulib-tool (func_import): Store the --tests-base option in the
7467         comment in gnulib-cache.m4.
7468
7469 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7470
7471         * NEWS: Document increased portability that sys_select now provides.
7472
7473         * lib/sys_select.in.h: Install select wrapper.
7474         * lib/sys_socket.in.h: Use more descriptive name when there is no
7475         select wrapper.
7476         * lib/winsock-select.c: New.
7477         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7478         Require gl_HEADER_SYS_SOCKET.
7479         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7480         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7481         * tests/test-sys_select.c: Add functional tests.
7482
7483 2008-09-24  Eric Blake  <ebb9@byu.net>
7484
7485         open, fopen: close fd leak in last patch
7486         * lib/open.c (rpl_open): Close fd before returning error.
7487         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7488         * doc/posix-functions/open.texi (open): Document that Irix also
7489         has the bug.
7490         * doc/posix-functions/fopen.texi (fopen): Likewise.
7491         Reported by Paolo Bonzini.
7492
7493 2008-09-24  Bruno Haible  <bruno@clisp.org>
7494
7495         Ensure that a filename ending in a slash cannot be used to access a
7496         non-directory.
7497         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7498         to check whether it's really a directory.
7499         * lib/fopen.c: Include fcntl.h, unistd.h.
7500         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7501         and fdopen().
7502         * modules/fopen (Depends-on): Add unistd.
7503         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7504         * tests/test-fopen.c (main): Likewise.
7505         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7506         * doc/posix-functions/fopen.texi: Likewise.
7507         Reported by Eric Blake.
7508
7509 2008-09-23  Eric Blake  <ebb9@byu.net>
7510
7511         c-stack: avoid compiler optimizations when provoking overflow
7512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7513         recursion harder to optimize, to ensure a stack overflow occurs.
7514         * tests/test-c-stack.c (recurse): Likewise.
7515         Borrowed from libsigsegv.
7516
7517         c-stack: work around Irix sigaltstack bug
7518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7519         whether sigaltstack uses wrong end of stack_t (copied in part from
7520         libsigsegv).
7521         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7522         Irix bug, without requiring an over-allocation.
7523         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7524         bug.
7525
7526         fopen: document mingw bug on directories
7527         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7528         not allowing a stream visiting a directory, even though reading
7529         from such a stream is not portable.
7530
7531 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7532
7533         * lib/poll.c: Rewrite.
7534         * modules/poll: Depend on alloca.
7535
7536 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7537
7538         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7539         instead define prototypes for a full set of wrappers.  Ensure
7540         that Cygwin does not use the compatibility code, which is only
7541         for MinGW.
7542         * lib/winsock.c: New.
7543         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7544         * modules/sys_socket: Add lib/winsock.c.
7545
7546         * modules/poll-tests: Add errno and perror.
7547         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7548
7549 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7550
7551         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7552
7553 2008-09-23  Bruno Haible  <bruno@clisp.org>
7554
7555         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7556         * doc/glibc-functions/*: Likewise.
7557
7558 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7559
7560         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7561         success.
7562
7563 2008-09-22  Eric Blake  <ebb9@byu.net>
7564             Bruno Haible  <bruno@clisp.org>
7565
7566         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7567         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7568         supply %A but mishandle pseudo-NaN.
7569         Reported by Simon Josefsson.
7570
7571 2008-09-21  Bruno Haible  <bruno@clisp.org>
7572
7573         * tests/test-lock.c (main): Tweak skip message.
7574         * tests/test-tls.c (main): Likewise.
7575
7576 2008-09-21  Bruno Haible  <bruno@clisp.org>
7577
7578         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7579         whether 'struct sigaction' has sa_sigaction here...
7580         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7581         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7582
7583 2008-09-21  Bruno Haible  <bruno@clisp.org>
7584
7585         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7586         section.
7587         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7588         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7589         the new section.
7590         (Support for obsolete systems lacking POSIX:2001): New section.
7591         (String handling <string.h>): Move strdup to the new section.
7592         Suggested by Simon Josefsson and Paolo Bonzini.
7593
7594 2008-09-21  Bruno Haible  <bruno@clisp.org>
7595
7596         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7597         exponents in %e and %g results on 'long double'. Needed for mingw's
7598         improved *printf functions.
7599         * tests/test-vasprintf-posix.c (test_function): Likewise.
7600         * tests/test-snprintf-posix.h (test_function): Likewise.
7601         * tests/test-sprintf-posix.h (test_function): Likewise.
7602         Reported by Eric Blake.
7603
7604 2008-09-21  Bruno Haible  <bruno@clisp.org>
7605
7606         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7607         * tests/test-sprintf-posix.h (test_function): Likewise.
7608
7609 2008-09-21  Bruno Haible  <bruno@clisp.org>
7610
7611         * modules/getpass (Depends-on): Add strdup-posix.
7612
7613         New module 'strdup-posix'.
7614         * modules/strdup-posix: New file.
7615         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7616         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7618         REPLACE_STRDUP.
7619         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7620         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7622         strdup-posix.
7623
7624         * modules/strdup (Depends-on): Remove malloc-posix.
7625
7626 2008-09-20  Bruno Haible  <bruno@clisp.org>
7627
7628         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7629         Wildenhues.
7630
7631 2008-09-20  Bruno Haible  <bruno@clisp.org>
7632
7633         Ensure that wint_t gets defined on IRIX 5.3.
7634         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7635         * lib/wctype.in.h (wint_t): Likewise.
7636         (__wctype_wint_t): Remove type.
7637         (isw*): Use wint_t instead of __wctype_wint_t.
7638         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7639         * modules/wchar (Files): Add m4/wint_t.m4.
7640         (Makefile.am): Substitute HAVE_WINT_T.
7641         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7642         * tests/test-wctype.c: Check that wint_t is defined.
7643         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7644         * doc/posix-headers/wctype.texi: Likewise.
7645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7646
7647 2008-09-18  Bruno Haible  <bruno@clisp.org>
7648
7649         * gnulib-tool (func_exit): Update comment.
7650
7651 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7652
7653         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7654         assumes strdup exists and does not depend on strdup to return
7655         ENOMEM on out of memory conditions.
7656
7657 2008-09-18  Bruno Haible  <bruno@clisp.org>
7658
7659         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7660         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7661         digits for the exponent.
7662
7663 2008-09-18  Jim Meyering  <meyering@redhat.com>
7664             Bruno Haible  <bruno@clisp.org>
7665
7666         * lib/vasnprintf.c (decimal_point_char): Define also if
7667         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7668
7669 2008-09-16  Bruno Haible  <bruno@clisp.org>
7670         and Eric Blake  <ebb9@byu.net>
7671
7672         vasnprintf: support Irix 5.3
7673         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7674         that mishandle long double infinity.
7675         Reported by Tom G. Christensen.
7676
7677 2008-09-16  Bruno Haible  <bruno@clisp.org>
7678
7679         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7680         Solaris 9.
7681         * doc/glibc-functions/alphasort.texi: Likewise.
7682         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7683
7684 2008-09-16  Jim Meyering  <meyering@redhat.com>
7685
7686         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7687         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7688         a umask modification leak out of a subshell.  Otherwise, the
7689         opensolaris /bin/sh would be accepted and thus cause unwarranted
7690         failures in the coreutils test suite.
7691
7692 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7693
7694         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7695         to succeed.
7696
7697 2008-09-16  Jim Meyering  <meyering@redhat.com>
7698
7699         avoid spurious test failure when library is built without ACL support
7700         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7701         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7702         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7703         * tests/test-copy-acl.sh: Likewise.
7704
7705 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7706
7707         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7708         based on character occurrence counts.
7709
7710 2008-09-15  Eric Blake  <ebb9@byu.net>
7711
7712         tests: avoid some compiler warnings
7713         * tests/test-memchr.c (main): Pass NULL indirectly.
7714         * tests/test-closein.c (main): Avoid unused variable.
7715
7716 2008-09-15  Bruno Haible  <bruno@clisp.org>
7717
7718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7719         are missing on OpenBSD 4.0 individually.
7720         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7721
7722 2008-09-15  Bruno Haible  <bruno@clisp.org>
7723
7724         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7725         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7726         * doc/posix-functions/perror.texi: Likewise.
7727         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7728         is missing.
7729         Reported by Eric Blake.
7730
7731         * lib/errno.in.h: Use replacement values >= 2000.
7732         Reported by Eric Blake.
7733
7734 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7735
7736         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7737         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7738         limit.
7739         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7740         compareseq was aborted.
7741
7742 2008-09-14  Bruno Haible  <bruno@clisp.org>
7743
7744         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7745         yvec_edit_count.
7746         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7747         (fstrcmp_bounded): Simplify result computation accordingly.
7748
7749 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7750
7751         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7752         (fstrcmp): Define in terms of fstrcmp_bounded.
7753         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7754         lower_bound argument.
7755         Return quickly if the result is certainly < lower_bound.
7756         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7757
7758 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7759
7760         * lib/diffseq.h (EARLY_ABORT): New macro.
7761         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7762         evaluates to true.
7763
7764 2008-09-14  Bruno Haible  <bruno@clisp.org>
7765
7766         * modules/perror-tests: New file.
7767         * tests/test-perror.sh: New file.
7768         * tests/test-perror.c: New file.
7769
7770         New module 'perror'.
7771         * lib/stdio.in.h (perror): New declaration.
7772         * lib/perror.c: New file.
7773         * m4/perror.m4: New file.
7774         * modules/perror: New file.
7775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7776         * doc/posix-functions/perror.texi: Mention the perror module.
7777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7778         REPLACE_PERROR.
7779         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7780         REPLACE_PERROR.
7781
7782 2008-09-14  Bruno Haible  <bruno@clisp.org>
7783
7784         * modules/stdio (Makefile.am): Reorder to match the order in
7785         lib/stdio.in.h.
7786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7787
7788 2008-09-13  Bruno Haible  <bruno@clisp.org>
7789
7790         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7791
7792 2008-09-13  Bruno Haible  <bruno@clisp.org>
7793
7794         Extend strerror to cover the added errno values.
7795         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7796         (rpl_strerror): Provide error messages for the added errno values and
7797         for the WSA* values.
7798         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7799         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7800         strerror.
7801         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7802         * modules/strerror (Depends-on): Add errno.
7803         * doc/posix-functions/strerror.texi: Document the change.
7804         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7805         and EOVERFLOW.
7806
7807 2008-09-13  Bruno Haible  <bruno@clisp.org>
7808
7809         * modules/EOVERFLOW: Remove file.
7810         * m4/eoverflow.m4: Remove file.
7811         * modules/EOVERFLOW-tests: Remove file.
7812         * tests/test-EOVERFLOW.c: Remove file.
7813         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7814         * modules/ftell (Depends-on): Likewise.
7815         * modules/getdelim (Depends-on): Likewise.
7816         * modules/getugroups (Depends-on): Likewise.
7817         * modules/poll (Depends-on): Likewise.
7818         * modules/snprintf (Depends-on): Likewise.
7819         * modules/sprintf-posix (Depends-on): Likewise.
7820         * modules/vasnprintf (Depends-on): Likewise.
7821         * modules/vasprintf (Depends-on): Likewise.
7822         * modules/vfprintf-posix (Depends-on): Likewise.
7823         * modules/vsnprintf (Depends-on): Likewise.
7824         * modules/vsprintf-posix (Depends-on): Likewise.
7825         * modules/xvasprintf (Depends-on): Likewise.
7826         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7827         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7828         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7829         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7830         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7831         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7832         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7833         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7835         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7836         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7837         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7838         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7839         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7840         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7841         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7842         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7843         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7844         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7845         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7846         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7847         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7848         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7849         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7850         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7851         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7852         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7853         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7854         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7855         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7856         * MODULES.html.sh: Remove EOVERFLOW.
7857         * NEWS: Mention the change.
7858
7859 2008-09-13  Bruno Haible  <bruno@clisp.org>
7860
7861         * modules/errno-tests: New file.
7862         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7863
7864         * lib/errno.in.h: New file.
7865         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7866         * modules/errno: New file.
7867         * doc/posix-headers/errno.texi: Update documentation.
7868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7869
7870 2008-09-13  Bruno Haible  <bruno@clisp.org>
7871
7872         * tests/test-poll.c: Use #if for native Windows, rather than testing
7873         __MSVCRT__.
7874
7875 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7876             Bruno Haible  <bruno@clisp.org>
7877
7878         * lib/glob.c: Don't include <pwd.h> on native Windows.
7879         (WINDOWS32): New macro.
7880         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7881
7882 2008-09-13  Bruno Haible  <bruno@clisp.org>
7883
7884         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7885         (ETIMEDOUT): Remove macro.
7886         (glthread_cond_timedwait_multithreaded): New declaration.
7887         (glthread_cond_timedwait): Use it.
7888         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7889         (glthread_cond_timedwait_multithreaded): New function.
7890
7891 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7892
7893         * modules/poll-tests: Do not check for io.h.
7894         * tests/test-poll.c: Check for __MSVCRT__ instead.
7895
7896 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7897
7898         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7899         * modules/poll-tests: Add inet_pton, stdbool, sockets.
7900         * tests/test-poll.c: Use them.  Use _pipe on Windows.
7901
7902 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7903
7904         * modules/poll-tests: New.
7905         * tests/test-poll.c: New.
7906
7907 2008-09-12  Eric Blake  <ebb9@byu.net>
7908
7909         frexp: test for NetBSD failure on -0.0
7910         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7911         not all, bugs from NetBSD 3.0 have been fixed.
7912         * doc/posix-functions/frexp.texi (frexp): Document bug.
7913         Reported by Thomas Klausner.
7914
7915         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7916         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7917         literal -0.0.
7918         Reported by Jonathan C. Patschke <jp@centtech.com>.
7919
7920 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7921
7922         * lib/glthread/cond.h: Use dummy implementation also if
7923         USE_WIN32_THREADS.
7924
7925 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7926
7927         * modules/fnmatch-posix (License): Change to LGPLv2+.
7928         * modules/fnmatch-gnu (License): Likewise.
7929
7930 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7931
7932         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7933
7934 2008-09-11  Jim Meyering  <meyering@redhat.com>
7935
7936         * users.txt: Add gtk-vnc.
7937
7938 2008-09-08  Simon Josefsson  <simon@josefsson.org>
7939
7940         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7941         rotate amounts.
7942
7943         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7944         required for 16-bit and 8-bit rotates.
7945         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7946         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7947         UINT8_MAX instead of hard-coded constants.
7948         Suggested by Paul Eggert.
7949
7950 2008-09-07  Bruno Haible  <bruno@clisp.org>
7951
7952         * tests/test-striconveh.c (main): Check behaviour when converting from
7953         UTF-7.
7954
7955         Make striconveh work better with stateful encodings.
7956         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7957         that iconv does not increment the inptr when returning -1/EINVAL.
7958
7959 2008-09-07  Bruno Haible  <bruno@clisp.org>
7960
7961         * build-aux/config.rpath: Update according to libtool-2.2.6.
7962         * build-aux/config.libpath: Likewise.
7963
7964 2008-09-06  Bruno Haible  <bruno@clisp.org>
7965
7966         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7967         * lib/freadptr.c (freadptr): Likewise.
7968         * lib/freadseek.c (freadptrinc): Likewise.
7969         Reported by Simon Josefsson.
7970
7971 2008-09-06  Bruno Haible  <bruno@clisp.org>
7972
7973         * modules/freadptr (License): Change to LGPLv2+.
7974         * modules/freadseek (License): Likewise.
7975         Suggested by Eric Blake.
7976
7977         * modules/memchr2 (License): Change to LGPLv2+.
7978         Approved by Eric Blake.
7979
7980 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7981             Bruno Haible  <bruno@clisp.org>
7982
7983         Make gnulib-tool work with native 'sed' on AIX.
7984         * gnulib-tool (sed_noop): New variable.
7985         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7986         func_add_or_update, func_create_testdir): Use it to initialize sed
7987         script variables.
7988         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7989
7990 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
7991             Bruno Haible  <bruno@clisp.org>
7992
7993         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7994         also works after #include directives.
7995
7996 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
7997
7998         getdate.y: reject an out-of-range timezone value
7999         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
8000         the range [-24...+24].  When specified with only one or two digits,
8001         * tests/test-getdate.c: Tests for the fix.
8002         * doc/getdate.texi: Document this change.
8003
8004 2008-09-03  Bruno Haible  <bruno@clisp.org>
8005
8006         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
8007
8008 2008-09-02  Simon Josefsson  <simon@josefsson.org>
8009
8010         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
8011         <bruce.korb@gmail.com> with ideas from Ben Pfaff
8012         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
8013         Blake <ebb9@byu.net>.
8014
8015         * tests/test-bitrotate.c: Add more test vectors.
8016
8017 2008-09-02  Eric Blake  <ebb9@byu.net>
8018
8019         vasnprintf-posix: handle large precision via %.*d
8020         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
8021         when handling it ourselves.
8022         * tests/test-vasnprintf-posix.c (test_function): Add test.
8023         * tests/test-snprintf-posix.h (test_function): Likewise.
8024         * tests/test-sprintf-posix.h (test_function): Likewise.
8025         * tests/test-vasprintf-posix.c (test_function): Likewise.
8026         Reported by Alain Guibert.
8027
8028 2008-09-01  Eric Blake  <ebb9@byu.net>
8029
8030         c-stack: make configure-time check more robust
8031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
8032         successful sigaction call.
8033         Reported by Tom G. Christensen.
8034
8035 2008-09-01  Bruno Haible  <bruno@clisp.org>
8036
8037         New module 'findprog-lgpl'.
8038         * modules/findprog-lgpl: New file.
8039         * lib/findprog-lgpl.c: New file.
8040         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
8041         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
8042         to decide whether to use strdup or xstrdup, concatenated_filename or
8043         xconcatenated_filename.
8044
8045 2008-09-01  Bruno Haible  <bruno@clisp.org>
8046
8047         Split module 'concat-filename' into 'concat-filename' (LGPL) and
8048         'xconcat-filename' (GPL).
8049         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
8050         (License): Change to LGPLv2+.
8051         * modules/xconcat-filename: New file.
8052         * lib/concat-filename.h (concatenated_filename): Change specification.
8053         (xconcatenated_filename): New declaration.
8054         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
8055         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
8056         memory situations.
8057         * lib/xconcat-filename.c: New file.
8058         * NEWS: Mention the change.
8059         * lib/findprog.c: Include concat-filename.h, not filename.h.
8060         (find_in_path): Use xconcatenated_filename instead of
8061         concatenated_filename.
8062         * lib/javacomp.c: Include concat-filename.h, not filename.h.
8063         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8064         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8065         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8066         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
8067         instead of concatenated_filename.
8068         * lib/javaexec.c: Include concat-filename.h, not filename.h.
8069         (execute_java_class): Use xconcatenated_filename instead of
8070         concatenated_filename.
8071         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
8072         * modules/javacomp (Depends-on): Likewise.
8073         * modules/javaexec (Depends-on): Likewise.
8074
8075 2008-09-01  Bruno Haible  <bruno@clisp.org>
8076
8077         Split module 'filename' into 'filename' and 'concat-filename'.
8078         * modules/filename: Keep only lib/filename.h.
8079         (License): Change to LGPLv2+.
8080         * modules/concat-filename: New file, extracted from modules/filename.
8081         * lib/filename.h (concatenated_filename): Remove declaration.
8082         * lib/concat-filename.h: New file, extracted from lib/filename.h.
8083         * lib/concat-filename.c: Include concat-filename.h.
8084         * NEWS: Mention the change.
8085
8086 2008-09-01  Simon Josefsson  <simon@josefsson.org>
8087
8088         * lib/bitrotate.h (rotl8, rotr8): Add.
8089
8090         * modules/bitrotate (configure.ac): Need
8091         AC_REQUIRE([AC_C_INLINE]).
8092         (Description): Mention stdint.h.  Reported by Bruno Haible
8093         <bruno@clisp.org>.
8094
8095         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
8096         Paolo Bonzini <bonzini@gnu.org>.
8097
8098 2008-08-31  Bruno Haible  <bruno@clisp.org>
8099
8100         Assume Solaris specific bi-arch conventions on Solaris systems.
8101         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
8102         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
8103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
8104         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
8105         like acl_libdirstem.
8106         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
8107         acl_libdirstem.
8108         * NEWS: Mention the change.
8109         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
8110
8111 2008-08-31  Jim Meyering  <meyering@redhat.com>
8112
8113         * lib/strftime.h: Add comments describing the two added arguments.
8114
8115         remove duplicate #include directives
8116         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
8117         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
8118
8119 2008-08-31  Bruno Haible  <bruno@clisp.org>
8120
8121         New module 'sigpipe-die'.
8122         * modules/sigpipe-die: New file.
8123         * lib/sigpipe-die.h: New file.
8124         * lib/sigpipe-die.c: New file.
8125         * MODULES.html.sh (Signal handling): Add sigpipe-die.
8126
8127 2008-08-31  Bruno Haible  <bruno@clisp.org>
8128
8129         Don't override previously installed signal handlers.
8130         * lib/fatal-signal.c (saved_sigactions): New variable.
8131         (uninstall_handlers): Reset the signal to the saved handler, not
8132         to SIG_DFL (except when ignored).
8133         (install_handlers): Save the previous handlers.
8134
8135 2008-08-30  Bruno Haible  <bruno@clisp.org>
8136
8137         * gnulib-tool (func_reset_sigpipe): New function.
8138         (func_get_automake_snippet, func_modules_transitive_closure,
8139         func_import): Invoke it before a join command that reads from stdin,
8140         to avoid "echo: write error: Broken pipe" error messages on stderr.
8141         Reported by Sam Steingold <sds@gnu.org>.
8142
8143 2008-08-30  Bruno Haible  <bruno@clisp.org>
8144
8145         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
8146         Code copied from m4/open.m4.
8147         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
8148         access and the filename ends in a slash. Code copied from lib/open.c.
8149         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8150         * tests/test-fopen.c (main): Check against bug with trailing slash.
8151
8152 2008-08-29  Bruno Haible  <bruno@clisp.org>
8153
8154         Avoid some "gcc -pedantic" warnings.
8155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8156         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8157         * lib/dirent.in.h: Likewise.
8158         * lib/fcntl.in.h: Likewise.
8159         * lib/float.in.h: Likewise.
8160         * lib/iconv.in.h: Likewise.
8161         * lib/inttypes.in.h: Likewise.
8162         * lib/locale.in.h: Likewise.
8163         * lib/math.in.h: Likewise.
8164         * lib/netinet_in.in.h: Likewise.
8165         * lib/search.in.h: Likewise.
8166         * lib/signal.in.h: Likewise.
8167         * lib/stdarg.in.h: Likewise.
8168         * lib/stdint.in.h: Likewise.
8169         * lib/stdio.in.h: Likewise.
8170         * lib/stdlib.in.h: Likewise.
8171         * lib/string.in.h: Likewise.
8172         * lib/strings.in.h: Likewise.
8173         * lib/sys_select.in.h: Likewise.
8174         * lib/sys_socket.in.h: Likewise.
8175         * lib/sys_stat.in.h: Likewise.
8176         * lib/sys_time.in.h: Likewise.
8177         * lib/sysexits.in.h: Likewise.
8178         * lib/time.in.h: Likewise.
8179         * lib/unistd.in.h: Likewise.
8180         * lib/wchar.in.h: Likewise.
8181         * lib/wctype.in.h: Likewise.
8182         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8183         * modules/fchdir (Makefile.am): Likewise.
8184         * modules/fcntl (Makefile.am): Likewise.
8185         * modules/float (Makefile.am): Likewise.
8186         * modules/iconv_open (Makefile.am): Likewise.
8187         * modules/inttypes (Makefile.am): Likewise.
8188         * modules/locale (Makefile.am): Likewise.
8189         * modules/math (Makefile.am): Likewise.
8190         * modules/netinet_in (Makefile.am): Likewise.
8191         * modules/search (Makefile.am): Likewise.
8192         * modules/signal (Makefile.am): Likewise.
8193         * modules/stdarg (Makefile.am): Likewise.
8194         * modules/stdint (Makefile.am): Likewise.
8195         * modules/stdio (Makefile.am): Likewise.
8196         * modules/stdlib (Makefile.am): Likewise.
8197         * modules/string (Makefile.am): Likewise.
8198         * modules/strings (Makefile.am): Likewise.
8199         * modules/sys_select (Makefile.am): Likewise.
8200         * modules/sys_socket (Makefile.am): Likewise.
8201         * modules/sys_stat (Makefile.am): Likewise.
8202         * modules/sys_time (Makefile.am): Likewise.
8203         * modules/sysexits (Makefile.am): Likewise.
8204         * modules/time (Makefile.am): Likewise.
8205         * modules/unistd (Makefile.am): Likewise.
8206         * modules/wchar (Makefile.am): Likewise.
8207         * modules/wctype (Makefile.am): Likewise.
8208         Reported by Reuben Thomas <rrt@sc3d.org>.
8209
8210 2008-08-29  Bruno Haible  <bruno@clisp.org>
8211
8212         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8213         any more.
8214
8215 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8216
8217         * MODULES.html.sh (Misc): Add bitrotate.
8218
8219         * modules/bitrotate: New file.
8220
8221         * lib/bitrotate.h: New file.
8222
8223         * modules/bitrotate-tests: New file.
8224
8225         * tests/test-bitrotate.c: New file.
8226
8227         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8228         on the bitrotate module.
8229
8230         * lib/arctwo.c: Use new bitrotate module.
8231
8232 2008-08-29  Jim Meyering  <meyering@redhat.com>
8233
8234         bootstrap: merge changes from coreutils
8235         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8236         of copied files.  Remove a kludge, now that this is fixed.
8237         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8238         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8239         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8240
8241 2008-08-29  Bruno Haible  <bruno@clisp.org>
8242
8243         * MODULES.html.sh: Remove --cvs-urls option.
8244
8245 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
8246
8247         maint.mk: adjust to file name change
8248         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8249
8250 2008-08-28  Jim Meyering  <meyering@redhat.com>
8251
8252         * modules/getndelim2 (License): Relicense to LGPLv2+.
8253         Approved by Richard Stallman for the version of 1995, and by
8254         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8255
8256 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8257
8258         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8259         dummy if one is not available.  Do not touch them if
8260         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8261         (getc_maybe_unlocked): New.
8262         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8263
8264 2008-08-26  Eric Blake  <ebb9@byu.net>
8265
8266         doc/INSTALL: resync from autoconf
8267         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8268         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8269         moving...
8270         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8271         * INSTALL: Regenerate.
8272         * INSTALL.ISO: New file.
8273         * INSTALL.UTF-8: Likewise.
8274
8275 2008-08-26  Jim Meyering  <meyering@redhat.com>
8276
8277         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8278         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8279         these definitions conditional, so that they may be overridden, too.
8280
8281 2008-08-26  Bruno Haible  <bruno@clisp.org>
8282
8283         Generate INSTALL file variants with prettier quotes.
8284         * doc/Makefile (INSTALL_PRELUDE): New macro.
8285         (INSTALL): Use it.
8286         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8287
8288 2008-08-26  Bruno Haible  <bruno@clisp.org>
8289
8290         Run makeinfo in an English locale.
8291         * doc/Makefile (MAKEINFO): New variable.
8292
8293 2008-08-26  Bruno Haible  <bruno@clisp.org>
8294
8295         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8296         Suggested by Eric Blake.
8297
8298 2008-08-25  Bruno Haible  <bruno@clisp.org>
8299
8300         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8301
8302 2008-08-25  Eric Blake  <ebb9@byu.net>
8303
8304         c-stack: test that stack overflow can be caught
8305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8306         that platform allows handling stack overflow; at least OS/2 EMX
8307         has sigaltstack, but crashes before transferring control to
8308         handler on stack overflow.
8309         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8310         check for HAVE_STACK_OVERFLOW_HANDLING.
8311         Reported by Elbert Pol.
8312
8313 2008-08-25  Bruno Haible  <bruno@clisp.org>
8314
8315         * doc/posix-functions/strftime.texi: Fix description of strftime
8316         module.
8317
8318 2008-08-24  Bruno Haible  <bruno@clisp.org>
8319
8320         * tests/uniwidth/test-uc_width2.c: New file.
8321         * tests/uniwidth/test-uc_width2.sh: New file.
8322         * modules/uniwidth/width-tests (Files): Add the new files.
8323         (TESTS): Add uniwidth/test-uc_width2.sh.
8324         (TESTS_ENVIRONMENT): New variable.
8325         (check_PROGRAMS): Add test-uc_width2.
8326         (test_uc_width2_SOURCES): New variable.
8327
8328         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8329         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8330         not 0x00AB.
8331         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8332
8333 2008-08-22  Eric Blake  <ebb9@byu.net>
8334
8335         test-lock, test-tls: mention why a test is skipped
8336         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8337         skipped.
8338         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8339
8340         count-one-bits: relax license
8341         * modules/count-one-bits (License): Relicense to LGPLv2+.
8342         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8343
8344 2008-08-22  Andreas Schwab  <schwab@suse.de>
8345
8346         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8347         Remove spurious space in assignment.
8348
8349 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8350
8351         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8352         Paul Eggert <eggert@CS.UCLA.EDU>.
8353
8354 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8355
8356         * modules/gettext: Add m4/threadlib.m4.
8357
8358 2008-08-19  Eric Blake  <ebb9@byu.net>
8359
8360         test-c-stack: fix compilation failure on FreeBSD 5.0
8361         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8362         headers before <sys/resource.h>.
8363         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8364         the bug.
8365         Reported by Nelson H. F. Beebe.
8366
8367         strverscmp: migrate from "strverscmp.h" to <string.h>
8368         * modules/string (Makefile.am): Add new hooks.
8369         * modules/strverscmp (Files): Remove strverscmp.h.
8370         (Depends-on): Add string.
8371         (configure.ac): Add indicator.
8372         (Include): Mention new header.
8373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8374         defaults.
8375         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8376         results.
8377         * lib/strverscmp.h: Delete.
8378         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8379         * tests/test-strverscmp.c (includes): Adjust client.
8380         * lib/check-version.c (includes): Likewise.
8381         * NEWS: Document the change.
8382
8383         strverscmp: add unit test
8384         * modules/strverscmp-tests: New file.
8385         * tests/test-strverscmp.c: Likewise.
8386
8387 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8388
8389         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8390         regarding Windows crypto stuff, from Mono.
8391
8392 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8393
8394         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8395         if present, for intel RND.  Return error on failures.
8396
8397 2008-08-18  Ben Pfaff  <blp@gnu.org>
8398
8399         gitlog-to-changelog: give better diagnostic for failed pipe-open
8400         * build-aux/gitlog-to-changelog: Improve error message: suggest
8401         that the version of Git may be too old.
8402
8403 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8404
8405         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8406         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8407
8408 2008-08-18  Bruno Haible  <bruno@clisp.org>
8409
8410         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8411         pthread_in_use().
8412
8413 2008-08-18  Bruno Haible  <bruno@clisp.org>
8414
8415         * lib/glthread/threadlib.c: Include <pthread.h>.
8416
8417 2008-08-18  Bruno Haible  <bruno@clisp.org>
8418
8419         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8420         glthread_recursive_lock_* macros.
8421         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8422         Fix syntax error.
8423
8424 2008-08-18  Bruno Haible  <bruno@clisp.org>
8425
8426         * lib/glthread/thread.c: Avoid forcing a context switch right after
8427         thread creation.
8428
8429 2008-08-17  Bruno Haible  <bruno@clisp.org>
8430
8431         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8432         * lib/glthread/thread.h: Provide Win32 specific implementation.
8433         * modules/thread (Files): Add lib/glthread/thread.c.
8434         (Depends-on): Add lock.
8435         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8436
8437 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8438
8439         New module 'yield'.
8440         * modules/yield: New file.
8441         * lib/glthread/yield.h: New file.
8442         * m4/yield.m4: New file.
8443         * MODULES.html.sh (Multithreading): Add yield.
8444
8445 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8446
8447         New module 'thread'.
8448         * modules/thread: New file.
8449         * lib/glthread/thread.h: New file.
8450         * m4/thread.m4: New file.
8451         * MODULES.html.sh (Multithreading): Add thread.
8452
8453 2008-08-17  Bruno Haible  <bruno@clisp.org>
8454
8455         * lib/glthread/lock.h: Include <stdlib.h> always.
8456         * lib/glthread/tls.h: Likewise.
8457         * lib/glthread/cond.h: Likewise.
8458
8459 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8460
8461         New module 'cond'.
8462         * modules/cond: New file.
8463         * lib/glthread/cond.h: New file.
8464         * lib/glthread/cond.c: New file.
8465         * m4/cond.m4: New file.
8466         * MODULES.html.sh (Multithreading): Add cond.
8467
8468 2008-08-16  Eric Blake  <ebb9@byu.net>
8469
8470         c-stack: fix regression on Irix 5.3 from 2008-06-21
8471         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8472         sa_sigaction...
8473         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8474         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8476         * modules/signal (Makefile.am): Use the value.
8477         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8478         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8479         * doc/posix-headers/signal.texi (signal.h): Document this
8480         portability issue.
8481         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8482         Reported by Tom G. Christensen.
8483
8484 2008-08-17  Bruno Haible  <bruno@clisp.org>
8485
8486         New module 'threadlib'.
8487         * modules/threadlib: New file.
8488         * lib/glthread/threadlib.c: New file, extracted from
8489         lib/glthread/lock.c.
8490         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8491         functions.
8492         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8493         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8494         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8495         macros.
8496         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8497         (gl_DISABLE_THREADS): Remove macro.
8498         * modules/lock (Files): Remove build-aux/config.rpath.
8499         (Depends-on): Remove havelib. Add threadlib.
8500         (configure.ac-early): Remove section.
8501         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8502         * modules/tls (Depends-on): Remove lock. Add threadlib.
8503         (Link): New section, copied from threadlib.
8504         * MODULES.html.sh (Multithreading): Add threadlib.
8505
8506 2008-08-14  Bruno Haible  <bruno@clisp.org>
8507
8508         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8509         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8510         glthread_rwlock_unlock, glthread_rwlock_destroy,
8511         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8512         glthread_recursive_lock_destroy): Define as macros always.
8513         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8514         glthread_lock_lock.
8515         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8516         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8517         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8518         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8519         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8520         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8521         (glthread_recursive_lock_lock_func): Renamed from
8522         glthread_recursive_lock_lock.
8523         (glthread_recursive_lock_unlock_func): Renamed from
8524         glthread_recursive_lock_unlock.
8525         (glthread_recursive_lock_destroy_func): Renamed from
8526         glthread_recursive_lock_destroy.
8527
8528 2008-08-14  Bruno Haible  <bruno@clisp.org>
8529
8530         * lib/glthread/lock.h: Renamed from lib/lock.h.
8531         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8532         * lib/glthread/tls.h: Renamed from lib/tls.h.
8533         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8534         * lib/fstrcmp.c: Update includes.
8535         * lib/strsignal.c: Update includes.
8536         * modules/lock (Files, Makefile.am): Update.
8537         (Include): Change to "glthread/lock.h".
8538         * modules/tls (Files, Makefile.am): Update.
8539         (Include): Change to "glthread/tls.h".
8540         * tests/test-lock.c: Update includes.
8541         * tests/test-tls.c: Update includes.
8542         * NEWS: Mention the renamed header files.
8543
8544 2008-08-11  Jim Meyering  <meyering@redhat.com>
8545
8546         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8547
8548 2008-08-11  Eric Blake  <ebb9@byu.net>
8549
8550         test-c-stack: avoid C99-ism
8551         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8552         before statement.
8553         Reported by Alain Guibert.
8554
8555 2008-08-10  Jim Meyering  <meyering@redhat.com>
8556
8557         ensure that return value of uinttostr et al are not ignored
8558         * lib/inttostr.h (__GNUC_PREREQ): Define.
8559         (__attribute_warn_unused_result__): Define.
8560         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8561
8562 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8563
8564         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8565         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8566
8567 2008-08-07  Jim Meyering  <meyering@redhat.com>
8568
8569         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8570
8571         * modules/mkstemp (License): Relicense under LGPLv2+.
8572         * modules/tempname (License): Likewise.
8573
8574 2008-08-06  Bruno Haible  <bruno@clisp.org>
8575
8576         * lib/poll.c (poll): Further micro-optimization.
8577
8578 2008-08-06  Jim Meyering  <meyering@redhat.com>
8579
8580         inet_pton.c: use locale-independent tolower
8581         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8582         (inet_pton6): Use c_tolower rather than tolower.
8583         * modules/inet_pton (Depends-on): Add c-ctype.
8584
8585 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8586
8587         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8588         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8589
8590 2008-08-06  Jim Meyering  <meyering@redhat.com>
8591
8592         * modules/inet_pton (License): Relicense under LGPLv2+.
8593
8594 2008-08-03  Bruno Haible  <bruno@clisp.org>
8595
8596         Additional non-aborting API for lock and tls.
8597         * lib/lock.h: Include <errno.h>.
8598         (glthread_lock_init): New macro/function.
8599         (gl_lock_init): Define as wrapper around glthread_lock_init.
8600         (glthread_lock_lock): New macro/function.
8601         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8602         (glthread_lock_unlock): New macro/function.
8603         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8604         (glthread_lock_destroy): New macro/function.
8605         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8606         (glthread_rwlock_init): New macro/function.
8607         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8608         (glthread_rwlock_rdlock): New macro/function.
8609         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8610         (glthread_rwlock_wrlock): New macro/function.
8611         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8612         (glthread_rwlock_unlock): New macro/function.
8613         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8614         (glthread_rwlock_destroy): New macro/function.
8615         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8616         (glthread_recursive_lock_init): New macro/function.
8617         (gl_recursive_lock_init): Define as wrapper around
8618         glthread_recursive_lock_init.
8619         (glthread_recursive_lock_lock): New macro/function.
8620         (gl_recursive_lock_lock): Define as wrapper around
8621         glthread_recursive_lock_lock.
8622         (glthread_recursive_lock_unlock): New macro/function.
8623         (gl_recursive_lock_unlock): Define as wrapper around
8624         glthread_recursive_lock_unlock.
8625         (glthread_recursive_lock_destroy): New macro/function.
8626         (gl_recursive_lock_destroy): Define as wrapper around
8627         glthread_recursive_lock_destroy.
8628         (glthread_once): New macro/function.
8629         (gl_once): Define as wrapper around glthread_once.
8630         Update function declarations.
8631         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8632         glthread_rwlock_init. Return error code.
8633         (glthread_rwlock_rdlock_multithreaded): Renamed from
8634         glthread_rwlock_rdlock. Return error code.
8635         (glthread_rwlock_wrlock_multithreaded): Renamed from
8636         glthread_rwlock_wrlock. Return error code.
8637         (glthread_rwlock_unlock_multithreaded): Renamed from
8638         glthread_rwlock_unlock. Return error code.
8639         (glthread_rwlock_destroy_multithreaded): Renamed from
8640         glthread_rwlock_destroy. Return error code.
8641         (glthread_recursive_lock_init_multithreaded): Renamed from
8642         glthread_recursive_lock_init. Return error code.
8643         (glthread_recursive_lock_lock_multithreaded): Renamed from
8644         glthread_recursive_lock_lock. Return error code.
8645         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8646         glthread_recursive_lock_unlock. Return error code.
8647         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8648         glthread_recursive_lock_destroy. Return error code.
8649         (glthread_once_call): Make static.
8650         (glthread_once_multithreaded): Renamed from glthread_once.
8651         * lib/tls.h: Include <errno.h>.
8652         (glthread_tls_key_init): New macro/function.
8653         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8654         (glthread_tls_set): New macro/function.
8655         (gl_tls_set): Define as wrapper around glthread_tls_set.
8656         (glthread_tls_key_destroy): New macro/function.
8657         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8658         Update function declarations.
8659         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8660         glthread_tls_get.
8661         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8662
8663 2008-08-04  Eric Blake  <ebb9@byu.net>
8664
8665         gnumakefile: use space, not TAB, outside of targets
8666         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8667
8668 2008-08-02  Jim Meyering  <meyering@redhat.com>
8669
8670         getdate.y: avoid locale-dependent date parsing failure
8671         In Turkish locales, getdate would fail to recognize keywords
8672         containing a lowercase "i".  The solution is not to rely on
8673         locale-sensitive case-conversion.
8674         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8675         (lookup_word): Use c_toupper in place of toupper.
8676         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8677         Reported by Vefa Bicakci <bicave@superonline.com> in
8678         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8679         * modules/getdate (Depends-on): Add c-ctype.
8680
8681 2008-08-02  Bruno Haible  <bruno@clisp.org>
8682
8683         * gnulib-tool (func_import): When updating or creating a .gitignore
8684         file, prepend each added line with a slash, and ignore leading slashes
8685         from the existing lines.
8686         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8687
8688 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8689
8690         Portability fix for GNU make 3.79.1.
8691         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8692         versions do not understand.
8693
8694 2008-08-01  Bruno Haible  <bruno@clisp.org>
8695
8696         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8697         * tests/test-isnanf.h (zero): New variable.
8698         (main): Avoid literal -0.0f.
8699         * tests/test-isnand.h (zero): New variable.
8700         (main): Avoid literal -0.0.
8701         * tests/test-isnanl.h (zero): New variable.
8702         (main): Avoid literal -0.0L.
8703         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8704         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8705         -0.0, -0.0L.
8706         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8707         (test_signbitd): Avoid literal -0.0.
8708         (test_signbitl): Avoid literal -0.0L.
8709         * tests/test-ceilf1.c (zero): New variable.
8710         (main): Avoid literal -0.0f.
8711         * tests/test-ceill.c (zero): New variable.
8712         (main): Avoid literal -0.0L.
8713         * tests/test-floorf1.c (zero): New variable.
8714         (main): Avoid literal -0.0f.
8715         * tests/test-floorl.c (zero): New variable.
8716         (main): Avoid literal -0.0L.
8717         * tests/test-roundf1.c (zero): New variable.
8718         (main): Avoid literal -0.0f.
8719         * tests/test-round1.c (zero): New variable.
8720         (main): Avoid literal -0.0.
8721         * tests/test-roundl.c (zero): New variable.
8722         (main): Avoid literal -0.0L.
8723         * tests/test-truncf1.c (zero): New variable.
8724         (main): Avoid literal -0.0f.
8725         * tests/test-trunc1.c (zero): New variable.
8726         (main): Avoid literal -0.0.
8727         * tests/test-truncl.c (zero): New variable.
8728         (main): Avoid literal -0.0L.
8729         * tests/test-frexp.c (zero): New variable.
8730         (main): Avoid literal -0.0.
8731         * tests/test-frexpl.c (zero): New variable.
8732         (main): Avoid literal -0.0L.
8733         * tests/test-ldexpl.c (zero): New variable.
8734         (main): Avoid literal -0.0L.
8735         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8736         (zerod, zerol): New variables.
8737         (test_function): Avoid literals -0.0, -0.0L.
8738         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8739         (zerod, zerol): New variables.
8740         (test_function): Avoid literals -0.0, -0.0L.
8741         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8742         (zerod, zerol): New variables.
8743         (test_function): Avoid literals -0.0, -0.0L.
8744         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8745         (zerod, zerol): New variables.
8746         (test_function): Avoid literals -0.0, -0.0L.
8747         * tests/test-strtod.c (zero): New variable.
8748         (main): Avoid literal -0.0.
8749         Reported by Jonathan C. Patschke <jp@centtech.com>.
8750
8751 2008-07-31  Jim Meyering  <meyering@redhat.com>
8752
8753         sha256.h: correct definition of SHA224_DIGEST_SIZE
8754         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8755         Reported by Paulie Pena IV <paulie4@gmail.com>.
8756         Define as 224 / 8, rather than as a literal.
8757         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8758         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8759         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8760
8761 2008-07-31  Bruno Haible  <bruno@clisp.org>
8762
8763         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8764         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8765         Reported by Jonathan Patschke <jp@centtech.com>.
8766
8767 2008-07-31  Bruno Haible  <bruno@clisp.org>
8768
8769         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8770         Reported by Paolo Bonzini <bonzini@gnu.org>.
8771
8772 2008-07-30  Eric Blake  <ebb9@byu.net>
8773
8774         test-strtod: allow compilation without -lm
8775         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8776         Reported by Dennis Clarke <blastwave@gmail.com>.
8777
8778 2008-07-28  Jim Meyering  <meyering@redhat.com>
8779
8780         bootstrap: work also when there are no .po files in po/
8781         * build-aux/bootstrap (update_po_files): Complete the change
8782         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8783
8784 2008-07-27  Jim Meyering  <meyering@redhat.com>
8785
8786         * users.txt: Add zile.
8787
8788 2008-07-26  Ben Pfaff  <blp@gnu.org>
8789
8790         Add missing dependencies on new m4/exponent[fdl].m4 files.
8791         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8792         * modules/isnand-nolibm: Add m4/exponentd.m4.
8793         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8794         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8795         m4/isnan[fdl].m4, because the macros actually used moved.
8796         Reported by Jim Meyering.
8797
8798 2008-07-14  Ben Pfaff  <blp@gnu.org>
8799
8800         Add isinf module.
8801         * lib/isinf.c: New file.
8802         * lib/math.in.h: Define isinf macro if we have decided to replace
8803         it.
8804         * m4/isinf.m4: New file.
8805         * m4/math_h.m4: Initialize and substitute variables for isinf
8806         module.
8807         * modules/isinf: New file.
8808         * modules/isinf-tests: New file.
8809         * modules/math: Add substitutions for new module.
8810         * tests/test-isinf.c: New file.
8811         * doc/posix-functions/isinf.texi: Mention new module.
8812         * MODULES.html.sh: Mention new module.
8813
8814 2008-07-14  Ben Pfaff  <blp@gnu.org>
8815
8816         Factor out some macros for use by additional modules.
8817         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8818         exponentf.m4.
8819         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8820         exponentd.m4.
8821         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8822         file exponentl.m4.
8823         * m4/exponentf.m4: New file.
8824         * m4/exponentd.m4: New file.
8825         * m4/exponentl.m4: New file.
8826         * modules/isnanf: Use new file m4/exponentf.m4.
8827         * modules/isnand: Use new file m4/exponentd.m4.
8828         * modules/isnanl: Use new file m4/exponentl.m4.
8829
8830 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8831
8832         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8833         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8834         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8835         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8836
8837         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8838         readlink on platforms without PATH_MAX.
8839
8840 2008-07-21  Eric Blake  <ebb9@byu.net>
8841
8842         Warn, not fail, on stale version.
8843         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8844
8845         Don't allow installation with stale devel version number.
8846         * top/GNUmakefile (_is-install-target): New macro.
8847         (_curr-ver): Forbid installation with stale version number.
8848
8849 2008-07-20  Bruno Haible  <bruno@clisp.org>
8850
8851         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8852         TESTS_ENVIRONMENT.
8853         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8854
8855 2008-07-20  Bruno Haible  <bruno@clisp.org>
8856
8857         * lib/c-stack.h (c_stack_action): Add documentation.
8858         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8859
8860 2008-07-20  Bruno Haible  <bruno@clisp.org>
8861
8862         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8863         * modules/readlink (License): Likewise.
8864
8865 2008-07-17  Eric Blake  <ebb9@byu.net>
8866
8867         * modules/c-stack (Link): Fix typo.
8868
8869         Make c-stack use libsigsegv, when available.
8870         * modules/c-stack (Depends-on): Add libsigsegv.
8871         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8872         needed.
8873         * lib/c-stack.c (SIGSTKSZ): Define fallback.
8874         (segv_handler, overflow_handler, c_stack_action)
8875         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8876         implementation when libsigsegv is available, but only when using
8877         the library is necessary.
8878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8879         comment, explaining why XSI check fails on Linux.
8880         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8881         * tests/test-c-stack2.sh: Tweak skip message.
8882         * NEWS: Document new link-time requirements.
8883
8884 2008-07-16  Eric Blake  <ebb9@byu.net>
8885
8886         c-stack: Expose false positives when not using libsigsegv.
8887         * modules/c-stack-tests (Files): Expand test.
8888         * tests/test-c-stack.c (main): Add means to conditionally trigger
8889         non-overflow SIGSEGV.
8890         * tests/test-c-stack2.sh: New file.
8891
8892 2008-07-14  Bruno Haible  <bruno@clisp.org>
8893
8894         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8895         Reported by Eric Blake.
8896
8897 2008-07-14  Sam Steingold  <sds@gnu.org>
8898             Bruno Haible  <bruno@clisp.org>
8899
8900         New module libsigsegv.
8901         * modules/libsigsegv: New file.
8902         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8903         modifications.
8904         * MODULES.html.sh (Signal handling): New section.
8905
8906 2008-07-14  Bruno Haible  <bruno@clisp.org>
8907
8908         * modules/unictype/ctype-* (Description): Add the word "function".
8909         Improves the resulting doc in MODULES.html.
8910
8911 2008-07-12  Ben Pfaff  <blp@gnu.org>
8912
8913         Add longlong module.
8914         * modules/longlong: New file.
8915
8916 2008-07-12  Bruno Haible  <bruno@clisp.org>
8917
8918         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8919         to empty.
8920
8921 2008-07-10  Ben Pfaff  <blp@gnu.org>
8922
8923         Add isnan module.
8924         * doc/posix-functions/isnan.texi: Mention new module.
8925         * lib/math.in.h: Define isnan macro if we have decided to replace
8926         it.
8927         * m4/isnan.m4: New file.
8928         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8929         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8930         also.
8931         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8932         redundancy.
8933         * m4/math_h.m4: Initialize and substitute variables for isnan
8934         module.
8935         * modules/isnan: New file.
8936         * modules/isnan-tests: New file.
8937         * modules/math: Add substitutions for new module.
8938         * tests/test-isnan.c: New file.
8939         * MODULES.html.sh: Mention new module.
8940
8941 2008-07-10  Ben Pfaff  <blp@gnu.org>
8942
8943         Add isnanf module.
8944         * lib/isnanf.m4: New file.
8945         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8946         (gl_HAVE_ISNANF_IN_LIBM): New macro.
8947         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8948         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8949         * modules/isnanf: New file.
8950         * modules/isnanf-tests: New file.
8951         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8952         files.
8953         * tests/test-isnanf-nolibm.c: factored most of its contents into
8954         new file tests/test-isnanf.h.
8955         * tests/test-isnanf.h: New file.
8956         * tests/test-isnanf.c: New file.
8957         * MODULES.html.sh: Mention new module.
8958         * doc/glibc-functions/isnanf.texi: Mention new module.
8959
8960 2008-07-10  Ben Pfaff  <blp@gnu.org>
8961
8962         Add isnand module.
8963         * lib/isnand.h: New file.
8964         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8965         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8966         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8967         functionality also.
8968         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8969         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8970         (gl_HAVE_ISNAND_IN_LIBM): New macro.
8971         * modules/isnand: New file.
8972         * modules/isnand-tests: New file.
8973         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8974         files.
8975         * tests/test-isnand-nolibm.c: factored most of its contents into
8976         new file tests/test-isnand.h.
8977         * tests/test-isnand.h: New file.
8978         * tests/test-isnand.c: New file.
8979         * MODULES.html.sh: Mention new module.
8980
8981 2008-07-10  Ben Pfaff  <blp@gnu.org>
8982
8983         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8984         * lib/isnand.h: Rename lib/isnand-nolibm.h.
8985         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8986         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8987         * modules/isnanf-nolibm: Update references to renamed files.
8988         * modules/isnand-nolibm: Likewise.
8989         * modules/isnanf-nolibm-tests: Likewise.
8990         * modules/isnand-nolibm-tests: Likewise.
8991         * lib/frexp.c: Likewise.
8992         * lib/isfinite.c: Likewise.
8993         * lib/signbitd.c: Likewise.
8994         * lib/signbitf.c: Likewise.
8995         * lib/vasnprintf.c: Likewise.
8996         * tests/test-ceilf1.c: Likewise.
8997         * tests/test-ceilf2.c: Likewise.
8998         * tests/test-floorf1.c: Likewise.
8999         * tests/test-floorf2.c: Likewise.
9000         * tests/test-frexp.c: Likewise.
9001         * tests/test-round1.c: Likewise.
9002         * tests/test-round2.c: Likewise.
9003         * tests/test-roundf1.c: Likewise.
9004         * tests/test-strtod.c: Likewise.
9005         * tests/test-trunc1.c: Likewise.
9006         * tests/test-trunc2.c: Likewise.
9007         * tests/test-truncf1.c: Likewise.
9008         * tests/test-truncf2.c: Likewise.
9009         * NEWS: Mention the renamed header files.
9010
9011 2008-07-11  Jim Meyering  <meyering@redhat.com>
9012
9013         vc-list-files: make the last-resort awk code more portable
9014         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
9015         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
9016         does not support it.
9017
9018 2008-07-10  Eric Blake  <ebb9@byu.net>
9019
9020         Work with tar's bootstrap.
9021         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
9022         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
9023         an m4 comment.
9024
9025 2008-07-09  Jim Meyering  <meyering@redhat.com>
9026
9027         posix-shell.m4: fix typo that made this test malfunction
9028         * m4/posix-shell.m4: Remove capitalization in variable name.
9029
9030 2008-07-08  Bruno Haible  <bruno@clisp.org>
9031
9032         * m4/onceonly.m4: Update comments.
9033         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9034
9035 2008-07-04  Jim Meyering  <meyering@redhat.com>
9036
9037         * users.txt: Add vc-dwim.
9038         (bison, coreutils): Use the gitweb URL.
9039
9040 2008-07-03  Jim Meyering  <meyering@redhat.com>
9041
9042         * users.txt: Add libffcall.  From Sam Steingold.
9043
9044 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
9045
9046         getdate.y: do not ignore TZ with relative day, month or year offset
9047         * lib/getdate.y (get_date): Move the tz-handling block to follow the
9048         relative-date-handling, since otherwise, the latter would clobber the
9049         sole output (an updated Start value) of the tz-handling block.
9050         * tests/test-getdate.c: Tests for the fix
9051
9052 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9053
9054         Recognize 'foo_LIBRARIES += libgnu.a'.
9055         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
9056         makefile snippet has already specified an installation location,
9057         also using '+='.
9058
9059 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
9060
9061         getdate.y: factor out common actions
9062         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
9063         Use them in place of open-coded actions.
9064
9065 2008-07-01  Simon Josefsson  <simon@josefsson.org>
9066
9067         Add self-test for getdate module.
9068         * modules/getdate-tests: New file.
9069         * tests/test-getdate.c: New file.
9070
9071 2008-06-29  Bruno Haible  <bruno@clisp.org>
9072
9073         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
9074         .gitignore.
9075         Reported by Sylvain Beucler <beuc@beuc.net>.
9076
9077 2008-06-29  Bruno Haible  <bruno@clisp.org>
9078
9079         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
9080         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
9081
9082 2008-06-29  Bruno Haible  <bruno@clisp.org>
9083
9084         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
9085         EXTRA_DIST.
9086         Reported by Sylvain Beucler <beuc@beuc.net>.
9087
9088 2008-06-26  Jim Meyering  <meyering@redhat.com>
9089
9090         make several modules depend on the "open" module
9091         This provides slightly increased consistency when opening-for-write
9092         the name of a non-directory spelled with a trailing slash.
9093         * modules/chdir-safer: Likewise.
9094         * modules/chown: Likewise.
9095         * modules/clean-temp: Likewise.
9096         * modules/copy-file: Likewise.
9097         * modules/fchdir: Likewise.
9098         * modules/fcntl-safer: Likewise.
9099         * modules/pipe: Likewise.
9100         * modules/utime: Likewise.
9101         Prompted by Eric Blake and Bruno Haible.
9102
9103 2008-06-24  Andreas Schwab  <schwab@suse.de>
9104
9105         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
9106         literals can be used as initializers for global variables.
9107
9108 2008-06-23  Eric Blake  <ebb9@byu.net>
9109
9110         Make gnulib-cache.m4 easier to diff.
9111         * gnulib-tool (func_import): Allow newlines when reading cached
9112         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
9113
9114 2008-06-23  Bruno Haible  <bruno@clisp.org>
9115
9116         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
9117         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
9118         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
9119         m4/signalblocking.m4.
9120         (gl_PREREQ_SIGACTION): Don't invoke it.
9121         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
9122         gl_PREREQ_SIG_HANDLER_H.
9123         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9124         Don't check for sigaction here.
9125
9126 2008-06-23  Bruno Haible  <bruno@clisp.org>
9127
9128         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
9129         (install_handlers): Don't set the SA_RESETHAND flag.
9130
9131 2008-06-23  Bruno Haible  <bruno@clisp.org>
9132
9133         * m4/sigaction.m4: Comment fixes.
9134         * lib/signal.in.h: Likewise.
9135
9136 2008-06-23  Eric Blake  <ebb9@byu.net>
9137
9138         Fix typo.
9139         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
9140
9141         Avoid SA_ namespace.
9142         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
9143         Reported by Ralf Wildenhues.
9144
9145         Avoid test failure due to SA_RESTORER.
9146         * tests/test-sigaction.c (SA_MASK): New macro.
9147         (main): Avoid failing due to extension flags being set.
9148         Reported by Jim Meyering.
9149
9150         Revert use of sig-handler.h in sigprocmask.c.
9151         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9152         it requires the existence of struct sigaction.
9153         * lib/sigprocmask.c (handler_t): Restore typedef.
9154         (rpl_signal, old_handlers): Use local type.
9155
9156 2008-06-22  Bruno Haible  <bruno@clisp.org>
9157
9158         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9159         conditionally.
9160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9161
9162 2008-06-22  Bruno Haible  <bruno@clisp.org>
9163
9164         * doc/posix-functions/siginterrupt.texi: Move note.
9165
9166         * lib/signal.in.h (SA_RESTART): New macro.
9167         * lib/sigaction.c: Update comment.
9168
9169         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9170
9171         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9172         (gl_PREREQ_SIGPROCMASK): Invoke it.
9173         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9174
9175         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9176
9177         * lib/sigprocmask.c: Update a comment.
9178
9179 2008-06-21  Eric Blake  <ebb9@byu.net>
9180
9181         Use sigaction module rather than signal().
9182         * modules/c-stack (Depends-on): Add sigaction.
9183         * modules/fatal-signal (Depends-on): Likewise.
9184         * modules/nanosleep (Depends-on): Likewise.
9185         * modules/sigprocmask (Files): Add sig-handler.h.
9186         * modules/sigaction (Files): Likewise.
9187         * lib/sig-handler.h (get_handler): New file, suggested by Paul
9188         Eggert.
9189         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9190         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9191         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9192         (init_fatal_signals): Likewise.
9193         * lib/nanosleep.c (rpl_nanosleep): Likewise.
9194         (siginterrupt): Delete fallback.
9195         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9196         instead.
9197         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9198         siginterrupt.
9199
9200         New module sigaction, for mingw.
9201         * modules/sigaction: New module...
9202         * modules/sigaction-tests: ...and its test.
9203         * m4/sigaction.m4: New file.
9204         * lib/sigaction.c: Likewise.
9205         * tests/test-sigaction.c: Likewise.
9206         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9207         * modules/signal (Makefile.am): Likewise.
9208         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9209         needed.
9210         * doc/posix-headers/signal.texi (signal.h): Mention provided
9211         types.
9212         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9213         that sigaction is preferable.
9214         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9215         module.
9216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9217         sigaction.
9218
9219         Improve robustness of sigprocmask by overriding signal.
9220         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9221         is in use.
9222         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9223         (SIGKILL, SIGSTOP): Provide fallbacks.
9224         (rpl_signal): Implement.
9225         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9226         signal can be called inside handlers.
9227
9228         Fix nanosleep module on mingw.
9229         * modules/nanosleep (Depends-on): Add sys_select.
9230         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9231
9232         Fix licensing of sigprocmask.
9233         * modules/raise (License): Relicense as LGPL.
9234
9235 2008-06-21  Bruno Haible  <bruno@clisp.org>
9236
9237         * lib/propername.c (proper_name_utf8): Don't use the transliterated
9238         result if it contains question marks.
9239         Reported by Michael Geng <linux@michaelgeng.de>.
9240
9241 2008-06-19  Bruno Haible  <bruno@clisp.org>
9242
9243         Fix CVS-ism.
9244         * doc/gnulib.texi: Include updated-stamp.texi.
9245         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9246         (updated-stamp.texi): New rule.
9247         (gnulib.info): Depend on it.
9248         * doc/.gitignore: Add updated-stamp.texi.
9249         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9250
9251 2008-06-19  Bruno Haible  <bruno@clisp.org>
9252
9253         * doc/Makefile (gnulib.info): Update and simplify dependencies.
9254         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9255
9256 2008-06-19  Eric Blake  <ebb9@byu.net>
9257
9258         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9259         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9260         Reported by Stepan Kasal.
9261
9262 2008-06-18  Bruno Haible  <bruno@clisp.org>
9263
9264         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9265         Reported by Eric Blake.
9266
9267 2008-06-18  Eric Blake  <ebb9@byu.net>
9268
9269         Work around cygwin 1.5.25 strsignal bug.
9270         * tests/test-strsignal.c: Allow for const char *.
9271         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9272
9273 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9274
9275         * users.txt: Update URL to article and add author/date
9276         information.
9277
9278 2008-06-17  Bruno Haible  <bruno@clisp.org>
9279
9280         New macro gl_DISABLE_THREADS.
9281         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9282         if the user did not pass --enable-threads or --disable-threads option.
9283         (gl_DISABLE_THREADS): New macro.
9284         Reported by Eric Blake <ebb9@byu.net>.
9285
9286 2008-06-17  Bruno Haible  <bruno@clisp.org>
9287
9288         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9289         when the macro ignores it.
9290         Based on a patch by Eric Blake <ebb9@byu.net>.
9291
9292 2008-06-17  Bruno Haible  <bruno@clisp.org>
9293
9294         * modules/tls (License): Change to LGPLv2+.
9295         Reported by Eric Blake.
9296
9297 2008-06-17  Eric Blake  <ebb9@byu.net>
9298
9299         Simplify c-stack prerequisites.
9300         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9301         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9302         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9303         check.
9304         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9305         <sys/resource.h>.
9306
9307         Move c-stack test into testsuite.
9308         * modules/c-stack-tests: New file.
9309         * lib/c-stack.c [DEBUG]: Move test program...
9310         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9311         fail test if sigaltstack is lacking.
9312         * tests/test-c-stack.sh: New driver file.
9313
9314 2008-06-16  Eric Blake  <ebb9@byu.net>
9315
9316         Use raise module consistently.
9317         * modules/fatal-signal (Depends-on): Add raise.
9318         * modules/sigprocmask (Depends-on): Likewise.
9319         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9320         * lib/sigprocmask.c (sigprocmask): Likewise.
9321         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9322         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9323
9324         Fix compliance bug in sigpending.
9325         * lib/sigprocmask.c (sigpending): Return pending array via
9326         parameter, not return value.
9327
9328 2008-06-14  Eric Blake  <ebb9@byu.net>
9329
9330         Improve obstack-printf test code.
9331         * tests/test-obstack-printf.c (test_function): Fix comment, and
9332         simplify usage of obstack_* in macros.  Add a test for coverage.
9333         Reported by Bruno Haible.
9334
9335 2008-06-14  Bruno Haible  <bruno@clisp.org>
9336
9337         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9338         array size as a constant, not as a const variable.
9339         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9340         AC_USE_SYSTEM_EXTENSIONS.
9341         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9342         Test whether the obstack_printf function actually exists.
9343         * modules/obstack-printf (Depends-on): Add extensions.
9344         (Include): Remove obstack.h.
9345         * modules/obstack-printf-posix (Depends-on): Add extensions.
9346         (Include): Remove obstack.h.
9347
9348 2008-06-13  Eric Blake  <ebb9@byu.net>
9349
9350         Add obstack-printf and obstack-printf-posix modules.
9351         * modules/obstack-printf: New file.
9352         * modules/obstack-printf-posix: Likewise.
9353         * MODULES.html.sh (Misc): Mention them.
9354         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9355         Likewise.
9356         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9357         Likewise.
9358         * modules/stdio (Makefile.am): Accomodate new modules.
9359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9360         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9361         Declare.
9362         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9363         functions.
9364         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9365         (gl_REPLACE_OBSTACK_PRINTF): New macros
9366         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9367         * tests/test-obstack-printf.c: New file.
9368         * modules/obstack-printf-tests: Likewise.
9369         * modules/obstack-printf-posix-tests: Likewise.
9370
9371 2008-06-11  Bruno Haible  <bruno@clisp.org>
9372
9373         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9374         * lib/open.c: Include errno.h.
9375         (open): Fail when attempting to write to a file that has a trailing
9376         slash.
9377         * tests/test-open.c (main): Test against trailing slash bug.
9378         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9379
9380 2008-06-10  Bruno Haible  <bruno@clisp.org>
9381
9382         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9383         for $? to work inside the trap command, with various /bin/sh-s.
9384         * tests/test-vc-list-files-cvs.sh: Likewise.
9385
9386 2008-06-10  Bruno Haible  <bruno@clisp.org>
9387
9388         * lib/acl-internal.h: Don't include gettext.h here.
9389         * lib/set-mode-acl.c: Include gettext.h here.
9390         * lib/copy-acl.c: Likewise.
9391
9392 2008-06-10  Bruno Haible  <bruno@clisp.org>
9393
9394         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9395         * lib/wait-process.c (wait_subprocess): Likewise.
9396         * lib/execute.h (execute): Add termsigp argument.
9397         * lib/execute.c (execute): Likewise.
9398         * lib/csharpcomp.c (compile_csharp_using_pnet,
9399         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9400         * lib/csharpexec.c (execute_csharp_using_pnet,
9401         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9402         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9403         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9404         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9405         is_jikes_present): Update.
9406         * lib/javaexec.c (execute_java_class): Update.
9407         * lib/javaversion.c (execute_and_read_line): Update.
9408         * NEWS: Document the changes.
9409         Reported by Eric Blake.
9410
9411 2008-06-10  Eric Blake  <ebb9@byu.net>
9412
9413         Add missing include.
9414         * tests/test-strstr.c (includes): Add <signal.h>.
9415         * tests/test-strcasestr.c (includes): Likewise.
9416         * tests/test-memmem.c (includes): Likewise.
9417
9418 2008-06-10  Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/wait-process.c (wait_subprocess): Add an assertion.
9421
9422 2008-06-10  Bruno Haible  <bruno@clisp.org>
9423
9424         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9425
9426 2008-06-10  Bruno Haible  <bruno@clisp.org>
9427
9428         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9429         using alarm().
9430         * tests/test-strcasestr.c (main): Likewise.
9431         * tests/test-strstr.c (main): Likewise.
9432
9433 2008-06-09  Bruno Haible  <bruno@clisp.org>
9434
9435         Work around the Solaris 10 ACE ACLs ABI change.
9436         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9437         declare if ACL_NO_TRIVIAL is present.
9438         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9439         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9440         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9441         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9442         define if ACL_NO_TRIVIAL is present.
9443         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9444         and use the current ABI.
9445         (file_has_acl): Use same #if condition as elsewhere.
9446         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9447         in use, and use the current ABI.
9448         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9449         Reported by Jim Meyering.
9450
9451 2008-06-09  Eric Blake  <ebb9@byu.net>
9452
9453         Work around environments that (stupidly) ignore SIGALRM.
9454         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9455         before using alarm().
9456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9457         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9458         Reported by Ian Beckwith <ianb@erislabs.net>.
9459
9460         Produce autobuild blurb earlier in log.
9461         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9462
9463 2008-06-09  Jim Meyering  <meyering@redhat.com>
9464         and OndÅ™ej Vašík  <ovasik@redhat.com>
9465
9466         utimens.c: correct kernel bug work-around
9467         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9468         failure, not success, and the kernel bug we're trying to work
9469         around affects not just the utimensat call, but also the fallback
9470         futimens call.
9471         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9472         not success.
9473         [HAVE_FUTIMENS]: Use the same work-around, here.
9474
9475 2008-06-09  Jim Meyering  <meyering@redhat.com>
9476
9477         add more guards around definition of ACE_-related code
9478         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9479         ALLOW and ACE_OWNER are also defined.
9480
9481 2008-06-08  Bruno Haible  <bruno@clisp.org>
9482
9483         * lib/acl-internal.h: Add me as co-author.
9484         * lib/file-has-acl.c: Likewise.
9485         * lib/set-mode-acl.c: Likewise.
9486         * lib/copy-acl.c: Likewise.
9487
9488 2008-06-08  Bruno Haible  <bruno@clisp.org>
9489
9490         Add support for AIX ACLs.
9491         * lib/acl-internal.h (acl_nontrivial): New declaration.
9492         * lib/file-has-acl.c (acl_nontrivial): New function.
9493         (file_has_acl): Add implementation using AIX 4 ACL API.
9494         * lib/set-mode-acl.c (qset_acl): Likewise.
9495         * lib/copy-acl.c (qcopy_acl): Likewise.
9496
9497 2008-06-08  Bruno Haible  <bruno@clisp.org>
9498
9499         Add support for HP-UX ACLs.
9500         * lib/acl-internal.h (acl_nontrivial): New declaration.
9501         * lib/file-has-acl.c (acl_nontrivial): New function.
9502         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9503         * lib/set-mode-acl.c (qset_acl): Likewise.
9504         * lib/copy-acl.c (qcopy_acl): Likewise.
9505
9506 2008-06-08  Bruno Haible  <bruno@clisp.org>
9507
9508         Add support for Cygwin ACLs.
9509         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9510         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9511         the chmod_or_fchmod call.
9512         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9513
9514 2008-06-08  Bruno Haible  <bruno@clisp.org>
9515
9516         Fix bug with setuid modes in Solaris 10+ code.
9517         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9518         succeeded, when the mode contains some special bits.
9519
9520 2008-06-08  Bruno Haible  <bruno@clisp.org>
9521
9522         Add support for Solaris 7..10 ACLs.
9523         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9524         declarations.
9525         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9526         functions.
9527         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9528         * lib/set-mode-acl.c (qset_acl): Likewise.
9529         * lib/copy-acl.c (qcopy_acl): Likewise.
9530
9531 2008-06-08  Bruno Haible  <bruno@clisp.org>
9532
9533         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9534         declaration.
9535         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9536         (acl_access_nontrivial): Remove MacOS X case.
9537         (file_has_acl): Use acl_extended_nontrivial.
9538         * lib/copy-acl.c (qcopy_acl): Likewise.
9539
9540 2008-06-08  Bruno Haible  <bruno@clisp.org>
9541
9542         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9543
9544 2008-06-08  Jim Meyering  <meyering@redhat.com>
9545
9546         * modules/acl (Maintainer): Add Bruno Haible.
9547
9548 2008-06-07  Bruno Haible  <bruno@clisp.org>
9549
9550         Improve support for Tru64 ACLs.
9551         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9552         ACL on OSF/1.
9553
9554 2008-06-07  Bruno Haible  <bruno@clisp.org>
9555
9556         Add support for MacOS X ACLs.
9557         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9558         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9559         * lib/set-mode-acl.c (qset_acl): Likewise.
9560         * lib/copy-acl.c (qcopy_acl): Likewise.
9561
9562 2008-06-07  Bruno Haible  <bruno@clisp.org>
9563
9564         Fix memory leak introduced on 2008-05-22.
9565         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9566         use.
9567
9568 2008-06-07  Bruno Haible  <bruno@clisp.org>
9569
9570         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9571         to construct an empty ACL.
9572
9573 2008-06-07  Bruno Haible  <bruno@clisp.org>
9574
9575         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9576         precisely.
9577         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9578
9579 2008-06-07  Bruno Haible  <bruno@clisp.org>
9580
9581         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9582         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9583
9584 2008-06-07  Bruno Haible  <bruno@clisp.org>
9585
9586         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9587         regardless of POSIX.
9588         * doc/posix-functions/_longjmp.texi: Likewise.
9589         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9590         SystemV platform in this case.
9591
9592 2008-06-06  Eric Blake  <ebb9@byu.net>
9593
9594         Document abort() bugs.
9595         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9596
9597         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9598         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9599         sigsetjmp.
9600         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9601         siglongjmp, but only as a macro.
9602         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9603         is obsolete.
9604         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9605
9606         Tweak documentation to cover cygwin argz bugs.
9607         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9608         argz bug fix; no code change needed since no cygwin releases
9609         occurred between the last fix and the bug being tested.
9610         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9611         module and recently fixed cygwin bugs.
9612         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9613         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9614         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9615         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9616         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9617         Likewise.
9618         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9619         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9620         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9621         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9622         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9623         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9624         Likewise.
9625
9626         Avoid gcc warning on cygwin.
9627         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9628         !ACL_NO_TRIVIAL]: Avoid unused variable.
9629
9630 2008-06-05  Eric Blake  <ebb9@byu.net>
9631
9632         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9633         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9634         git-version-gen fails to come up with a version.
9635         Reported by Simon Josefsson.
9636
9637 2008-06-05  Jim Meyering  <meyering@redhat.com>
9638             Paul Eggert  <eggert@cs.ucla.edu>
9639
9640         utimens.c: work around a probable Linux kernel bug
9641         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9642         appears to be a kernel bug that causes utimensat to return 280
9643         instead of 0, indicating success.
9644
9645 2008-06-04  Bruno Haible  <bruno@clisp.org>
9646
9647         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9648         2008-06-01 commit.
9649
9650 2008-06-04  Bruno Haible  <bruno@clisp.org>
9651
9652         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9653         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9654         (file_has_acl): Use it. Save errno afterwards.
9655         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9656
9657 2008-06-03  Bruno Haible  <bruno@clisp.org>
9658
9659         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9660         draft code. Simplify #ifs.
9661         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9662         Put Solaris code after POSIX-draft code. Fix comments regarding
9663         Solaris 10, HP-UX. Mention Cygwin.
9664         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9665
9666 2008-06-03  Eric Blake  <ebb9@byu.net>
9667
9668         Provide fallback for older kernels.
9669         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9670         Provide runtime fallback if kernel lacks support.
9671         Reported by Mike Frysinger.
9672
9673 2008-06-02  Bruno Haible  <bruno@clisp.org>
9674
9675         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9676         it exists.
9677
9678 2008-06-02  Bruno Haible  <bruno@clisp.org>
9679
9680         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9681         * lib/copy-acl.c (qcopy_acl): Update comment.
9682
9683 2008-06-02  Bruno Haible  <bruno@clisp.org>
9684
9685         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9686         like ACL APIs.
9687
9688 2008-06-02  Bruno Haible  <bruno@clisp.org>
9689
9690         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9691         * tests/test-set-mode-acl.sh: Likewise.
9692         * tests/test-copy-acl.sh: Likewise.
9693         * tests/test-copy-file.sh: Likewise.
9694
9695 2008-06-02  Bruno Haible  <bruno@clisp.org>
9696
9697         * tests/test-file-has-acl.sh: Remove unused code.
9698
9699 2008-06-01  Bruno Haible  <bruno@clisp.org>
9700
9701         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9702         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9703         messages.
9704         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9705
9706 2008-06-01  Bruno Haible  <bruno@clisp.org>
9707
9708         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9709         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9710         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9711         APIs.
9712         * modules/acl-tests (configure.ac): Remove tests now contained in
9713         m4/acl.m4.
9714
9715 2008-06-02  Jim Meyering  <meyering@redhat.com>
9716
9717         announce-gen: use a better key-server host name
9718         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9719         it may be more consistently reliable.  Suggested by Werner Koch
9720         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9721
9722 2008-06-01  Bruno Haible  <bruno@clisp.org>
9723
9724         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9725         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9726
9727 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9728
9729         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9730
9731 2008-06-01  Bruno Haible  <bruno@clisp.org>
9732
9733         New ACL tests.
9734         * tests/test-file-has-acl.sh: New file.
9735         * tests/test-file-has-acl.c: New file.
9736         * tests/test-set-mode-acl.sh: New file.
9737         * tests/test-set-mode-acl.c: New file.
9738         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9739         * tests/test-copy-acl.c: New file.
9740         * modules/acl-tests: New file, based on modules/copy-file-tests.
9741         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9742         (Depends-on): Add acl-tests.
9743         (configure.ac): Remove checks.
9744         (Makefile.am): Don't create test-sameacls program here any more.
9745
9746 2008-06-01  Bruno Haible  <bruno@clisp.org>
9747
9748         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9749         * tests/test-sameacls.c: Include progname.h.
9750         (main): Invoke set_program_name. Portability fixes for MacOS X,
9751         Solaris, HP-UX.
9752
9753 2008-06-01  Bruno Haible  <bruno@clisp.org>
9754
9755         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9756         function.
9757         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9758
9759 2008-06-01  Bruno Haible  <bruno@clisp.org>
9760
9761         * modules/rpmatch (Depends-on): Add strdup.
9762
9763 2008-06-01  Bruno Haible  <bruno@clisp.org>
9764
9765         * lib/pipe.c: Include unistd-safer.h.
9766         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9767         * modules/pipe (Depends-on): Add unistd-safer.
9768
9769 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9770
9771         * modules/autobuild (configure.ac): Call AB_INIT.
9772
9773 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9774
9775         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9776         Suggested by Bruno Haible <bruno@clisp.org>.
9777
9778 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9779
9780         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9781         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9782         <bruno@clisp.org>.
9783
9784 2008-05-29  Eric Blake  <ebb9@byu.net>
9785
9786         Prefer new POSIX 200x interfaces over futimesat.
9787         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9788         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9789         when available.
9790         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9791
9792 2008-05-28  Bruno Haible  <bruno@clisp.org>
9793
9794         * modules/stpcpy (License): Change to LGPLv2+.
9795         Requested by David Lutterkort <dlutter@redhat.com>.
9796
9797 2008-05-27  Bruno Haible  <bruno@clisp.org>
9798
9799         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9800         current mingw.
9801         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9802
9803 2008-05-27  Bruno Haible  <bruno@clisp.org>
9804
9805         * modules/iconv_open (Link): New section, from module 'iconv'.
9806         * modules/striconv (Link): Likewise.
9807         * modules/striconveh (Link): Likewise.
9808         * modules/xstriconv (Link): Likewise.
9809         * modules/unicodeio (Link): Likewise.
9810         * modules/propername (Link): Likewise.
9811         Reported by Jim Meyering.
9812
9813 2008-05-26  Jim Meyering  <meyering@redhat.com>
9814
9815         sha256: do not artificially restrict buffer length to be < 2^32
9816         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9817         uint32_t to size_t.
9818         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9819         to match.
9820
9821         avoid unaligned access errors, e.g., on sparc
9822         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9823         direct access through a possibly-unaligned uint64* pointer.
9824         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9825         direct access through a possibly-unaligned uint32* pointer.
9826         Prompted by this patch from Tom "spot" Callaway:
9827         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9828
9829         sha512.c: fix typo in comment
9830         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9831
9832 2008-05-25  Bruno Haible  <bruno@clisp.org>
9833
9834         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9835         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9836         (Makefile.am): Update lib_SOURCES.
9837
9838 2008-05-25  Bruno Haible  <bruno@clisp.org>
9839
9840         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9841
9842 2008-05-25  Jim Meyering  <meyering@redhat.com>
9843
9844         useless-if-before-free: freed expr may have white-space differences
9845         * build-aux/useless-if-before-free: Recognize cases in which the
9846         freed expression differs from the tested one in embedded white
9847         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9848         $1 was used, so we can't make any regexp shy.  Improved tests now
9849         detect this.
9850
9851         useless-if-before-free: accept white space in the expression.
9852         * build-aux/useless-if-before-free: For now, any white space
9853         in the expression must be identical in the free argument.
9854
9855         useless-if-before-free: efficiency tweak
9856         * build-aux/useless-if-before-free: Make the expression-matching
9857         regexp "shy".
9858         Make the *outer* regexp shy, not the expr-matching one.
9859
9860         update code-in-comment to accept cast of free arg
9861         * build-aux/useless-if-before-free: Update regexp.
9862
9863 2008-05-25  Bruno Haible  <bruno@clisp.org>
9864
9865         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9866         * modules/copy-file-tests (Files, Makefile.am): Update.
9867         * tests/test-copy-file.c (func_test_copy): Update.
9868
9869 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
9870
9871         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9872
9873 2008-05-23  Bruno Haible  <bruno@clisp.org>
9874
9875         Improve support for ACLs on OSF/1.
9876         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9877         Remove fallback for unknown flavors of ACLs.
9878
9879 2008-05-22  Bruno Haible  <bruno@clisp.org>
9880
9881         Add support for ACLs on OSF/1.
9882         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9883         replacements.
9884         (acl_free_text): New macro fallback.
9885         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9886         acl_free.
9887         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9888         acl_free_text function. Require AC_C_INLINE.
9889
9890 2008-05-22  Bruno Haible  <bruno@clisp.org>
9891
9892         Make copy_acl work on MacOS X 10.5.
9893         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9894         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9895         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9896         If MODE_INSIDE_ACL, don't assume that every system has the same text
9897         representation for ACLs as FreeBSD.
9898         * lib/copy-acl.c (copy_acl): Add support for platforms with
9899         !MODE_INSIDE_ACL.
9900         * lib/file-has-acl.c (file_has_acl): Likewise.
9901         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9902         FreeBSD, MacOS X, or IRIX, respectively.
9903
9904 2008-05-22  Bruno Haible  <bruno@clisp.org>
9905
9906         * lib/acl.h: Don't include <sys/acl.h>.
9907         (GETACLCNT): Move fallback to lib/acl-internal.h.
9908         * lib/acl-internal.h: Include <sys/acl.h> here.
9909         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9910
9911 2008-05-22  Bruno Haible  <bruno@clisp.org>
9912
9913         Split off copy_acl function to separate file.
9914         * lib/copy-acl.c: New file, extracted from lib/acl.c.
9915         * lib/acl.c (copy_acl): Moved function to separate file.
9916         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9917         * modules/acl (Files): Add lib/copy-acl.c.
9918         (Makefiles.am): Augment lib_SOURCES.
9919
9920 2008-05-22  Bruno Haible  <bruno@clisp.org>
9921
9922         * modules/copy-file-tests: New file.
9923         * tests/test-copy-file.sh: New file.
9924         * tests/test-copy-file.c: New file.
9925         * tests/test-copy-file-sameacls.c: New file.
9926
9927 2008-05-22  Eric Blake  <ebb9@byu.net>
9928
9929         Avoid gcc warning.
9930         * tests/test-memcmp.c (main): Pass NULL indirectly.
9931
9932 2008-05-21  Bruno Haible  <bruno@clisp.org>
9933
9934         Add reference doc about ACLs.
9935         * doc/acl-resources.txt: New file.
9936         * doc/acl-cygwin.txt: New file.
9937
9938 2008-05-21  Bruno Haible  <bruno@clisp.org>
9939
9940         Avoid one more warning from gcc.
9941         * lib/vasnprintf.c (IF_LINT): Update comments.
9942         (VASNPRINTF): Use it also for the 'prefix' array initializer.
9943
9944 2008-05-21  Jim Meyering  <meyering@redhat.com>
9945
9946         avoid a warning from gcc
9947         * lib/vasnprintf.c (IF_LINT): Define.
9948         (scale10_round_decimal_long_double):
9949         Use it to avoid a "may be used uninitialized" warning.
9950         (scale10_round_decimal_double): Likewise.
9951
9952 2008-05-21  Simon Josefsson  <simon@josefsson.org>
9953
9954         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9955         declared.
9956
9957 2008-05-20  Bruno Haible  <bruno@clisp.org>
9958
9959         * tests/test-memcmp.c (main): Test also the sign of the result. Test
9960         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9961
9962 2008-05-20  Simon Josefsson  <simon@josefsson.org>
9963
9964         * modules/memcmp-tests: New file.
9965         * tests/test-memcmp.c: New file.
9966
9967 2008-05-19  Bruno Haible  <bruno@clisp.org>
9968
9969         * modules/propername (Notice, configure.ac): Put quoted "..." into
9970         --keyword option.
9971         * lib/propername.h: Update comments accordingly.
9972         Reported by Eric Blake.
9973
9974 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
9975
9976         * modules/getpass-gnu (Depends-on): Add fseeko.
9977
9978 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9979
9980         * modules/base64-tests: New file.
9981
9982 2008-05-19  Bo Borgerson <gigabo@gmail.com>
9983
9984         * lib/base64.c (base64_decode_ctx): If a decode context structure
9985         was passed in use it to ignore newlines.  If a context structure
9986         was _not_ passed in, continue to treat newlines as garbage (this
9987         is the historical behavior).  Formerly base64_decode.
9988         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9989         takes a decode context structure.
9990         * lib/base64.h (base64_decode): Macro for four-argument calls.
9991         (base64_decode_alloc): Likewise.
9992         * lib/base64.c (base64_decode_ctx): If a decode context structure
9993         was passed in use it to ignore newlines.  If a context structure
9994         was _not_ passed in, continue to treat newlines as garbage (this
9995         is the historical behavior).  Formerly base64_decode.
9996         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9997         takes a decode context structure.
9998         * lib/base64.h (base64_decode): Macro for four-argument calls.
9999         (base64_decode_alloc): Likewise.
10000
10001 2008-05-19  Jim Meyering  <meyering@redhat.com>
10002
10003         avoid a warning from gcc
10004         * lib/trim.c (IF_LINT): Define.
10005         (trim2): Use it to avoid a "may be used uninitialized" warning.
10006
10007         Fix doc typo.
10008         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
10009
10010 2008-05-19  Bruno Haible  <bruno@clisp.org>
10011
10012         * doc/glibc-functions/getpass.texi: Document limits of other
10013         implementations.
10014
10015 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10016             Bruno Haible <bruno@clisp.org>
10017
10018         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
10019
10020 2008-05-18  Bruno Haible  <bruno@clisp.org>
10021
10022         * modules/propername: New file, from GNU gettext.
10023         * lib/propername.h: New file, from GNU gettext.
10024         * lib/propername.c: New file, from GNU gettext.
10025         * MODULES.html.sh (Internationalization functions): Add propername.
10026
10027 2008-05-16  Jim Meyering  <meyering@redhat.com>
10028             Bruno Haible  <bruno@clisp.org>
10029
10030         Avoid some warnings from "gcc -Wshadow".
10031         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
10032
10033 2008-05-15  Eric Blake  <ebb9@byu.net>
10034
10035         Extend previous patch to cygwin 1.7.0.
10036         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
10037         fast implementation in cygwin >= 1.7.0.
10038         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10040
10041 2008-05-15  Bruno Haible  <bruno@clisp.org>
10042
10043         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
10044         implementation in glibc >= 2.9.
10045         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10047
10048 2008-05-15  Bruno Haible  <bruno@clisp.org>
10049
10050         * MODULES.html.sh (Internationalization functions): Remove linebreak.
10051         (Unicode string functions): Add unilbrk/*.
10052         Reported by Karl Berry.
10053
10054 2008-05-15  Eric Blake  <ebb9@byu.net>
10055
10056         Fix violation of <stdbool.h> replacement in regex.
10057         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
10058         * lib/regexec.c (re_search_internal): Likewise.
10059         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
10060
10061 2008-05-15  Jim Meyering  <meyering@redhat.com>
10062
10063         avoid distracting test output when git or cvs is not found
10064         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
10065         * tests/test-vc-list-files-git.sh: Likewise.
10066
10067 2008-05-15  Eric Blake  <ebb9@byu.net>
10068
10069         Glibc finally accepted the memmem speedup code, bugzilla #5514.
10070         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
10071         glibc version.
10072         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10073         * doc/posix-functions/strstr.texi (strstr): Likewise.
10074         * lib/str-two-way.h (MAX): Sychronize with glibc.
10075
10076 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
10077
10078         * lib/regcomp.c (optimize_utf8): Add a note on why we test
10079         opr.ctx_type.
10080         (calc_first): Initialize constraint field.
10081         (duplicate_node_closure): Use it instead of special casing ANCHORS.
10082         Fix grammar.
10083         (duplicate_node): Merge constraint field for all node types.
10084         (calc_eclosure_iter): Look at constraint field for all node types.
10085         * lib/regex_internal.c (create_cd_newstate): Don't look at
10086         opr.ctx_type.
10087
10088 2008-05-14  Bruno Haible  <bruno@clisp.org>
10089
10090         Help GCC to do better code generation.
10091         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
10092         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10093         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
10094         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
10095         Declare with attribute 'malloc' if supported.
10096
10097 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
10098
10099         use "echo STR|wc -c" rather than unportable "expr length STR"
10100         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
10101         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
10102
10103 2008-05-14  Jim Meyering  <meyering@redhat.com>
10104
10105         use dd ibs=$n count=1 ... rather than less-portable head -c$n
10106         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
10107         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
10108         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
10109         via Collin Lasse.
10110
10111 2008-05-14  Eric Blake  <ebb9@byu.net>
10112
10113         Avoid quadratic growth in gl_LIBSOURCES.
10114         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
10115         Suggested by Bruno Haible.
10116
10117         Test xmemdup0.
10118         * modules/xmemdup0-tests: New file.
10119         * tests/test-xmemdup0.c: Likewise.
10120
10121 2008-05-13  Eric Blake  <ebb9@byu.net>
10122
10123         Split xmemdup0 into its own module.
10124         * modules/xmemdup0: New file.
10125         * lib/xmemdup0.h: Likewise.
10126         * lib/xmemdup0.c: Likewise.
10127         * MODULES.html.sh (Memory management functions): Add xmemdup0.
10128         * lib/xalloc.h (xmemdup0): Remove.
10129         * lib/xmalloc.c (xmemdup0): Likewise.
10130
10131 2008-05-13  Eric Blake  <ebb9@byu.net>
10132             Bruno Haible  <bruno@clisp.org>
10133
10134         Reduce number of forks required during autoconf.
10135         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
10136         and gl_LIBSOURCES_DIR.
10137         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
10138         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
10139         m4_syscmd per file.
10140         <m4_foreach_w>: Move...
10141         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
10142
10143 2008-05-13  Eric Blake  <ebb9@byu.net>
10144
10145         * gnulib-tool: Fix various comment typos.
10146
10147 2008-05-12  Bruno Haible  <bruno@clisp.org>
10148
10149         Tailor the linebreaking algorithm.
10150         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10151
10152 2008-05-12  Bruno Haible  <bruno@clisp.org>
10153
10154         Update to Unicode 5.0.0.
10155         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10156         LBP_JV, LBP_JT. Redistribute values.
10157         (unilbrk_table): Change size.
10158         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10159         Unicode TR#14 rev. 22.
10160         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10161         LBP_JV, LBP_JT. Redistribute values.
10162         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10163         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10164         Update.
10165         * lib/unilbrk/lbrkprop1.h: Regenerated.
10166         * lib/unilbrk/lbrkprop2.h: Regenerated.
10167         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10168         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10169         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10170         Likewise.
10171         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10172         Likewise.
10173         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10174         result.
10175         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10176         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10177         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10178         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10179         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10180         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10181
10182 2008-05-11  Bruno Haible  <bruno@clisp.org>
10183
10184         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10185
10186 2008-05-11  Bruno Haible  <bruno@clisp.org>
10187
10188         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10189         * modules/unilbrk/gen-lbrk: New file.
10190
10191 2008-05-11  Bruno Haible  <bruno@clisp.org>
10192
10193         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10194         * m4/sha512.m4 (gl_SHA512): Likewise.
10195
10196 2008-05-11  Jim Meyering  <meyering@redhat.com>
10197
10198         New modules: crypto/sha256, crypto/sha512 (from coreutils)
10199         * modules/crypto/sha256: New file.
10200         * modules/crypto/sha512: Likewise.
10201         * lib/sha256.c: Likewise.
10202         * lib/sha256.h: Likewise.
10203         * lib/sha512.c: Likewise.
10204         * lib/sha512.h: Likewise.
10205         * lib/u64.h: Likewise.
10206         * m4/sha256.m4: Likewise.
10207         * m4/sha512.m4: Likewise.
10208         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10209
10210 2008-05-10  Bruno Haible  <bruno@clisp.org>
10211
10212         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10213         (Input/Output <stdio.h>): Add xprintf.
10214         (Signal handling <signal.h>): Add strsignal.
10215         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10216         (Core language properties): Add func.
10217         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10218         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10219         strings.
10220         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10221         (Input/output): New section.
10222         (File system functions): Add openat-die, stat-macros.
10223         (Networking functions): Add sockets.
10224         (Unicode string functions): Add unictype/*.
10225         (Support for building libraries and executables): Add gperf.
10226         (Support for building documentation): Add agpl-3.0.
10227         (Misc): Add nocrash.
10228
10229 2008-05-10  Bruno Haible  <bruno@clisp.org>
10230
10231         * modules/unictype/gen-ctype: New file.
10232
10233 2008-05-10  Jim Meyering  <meyering@redhat.com>
10234
10235         Make chdir-safer.c more efficient on a system with no symlinks.
10236         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10237         also if ELOOP is zero.  Suggested by Bruno Haible.
10238
10239         Make chdir-safer.c slightly safer.
10240         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10241         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10242
10243         Avoid compile failure on systems without ELOOP (like mingw).
10244         * lib/chdir-safer.c (ELOOP): Define if not already defined.
10245         Reported by Bruno Haible.
10246
10247 2008-05-10  Bruno Haible  <bruno@clisp.org>
10248
10249         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10250         (is_utf8_encoding): Use a case-insensitive comparison.
10251         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10252         streq.
10253
10254 2008-05-10  Bruno Haible  <bruno@clisp.org>
10255
10256         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10257         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10258         * lib/unilbrk/ulc-common.h (iconv_string_length,
10259         iconv_string_keeping_offsets): Remove declarations.
10260         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10261         Don't include <iconv.h>, streq.h, xsize.h.
10262         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10263         conversion.
10264         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10265         <iconv.h>, streq.h, xsize.h.
10266         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10267         conversion.
10268         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10269         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10270         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10271         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10272
10273 2008-05-10  Bruno Haible  <bruno@clisp.org>
10274
10275         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10276         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10277
10278         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10279         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10280
10281         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10282         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10283
10284         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10285         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10286
10287         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10288         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10289
10290         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10291         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10292
10293         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10294         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10295
10296         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10297         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10298
10299 2008-05-10  Bruno Haible  <bruno@clisp.org>
10300
10301         Split up 'linebreak' module.
10302         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10303         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10304         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10305         modifications.
10306         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10307         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10308         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10309         lib/linebreak.c.
10310         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10311         lib/linebreak.c.
10312         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10313         lib/linebreak.c.
10314         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10315         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10316         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10317         lib/linebreak.c.
10318         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10319         lib/linebreak.c.
10320         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10321         lib/linebreak.c.
10322         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10323         lib/linebreak.c.
10324         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10325         lib/linebreak.c.
10326         * modules/unilbrk/base: New file.
10327         * modules/unilbrk/tables: New file.
10328         * modules/unilbrk/u8-possible-linebreaks: New file.
10329         * modules/unilbrk/u16-possible-linebreaks: New file.
10330         * modules/unilbrk/u32-possible-linebreaks: New file.
10331         * modules/unilbrk/ulc-common: New file.
10332         * modules/unilbrk/ulc-possible-linebreaks: New file.
10333         * modules/unilbrk/u8-width-linebreaks: New file.
10334         * modules/unilbrk/u16-width-linebreaks: New file.
10335         * modules/unilbrk/u32-width-linebreaks: New file.
10336         * modules/unilbrk/ulc-width-linebreaks: New file.
10337         * lib/linebreak.h: Remove file.
10338         * lib/linebreak.c: Remove file.
10339         * m4/linebreak.m4: Remove file.
10340         * modules/linebreak: Remove file.
10341         * NEWS: Mention the changes.
10342
10343 2008-05-09  Eric Blake  <ebb9@byu.net>
10344
10345         Add xmemdup0.
10346         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10347         implementation.
10348         * lib/xmalloc.c (xmemdup0): New C implementation.
10349
10350 2008-05-08  Bruno Haible  <bruno@clisp.org>
10351
10352         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10353
10354 2008-05-07  Eric Blake  <ebb9@byu.net>
10355
10356         Support cross-compilation of <wctype.h>.
10357         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10358         AC_CACHE_CHECK.
10359
10360 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10361
10362         * build-aux/vc-list-files: Add support for bzr.
10363
10364 2008-05-03  Jim Meyering  <meyering@redhat.com>
10365
10366         avoid failed assertion with tight malloc
10367         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10368
10369 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10370
10371         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10372         are needed from arpa/inet.h.
10373         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10374         Reported by Bruno Haible.
10375
10376 2008-05-02  Jim Meyering  <meyering@redhat.com>
10377
10378         avoid compilation error on FreeBSD 6
10379         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10380
10381 2008-05-01  Jim Meyering  <meyering@redhat.com>
10382
10383         useless-if-before-free: correct --help's exit status description
10384         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10385         for one or more matches, etc.  Reported by Bruno Haible.
10386
10387         vc-list-files: make the stand-alone gnulib test work
10388         * modules/vc-list-files-tests (configure.ac):
10389         Define and AC_SUBST abs_aux_dir.
10390         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10391         $(abs_top_srcdir) to each script and having each of them
10392         duplicate the work of setting PATH, set PATH here, using
10393         the new variable, abs_aux_dir instead.
10394         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10395         * tests/test-vc-list-files-git.sh: Likewise.
10396         Reported by Bruno Haible.
10397
10398 2008-05-01  Bruno Haible  <bruno@clisp.org>
10399
10400         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10401         reallocation. Rename 'done' to 'found_delimiter'.
10402
10403 2008-05-01  Jim Meyering  <meyering@redhat.com>
10404
10405         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10406         * build-aux/vc-list-files: Use `...`, not $(...).
10407
10408 2008-04-30  Jim Meyering  <meyering@redhat.com>
10409
10410         add tests for vc-list-files
10411         * modules/vc-list-files-tests: New module.
10412         * tests/test-vc-list-files-cvs.sh: New file.
10413         * tests/test-vc-list-files-git.sh: New file.
10414
10415         avoid a warning from gcc
10416         * lib/getndelim2.c (IF_LINT): Define.
10417         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10418
10419         vc-list-files: work properly with build-aux/cvsu, too
10420         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10421         to all cvs-based clauses.
10422
10423         vc-list-files: work properly in the CVS+awk case, too
10424         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10425
10426         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10427         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10428         take more than one file argument, so .  Add quotes, just in case $dir
10429         ever contains a shell meta-character.  Prompted by Soren Hansen in
10430         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10431
10432 2008-04-29  Eric Blake  <ebb9@byu.net>
10433
10434         Optimize getndelim2 to use block operations when possible.
10435         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10436         freadseek, and memchr2.
10437         * lib/getndelim2.c (getndelim2): Use them for block reads.
10438
10439 2008-04-29  Bruno Haible  <bruno@clisp.org>
10440
10441         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10442         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10443         * modules/inet_ntop (Depends-on): Add extensions.
10444         * modules/inet_pton (Depends-on): Likewise.
10445         Reported by Simon Josefsson.
10446
10447 2008-04-29  Jim Meyering  <meyering@redhat.com>
10448
10449         When the is more than one match in a block, match all of them.
10450         * build-aux/useless-if-before-free: Iterate through each block
10451         until there are no more matches.
10452
10453         Fix broken useless-if-before-free script.
10454         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10455         the expression to match cast of argument to free-like function.
10456
10457 2008-04-29  Eric Blake  <ebb9@byu.net>
10458
10459         Use new header.
10460         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10461
10462 2008-04-29  Jim Meyering  <meyering@redhat.com>
10463
10464         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10465         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10466         by gnulib to exist and to declare e.g., inet_ntop.
10467         Don't include "inet_ntop.h", now removed.
10468
10469         * m4/arpa_inet_h.m4: Remove trailing blanks.
10470
10471 2008-04-29  Eric Blake  <ebb9@byu.net>
10472
10473         Silence valgrind on safe reads beyond potential array bounds.
10474         * lib/rawmemchr.valgrind: New file.
10475         * lib/strchrnul.valgrind: Likewise.
10476         * modules/rawmemchr (Files): Distribute new file.
10477         * modules/strchrnul (Files): Likewise.
10478         Suggested by Bruno Haible.
10479
10480 2008-04-29  Bruno Haible  <bruno@clisp.org>
10481
10482         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10483         (inet_ntop, inet_pton): Change portability warning's wording.
10484         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10485         Invoke gl_CHECK_NEXT_HEADERS.
10486         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10487         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10488         set ARPA_INET_H.
10489         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10490         * modules/arpa_inet (Description): No longer only for systems that
10491         lack it.
10492         (Depends-on): Add include_next.
10493         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10494         HAVE_ARPA_INET_H.
10495
10496 2008-04-29  Jim Meyering  <meyering@redhat.com>
10497
10498         * modules/mkdir (License): Re-license as LGPLv2+.
10499
10500 2008-04-29  Bruno Haible  <bruno@clisp.org>
10501
10502         * modules/rawmemchr (Maintainer): Set to Eric.
10503         * modules/strchrnul (Maintainer): Likewise.
10504
10505 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10506
10507         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10508         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10509
10510         * modules/arpa_inet (arpa/inet.h): Use them.
10511
10512 2008-04-28  Eric Blake  <ebb9@byu.net>
10513
10514         Test getndelim2.
10515         * modules/getndelim2-tests: New file.
10516         * tests/test-getndelim2.c: Likewise.
10517         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10518         stream.
10519         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10520
10521         * MODULES.html.sh: Document new module.
10522
10523 2008-04-20  Bruno Haible  <bruno@clisp.org>
10524
10525         * lib/c-stack.c (die): Use raise.
10526         * modules/c-stack (Depends-on): Add raise.
10527
10528 2008-04-28  Bruno Haible  <bruno@clisp.org>
10529
10530         Expect rpmatch to be declared.
10531         * lib/yesno.c (rpmatch): Remove declaration.
10532
10533         Declare rpmatch.
10534         * lib/stdlib.in.h (rpmatch): New declaration.
10535         * lib/rpmatch.c: Include <stdlib.h> first.
10536         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10537         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10539         HAVE_RPMATCH.
10540         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10541         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10542         (Include): Set to <stdlib.h>.
10543         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10544         HAVE_RPMATCH.
10545         * NEWS: Document the change.
10546
10547 2008-04-28  Bruno Haible  <bruno@clisp.org>
10548
10549         Change rpmatch to use nl_langinfo when appropriate.
10550         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10551         (N_): New macro.
10552         (localized_pattern): New function/macro.
10553         (try): Remove match, nomatch arguments. Copy the pattern into safe
10554         memory before caching it.
10555         (rpmatch): Use localized_pattern. Add translator comments.
10556         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10557         Suggested by Eric Blake.
10558         * modules/rpmatch (Depends-on): Add stdbool.
10559
10560 2008-04-28  Eric Blake  <ebb9@byu.net>
10561
10562         Add rawmemchr module, matching glibc.
10563         * modules/string (Makefile.am): New indicator.
10564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10565         * lib/string.in.h (rawmemchr): Declare when appropriate.
10566         * modules/rawmemchr: New file.
10567         * m4/rawmemchr.m4: Likewise.
10568         * lib/rawmemchr.c: Likewise.
10569         * modules/rawmemchr-tests: Likewise.
10570         * tests/test-rawmemchr.c: Likewise.
10571         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10572         module.
10573         * modules/strchrnul (Depends-on): Add rawmemchr.
10574         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10575
10576         Whitespace cleanup.
10577         * tests/test-strchrnul.c: Reindent.
10578         * lib/strchrnul.c: Likewise.
10579
10580         Optimize and test strchrnul.
10581         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10582         * modules/strchrnul-tests: New file.
10583         * tests/test-strchrnul.c: Likewise.
10584
10585         Remove intprops dependency.
10586         * modules/memchr (Depends-on): Remove intprops.
10587         * modules/memrchr (Depends-on): Likewise.
10588         * modules/memchr2 (Depends-on): Likewise.
10589         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10590         * lib/memrchr.c (__memrchr): Likewise.
10591         * lib/memrchr2.c (memchr2): Likewise.
10592         Reported by Simon Josefsson.
10593
10594 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10595
10596         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10597         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10598
10599 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10600
10601         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10602
10603         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10604
10605         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10606
10607         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10608         declarations.
10609         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10610
10611         * m4/inet_pton.m4: Don't check for header files.
10612
10613         * m4/inet_ntop.m4: Don't check for header files.
10614
10615 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10616
10617         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10618         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10619         trigger for cygwin).
10620         Reported by Bruno Haible  <bruno@clisp.org>.
10621
10622 2008-04-28  Bruno Haible  <bruno@clisp.org>
10623
10624         * doc/posix-functions/strdup.texi: Mention mingw problem.
10625
10626 2008-04-27  Bruno Haible  <bruno@clisp.org>
10627
10628         * modules/stat-time-tests (Depends-on): Add sleep.
10629         * tests/test-stat-time.c (force_unlink): New function.
10630         (cleanup): Use it.
10631         (test_mtime): Remove the ctime related tests.
10632         (test_ctime): New function, containing the ctime related tests.
10633         (main): Call test_ctime, except on native Windows platforms.
10634
10635 2008-04-27  Bruno Haible  <bruno@clisp.org>
10636
10637         * lib/rpmatch.c (rpmatch): Add some comments.
10638         Reported by James Youngman <jay@gnu.org>.
10639
10640 2008-04-27  Bruno Haible  <bruno@clisp.org>
10641
10642         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10643         quiet NaNs.
10644
10645 2008-04-27  Bruno Haible  <bruno@clisp.org>
10646
10647         Make test-yesno.sh work on mingw.
10648         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10649         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10650         (main): Set stdin to binary mode.
10651         * modules/yesno-tests (Depends-on): Add binary-io.
10652
10653 2008-04-27  Bruno Haible  <bruno@clisp.org>
10654
10655         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10656         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10657         argument that lie outside the IEEE 854 domain.
10658         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10659         (gl_ISFINITE): Use it.
10660         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10661
10662 2008-04-27  Bruno Haible  <bruno@clisp.org>
10663
10664         Allow local renaming in config.h.
10665         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10666
10667 2008-04-27  Bruno Haible  <bruno@clisp.org>
10668
10669         * lib/memchr.c (__memchr): Change type of 'i'.
10670         * lib/memchr2.c (memchr2): Likewise.
10671
10672 2008-04-26  Eric Blake  <ebb9@byu.net>
10673         and Bruno Haible  <bruno@clisp.org>
10674
10675         Optimize and test memrchr.
10676         * modules/memrchr (Depends-on): Add intprops.
10677         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10678         * modules/memrchr-tests: New file.
10679         * tests/test-memrchr.c: New file.
10680
10681 2008-04-26  Bruno Haible  <bruno@clisp.org>
10682
10683         Add tentative support for DragonFly BSD.
10684         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10685         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10686         fp.
10687         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10688         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10689         * lib/fpurge.c (fpurge): Likewise.
10690         * lib/freadable.c (freaadable): Likewise.
10691         * lib/freadahead.c (freadahead): Likewise.
10692         * lib/freading.c (freading): Likewise.
10693         * lib/freadptr.c (freadptr): Likewise.
10694         * lib/freadseek.c (freadptrinc): Likewise.
10695         * lib/fseeko.c (fseeko): Likewise.
10696         * lib/fseterr.c (fseterr): Likewise.
10697         * lib/fwritable.c (fwritable): Likewise.
10698         * lib/fwriting.c (fwriting): Likewise.
10699
10700 2008-04-26  Bruno Haible  <bruno@clisp.org>
10701
10702         * lib/stdio-impl.h: New file.
10703         * lib/fbufmode.c: Include stdio-impl.h.
10704         (fbufmode): Use fp_, remove redundant #defines.
10705         * lib/fflush.c: Include stdio-impl.h.
10706         (clear_ungetc_buffer): Remove redundant #defines.
10707         * lib/fpurge.c: Include stdio-impl.h.
10708         (fpurge): Remove redundant #defines.
10709         * lib/freadable.c: Include stdio-impl.h.
10710         (freadable): Remove redundant #defines.
10711         * lib/freadahead.c: Include stdio-impl.h.
10712         (freadahead): Remove redundant #defines.
10713         * lib/freading.c: Include stdio-impl.h.
10714         (freading): Remove redundant #defines.
10715         * lib/freadptr.c: Include stdio-impl.h.
10716         (freadptr): Remove redundant #defines.
10717         * lib/freadseek.c: Include stdio-impl.h.
10718         (freadptrinc): Remove redundant #defines.
10719         * lib/fseeko.c: Include stdio-impl.h.
10720         (rpl_fseeko): Remove redundant #defines.
10721         * lib/fseterr.c: Include stdio-impl.h.
10722         (fseterr): Remove redundant #defines.
10723         * lib/fwritable.c: Include stdio-impl.h.
10724         (fwritable: Remove redundant #defines.
10725         * lib/fwriting.c: Include stdio-impl.h.
10726         (fwriting): Remove redundant #defines.
10727         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10728         * modules/fflush (Files): Likewise.
10729         * modules/fpurge (Files): Likewise.
10730         * modules/freadable (Files): Likewise.
10731         * modules/freadahead (Files): Likewise.
10732         * modules/freading (Files): Likewise.
10733         * modules/freadptr (Files): Likewise.
10734         * modules/freadseek (Files): Likewise.
10735         * modules/fseeko (Files): Likewise.
10736         * modules/fseterr (Files): Likewise.
10737         * modules/fwritable (Files): Likewise.
10738         * modules/fwriting (Files): Likewise.
10739
10740 2008-04-26  Bruno Haible  <bruno@clisp.org>
10741
10742         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10743         restore_seek_optimization, update_fpos_cache): New functions, extracted
10744         from rpl_fflush.
10745         (rpl_fflush): Use them.
10746         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10747         (gl_REPLACE_FFLUSH): Use it.
10748
10749 2008-04-26  Bruno Haible  <bruno@clisp.org>
10750
10751         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10752         on Solaris.
10753         * tests/test-xstrtoimax.sh: Likewise.
10754         * tests/test-xstrtoumax.sh: Likewise.
10755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10756
10757 2008-04-26  Bruno Haible  <bruno@clisp.org>
10758
10759         * modules/memchr-tests: New file.
10760         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10761
10762 2008-04-26  Eric Blake  <ebb9@byu.net>
10763             Bruno Haible  <bruno@clisp.org>
10764
10765         * lib/memchr.c: Include intprops.h.
10766         (__memchr): Optimize parallel detection of matching bytes. Rename local
10767         variables. Add explanatory comments.
10768
10769 2008-04-26  Bruno Haible  <bruno@clisp.org>
10770
10771         Fix module 'memchr', broken since 2000-10-28.
10772         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10773
10774 2008-04-26  Bruno Haible  <bruno@clisp.org>
10775
10776         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10777         comments.
10778
10779 2008-04-25  Eric Blake  <ebb9@byu.net>
10780
10781         Use native fstatat on cygwin 1.7.0.
10782         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10783         first.
10784
10785 2008-04-23  Eric Blake  <ebb9@byu.net>
10786
10787         Improve memchr2 performance.
10788         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10789         NUL bytes.
10790         * modules/memchr2 (Depends-on): Use intprops.h.
10791
10792 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10793
10794         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10795         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10796         <blp@cs.stanford.edu>.
10797
10798 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10799
10800         * lib/arpa_inet.in.h: New file.
10801
10802         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10803         (Makefile.am): Sed in substitute header file.
10804
10805         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10806         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10807
10808         * modules/inet_ntop (configure.ac): Use
10809         gl_ARPA_INET_MODULE_INDICATOR.
10810
10811         * modules/inet_pton (configure.ac): Use
10812         gl_ARPA_INET_MODULE_INDICATOR.
10813
10814 2008-04-22  Jim Meyering  <meyering@redhat.com>
10815
10816         * modules/verify (License): Re-license as LGPLv2+.
10817
10818 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10819
10820         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10821         parameter to void* as per POSIX standard (MinGW uses char*).
10822
10823 2008-04-21  Bruno Haible  <bruno@clisp.org>
10824
10825         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10826         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10827         Define to replacements if REPLACE_ISWCNTRL is 1.
10828         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10829         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10830         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10831         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10832         what it fixes.
10833         * doc/posix-functions/iswalpha.texi: Likewise.
10834         * doc/posix-functions/iswblank.texi: Likewise.
10835         * doc/posix-functions/iswcntrl.texi: Likewise.
10836         * doc/posix-functions/iswdigit.texi: Likewise.
10837         * doc/posix-functions/iswgraph.texi: Likewise.
10838         * doc/posix-functions/iswlower.texi: Likewise.
10839         * doc/posix-functions/iswprint.texi: Likewise.
10840         * doc/posix-functions/iswpunct.texi: Likewise.
10841         * doc/posix-functions/iswspace.texi: Likewise.
10842         * doc/posix-functions/iswupper.texi: Likewise.
10843         * doc/posix-functions/iswxdigit.texi: Likewise.
10844         Reported by Alain Guibert.
10845
10846 2008-04-21  Bruno Haible  <bruno@clisp.org>
10847
10848         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10849         Patch by Alain Guibert.
10850
10851 2008-04-21  Bruno Haible  <bruno@clisp.org>
10852
10853         Fix test failures on mingw.
10854         * tests/test-xstrtol.c (print_no_progname): New function.
10855         (main): Install it in error_print_progname hook.
10856         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10857         * tests/test-xstrtoimax.sh: Likewise.
10858         * tests/test-xstrtoumax.sh: Likewise.
10859
10860 2008-04-21  Bruno Haible  <bruno@clisp.org>
10861
10862         Fix test failure on mingw.
10863         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10864
10865 2008-04-21  Bruno Haible  <bruno@clisp.org>
10866
10867         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10868         Actually assign a value.
10869
10870 2008-04-20  Bruno Haible  <bruno@clisp.org>
10871
10872         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10873         take 2.
10874         * lib/canonicalize.c (canonicalize_file_name): Elide if the
10875         'canonicalize-lgpl' module is also used.
10876         * lib/canonicalize-lgpl.c: Undo last change.
10877         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10878
10879 2008-04-20  Bruno Haible  <bruno@clisp.org>
10880
10881         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10882         config.h. Provide _mkdir based fallback for mingw.
10883         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10884         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10885         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10886         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10887         rather than defining mkdir in config.h.
10888         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10889         (gl_SYS_STAT_H_DEFAULTS): New macro.
10890         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10891         HAVE_IO_H any more.
10892         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10893         HAVE_DECL_MKDIR and HAVE_IO_H.
10894
10895 2008-04-20  Bruno Haible  <bruno@clisp.org>
10896
10897         * lib/isapipe.c: Port to native Windows platforms.
10898
10899 2008-04-20  Bruno Haible  <bruno@clisp.org>
10900
10901         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10902
10903 2008-04-21  Eric Blake  <ebb9@byu.net>
10904
10905         Work around preprocessors that don't handle UINTMAX_MAX.
10906         * lib/memchr2.c (memchr2): Avoid embedded #if.
10907         Reported by Alain Guibert, fix suggested by Bruno Haible.
10908
10909 2008-04-21  Simon Josefsson  <simon@josefsson.org>
10910
10911         * doc/posix-functions/strftime.texi (strftime): Explain better
10912         Windows incompatibility.  Suggested by Micah Cowan
10913         <micah@cowan.name>.
10914
10915 2008-04-20  Bruno Haible  <bruno@clisp.org>
10916
10917         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10918         unistr/u8-mblen.
10919
10920 2008-04-20  Bruno Haible  <bruno@clisp.org>
10921
10922         Fix test failure on platforms with non-GNU iconv.
10923         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10924         (U_TO_U8): Use it, rather than u16_to_u8.
10925         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10926         units at the end of the input string.
10927         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10928
10929 2008-04-20  Bruno Haible  <bruno@clisp.org>
10930
10931         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10932         when the resulting length is 0.
10933         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10934
10935 2008-04-20  Bruno Haible  <bruno@clisp.org>
10936
10937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10938         works.
10939         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10940
10941 2008-04-20  Bruno Haible  <bruno@clisp.org>
10942
10943         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10944         * modules/tsearch-tests (configure.ac): Test for initstate function.
10945
10946 2008-04-20  Bruno Haible  <bruno@clisp.org>
10947
10948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10949         for nlink_t if missing.
10950         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10951
10952 2008-04-19  Bruno Haible  <bruno@clisp.org>
10953
10954         Work around snprintf bug on Linux libc5.
10955         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10957         gl_SNPRINTF_SIZE1.
10958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10959         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10960         that test failed.
10961         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10962         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10963         * modules/snprintf (Files): Add m4/printf.m4.
10964         * modules/vsnprintf (Files): Likewise.
10965         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10966         * doc/posix-functions/vsnprintf.texi: Likewise.
10967
10968 2008-04-19  Bruno Haible  <bruno@clisp.org>
10969
10970         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10971         from 0.0058 to less than 10^-7.
10972
10973 2008-04-19  Bruno Haible  <bruno@clisp.org>
10974
10975         Fix rounding when a precision is given.
10976         * lib/vasnprintf.c (is_borderline): New function.
10977         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10978         9...9x.
10979         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10980         %e, %g.
10981         * tests/test-vasprintf-posix.c (test_function): Likewise.
10982         * tests/test-snprintf-posix.h (test_function): Likewise.
10983         * tests/test-sprintf-posix.h (test_function): Likewise.
10984         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10985         * tests/test-printf-posix.h (test_function): Likewise.
10986         * tests/test-printf-posix.output: Update.
10987         Reported by John Darrington <john@darrington.wattle.id.au> via
10988         Ben Pfaff <blp@cs.stanford.edu>.
10989
10990 2008-04-18  Simon Josefsson  <simon@josefsson.org>
10991
10992         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10993         Suggested by Bruno Haible <bruno@clisp.org>.
10994
10995 2008-04-17  Bruno Haible  <bruno@clisp.org>
10996
10997         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10998         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10999         implementation.
11000         Patch by Bruce Merry <bmerry@gmail.com>.
11001
11002 2008-04-17  Simon Josefsson  <simon@josefsson.org>
11003
11004         * doc/posix-functions/strftime.texi (strftime): Mention that %e
11005         doesn't work under Windows.
11006
11007 2008-04-16  Bruno Haible  <bruno@clisp.org>
11008
11009         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
11010         New macros.
11011         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
11012         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
11013         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
11014         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
11015         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
11016         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
11017         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
11018         macros.
11019         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
11020         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
11021         Northern Sotho, Uighur.
11022
11023 2008-04-16  Bruno Haible  <bruno@clisp.org>
11024
11025         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
11026         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
11027         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
11028         Reported by Daniel Bergström <daniel@octocode.com>.
11029
11030 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
11031             Bruno Haible  <bruno@clisp.org>
11032
11033         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
11034         function.
11035         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
11036         New functions, mostly extracted from gl_locale_name_default.
11037         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
11038
11039 2008-04-16  Eric Blake  <ebb9@byu.net>
11040
11041         Adjust strtod detection to catch glibc 2.7 bug.
11042         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
11043         Reported by John Gatewood Ham.
11044
11045 2008-04-16  Bruno Haible  <bruno@clisp.org>
11046
11047         Add tentative support for Linux libc5.
11048         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
11049         * lib/fpurge.c (fpurge): Likewise.
11050         * lib/freadable.c (freadable): Likewise.
11051         * lib/freadahead.c (freadahead): Likewise.
11052         * lib/freading.c (freading): Likewise.
11053         * lib/freadptr.c (freadptr): Likewise.
11054         * lib/freadseek.c (freadptrinc): Likewise.
11055         * lib/fseeko.c (rpl_fseeko): Likewise.
11056         * lib/fseterr.c (fseterr): Likewise.
11057         * lib/fwritable.c (fwritable): Likewise.
11058         * lib/fwriting.c (fwriting): Likewise.
11059         Reported by Alain Guibert <alguibert+bts@free.fr>.
11060
11061 2008-04-15  Bruno Haible  <bruno@clisp.org>
11062
11063         * modules/mathl (configure.ac): Define module indicator.
11064
11065 2008-04-15  Bruno Haible  <bruno@clisp.org>
11066
11067         * lib/logl.c (logl): Remove unused variables.
11068
11069 2008-04-15  Bruno Haible  <bruno@clisp.org>
11070
11071         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
11072         fails.
11073
11074 2008-04-15  Bruno Haible  <bruno@clisp.org>
11075
11076         * lib/trim.c (trim2): Fix argument of isspace() macro.
11077
11078 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
11079
11080         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
11081         to 0.
11082         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
11083
11084 2008-04-14  Bruno Haible  <bruno@clisp.org>
11085
11086         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
11087         AC_LANG_PROGRAM argument.
11088         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
11089         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
11090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11092         * m4/math_h.m4 (gl_MATH_H): Likewise.
11093         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11094         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11095         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11096         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11097         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11098         * m4/regex.m4 (gl_REGEX): Likewise.
11099         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11100         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
11101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11102         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
11103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11104         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11105         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11107
11108 2008-04-14  Jim Meyering  <meyering@redhat.com>
11109
11110         test-strtod: fix typos: s/abs/fabs/
11111         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
11112
11113 2008-04-13  Bruno Haible  <bruno@clisp.org>
11114
11115         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
11116         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
11117         module is also used and while not building the reloc-wrapper.
11118
11119 2008-04-13  Bruno Haible  <bruno@clisp.org>
11120
11121         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
11122
11123 2008-04-13  Bruno Haible  <bruno@clisp.org>
11124
11125         Fix AIX compilation failure introduced on 2008-04-02.
11126         * tests/test-frexp.c (exp): Undefine before redefining.
11127         * tests/test-frexpl.c (exp): Likewise.
11128
11129 2008-04-13  Bruno Haible  <bruno@clisp.org>
11130
11131         Work around a HP-UX stdio bug.
11132         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
11133         * tests/test-ftello.c (main): Likewise.
11134         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
11135         * doc/posix-functions/ftello.texi: Likewise.
11136
11137 2008-04-13  Bruno Haible  <bruno@clisp.org>
11138
11139         Make test-signbit pass on HP-UX/hppa.
11140         * tests/test-signbit.c (minus_zerol): New variable.
11141         (test_signbitl): Use it.
11142
11143 2008-04-13  Bruno Haible  <bruno@clisp.org>
11144
11145         Make truncl work on OSF/1 4.0.
11146         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
11147         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11148         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11150         HAVE_DECL_TRUNCL.
11151         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11152         HAVE_DECL_TRUNCL.
11153         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11154
11155 2008-04-13  Bruno Haible  <bruno@clisp.org>
11156
11157         * lib/unictype.h: Remove trailing comma from enumeration definitions.
11158
11159 2008-04-13  Bruno Haible  <bruno@clisp.org>
11160
11161         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11162         expression, so as to avoid HP-UX 11 cc compiler bug.
11163
11164 2008-04-13  Bruno Haible  <bruno@clisp.org>
11165
11166         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11167
11168 2008-04-13  Bruno Haible  <bruno@clisp.org>
11169
11170         * lib/git-merge-changelog.c: Remove empty declaration outside of
11171         functions.
11172
11173 2008-04-13  Bruno Haible  <bruno@clisp.org>
11174
11175         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11176
11177 2008-04-13  Bruno Haible  <bruno@clisp.org>
11178
11179         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11180         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11181         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11182         also if it exists but lacks definitions of the SHUT_* macros.
11183         * modules/sys_socket (Description): Update.
11184         Reported by Elbert Pol <e.pol@chello.nl>.
11185
11186 2008-04-13  Bruno Haible  <bruno@clisp.org>
11187
11188         * lib/localcharset.c (OS2): Don't redefine if already defined.
11189         Reported by Elbert Pol <e.pol@chello.nl>.
11190
11191 2008-04-13  Bruno Haible  <bruno@clisp.org>
11192
11193         * lib/binary-io.h [__EMX__]: Include <io.h>.
11194         Reported by Elbert Pol <e.pol@chello.nl>.
11195
11196 2008-04-12  Bruno Haible  <bruno@clisp.org>
11197
11198         * lib/fpucw.h: Enable the definitions also for x86_64.
11199         Needed for NetBSD/x86_64.
11200         Reported by Thomas Klausner <tk@giga.or.at>.
11201
11202 2008-04-12  Bruno Haible  <bruno@clisp.org>
11203
11204         * tests/test-strtod.c: Include isnand.h.
11205         (main): Use isnand instead of isnan.
11206         Reported by Jim Meyering.
11207
11208 2008-04-12  Bruno Haible  <bruno@clisp.org>
11209
11210         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11211         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11212
11213 2008-04-12  Jim Meyering  <meyering@redhat.com>
11214
11215         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11216
11217 2008-04-12  Bruno Haible  <bruno@clisp.org>
11218
11219         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11220         Reported by Elbert Pol <e.pol@chello.nl>.
11221
11222 2008-04-12  Eric Blake  <ebb9@byu.net>
11223
11224         Work around Solaris 10 math.h bug.
11225         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11226         (gl_MATH_H_DEFAULTS): Set up default.
11227         * modules/math (Makefile.am): Replace new indicators.
11228         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11229         * tests/test-math.c (main): Test this.
11230         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11231         * doc/posix-headers/math.texi (math.h): Mention bug.
11232         Reported by Nelson H. F. Beebe and Jim Meyering.
11233
11234 2008-04-11  Bruno Haible  <bruno@clisp.org>
11235
11236         Adapt to future versions of Apple GCC.
11237         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11238         Reported by Peter O'Gorman <peter@pogma.com>.
11239
11240 2008-04-11  Bruno Haible  <bruno@clisp.org>
11241
11242         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11243
11244 2008-04-11  Bruno Haible  <bruno@clisp.org>
11245
11246         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11247
11248         * modules/getaddrinfo-tests (Makefile.am): Define
11249         test_getaddrinfo_LDADD.
11250
11251 2008-04-11  Bruno Haible  <bruno@clisp.org>
11252
11253         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11254         (init): Fix syntax error.
11255         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11256         is declared.
11257
11258 2008-04-11  Bruno Haible  <bruno@clisp.org>
11259
11260         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11261         * modules/glob (Depends-on): Add stdbool.
11262
11263 2008-04-11  Bruno Haible  <bruno@clisp.org>
11264
11265         * lib/trim.c: Include <string.h>.
11266
11267 2008-04-11  Eric Blake  <ebb9@byu.net>
11268
11269         Avoid compile failure on OS/2.
11270         * lib/regex_internal.h (internal_function): Disable optimization
11271         on OS/2 (__EMX__), where it caused compiler error.
11272         Reported by Elbert Pol.
11273
11274 2008-04-11  Bruno Haible  <bruno@clisp.org>
11275
11276         Flush the standard error stream before aborting. Needed on mingw.
11277         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11278         * tests/test-array_list.c (ASSERT): Likewise.
11279         * tests/test-array_oset.c (ASSERT): Likewise.
11280         * tests/test-avltree_list.c (ASSERT): Likewise.
11281         * tests/test-avltree_oset.c (ASSERT): Likewise.
11282         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11283         * tests/test-binary-io.c (ASSERT): Likewise.
11284         * tests/test-byteswap.c (ASSERT): Likewise.
11285         * tests/test-c-ctype.c (ASSERT): Likewise.
11286         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11287         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11288         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11289         * tests/test-c-strstr.c (ASSERT): Likewise.
11290         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11291         * tests/test-canonicalize.c (ASSERT): Likewise.
11292         * tests/test-carray_list.c (ASSERT): Likewise.
11293         * tests/test-ceilf1.c (ASSERT): Likewise.
11294         * tests/test-ceilf2.c (ASSERT): Likewise.
11295         * tests/test-ceill.c (ASSERT): Likewise.
11296         * tests/test-count-one-bits.c (ASSERT): Likewise.
11297         * tests/test-fbufmode.c (ASSERT): Likewise.
11298         * tests/test-fflush2.c (ASSERT): Likewise.
11299         * tests/test-floorf1.c (ASSERT): Likewise.
11300         * tests/test-floorf2.c (ASSERT): Likewise.
11301         * tests/test-floorl.c (ASSERT): Likewise.
11302         * tests/test-fopen.c (ASSERT): Likewise.
11303         * tests/test-fpending.c (ASSERT): Likewise.
11304         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11305         * tests/test-fpurge.c (ASSERT): Likewise.
11306         * tests/test-freadable.c (ASSERT): Likewise.
11307         * tests/test-freadahead.c (ASSERT): Likewise.
11308         * tests/test-freading.c (ASSERT): Likewise.
11309         * tests/test-freadptr.c (ASSERT): Likewise.
11310         * tests/test-freadptr2.c (ASSERT): Likewise.
11311         * tests/test-freadseek.c (ASSERT): Likewise.
11312         * tests/test-freopen.c (ASSERT): Likewise.
11313         * tests/test-frexp.c (ASSERT): Likewise.
11314         * tests/test-frexpl.c (ASSERT): Likewise.
11315         * tests/test-fseek.c (ASSERT): Likewise.
11316         * tests/test-fseeko.c (ASSERT): Likewise.
11317         * tests/test-fstrcmp.c (ASSERT): Likewise.
11318         * tests/test-ftell.c (ASSERT): Likewise.
11319         * tests/test-ftello.c (ASSERT): Likewise.
11320         * tests/test-func.c (ASSERT): Likewise.
11321         * tests/test-fwritable.c (ASSERT): Likewise.
11322         * tests/test-fwriting.c (ASSERT): Likewise.
11323         * tests/test-getdelim.c (ASSERT): Likewise.
11324         * tests/test-getline.c (ASSERT): Likewise.
11325         * tests/test-i-ring.c (ASSERT): Likewise.
11326         * tests/test-iconv-utf.c (ASSERT): Likewise.
11327         * tests/test-iconv.c (ASSERT): Likewise.
11328         * tests/test-isfinite.c (ASSERT): Likewise.
11329         * tests/test-isnand.c (ASSERT): Likewise.
11330         * tests/test-isnanf.c (ASSERT): Likewise.
11331         * tests/test-isnanl.h (ASSERT): Likewise.
11332         * tests/test-ldexpl.c (ASSERT): Likewise.
11333         * tests/test-linked_list.c (ASSERT): Likewise.
11334         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11335         * tests/test-localename.c (ASSERT): Likewise.
11336         * tests/test-lseek.c (ASSERT): Likewise.
11337         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11338         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11339         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11340         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11341         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11342         * tests/test-mbschr.c (ASSERT): Likewise.
11343         * tests/test-mbscspn.c (ASSERT): Likewise.
11344         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11345         * tests/test-mbspbrk.c (ASSERT): Likewise.
11346         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11347         * tests/test-mbsrchr.c (ASSERT): Likewise.
11348         * tests/test-mbsspn.c (ASSERT): Likewise.
11349         * tests/test-mbsstr1.c (ASSERT): Likewise.
11350         * tests/test-mbsstr2.c (ASSERT): Likewise.
11351         * tests/test-mbsstr3.c (ASSERT): Likewise.
11352         * tests/test-memchr2.c (ASSERT): Likewise.
11353         * tests/test-memmem.c (ASSERT): Likewise.
11354         * tests/test-open.c (ASSERT): Likewise.
11355         * tests/test-printf-frexp.c (ASSERT): Likewise.
11356         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11357         * tests/test-printf-posix.c (ASSERT): Likewise.
11358         * tests/test-quotearg.c (ASSERT): Likewise.
11359         * tests/test-rbtree_list.c (ASSERT): Likewise.
11360         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11361         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11362         * tests/test-round1.c (ASSERT): Likewise.
11363         * tests/test-roundf1.c (ASSERT): Likewise.
11364         * tests/test-roundl.c (ASSERT): Likewise.
11365         * tests/test-signbit.c (ASSERT): Likewise.
11366         * tests/test-sleep.c (ASSERT): Likewise.
11367         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11368         * tests/test-snprintf.c (ASSERT): Likewise.
11369         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11370         * tests/test-stat-time.c (ASSERT): Likewise.
11371         * tests/test-strcasestr.c (ASSERT): Likewise.
11372         * tests/test-strerror.c (ASSERT): Likewise.
11373         * tests/test-striconv.c (ASSERT): Likewise.
11374         * tests/test-striconveh.c (ASSERT): Likewise.
11375         * tests/test-striconveha.c (ASSERT): Likewise.
11376         * tests/test-strsignal.c (ASSERT): Likewise.
11377         * tests/test-strstr.c (ASSERT): Likewise.
11378         * tests/test-strtod.c (ASSERT): Likewise.
11379         * tests/test-trunc1.c (ASSERT): Likewise.
11380         * tests/test-trunc2.c (ASSERT): Likewise.
11381         * tests/test-truncf1.c (ASSERT): Likewise.
11382         * tests/test-truncf2.c (ASSERT): Likewise.
11383         * tests/test-truncl.c (ASSERT): Likewise.
11384         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11385         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11386         * tests/test-vasnprintf.c (ASSERT): Likewise.
11387         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11388         * tests/test-vasprintf.c (ASSERT): Likewise.
11389         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11390         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11391         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11392         * tests/test-vsnprintf.c (ASSERT): Likewise.
11393         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11394         * tests/test-wcwidth.c (ASSERT): Likewise.
11395         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11396         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11397         * tests/test-xvasprintf.c (ASSERT): Likewise.
11398         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11399         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11400         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11401         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11402         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11403         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11404         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11405         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11406         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11407         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11408         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11409         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11410         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11411         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11412         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11413         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11414         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11415         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11416         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11417         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11418         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11419         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11420         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11421         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11422         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11423         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11424         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11425         * tests/unictype/test-combining.c (ASSERT): Likewise.
11426         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11427         * tests/unictype/test-digit.c (ASSERT): Likewise.
11428         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11429         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11430         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11431         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11432         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11433         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11434         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11435         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11436         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11437         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11438         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11439         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11440         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11441         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11442         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11443         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11444         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11445         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11446         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11447         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11448         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11449         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11450         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11451         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11452         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11453         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11454         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11455         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11456         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11457         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11458         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11459         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11460         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11461         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11462         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11463         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11464         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11465         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11466         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11467         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11468         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11469         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11470         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11471         Reported by Eric Blake.
11472
11473 2008-04-11  Bruno Haible  <bruno@clisp.org>
11474
11475         * lib/wchar.in.h: Tweak comment.
11476
11477 2008-04-11  Bruno Haible  <bruno@clisp.org>
11478
11479         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11480         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11481         gl_COMMON.
11482         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11483
11484 2008-04-11  Bruno Haible  <bruno@clisp.org>
11485
11486         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11487
11488 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11489
11490         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11491         of attempting to use non-existing /dev/*random.  Based on patch
11492         from Adam Strzelecki <ono@java.pl> in
11493         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11494
11495 2008-04-08  Bruno Haible  <bruno@clisp.org>
11496
11497         Add tentative support for emx+gcc.
11498         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11499         * lib/fpurge.c (fpurge): Likewise.
11500         * lib/freadable.c (freadable): Likewise.
11501         * lib/freadahead.c (freadahead): Likewise.
11502         * lib/freading.c (freading): Likewise.
11503         * lib/freadptr.c (freadptr): Likewise.
11504         * lib/freadseek.c (freadptrinc): Likewise.
11505         * lib/fseeko.c (rpl_fseeko): Likewise.
11506         * lib/fseterr.c (fseterr): Likewise.
11507         * lib/fwritable.c (fwritable): Likewise.
11508         * lib/fwriting.c (fwriting): Likewise.
11509         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11510
11511 2008-04-09  Eric Blake  <ebb9@byu.net>
11512
11513         Avoid some autoconf warnings.
11514         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11515         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11516         * m4/afs.m4 (gl_AFS): Likewise.
11517         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11518         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11519         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11520         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11521         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11522         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11523         (AC_CHECK_DECLS_ONCE): Likewise.
11524         Rename file...
11525         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11526         gnulib-tool requires autoconf 2.59 or better.
11527         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11528
11529 2008-04-08  Eric Blake  <ebb9@byu.net>
11530
11531         Use 'git describe --match' if present (added in git 1.5.5).
11532         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11533         if possible.
11534
11535 2008-04-08  Bruno Haible  <bruno@clisp.org>
11536
11537         Add tentative support for OpenServer.
11538         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11539         _ptr, _cnt.
11540         * lib/fpurge.c (fpurge): Likewise.
11541         * lib/freadable.c (freadable): Likewise.
11542         * lib/freadahead.c (freadahead): Likewise.
11543         * lib/freading.c (freading): Likewise.
11544         * lib/freadptr.c (freadptr): Likewise.
11545         * lib/freadseek.c (freadptrinc): Likewise.
11546         * lib/fseeko.c (rpl_fseeko): Likewise.
11547         * lib/fseterr.c (fseterr): Likewise.
11548         * lib/fwritable.c (fwritable): Likewise.
11549         * lib/fwriting.c (fwriting): Likewise.
11550         Reported by Roger Cornelius <rac@tenzing.org> and
11551         Brian K. White <brian@aljex.com>.
11552
11553 2008-04-06  Jim Meyering  <meyering@redhat.com>
11554
11555         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11556
11557 2008-04-06  Bruno Haible  <bruno@clisp.org>
11558
11559         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11560         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11561         * tests/test-printf-posix.sh: Likewise.
11562         * tests/test-vfprintf-posix.sh: Likewise.
11563         * tests/test-vprintf-posix.sh: Likewise.
11564         * tests/test-xprintf-posix.sh: Likewise.
11565
11566 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11567
11568         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11569         hide error from 'ls', needed on OS/2.
11570         Report by Elbert Pol <elbert.pol@gmail.com>.
11571
11572 2008-04-04  Eric Blake  <ebb9@byu.net>
11573
11574         Make test-fseeko.c failures meaningful.
11575         * tests/test-fseeko.c: Print line number on failure.
11576         * tests/test-fseek.c: Likewise.
11577         Reported by Nelson H. F. Beebe.
11578
11579         Improve strtod bug detection check.
11580         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11581         required for Solaris 10.
11582         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11583
11584 2008-04-04  Bruno Haible  <bruno@clisp.org>
11585
11586         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11587         by m4/setenv.m4.
11588
11589 2008-04-03  Eric Blake  <ebb9@byu.net>
11590
11591         Ensure sane .version contents.
11592         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11593         version string.
11594         * build-aux/git-version-gen: Improve documentation.
11595
11596         Make GNU make output nicer.
11597         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11598         MAKECMDGOALS to enforce message for all command line targets.  Set
11599         srcdir for use in maint.mk.
11600
11601         Another maintainer tweak.
11602         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11603         a target that regenerates version.
11604
11605 2008-04-03  Jim Meyering  <meyering@redhat.com>
11606
11607         vc-list-files: don't cause coreutils "make po-check" failure
11608         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11609
11610 2008-04-03  Eric Blake  <ebb9@byu.net>
11611
11612         Allow VPATH usage of vc-list-files.
11613         * build-aux/vc-list-files (scriptversion): Add timestamp.
11614         (options): Add --help, --version, -C.
11615         (CVS): Support installed cvsu.
11616
11617 2008-04-02  Bruno Haible  <bruno@clisp.org>
11618
11619         Avoid some "statement with no effect" warnings from gcc.
11620         * tests/test-wctype.c (main): Explicitly ignore unused values.
11621         Reported by Jim Meyering.
11622
11623 2008-04-02  Jim Meyering  <meyering@redhat.com>
11624
11625         Avoid some warnings from "gcc -Wshadow".
11626         * tests/test-frexp.c (exp): Define to a different identifier.
11627         * tests/test-frexpl.c (exp): Likewise.
11628
11629 2008-04-03  Jim Meyering  <meyering@redhat.com>
11630
11631         bootstrap: remove dangling *.[ch] symlinks from lib
11632         * build-aux/bootstrap [dangling symlink removal]: Move find's
11633         -depth option to precede all others, to avoid a warning.
11634         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11635
11636 2008-04-02  Bruno Haible  <bruno@clisp.org>
11637
11638         Avoid some warnings from "gcc -Wshadow".
11639         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11640         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11641         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11642         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11643         Reported by Jim Meyering.
11644
11645 2008-04-01  Bruno Haible  <bruno@clisp.org>
11646
11647         Fix test to work on IRIX 6.5 with cc.
11648         * tests/test-math.c (numeric_equal): New function.
11649         (main): Use it.
11650
11651 2008-04-01  Bruno Haible  <bruno@clisp.org>
11652
11653         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11654
11655 2008-04-01  Bruno Haible  <bruno@clisp.org>
11656
11657         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11658         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11659         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11660         (Depends-on): Remove math.
11661
11662         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11663         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11664         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11665         (Depends-on): Remove math.
11666
11667         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11668         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11669         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11670         (Depends-on): Remove math.
11671         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11672         (Depends-on): Remove math.
11673
11674         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11675         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11676         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11677         (Depends-on): Remove math.
11678         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11679         (Depends-on): Remove math.
11680
11681         * tests/test-round1.c: Include nan.h.
11682         (main): Use NaNd instead of NAN.
11683         * modules/round-tests (Files): Add tests/nan.h.
11684
11685         * tests/test-trunc1.c: Include nan.h.
11686         (main): Use NaNd instead of NAN.
11687         * modules/trunc-tests (Files): Add tests/nan.h.
11688
11689         * tests/test-roundf1.c: Include nan.h.
11690         (main): Use NaNf instead of NAN.
11691         * modules/roundf-tests (Files): Add tests/nan.h.
11692
11693         * tests/test-truncf1.c: Include nan.h.
11694         (main): Use NaNf instead of NAN.
11695         * modules/truncf-tests (Files): Add tests/nan.h.
11696
11697         * tests/test-ceilf1.c: Include nan.h.
11698         (main): Use NaNf instead of NAN.
11699         * modules/ceilf-tests (Files): Add tests/nan.h.
11700
11701         * tests/test-floorf1.c: Include nan.h.
11702         (main): Use NaNf instead of NAN.
11703         * modules/floorf-tests (Files): Add tests/nan.h.
11704
11705         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11706         (main): Use NaNf instead of NAN.
11707         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11708
11709         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11710         (main): Use NaNd instead of NAN.
11711         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11712
11713         * tests/test-frexp.c: Include nan.h.
11714         (main): Use NaNd instead of NAN.
11715         * modules/frexp-tests (Files): Add tests/nan.h.
11716
11717         * lib/isnan.c: Don't include <math.h>.
11718         (FUNC): Don't use NAN macro.
11719         * modules/isnand-nolibm (Depends-on): Remove math.
11720         * modules/isnanf-nolibm (Depends-on): Remove math.
11721         * modules/isnanl (Depends-on): Remove math.
11722         * modules/isnanl-nolibm (Depends-on): Remove math.
11723
11724         * tests/nan.h: New file.
11725
11726 2008-04-01  Eric Blake  <ebb9@byu.net>
11727
11728         Fix typos.
11729         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11730         values to be the right type.
11731
11732         For now, cater to gnulib strtod inaccuracies.
11733         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11734         fractional results.  While not as nice from a QoI perspective, it
11735         is a quicker patch than correctly implementing decimal to binary
11736         rounding.
11737
11738 2008-03-31  Eric Blake  <ebb9@byu.net>
11739
11740         Guarantee a definition of NAN.
11741         * lib/math.in.h (NAN): Define if missing.
11742         * tests/test-math.c (main): Test it.
11743         * doc/posix-headers/math.texi (math.h): Document this.
11744         * lib/isnan.c (rpl_isnand): Use it.
11745         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11746         * tests/test-floorf1.c (NaN): Likewise.
11747         * tests/test-frexp.c (NaN): Likewise.
11748         * tests/test-isnand.c (NaN): Likewise.
11749         * tests/test-isnanf.c (NaN): Likewise.
11750         * tests/test-round1.c (NaN): Likewise.
11751         * tests/test-roundf1.c (NaN): Likewise.
11752         * tests/test-snprintf-posix.h (NaN): Likewise.
11753         * tests/test-sprintf-posix.h (NaN): Likewise.
11754         * tests/test-trunc1.c (NaN): Likewise.
11755         * tests/test-truncf1.c (NaN): Likewise.
11756         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11757         * tests/test-vasprintf-posix.c (NaN): Likewise.
11758         * modules/isnand-nolibm (Depends-on): Add math.
11759         * modules/isnanf-nolibm (Depends-on): Likewise.
11760         * modules/isnanl (Depends-on): Likewise.
11761         * modules/isnanl-nolibm (Depends-on): Likewise.
11762         * modules/snprintf-posix-tests (Depends-on): Likewise.
11763         * modules/sprintf-posix-tests (Depends-on): Likewise.
11764         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11765         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11766         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11767         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11768
11769 2008-03-31  Bruno Haible  <bruno@clisp.org>
11770
11771         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11772         * doc/posix-functions/strtod.texi: Likewise.
11773
11774 2008-03-31  Bruno Haible  <bruno@clisp.org>
11775
11776         * tests/test-strtod.c (main): Don't use C99 syntax.
11777
11778 2008-03-31  Bruno Haible  <bruno@clisp.org>
11779
11780         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11781         Reported by Eric Blake.
11782
11783 2008-03-31  Jim Meyering  <meyering@redhat.com>
11784
11785         Don't compare actual signbit return values.
11786         * tests/test-strtod.c (main): Rather, compare only their
11787         zero/non-zero nature.
11788
11789 2008-03-31  Eric Blake  <ebb9@byu.net>
11790
11791         More strtod documentation.
11792         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11793         failures as distinct bugs.
11794
11795 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11796
11797         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11798         Problem reported by Erik Benada in
11799         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11800
11801 2008-03-30  Bruno Haible  <bruno@clisp.org>
11802
11803         * tests/test-strtod.c: Add comments about which assertion fails on which
11804         platform.
11805         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11806
11807 2008-03-30  Eric Blake  <ebb9@byu.net>
11808
11809         Test signbit behavior on zeros.
11810         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11811         (test_signbitd, test_signbitl): Likewise.
11812
11813         More strtod touchups.
11814         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11815         sign of negative underflow, for now.  Use .5, not .1.
11816         * doc/posix-functions/strtod.texi (strtod): Mention these
11817         limitations.
11818         Reported by Jim Meyering.
11819
11820 2008-03-30  Bruno Haible  <bruno@clisp.org>
11821
11822         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11823         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11824
11825 2008-03-30  Bruno Haible  <bruno@clisp.org>
11826
11827         Avoid failure when attempting to return empty iconv results on some
11828         platforms.
11829         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11830         allocation, don't report ENOMEM when the resulting string is empty.
11831
11832 2008-03-30  Bruno Haible  <bruno@clisp.org>
11833
11834         Fix buffer overrun.
11835         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11836         Don't consider the width for tmp_length. Check count against tmp_length
11837         before doing the padding. Ensure enough allocation during padding.
11838
11839 2008-03-30  Eric Blake  <ebb9@byu.net>
11840
11841         strtod touchups.
11842         * lib/strtod.c (strtod): Avoid compiler warnings.
11843         Reported by Jim Meyering.
11844
11845 2008-03-30  Bruno Haible  <bruno@clisp.org>
11846
11847         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11848         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11849         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11850         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11851         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11852         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11853         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11854         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11855
11856         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11857         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11858         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11859         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11860         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11861         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11862         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11863         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11864
11865         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11866         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11867         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11868         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11869         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11870         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11871         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11872         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11873
11874         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11875         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11876
11877         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11878         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11879
11880         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11881         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11882
11883         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11885         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11886
11887         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11889         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11890
11891         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11893         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11894
11895         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11897         * modules/vasprintf (Depends-on): Add EOVERFLOW.
11898
11899         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11900         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11902         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11903         (Depends-on): Add EOVERFLOW.
11904         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11905         (Depends-on): Add EOVERFLOW.
11906         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11907         (Depends-on): Add EOVERFLOW.
11908         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11909         (Depends-on): Add EOVERFLOW.
11910         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11911         (Depends-on): Add EOVERFLOW.
11912         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11913         (Depends-on): Add EOVERFLOW.
11914         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11915         (Depends-on): Add EOVERFLOW.
11916         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11917         (Depends-on): Add EOVERFLOW.
11918
11919         * lib/sprintf.c (EOVERFLOW): Remove fallback.
11920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11921         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11922
11923         * lib/snprintf.c (EOVERFLOW): Remove fallback.
11924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11925         * modules/snprintf (Depends-on): Add EOVERFLOW.
11926
11927         * lib/poll.c (EOVERFLOW): Remove fallback.
11928         * modules/poll (Depends-on): Add EOVERFLOW.
11929
11930         * lib/getugroups.c (EOVERFLOW): Remove fallback.
11931         * modules/getugroups (Depends-on): Add EOVERFLOW.
11932
11933         * lib/getdelim.c (EOVERFLOW): Remove fallback.
11934         * modules/getdelim (Depends-on): Add EOVERFLOW.
11935
11936         * lib/ftell.c (EOVERFLOW): Remove fallback.
11937         * modules/ftell (Depends-on): Add EOVERFLOW.
11938
11939         * lib/fprintf.c (EOVERFLOW): Remove fallback.
11940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11941         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11942
11943         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11944
11945         * modules/EOVERFLOW-tests: New file.
11946         * tests/test-EOVERFLOW.c: New file.
11947
11948         * modules/EOVERFLOW: New file.
11949         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11950
11951 2008-03-30  Bruno Haible  <bruno@clisp.org>
11952
11953         Fix bug introduced on 2007-06-10.
11954         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11955         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11956
11957 2008-03-30  Bruno Haible  <bruno@clisp.org>
11958
11959         Improve freadseek's efficiency after ungetc.
11960         * lib/freadseek.c: Include freadahead.h.
11961         (freadptrinc): New function, extracted from freadseek.
11962         (freadseek): Use it in a loop. Use freadahead to determine the number
11963         of loop iterations.
11964         * modules/freadseek (Depends-on): Add freadahead.
11965         (configure.ac): Require AC_C_INLINE.
11966
11967 2008-03-30  Bruno Haible  <bruno@clisp.org>
11968
11969         * lib/freadseek.c (freadseek): Don't ignore the return value of
11970         freadptr.
11971
11972 2008-03-29  Eric Blake  <ebb9@byu.net>
11973
11974         Add hex float support.
11975         * modules/strtod (Depends-on): Add c-ctype.
11976         (Link): Mention POW_LIB.
11977         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
11978         whitespace between 'e' and exponent.
11979         * tests/test-strtod.c (main): Enable hex float tests.
11980         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11981         now provides.
11982
11983         Document various strtod bugs, with some fixes.
11984         * doc/posix-functions/strtod.texi (strtod): Document bugs with
11985         "-0x", "inf", "nan", and hex constants.
11986         * doc/posix-functions/atof.texi (atof): Likewise.
11987         * modules/stdlib (Makefile.am): Support strtod.
11988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11989         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11990         detect additional strtod bugs.
11991         * lib/stdlib.in.h (rpl_strtod): Add declarations.
11992         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
11993         bool where appropriate.  Parse 'inf' and 'nan'.
11994         * tests/test-strtod.c: New file.
11995         * modules/strtod (Depends-on): Add stdbool, stdlib.
11996         (configure.ac): Turn on module indicator.
11997         * modules/strtod-tests: New module.
11998
11999 2008-03-29  Eric Blake  <ebb9@byu.net>
12000
12001         Fix ftell on mingw.
12002         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
12003         * modules/ftell-tests (Depends-on): Add binary-io.
12004         * modules/ftello-tests (Depends-on): Likewise.
12005         * tests/test-ftell.c (main): Enhance test to cover behavior after
12006         ungetc.  Enforce binary mode.
12007         * tests/test-ftello.c (main): Likewise.
12008
12009         Pass test-freadseek on cygwin.
12010         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
12011         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
12012         ungetc buffer.
12013
12014         * tests/test-fflush2.c (main): Fix typo.
12015
12016 2008-03-29  Bruno Haible  <bruno@clisp.org>
12017
12018         * tests/test-fflush2.c (main): Temporarily disable the contents of
12019         this test.
12020         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
12021         Reported by Eric Blake.
12022
12023 2008-03-28  Simon Josefsson  <simon@josefsson.org>
12024
12025         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
12026         (GC_SHA224_DIGEST_SIZE): Add.
12027
12028         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
12029         (gc_hash_digest_length): Likewise.
12030         (gc_hash_buffer): Likewise.
12031
12032 2008-03-25  Bruno Haible  <bruno@clisp.org>
12033
12034         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
12035         detail which gettext release to use.
12036         Reported by Simon Josefsson.
12037
12038 2008-03-26  Jim Meyering  <meyering@redhat.com>
12039
12040         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
12041         * modules/gnumakefile (clean-GNUmakefile): Also, use
12042         test ... && ... || : syntax rather than if-then ... fi.
12043
12044         gnumakefile: Don't double-quote-expand $(VPATH) value.
12045         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
12046
12047 2008-03-24  Eric Blake  <ebb9@byu.net>
12048
12049         Alter GNUmakefile to install into top directory.
12050         * modules/maintainer-makefile: Split, and add dependency...
12051         * modules/gnumakefile: to this new module.
12052         * build-aux/GNUmakefile: Move...
12053         * top/GNUmakefile: ...here.
12054         * build-aux/maint.mk: Move...
12055         * top/maint.mk: ...here.
12056         * MODULES.html.sh (Support for maintaining...): Document new
12057         module.
12058
12059 2008-03-23  Bruno Haible  <bruno@clisp.org>
12060
12061         * gnulib-tool: New options --vc-files, --no-vc-files.
12062         (func_usage): Document them.
12063         (vc_files): New variable.
12064         (func_import): Consider vc_files.
12065         (func_create_testdir): Set vc_files to empty.
12066         Suggested by Jim Meyering and Karl Berry.
12067
12068 2008-03-23  Bruno Haible  <bruno@clisp.org>
12069
12070         Fix regex compilation error on HP-UX 11.
12071         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
12072         * modules/regex (Files): Add m4/mbstate_t.m4.
12073         Reported by Ton Voon <ton.voon@altinity.com>.
12074
12075 2008-03-23  Bruno Haible  <bruno@clisp.org>
12076
12077         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
12078
12079 2008-03-23  Eric Blake  <ebb9@byu.net>
12080             Bruno Haible  <bruno@clisp.org>
12081
12082         Install files from top/ in the destination directory.
12083         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12084         augmentation also for the files from top/.
12085         (func_import, func_create_testdir): Rewrite file names:
12086         top/filename -> filename.
12087
12088 2008-03-23  Bruno Haible  <bruno@clisp.org>
12089
12090         Tweak "gnulib --version" output.
12091         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
12092
12093 2008-03-23  Bruno Haible  <bruno@clisp.org>
12094
12095         Tweak "gnulib --version" output.
12096         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
12097         rather than contents of ChangeLog, when possible.
12098
12099 2008-03-21  Eric Blake  <ebb9@byu.net>
12100
12101         More --version tweaks.
12102         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
12103         date of last ChangeLog entry.
12104
12105 2008-03-21  Jim Meyering  <meyering@redhat.com>
12106
12107         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
12108
12109 2008-03-20  Eric Blake  <ebb9@byu.net>
12110
12111         VPATH fix.
12112         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
12113
12114 2008-03-20  Simon Josefsson  <simon@josefsson.org>
12115
12116         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
12117         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
12118
12119 2008-03-20  Eric Blake  <ebb9@byu.net>
12120
12121         Sync GNUmakefile with coreutils.
12122         * build-aux/GNUmakefile (have-Makefile): Rename...
12123         (_have-Makefile): ...to this, for namespace consideration.
12124         (GNUmakefile.cfg): Include, if present.
12125         (_autoreconf): Define a default.
12126         (_is-dist-target): New rule for rebuilds to pick up intra-release
12127         version.
12128         (maint-cfg.mk): Rename...
12129         (cfg.mk): ...to this.
12130
12131 2008-03-18  Jim Meyering  <meyering@redhat.com>
12132
12133         New script and module: mktempd
12134         * MODULES.html.sh (maint+release support): Add mktempd.
12135         * build-aux/mktempd: New file.
12136         * modules/mktempd: New file.
12137
12138 2008-03-15  Jim Meyering  <meyering@redhat.com>
12139
12140         Undo last change.
12141         * lib/sha1.c, lib/md5.c: 63 != ~63.
12142         Reported by Andreas Schwab.
12143
12144         sha1.c, md5.c: Hoist a redundant expression.
12145         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
12146         "ctx->buflen" only once, before calling *_process_block.
12147         * lib/md5.c (md5_process_bytes): Likewise.
12148
12149 2008-03-14  Eric Blake  <ebb9@byu.net>
12150
12151         Bump copyright year in files generated by gnulib-tool.
12152         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12153         gnulib-tool, rather than hard-coding it.
12154
12155         Fix 'gnulib-tool --version' output to work with git.
12156         * gnulib-tool (func_gnulib_dir): New function, extracted from...
12157         (startup): ...here.
12158         (func_version): Use it to invoke git-version-gen, rather than
12159         relying on CVS keyword expansion.  Modernize wording.
12160         (cvsdatestamp, last_checkin_date, version): Kill unused
12161         variables.
12162
12163 2008-03-12  Jim Meyering  <meyering@redhat.com>
12164
12165         Recognize optional cast of the argument to free.
12166         * build-aux/useless-if-before-free: Update regexps.
12167
12168         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12169
12170 2008-03-11  Bruno Haible  <bruno@clisp.org>
12171
12172         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12173         by a single package.
12174         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12175         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12176         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12177         Reported by Sam Steingold <sds@gnu.org>.
12178
12179 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12180
12181         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12182         repositories.
12183
12184 2008-03-11  Bruno Haible  <bruno@clisp.org>
12185
12186         Avoid conflicts between local macro definitions.
12187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12188         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12189
12190 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
12191             Bruno Haible  <bruno@clisp.org>
12192
12193         Make va_copy work with some version of xlc on AIX 5.1.
12194         * lib/stdarg.in.h: New file.
12195         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12196         On AIX, use a <stdarg.h> file substitute.
12197         * modules/stdarg (Files): Add lib/stdarg.in.h.
12198         (Depends-on): Add include_next.
12199         (Makefile.am): Build a stdarg.h substitute if requested.
12200         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12201
12202 2008-03-10  Bruno Haible  <bruno@clisp.org>
12203
12204         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12206         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12207
12208 2008-03-10  Bruno Haible  <bruno@clisp.org>
12209
12210         * modules/stdlib (Depends-on): Add include_next, remove
12211         absolute-header.
12212
12213 2008-03-09  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/freadahead.h (freadahead): Document more precisely.
12216         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12217         the sum of both buffer sizes.
12218         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12219         * NEWS: Document the change.
12220
12221 2008-03-09  Bruno Haible  <bruno@clisp.org>
12222
12223         Extend freadptr to return also the buffer size.
12224         * lib/freadptr.h (freadptr): Add sizep argument.
12225         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12226         (freadptr): Add sizep argument. Determine buffer size like freadahead
12227         does.
12228         * tests/test-freadptr.c: Don't include freadahead.h.
12229         (main): Adapt for new calling convention of freadptr.
12230         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12231         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12232         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12233         tests/test-freadptr2.sh.
12234         (Depends): Remove freadahead.
12235         (TESTS): Add test-freadptr2.sh.
12236         (check_PROGRAMS): Add test-freadptr2.
12237
12238 2008-03-09  Bruno Haible  <bruno@clisp.org>
12239
12240         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12241         Report and solution by Simon Josefsson.
12242
12243 2008-03-06  Bruno Haible  <bruno@clisp.org>
12244
12245         Make fflush after ungetc work on BSD platforms.
12246         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12247         * tests/test-fflush2.c: New file.
12248         * tests/test-fflush2.sh: New file.
12249         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12250         tests/test-fflush2.c.
12251         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12252         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12253
12254 2008-03-06  Eric Blake  <ebb9@byu.net>
12255
12256         Likewise for ftello.
12257         * modules/ftello (Dependencies): Add extensions.
12258         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12259
12260 2008-03-06  Bruno Haible  <bruno@clisp.org>
12261
12262         * modules/fseeko (Dependencies): Add extensions.
12263         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12264         Needed on glibc systems.
12265
12266 2008-03-06  Bruno Haible  <bruno@clisp.org>
12267
12268         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12269         email address.
12270         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12271
12272 2008-03-06  Bruno Haible  <bruno@clisp.org>
12273
12274         * users.txt: Add libgnupdf.
12275
12276 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12277
12278         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12279         (Header File Substitutes, Function Substitutes,
12280         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12281         (Build robot for gnulib): Fix typo.
12282
12283 2008-03-06  Bruno Haible  <bruno@clisp.org>
12284
12285         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12286         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12287
12288 2008-03-06  Bruno Haible  <bruno@clisp.org>
12289
12290         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12291         * doc/gnulib.texi: Include it.
12292
12293 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12294
12295         * modules/func (License): Change license to unlimited; there was
12296         no LGPL parts in the module anyway.
12297
12298 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12299
12300         * modules/__func__: Renamed to modules/func.
12301         * modules/__func__-tests: Renamed to modules/func-tests.
12302         * tests/test-__func__.c: Renamed to tests/test-func.c.
12303         * m4/__func__.m4: Renamed to m4/func.m4.
12304         * doc/gnulib.texi (__func__): Section renamed to func.
12305         Suggested by Eric Blake <ebb9@byu.net>.
12306
12307 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12308
12309         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12310         about __func__.  Make example self-contained.  Suggested by Eric
12311         Blake <ebb9@byu.net>.
12312
12313         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12314         Suggested by Eric Blake <ebb9@byu.net>.
12315
12316 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12317
12318         * modules/__func__: New file.
12319         * modules/__func__-tests: New file.
12320         * tests/test-__func__.c: New file.
12321         * m4/__func__.m4: New file.
12322         * doc/gnulib.texi (__func__): Document __func__ module.
12323
12324 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12325
12326         * modules/byteswap (License): Re-license as LGPLv2+.
12327
12328 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12329
12330         * doc/Makefile: Add pdf target.
12331
12332 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12333
12334         * modules/inline (License): Use 'unlimited', since there are only
12335         *.m4 files in this module.
12336
12337 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12338             Bruno Haible  <bruno@clisp.org>
12339
12340         Add support for HP C 7.1 on OpenVMS 8.3.
12341         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12342
12343 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12344
12345         Update VMS specifics.
12346         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12347
12348 2008-03-02  Jim Meyering  <meyering@redhat.com>
12349
12350         Remove the last dependency on the "free" module.
12351         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12352         Reported by Bob Proulx.
12353
12354         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12355
12356         Remove useless "if" tests before free.  Deprecate "free" module.
12357         * doc/posix-functions/free.texi: Mention that this
12358         module is no longer useful.
12359         * modules/free (Notice): Say this module is obsolete.
12360         * modules/readutmp (Depends-on): Remove free.
12361         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12362         * lib/putenv.c (putenv): Likewise.
12363         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12364         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12365         * tests/test-c-strcasestr.c (main): Likewise.
12366         * tests/test-c-strstr.c (main): Likewise.
12367         * tests/test-mbscasestr1.c (main): Likewise.
12368         * tests/test-mbscasestr2.c (main): Likewise.
12369         * tests/test-mbsstr1.c (main): Likewise.
12370         * tests/test-mbsstr2.c (main): Likewise.
12371         * tests/test-memmem.c (main): Likewise.
12372         * tests/test-strcasestr.c (main): Likewise.
12373         * tests/test-striconv.c (main): Likewise.
12374         * tests/test-striconveh.c (main): Likewise.
12375         * tests/test-striconveha.c (main): Likewise.
12376         * tests/test-strstr.c (main): Likewise.
12377
12378         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12379
12380         bootstrap: sync from coreutils again
12381         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12382
12383 2008-03-01  Jim Meyering  <meyering@redhat.com>
12384
12385         bootstrap: sync from coreutils
12386         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12387         also when the target doesn't exist.
12388
12389 2008-03-01  Eric Blake  <ebb9@byu.net>
12390
12391         Fix bugs in last patch.
12392         * lib/memchr2.c (memchr2): Fix typo.
12393         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12394         extension.
12395         Reported by Bruce Korb.
12396
12397         New module 'memchr2'.
12398         * modules/memchr2: New file.
12399         * modules/memchr2-tests: Likewise.
12400         * lib/memchr2.h: Likewise.
12401         * lib/memchr2.c: Likewise, based on memchr.c.
12402         * tests/test-memchr2.c: New test.
12403         * MODULES.html.sh (String handling): Add memchr2.
12404
12405 2008-02-29  Bruno Haible  <bruno@clisp.org>
12406
12407         * modules/freadseek-tests: New file.
12408         * tests/test-freadseek.sh: New file.
12409         * tests/test-freadseek.c: New file.
12410
12411         New module 'freadseek'.
12412         * modules/freadseek: New file.
12413         * lib/freadseek.h: New file.
12414         * lib/freadseek.c: New file.
12415         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12416
12417 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12418
12419         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12420         wydawca.
12421
12422         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12423         program_invocation_name and program_invocation_short_name are
12424         present.
12425
12426 2008-02-28  Bruno Haible  <bruno@clisp.org>
12427
12428         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12429         * tests/test-freadptr.sh: Also test non-seekable stdin.
12430
12431 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12432
12433         * build-aux/bootstrap (source_base, m4_base)
12434         (doc_base, tests_base): New variables.
12435         (gnulib_tool_options): Do not hardcode base directories, use
12436         the above variables instead.
12437
12438 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12439
12440         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12441
12442 2008-02-28  Bruno Haible  <bruno@clisp.org>
12443
12444         * modules/freadptr-tests: New file.
12445         * tests/test-freadptr.sh: New file.
12446         * tests/test-freadptr.c: New file.
12447
12448         New module 'freadptr'.
12449         * modules/freadptr: New file.
12450         * lib/freadptr.h: New file.
12451         * lib/freadptr.c: New file.
12452         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12453
12454 2008-02-26  Karl Berry  <karl@freefriends.org>
12455
12456         Sync from Libtool:
12457         * libltdl/argz.c (argz_add, argz_count): New functions.
12458         * libltdl/argz.in.h: Declare them.
12459         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12460
12461 2008-02-22  Bruno Haible  <bruno@clisp.org>
12462
12463         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12464         is a pointer type.  Needed for HP-UX 10.
12465         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12466         * doc/posix-functions/gmtime_r.texi: Likewise.
12467         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12468
12469 2008-02-24  Bruno Haible  <bruno@clisp.org>
12470
12471         * modules/environ-tests: New file.
12472         * tests/test-environ.c: New file.
12473
12474         New module 'environ'.
12475         * modules/environ: New file.
12476         * lib/unistd.in.h (environ): New declaration.
12477         * m4/environ.m4: New file.
12478         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12479         after use.
12480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12481         HAVE_DECL_ENVIRON.
12482         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12483         HAVE_DECL_ENVIRON.
12484         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12485         wrong claim that 'environ' is missing on some systems.
12486         * modules/execute (Depends-on): Add environ.
12487         * lib/execute.c (environ): Remove fallback declaration.
12488         * modules/pipe (Depends-on): Add environ.
12489         * lib/pipe.c (environ): Remove fallback declaration.
12490         * modules/setenv (Depends-on): Add environ.
12491         * lib/setenv.c (environ): Remove fallback declaration.
12492         * modules/unsetenv (Depends-on): Add environ.
12493         * lib/unsetenv.c (environ): Remove fallback declaration.
12494         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12495         m4/environ.m4.
12496         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12497         (gl_PREREQ_UNSETENV): Likewise.
12498
12499 2008-02-24  Bruno Haible  <bruno@clisp.org>
12500
12501         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12502
12503 2008-02-20  Bob Proulx  <bob@proulx.com>
12504
12505         Enable use of older two part flavor 'git describe'.
12506         * build-aux/git-version-gen: If using the older two part flavor of
12507         git version then recreate the third part now present in the
12508         newer three part flavor of git describe.
12509
12510 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12511
12512         * lib/fts.c (fts_build): Typo correction to comment.
12513
12514 2008-02-17  Bruno Haible  <bruno@clisp.org>
12515
12516         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12517         generating no-op conflicts.
12518
12519 2008-02-17  Bruno Haible  <bruno@clisp.org>
12520
12521         Speed up by 10%.
12522         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12523         result_entries, rather than an index-based loop.
12524
12525 2008-02-17  Bruno Haible  <bruno@clisp.org>
12526
12527         Speed up by 25%.
12528         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12529         'hashcode_cached'.
12530         (entry_create): New function.
12531         (entry_hashcode): Use the cached hashcode if possible.
12532         (read_changelog_file, try_split_merged_entry): Use entry_create.
12533
12534 2008-02-17  Bruno Haible  <bruno@clisp.org>
12535
12536         Speed up from O(n^2) to O(n) for long ChangeLog files.
12537         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12538         (read_changelog_file): Change implementation of entries_reversed list
12539         to rbtreehash.
12540         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12541
12542 2008-02-17  Bruno Haible  <bruno@clisp.org>
12543
12544         New option --split-merged-entry.
12545         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12546         (find_paragraph_end, try_split_merged_entry): New functions.
12547         (long_options): Add option --split-merged-entry.
12548         (usage): Document option --split-merged-entry.
12549         (main): Implement option --split-merged-entry.
12550         Reported by Eric Blake.
12551
12552 2008-02-17  Bruno Haible  <bruno@clisp.org>
12553
12554         * lib/git-merge-changelog.c: Include c-strstr.h.
12555         (main): Support the "git pull --rebase" situation.
12556         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12557         Reported by Eric Blake.
12558
12559 2008-02-16  Eric Blake  <ebb9@byu.net>
12560
12561         Avoid doubling \ in common case of "c-maybe" quoting style.
12562         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12563         eliding outer quotes.
12564         * lib/quotearg.h: Document this.
12565         * tests/test-quotearg.c (result_strings, inputs, results_g)
12566         (flag_results, locale_results): Test it by adding a new string to
12567         each test group.
12568         (compare_strings): Test new string.
12569
12570 2008-02-13  Eric Blake  <ebb9@byu.net>
12571
12572         Avoid trigraph quoting in default output.
12573         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12574         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12575         unless explicitly requested.
12576         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12577
12578 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12579
12580         Don't rely on signed integer overflowing to negative value.
12581         * lib/getugroups.c (getugroups): Include <limits.h>.
12582         Instead, compare against INT_MAX, and increment only if the test passes.
12583
12584 2008-02-13  Jim Meyering  <meyering@redhat.com>
12585         and Eric Blake  <ebb9@byu.net>
12586
12587         Avoid shadowing warning and compile errors on Linux.
12588         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12589         forwarding macros on Linux.
12590         (dcgettext): Define a stub, for Linux.
12591         (results_g, main): Avoid warnings.
12592
12593 2008-02-12  Eric Blake  <ebb9@byu.net>
12594
12595         Silence warning in last patch.
12596         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12597
12598         Quotearg part 4: add tests, fix c-maybe colon quoting.
12599         * lib/quotearg.h: Improve documentation.
12600         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12601         escapes when adding outer quotes.  When quoting trigraphs, use
12602         valid C notation.  When quoting NUL, omit extra characters if next
12603         character is not digit.  Alter prototype.
12604         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12605         callers.
12606         * modules/quotearg-tests: New module.
12607         * tests/test-quotearg.c: New test.
12608
12609 2008-02-07  Eric Blake  <ebb9@byu.net>
12610
12611         Quotearg part 3: add flag to control outer quote elision.
12612         * lib/quotearg.h (c_maybe_quoting_style): New style.
12613         (enum quoting_flags): Better documentation of flags.
12614         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12615         c-maybe style.
12616         (quotearg_buffer_restyled): Handle new flag to elide outer
12617         quotes.
12618
12619         Quotearg part 2: add flag that can control NUL elision.
12620         * lib/quotearg.h (set_quoting_flags): New prototype.
12621         * lib/quotearg.c (struct quoting_options): Add flag field.
12622         (set_quoting_flags): New function.
12623         (quotearg_buffer_restyled): Add flags parameter.
12624         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12625         (quotearg_n_options): Set the flag, since length cannot be
12626         returned.
12627         (quoting_options_from_style): Default flags correctly.
12628
12629         Quotearg part 1: more wrappers, restore quotearg_char state.
12630         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12631         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12632         (quotearg_colon_mem): New wrappers.
12633         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12634         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12635         functions.
12636         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12637         (quotearg_colon_mem): New functions.
12638
12639 2008-02-11  Bruno Haible  <bruno@clisp.org>
12640
12641         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12642         library in the current directory: it does not work with parallel make.
12643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12644
12645 2008-02-11  Bruno Haible  <bruno@clisp.org>
12646
12647         * .gitattributes: New file.
12648
12649 2008-02-11  Jim Meyering  <meyering@redhat.com>
12650
12651         useless-if-before-free: Fix reversed exit values.
12652         * build-aux/useless-if-before-free: Use correct values
12653         for EXIT_MATCH and EXIT_NO_MATCH.
12654
12655         * build-aux/useless-if-before-free: Close stdout carefully.
12656
12657 2008-02-10  Bruno Haible  <bruno@clisp.org>
12658
12659         New module 'git-merge-changelog'.
12660         * modules/git-merge-changelog: New file.
12661         * lib/git-merge-changelog.c: New file.
12662
12663 2008-02-10  Jim Meyering  <meyering@redhat.com>
12664
12665         useless-if-before-free: New option: --list (-l).
12666
12667         useless-if-before-free: Don't exit immediately upon open failure.
12668         * build-aux/useless-if-before-free: Exit 2 for errors.
12669         Upon failure to open a file, don't exit immediately.
12670         Rather, just warn and continue with any remaining files.
12671
12672 2008-02-10  Bruno Haible  <bruno@clisp.org>
12673
12674         New abstract list operation 'node_set_value'.
12675         * lib/gl_list.h (gl_list_node_set_value): New function.
12676         (struct gl_list_implementation): New field node_set_value.
12677         * lib/gl_list.c (gl_list_node_set_value): New function.
12678         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12679         (gl_array_list_implementation): Update.
12680         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12681         (gl_carray_list_implementation): Update.
12682         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12683         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12684         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12685         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12686         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12687         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12688         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12689         Update.
12690         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12691         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12692         (gl_sublist_list_implementation): Update.
12693
12694 2008-02-10  Bruno Haible  <bruno@clisp.org>
12695
12696         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12697         Needed when ELEMENT is #defined to 'some_type *'.
12698
12699 2008-02-10  Jim Meyering  <meyering@redhat.com>
12700
12701         New script and module: useless-if-before-free
12702         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12703         * build-aux/useless-if-before-free: New file.
12704         * modules/useless-if-before-free: New file.
12705
12706         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12707
12708         xstrtol_error: Fix typo.
12709         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12710         s/exit_failure/exit_status/.
12711
12712 2008-02-09  Jim Meyering  <meyering@redhat.com>
12713
12714         New script and module: gitlog-to-changelog
12715         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12716         * modules/gitlog-to-changelog: New file.
12717         * build-aux/gitlog-to-changelog: New file.
12718
12719 2008-02-08  Jim Meyering  <meyering@redhat.com>
12720
12721         Avoid two "parameter unused" warnings.
12722         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12723         Mark "st" as used.
12724
12725         Use "git COMMAND", not "git-COMMAND".
12726         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12727         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12728         * build-aux/git-version-gen: Use "git status", not "git-status".
12729
12730 2008-02-07  Bruno Haible  <bruno@clisp.org>
12731
12732         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12733         Avoids a crash on Windows Vista.
12734         Reported by Adam Strzelecki <ono@java.pl> via
12735         Simon Josefsson <simon@josefsson.org>.
12736
12737 2008-02-06  Bruno Haible  <bruno@clisp.org>
12738
12739         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12740         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12741         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12743         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12745         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12746         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12754         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12755         left-adjust flag.
12756         * tests/test-snprintf-posix.h (test_function): Likewise.
12757         * tests/test-sprintf-posix.h (test_function): Likewise.
12758         * tests/test-vasprintf-posix.c (test_function): Likewise.
12759         * doc/posix-functions/fprintf.texi: Update.
12760         * doc/posix-functions/printf.texi: Update.
12761         * doc/posix-functions/snprintf.texi: Update.
12762         * doc/posix-functions/sprintf.texi: Update.
12763         * doc/posix-functions/vfprintf.texi: Update.
12764         * doc/posix-functions/vprintf.texi: Update.
12765         * doc/posix-functions/vsnprintf.texi: Update.
12766         * doc/posix-functions/vsprintf.texi: Update.
12767         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12768
12769 2008-02-06  Bruno Haible  <bruno@clisp.org>
12770
12771         Fix bug introduced on 2008-01-26.
12772         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12773
12774 2008-02-06  Bruno Haible  <bruno@clisp.org>
12775
12776         Fix bug introduced on 2007-06-10.
12777         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12778         !NEED_PRINTF_FLAG_ZERO.
12779
12780 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12781
12782         getloadavg: use libperfstat on AIX5
12783         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12784
12785 2008-02-03  Bruno Haible  <bruno@clisp.org>
12786
12787         * lib/diffseq.h: Add comments about required #includes.
12788         Reported by Michael Biggs <gnulib@doubleplum.net>.
12789
12790 2008-02-01  Bruno Haible  <bruno@clisp.org>
12791
12792         * users.txt: Add gnuit.
12793
12794 2008-01-31  Bruno Haible  <bruno@clisp.org>
12795
12796         * lib/md4.c (set_uint32): Mark as inline.
12797         * lib/md5.c (set_uint32): Likewise.
12798         * lib/sha1.c (set_uint32): Likewise.
12799         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12800         * m4/md5.m4 (gl_MD5): Likewise.
12801         * m4/sha1.m4 (gl_SHA1): Likewise.
12802
12803 2008-01-31  Jim Meyering  <meyering@redhat.com>
12804
12805         Use "sizeof VAR", rather than a literal "4".
12806         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12807         * lib/md4.c (md4_read_ctx): Likewise.
12808         * lib/sha1.c (sha1_read_ctx): Likewise.
12809
12810 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12811
12812         * tests/test-sha1.c: New file, based on test-md5.c.
12813
12814         * modules/crypto/sha1-tests: New file.
12815
12816 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12817
12818         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12819
12820 2008-01-31  Jim Meyering  <meyering@redhat.com>
12821
12822         Prefer "sizeof v" over the equivalent "4".
12823         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12824         * lib/md5.c (set_uint32): Likewise.
12825         * lib/sha1.c (set_uint32): Likewise.
12826
12827 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12828
12829         * lib/sha1.c (set_uint32): Mark function as static.
12830
12831 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12832
12833         md2: clarify comments to say that alignment is not required.
12834         * lib/md2.h: Remove warning about alignment in comment.
12835         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12836         never been required.
12837
12838 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12839
12840         md4: adapt alignment constraint fix from sha1.
12841         * lib/md4.c (set_uint32): New function, from sha1.c
12842         (md4_read_ctx): Use it.
12843         (md4_finish_ctx): Doc fix.
12844         * lib/md4.h: Doc fix.
12845
12846 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12847
12848         md5: adapt alignment constraint fix from sha1.
12849         * lib/md5.c (set_uint32): New function, from sha1.c
12850         (md5_read_ctx): Use it.
12851         (md5_finish_ctx): Doc fix.
12852         * lib/md5.h: Doc fix.
12853
12854 2008-01-30  Peter Palfrader  <weasel@debian.org>
12855
12856         sha1: remove the result buffer alignment constraint
12857         * lib/sha1.c (set_uint32): New function.
12858         (sha1_read_ctx): Rewrite to remove the result buffer alignment
12859         constraint.
12860         (sha1_finish_ctx): Remove comment warning about alignment constraint.
12861         * lib/sha1.h: Likewise.
12862
12863 2008-01-30  Andreas Schwab  <schwab@suse.de>
12864             Bruno Haible  <bruno@clisp.org>
12865
12866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12867         correct definition of LDBL_MIN_EXP.
12868
12869 2008-01-30  Karl Berry  <karl@gnu.org>
12870
12871         * config/srclist-update: try to preserve x bit on updates.
12872         * config/srclistvars.sh: update for karl.
12873
12874 2008-01-29  Jim Meyering  <meyering@redhat.com>
12875
12876         vasnprintf.c: Avoid warning about unused label
12877         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12878         "overflow" label definition and associated code with the
12879         same cpp condition that guards the sole use of that label.
12880
12881 2008-01-26  Bruno Haible  <bruno@clisp.org>
12882
12883         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12884         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12885         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12886         * lib/isnanl-nolibm.h (isnanl): Likewise.
12887         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12888
12889 2008-01-26  Bruno Haible  <bruno@clisp.org>
12890
12891         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12892         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12893
12894 2008-01-26  Bruno Haible  <bruno@clisp.org>
12895
12896         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12897         GCC >= 4.0 built-in.
12898         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12899
12900 2008-01-26  Bruno Haible  <bruno@clisp.org>
12901
12902         Rename isnan, applicable to 'double' only, to isnand.
12903         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12904         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12905         (configure.ac): Update.
12906         (Include): Replace "isnan.h" with "isnand.h".
12907         * m4/isnand.m4: Renamed from m4/isnan.m4.
12908         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12909         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12910         instead of isnan.c.
12911         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12912         instead of HAVE_ISNAN_IN_LIBC.
12913         (isnand): Renamed from isnan.
12914         * lib/isnand.c: New file.
12915         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12916         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12917         (Makefile.am): Update.
12918         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12919         Include isnand.h instead of isnan.h.
12920         (main): Test isnand instead of isnan.
12921         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12922         isnan-nolibm.
12923         * modules/frexp (Depends-on): Likewise.
12924         * modules/frexp-tests (Depends-on): Likewise.
12925         * modules/frexp-nolibm (Depends-on): Likewise.
12926         * modules/frexp-nolibm-tests (Depends-on): Likewise.
12927         * modules/isfinite (Depends-on): Likewise.
12928         * modules/round-tests (Depends-on): Likewise.
12929         * modules/signbit (Depends-on): Likewise.
12930         * modules/signbit-tests (Depends-on): Likewise.
12931         * modules/snprintf-posix (Depends-on): Likewise.
12932         * modules/sprintf-posix (Depends-on): Likewise.
12933         * modules/trunc-tests (Depends-on): Likewise.
12934         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12935         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12936         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12937         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12938         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12939         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12940         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12941         * modules/vasnprintf-posix (Depends-on): Likewise.
12942         * modules/vasprintf-posix (Depends-on): Likewise.
12943         * modules/vfprintf-posix (Depends-on): Likewise.
12944         * modules/vsnprintf-posix (Depends-on): Likewise.
12945         * modules/vsprintf-posix (Depends-on): Likewise.
12946         * lib/frexp.c: Include isnand.h instead of isnan.h.
12947         (ISNAN): Set to isnand instead of isnan.
12948         * lib/isfinite.c: Include isnand.h instead of isnan.h.
12949         (gl_isfinited): Use isnand instead of isnan.
12950         * lib/signbitd.c: Include isnand.h instead of isnan.h.
12951         (gl_signbitd): Use isnand instead of isnan.
12952         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12953         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12954         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12955         (main): Use isnand instead of isnan.
12956         * tests/test-round1.c: Include isnand.h.
12957         (main): Use isnand instead of isnan.
12958         * tests/test-round2.c: Include isnand.h instead of isnan.h.
12959         (ISNAN): Set to isnand instead of isnan.
12960         * tests/test-trunc1.c: Include isnand.h.
12961         (main): Use isnand instead of isnan.
12962         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12963         (equal): Use isnand instead of isnan.
12964         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12965         isnand-nolibm.
12966         * NEWS: Mention the change.
12967
12968 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12969             Bruno Haible  <bruno@clisp.org>
12970
12971         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12972         the GCC builtins for signbits are present and set
12973         REPLACE_SIGNBIT_USING_GCC if so.
12974         * lib/math.in.h (signbit): Define using GCC builtins if
12975         REPLACE_SIGNBIT_USING_GCC is set.
12976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12977         REPLACE_SIGNBIT_USING_GCC.
12978         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12979
12980 2008-01-25  Jim Meyering  <meyering@redhat.com>
12981
12982         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
12983         * lib/poll.c: Include <config.h>, not "config.h".
12984         * tests/test-getaddrinfo.c: Likewise.
12985
12986 2008-01-25  Simon Josefsson  <simon@josefsson.org>
12987
12988         * modules/sockets-tests: New file.
12989
12990 2008-01-24  Simon Josefsson  <simon@josefsson.org>
12991
12992         * modules/sockets: New module, can be used to call WSA_Startup and
12993         WSA_Cleanup when needed.
12994
12995         * lib/sockets.h, lib/sockets.c: New files.
12996
12997         * m4/sockets.m4: New file.
12998
12999         * tests/test-sockets.c: New file.
13000
13001 2008-01-19  Bruno Haible  <bruno@clisp.org>
13002
13003         * doc/posix-headers: Renamed from doc/headers.
13004         * doc/posix-functions: Renamed from doc/functions.
13005         * doc/gnulib.texi: Update.
13006
13007 2008-01-19  Bruno Haible  <bruno@clisp.org>
13008
13009         * doc/glibc-functions/strcasestr.texi: Include contents of
13010         doc/functions/strcasestr.texi, fixing the list of platforms.
13011         * doc/functions/strcasestr.texi: Remove file.
13012
13013 2008-01-19  Bruno Haible  <bruno@clisp.org>
13014
13015         * doc/glibc-functions/memmem.texi: Include contents of
13016         doc/functions/memmem.texi.
13017         * doc/functions/memmem.texi: Remove file.
13018
13019 2008-01-18  Bruno Haible  <bruno@clisp.org>
13020
13021         * doc/glibc-functions/*.texi: New files.
13022         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
13023         to use the new files.
13024
13025 2008-01-17  Bruno Haible  <bruno@clisp.org>
13026
13027         * tests/test-gethostname.c (main): Fix printf statement.
13028
13029 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13030
13031         * modules/gethostname-tests: New file.
13032
13033         * tests/test-gethostname.c: New file.
13034
13035 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13036
13037         * lib/gethostname.c: Include string.h unconditionally, strncpy is
13038         used by the UNAME case.  Reported by Bruno Haible
13039         <bruno@clisp.org>.
13040
13041 2008-01-17  Eric Blake  <ebb9@byu.net>
13042
13043         Convert c-strcasestr to be more efficient.
13044         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
13045         (Depends-on): Add c-strcase, remove malloca, strnlen.
13046         * tests/test-c-strcasestr.c (main): Enhance test.
13047         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
13048
13049 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13050
13051         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
13052         Use it in creating po/Makevars.
13053
13054 2008-01-15  Simon Josefsson  <simon@josefsson.org>
13055
13056         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
13057         Applications that requires it should initialize libgcrypt
13058         manually.
13059
13060 2008-01-16  Simon Josefsson  <simon@josefsson.org>
13061
13062         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
13063
13064 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         Fix problem with getdate on mingw32 reported by Simon Josefsson
13067         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
13068         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
13069         tzname", when deciding whether to declare tzname.
13070         * lib/strftime.c (tzname): Likewise.
13071
13072 2008-01-15  Bruno Haible  <bruno@clisp.org>
13073
13074         Work around a MacOS X 10.5 bug in frexpl().
13075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13076         * doc/functions/frexpl.texi: Document the bug.
13077         Reported by Elias Pipping <pipping@gentoo.org>.
13078
13079 2008-01-14  Eric Blake  <ebb9@byu.net>
13080
13081         Touch up previous patch.
13082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
13083         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
13084
13085         Convert strcasestr module to use Two-Way algorithm.
13086         * modules/strcasestr-simple: New module, based on the old
13087         strcasestr, but with Two-Way rather than KMP.
13088         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
13089         * lib/string.in.h (rpl_strcasestr): Declare.
13090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
13091         performance.
13092         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
13093         * modules/string (Makefile.am): Support strcasestr.
13094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13095         * modules/strcasestr-tests (Depends-on): Check for alarm.
13096         * tests/test-strcasestr.c: Augment test.
13097         * lib/str-two-way.h: Clean up stray macro.
13098         * NEWS: Document new module.
13099         * MODULES.html.sh (string handling): Likewise.
13100         * doc/functions/strcasestr.texi: New file.
13101         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
13102         here, since it is not a POSIX function.
13103
13104 2008-01-14  Colin Watson  <cjwatson@debian.org>
13105             Bruno Haible  <bruno@clisp.org>
13106
13107         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
13108         works fine; if not, set REPLACE_STRSIGNAL.
13109         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
13110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13111         REPLACE_STRSIGNAL.
13112         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
13113         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
13114         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
13115
13116 2008-01-14  Bruno Haible  <bruno@clisp.org>
13117
13118         * modules/strsignal (Include): Change to <string.h>.
13119
13120 2008-01-14  Colin Watson  <cjwatson@debian.org>
13121
13122         * modules/argp (Notice): Add a notice recommending to change
13123         XGETTEXT_OPTIONS.
13124         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
13125
13126 2008-01-13  Colin Watson  <cjwatson@debian.org>
13127
13128         * modules/strsignal-tests: New file.
13129         * tests/test-strsignal.c: New file.
13130
13131         * lib/strsignal.c: New file, from glibc with modifications.
13132         * lib/siglist.h: New file, from glibc with modifications.
13133         * lib/string.in.h (strsignal): New declaration.
13134         * m4/strsignal.m4: New file.
13135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13136         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
13137         * modules/strsignal: New file.
13138         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
13139         HAVE_DECL_STRSIGNAL.
13140
13141 2008-01-13  Bruno Haible  <bruno@clisp.org>
13142
13143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
13144         locale encoding is not ASCII. Needed for OpenBSD 4.0.
13145         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13146         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13147
13148 2008-01-13  Bruno Haible  <bruno@clisp.org>
13149
13150         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13151         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13152         * lib/argp.h (__attribute__): Likewise.
13153         * lib/c-stack.c (__attribute__): Likewise.
13154         * lib/error.h (__attribute__): Likewise.
13155         * lib/fts.c (__attribute__): Likewise.
13156         * lib/openat.h (__attribute__): Likewise.
13157         * lib/stdio.in.h (__attribute__): Likewise.
13158         * lib/string.in.h (__attribute__): Likewise.
13159         * lib/utimens.c (__attribute__): Likewise.
13160         * lib/vasnprintf.h (__attribute__): Likewise.
13161         * lib/xalloc.h (__attribute__): Likewise.
13162         * lib/xprintf.h (__attribute__): Likewise.
13163         * lib/xstrtol.h (__attribute__): Likewise.
13164         * lib/xvasprintf.h (__attribute__): Likewise.
13165
13166 2008-01-12  Bruno Haible  <bruno@clisp.org>
13167
13168         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13169         * doc/glibc-headers/a.out.texi: New file.
13170         * doc/glibc-headers/aliases.texi: New file.
13171         * doc/glibc-headers/alloca.texi: New file.
13172         * doc/glibc-headers/ar.texi: New file.
13173         * doc/glibc-headers/argp.texi: New file.
13174         * doc/glibc-headers/argz.texi: New file.
13175         * doc/glibc-headers/byteswap.texi: New file.
13176         * doc/glibc-headers/crypt.texi: New file.
13177         * doc/glibc-headers/endian.texi: New file.
13178         * doc/glibc-headers/envz.texi: New file.
13179         * doc/glibc-headers/err.texi: New file.
13180         * doc/glibc-headers/error.texi: New file.
13181         * doc/glibc-headers/execinfo.texi: New file.
13182         * doc/glibc-headers/fpu_control.texi: New file.
13183         * doc/glibc-headers/fstab.texi: New file.
13184         * doc/glibc-headers/fts.texi: New file.
13185         * doc/glibc-headers/getopt.texi: New file.
13186         * doc/glibc-headers/ieee754.texi: New file.
13187         * doc/glibc-headers/ifaddrs.texi: New file.
13188         * doc/glibc-headers/libintl.texi: New file.
13189         * doc/glibc-headers/mcheck.texi: New file.
13190         * doc/glibc-headers/mntent.texi: New file.
13191         * doc/glibc-headers/obstack.texi: New file.
13192         * doc/glibc-headers/paths.texi: New file.
13193         * doc/glibc-headers/printf.texi: New file.
13194         * doc/glibc-headers/pty.texi: New file.
13195         * doc/glibc-headers/resolv.texi: New file.
13196         * doc/glibc-headers/shadow.texi: New file.
13197         * doc/glibc-headers/sysexits.texi: New file.
13198         * doc/glibc-headers/ttyent.texi: New file.
13199
13200 2008-01-12  Jim Meyering  <meyering@redhat.com>
13201
13202         announce-gen: emit Gnulib's git-based version string.
13203         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13204         New option --gnulib-version=V, where V is expected to be
13205         the output of running git describe in the gnulib directory.
13206         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13207         not useful, and plan to stop publishing an xdelta file with each
13208         coreutils release.
13209
13210         * build-aux/announce-gen: Also check for lzma-compressed files.
13211
13212 2008-01-11  Bruno Haible  <bruno@clisp.org>
13213
13214         * tests/test-memmem.c (main): Increase maximum allowed time.
13215         * tests/test-strstr.c (main): Likewise.
13216
13217 2008-01-11  Bruno Haible  <bruno@clisp.org>
13218
13219         * doc/functions/memmem.texi: Add more precisions about platforms.
13220         * doc/functions/strstr.texi: Likewise.
13221
13222 2008-01-10  Eric Blake  <ebb9@byu.net>
13223
13224         * m4/strstr.m4: Delete cruft from copy-n-paste.
13225         Reported by Bruno Haible.
13226
13227 2008-01-10  Bruno Haible  <bruno@clisp.org>
13228
13229         Make c-strstr rely on strstr.
13230         * lib/c-strstr.c: Don't include str-kmp.h.
13231         (c_strstr): Define in terms of strstr.
13232         * modules/c-strstr (Files): Remove lib/str-kmp.h.
13233         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13234
13235 2008-01-10  Bruno Haible  <bruno@clisp.org>
13236
13237         * doc/gnulib.texi (String Functions in C Locale): New section.
13238         * doc/c-ctype.texi: New file.
13239         * doc/c-strcase.texi: New file.
13240         * doc/c-strcaseeq.texi: New file.
13241         * doc/c-strcasestr.texi: New file.
13242         * doc/c-strstr.texi: New file.
13243         * doc/c-strtod.texi: New file.
13244         * doc/c-strtold.texi: New file.
13245
13246 2008-01-10  Eric Blake  <ebb9@byu.net>
13247
13248         * lib/relocatable.h: Fix a comment.
13249
13250 2008-01-10  Eric Blake  <ebb9@byu.net>
13251
13252         Share two-way algorithm.
13253         * lib/str-two-way.h: New file, merged from...
13254         * lib/memmem.c: ...here...
13255         * lib/strstr.c: ...and here.
13256         * modules/memmem (Files): Use it.
13257         * modules/strstr (Files): Likewise.
13258
13259         Avoid quadratic strstr implementations.
13260         * lib/strstr.c: New file.
13261         * m4/strstr.m4: Likewise.
13262         * modules/strstr: Likewise.
13263         * modules/strstr-tests: Likewise.
13264         * tests/test-strstr.c: Likewise.
13265         * lib/string.in.h (rpl_strstr): Declare.
13266         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13268         * modules/string (Makefile.am): Likewise.
13269         * MODULES.html.sh (string handling): Mention new module.
13270         * doc/functions/strstr.texi (strstr): Document the bug.
13271
13272 2008-01-10  Bruno Haible  <bruno@clisp.org>
13273
13274         * lib/relocatable.h (relocate): State whether result is freshly
13275         allocated or not.
13276         * lib/relocatable.c (relocate): Return a freshly allocated string
13277         instead of a pointer to a privately held string.
13278         Reported by Sylvain Beucler <beuc@gnu.org>.
13279
13280 2008-01-10  Colin Watson  <cjwatson@debian.org>
13281
13282         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13283         s/S_ISNLK/S_ISLNK/.
13284
13285 2008-01-09  Bruno Haible  <bruno@clisp.org>
13286
13287         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13288         and other files.
13289         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13290         if it's only a guess.
13291         * modules/memmem: Simplify by depending on memmem-simple.
13292
13293 2008-01-09  Bruno Haible  <bruno@clisp.org>
13294
13295         Work around OpenBSD 4.0 tdelete() bug.
13296         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13297         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13298         macros and don't redefine the enum values.
13299         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13300         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13301         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13302
13303 2008-01-09  Bruno Haible  <bruno@clisp.org>
13304
13305         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13306         (main): Don't perform the tests if setlocale did not install a UTF-8
13307         locale. Needed on OpenBSD 4.0.
13308         * modules/wcwidth-tests (Depends-on): Add localcharset.
13309
13310 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13313         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13314         * NEWS: announce this.
13315         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13316
13317 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13318         and Eric Blake  <ebb9@byu.net>
13319
13320         Add memmem-simple module.
13321         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13322         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13323         * modules/memmem-simple: New file.
13324         * modules/memmem (Description): Tweak.
13325         * MODULES.html.sh (string handling): Mention new module.
13326         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13327         addressed by memmem-simple.
13328         * NEWS: Document the difference.
13329
13330 2008-01-09  Eric Blake  <ebb9@byu.net>
13331
13332         Give gcc some memmem optimization hints.
13333         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13334         (strcasestr): Declare as pure.
13335         * modules/memmem (Maintainer): Claim my implementation.
13336
13337 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13338
13339         Support AIX 6.1 and higher.
13340         * build-aux/config.libpath: Likewise.
13341         * build-aux/config.rpath: Likewise.
13342
13343 2008-01-08  Jim Meyering  <meyering@redhat.com>
13344             Bruno Haible  <bruno@clisp.org>
13345
13346         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13347         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13348         Reported by Peter Fales in
13349         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13350
13351 2008-01-08  Bruno Haible  <bruno@clisp.org>
13352
13353         * modules/unictype/category-of (Depends-on): Add
13354         unictype/category-none.
13355         * modules/unictype/category-and-tests (Depends-on): Add
13356         unictype/category-{L,N,Lu,Nd}.
13357         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13358         * modules/unictype/category-or-tests (Depends-on): Add
13359         unictype/category-{L,N}.
13360         * modules/unictype/category-name-tests (Depends-on): Add
13361         unictype/category-{Z,Nl}.
13362         Reported by Simon Josefsson.
13363
13364 2008-01-08  Bruno Haible  <bruno@clisp.org>
13365
13366         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13367         convention better.
13368         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13369         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13370         Reported by Peter Miller <millerp@canb.auug.org.au>.
13371
13372 2008-01-08  Eric Blake  <ebb9@byu.net>
13373
13374         Rewrite memmem to guarantee linear complexity without malloc.
13375         * lib/memmem.c (memmem): Use Two-Way rather than
13376         Knuth-Morris-Pratt, to allow O(1) space usage.
13377         (critical_factorization, two_way_short_needle)
13378         (two_way_long_needle): New functions.
13379         (knuth_morris_pratt): Delete.
13380         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13381         Add stdint.
13382         * tests/test-memmem.c (main): Add tests for periodic needle and
13383         sublinear performance.
13384         * doc/functions/memmem.texi (memmem): Document other deficiencies
13385         in cygwin and older glibc.
13386
13387 2008-01-08  Bruno Haible  <bruno@clisp.org>
13388
13389         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13390         augmentation.
13391
13392 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13393
13394         Add a configure time option: --disable-acl.
13395         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13396         AC_ARG_ENABLE(acl).
13397
13398 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13399
13400         * tests/test-localename.c: Don't include obsolete "setenv.h".
13401
13402         * modules/localename-tests (Depends-on): Need unsetenv.
13403
13404 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13405
13406         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13407
13408 2008-01-06  Colin Watson  <cjwatson@debian.org>
13409
13410         * users.txt: Add man-db.
13411
13412 2008-01-07  Bruno Haible  <bruno@clisp.org>
13413
13414         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13415         previous section name.
13416
13417 2008-01-07  Bruno Haible  <bruno@clisp.org>
13418
13419         * lib/progname.c (set_program_name): Don't strip off a leading
13420         "lt-" prefix outside a .libs directory.
13421         Suggested by Paul Eggert.
13422
13423 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13424             Bruno Haible  <bruno@clisp.org>
13425
13426         Improve memory cleanup in 'relocatable' module.
13427         * lib/relocatable.h (compute_curr_prefix): Change return type to
13428         'char *'.
13429         * lib/relocatable.c (compute_curr_prefix): Change return type to
13430         'char *'. Free curr_installdir after use.
13431         (relocate): Free curr_prefix_better after use.
13432         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13433
13434 2008-01-01  Bruno Haible  <bruno@clisp.org>
13435
13436         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13437         failure on older glibc systems.
13438         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13439
13440 2008-01-05  Eric Blake  <ebb9@byu.net>
13441
13442         Avoid quadratic system memmem.
13443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13444         Reported by Ralf Wildenhues.
13445
13446         Fix memmem test for mingw.
13447         * modules/memmem-tests (configure.ac): Check for alarm.
13448         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13449         it.
13450         * doc/functions/memmem.texi: New file.
13451         * doc/gnulib.texi (Function Substitutes): Add memmem.
13452         Reported by Bruno Haible.
13453
13454 2008-01-04  Bruno Haible  <bruno@clisp.org>
13455
13456         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13457         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13458         gl_HEADER_STRING_H_DEFAULTS.
13459
13460 2008-01-04  Eric Blake  <ebb9@byu.net>
13461
13462         Shorten duration of memmem test.
13463         * tests/test-memmem.c (main): Use alarm to declare failure if test
13464         is taking too long.
13465         Reported by Ralf Wildenhues.
13466
13467 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13468
13469         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13470         string, needed by strerror.
13471
13472 2008-01-03  Colin Watson  <cjwatson@debian.org>
13473             Bruno Haible  <bruno@clisp.org>
13474
13475         * doc/gnulib-tool.texi (Localization): New section.
13476
13477 2008-01-02  Bruno Haible  <bruno@clisp.org>
13478
13479         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13480         variables to 'unsigned char *' type.
13481         Reported by Paul Eggert.
13482
13483 2008-01-02  Jim Meyering  <jim@meyering.net>
13484
13485         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13486
13487 2007-12-31  Jim Meyering  <jim@meyering.net>
13488
13489         Avoid use of private FTS type name.
13490         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13491
13492 2007-12-30  Karl Berry  <karl@gnu.org>
13493
13494         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13495         work around defect in Texinfo and/or the standalone Info browser.
13496
13497 2007-12-30  Bruno Haible  <bruno@clisp.org>
13498
13499         Unify 5 copies of the KMP code.
13500         * lib/str-kmp.h: New file.
13501         * lib/c-strcasestr.c: Include str-kmp.h.
13502         (knuth_morris_pratt): Remove function.
13503         (c_strcasestr): Update.
13504         * lib/c-strstr.c: Include str-kmp.h.
13505         (knuth_morris_pratt): Remove function.
13506         (c_strcasestr): Update.
13507         * lib/mbscasestr.c: Include str-kmp.h.
13508         (knuth_morris_pratt_unibyte): Remove function.
13509         * lib/mbsstr.c: Include str-kmp.h.
13510         (knuth_morris_pratt_unibyte): Remove function.
13511         * lib/strcasestr.c: Include str-kmp.h.
13512         (knuth_morris_pratt): Remove function.
13513         (strcasestr): Update.
13514         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13515         * modules/c-strstr (Files): Likewise.
13516         * modules/mbscasestr (Files): Likewise.
13517         * modules/mbsstr (Files): Likewise.
13518         * modules/strcasestr (Files): Likewise.
13519         Suggested by Paul Eggert.
13520
13521 2007-12-30  Bruno Haible  <bruno@clisp.org>
13522
13523         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13524         defined.
13525
13526 2007-12-30  Bruno Haible  <bruno@clisp.org>
13527
13528         * lib/xmalloca.h: Include xalloc.h.
13529         (xnmalloca): New macro.
13530
13531 2007-12-30  Bruno Haible  <bruno@clisp.org>
13532
13533         * lib/malloca.h (nmalloca): New macro.
13534         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13535         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13536         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13537         knuth_morris_pratt_multibyte): Likewise.
13538         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13539         knuth_morris_pratt_multibyte): Likewise.
13540         * lib/memmem.c (knuth_morris_pratt): Likewise.
13541         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13542
13543 2007-12-25  Bruno Haible  <bruno@clisp.org>
13544
13545         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13546         * lib/glob.c: Don't include openat.h.
13547         (link_exists2_p): Add back the code that deals with the
13548         !GLOB_ALTDIRFUNC case.
13549         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13550         let it do the filename concatenation.
13551         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13552         * modules/glob (Depends-on): Remove openat.
13553
13554 2007-12-31  Bruno Haible  <bruno@clisp.org>
13555
13556         * modules/dirfd (License): Change to LGPLv2+.
13557         Approved by Jim Meyering.
13558
13559 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13560
13561         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13562         when multiplying M by sizeof (size_t).
13563
13564 2007-12-10  Martin Lambers  <marlam@marlam.de>
13565
13566         Override getpagesize on mingw.
13567         * lib/getpagesize.c: New file.
13568         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13569         * modules/getpagesize (Files): Add lib/getpagesize.c.
13570         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13572         REPLACE_GETPAGESIZE.
13573         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13574
13575 2007-12-25  Bruno Haible  <bruno@clisp.org>
13576
13577         * modules/localcharset (Notice): New field.
13578         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13579         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13580
13581 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13582             Bruno Haible  <bruno@clisp.org>
13583
13584         Avoid using the syntax symbol() in formatted documentation.
13585         * MODULES.html.sh (func_module): When replacing symbol() with a
13586         hyperlink, remove the parentheses. Show an error if some remain.
13587         Recognize and render the '...' syntax.
13588         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13589         Rework. Add paragraph about GCC's inlining.
13590         * doc/alloca.texi: Likewise.
13591         * doc/error.texi: Remove parentheses from symbol reference.
13592         * doc/gnulib-intro.texi: Likewise.
13593         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13594         * modules/fnmatch (Description): Reword to say "the ... function".
13595         * modules/full-read (Description): Likewise.
13596         * modules/full-write (Description): Likewise.
13597         * modules/safe-read (Description): Likewise.
13598         * modules/safe-write (Description): Likewise.
13599         * modules/strchrnul (Description): Likewise.
13600         * modules/trim (Description): Likewise.
13601         * modules/error (Description): Remove parentheses from symbol
13602         references.
13603         * modules/verror (Description): Likewise.
13604         Reported by Karl Berry.
13605
13606 2007-12-25  Bruno Haible  <bruno@clisp.org>
13607
13608         Fixup after 2007-10-16 commit.
13609         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13610
13611 2007-12-24  Bruno Haible  <bruno@clisp.org>
13612
13613         Make --enable-relocatable work with DESTDIR.
13614         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13615         to compute installdir from destprog.
13616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13617         also set the RELOC_DESTDIR variable.
13618         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13619
13620 2007-12-24  Bruno Haible  <bruno@clisp.org>
13621
13622         Fix link error due to xalloc_die().
13623         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13624         of xreadlink.
13625         * lib/relocwrapper.c: Update comments.
13626         * build-aux/install-reloc: Remove xreadlink.c from file list.
13627         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13628         xreadlink.c.
13629         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13630
13631 2007-12-24  Bruno Haible  <bruno@clisp.org>
13632
13633         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13634         * lib/setenv.h: Remove file.
13635         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13636         lib/setenv.h.
13637         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13638         (Depends-on): Add stdlib.
13639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13640         gl_FUNC_UNSETENV.
13641         (Include): Replace setenv.h with <stdlib.h>.
13642         * modules/unsetenv: New file.
13643         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13644         * lib/unsetenv.c: Include <stdlib.h> first.
13645         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13646         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13647         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13648         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13649         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13650         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13652         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13653         * doc/functions/unsetenv.texi: Update.
13654         * modules/xsetenv (Depends-on): Add unsetenv.
13655         * modules/getdate (Depends-on): Likewise.
13656         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13657         * lib/xsetenv.c: Don't include setenv.h.
13658         * lib/getdate.y: Likewise.
13659         * lib/relocwrapper.c: Likewise.
13660         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13661         (Depends-on): Add stdlib.
13662         * NEWS: Mention the changes.
13663         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13664
13665 2007-12-23  Bruno Haible  <bruno@clisp.org>
13666
13667         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13668         indentation.
13669
13670 2007-12-23  Bruno Haible  <bruno@clisp.org>
13671
13672         * lib/c-strcasestr.c: Add more comments.
13673         * lib/c-strstr.c: Likewise.
13674         * lib/mbscasestr.c: Likewise.
13675         * lib/mbsstr.c: Likewise.
13676         * lib/strcasestr.c: Likewise.
13677         * lib/memmem.c: Likewise.
13678
13679 2007-12-23  Bruno Haible  <bruno@clisp.org>
13680
13681         * tests/test-memmem.c: Include <string.h> first.
13682
13683 2007-12-22  Bruno Haible  <bruno@clisp.org>
13684
13685         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13686         the contents of $testsbase.
13687         Reported by Ralf Wildenhues.
13688
13689 2007-12-22  Bruno Haible  <bruno@clisp.org>
13690
13691         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13692         two variables local_ldadd_before, local_ldadd_last.
13693
13694 2007-12-20  Eric Blake  <ebb9@byu.net>
13695
13696         Work around circular library issue when cross-compiling.
13697         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13698         that progname.o does not need to pull in rpl_memcmp.
13699
13700 2007-12-19  Eric Blake  <ebb9@byu.net>
13701
13702         Fix memmem to avoid O(n^2) worst-case complexity.
13703         * lib/memmem.c (knuth_morris_pratt): New function.
13704         (memmem): Use it if first few naive iterations fail.
13705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13706         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13707         * modules/memchr (License): Likewise.
13708         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13709         malloca.
13710         * tests/test-memmem.c: Rewrite, borrowing ideas from
13711         test-mbsstr1.c; the old version wouldn't even compile!
13712         * modules/memmem-tests: New file.
13713         * lib/string.in.h (rpl_memmem): Add declaration.
13714         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13716         REPLACE_MEMMEM.
13717
13718 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13721         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13722         before any system include files, and undef after them all.  This
13723         should fix a problem on VMS reported by John E. Malmberg in
13724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13725
13726 2007-12-17  Eric Blake  <ebb9@byu.net>
13727
13728         Revert addition of verify, for BSD/OS.
13729         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13730         can't handle large files, for the sake of obsolete platforms.
13731         * modules/fseeko (Depends-on): Remove verify.
13732         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13733         * doc/functions/ftello.texi (ftello): Likewise.
13734         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13735         Reported by Larry Jones.
13736
13737 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13738
13739         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13740         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13741
13742 2007-12-17  Jim Meyering  <meyering@redhat.com>
13743
13744         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13745         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13746         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13747         * modules/getcwd (Depends-on): Add openat.
13748         Reported by Petr Salinger.
13749
13750 2007-12-17  Bruno Haible  <bruno@clisp.org>
13751
13752         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13753         avoid a segmentation fault of the configure test on x86_64 systems.
13754
13755 2007-12-15  Jim Meyering  <meyering@redhat.com>
13756
13757         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13758
13759 2007-12-13  Eric Blake  <ebb9@byu.net>
13760
13761         Another fseek test.
13762         * tests/test-fseek.c (main): Also test ungetc handling.
13763         * tests/test-fseeko.c (main): Likewise.
13764         * modules/fseeko (Depends-on): Add verify.
13765         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13766         large.
13767         Reported by Larry Jones.
13768
13769         Fix fseeko on mingw.
13770         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13771         seek.
13772
13773         Beef up fseek tests.
13774         * tests/test-fseek.c (main): Also test eof handling.
13775         * tests/test-fseeko.c (main): Likewise.
13776         Reported by Larry Jones.
13777
13778 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13779
13780         Fix fseeko on BSD-based platforms.
13781         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13782         successful seek.
13783
13784 2007-12-12  Eric Blake  <ebb9@byu.net>
13785
13786         Allow circular dependency of separate libtests.a
13787         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13788         when use_libtests.
13789
13790 2007-12-11  Eric Blake  <ebb9@byu.net>
13791
13792         Fix bug with -0.0L in previous patch.
13793         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13794         * tests/test-isnan.c (main): Also test on zeroes.
13795         * tests/test-isnanf.c (main): Likewise.
13796         * tests/test-isnanl.h (main): Likewise.
13797
13798         Detect pseudo-denormals on x86 even when cross-compiling.
13799         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13800         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13801         invalid bit patterns that happen to satisfy ==.
13802
13803         Avoid link failures with separate libtests.a.
13804         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13805         last, to satisfy circular dependencies.
13806
13807 2007-12-11  Eric Blake  <ebb9@byu.net>
13808         and Bruno Haible  <bruno@clisp.org>
13809
13810         Fix OpenBSD 4.0 <float.h> handling of long double.
13811         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13812         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13813         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13814
13815 2007-12-11  Jim Meyering  <meyering@redhat.com>
13816
13817         * users.txt: Add libvirt.
13818
13819         Support versions of autoconf prior to 2.59c.
13820         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13821         if it is not already defined.
13822
13823 2007-12-09  Bruno Haible  <bruno@clisp.org>
13824
13825         Let 'gnulib-tool --import' collect sources needed for the tests in
13826         tests/ rather than in lib/.
13827         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13828         argument. If true, add rules to generate libtests.a, and put libtests.a
13829         into $(LDADD). Consider source files in subdirectories and set
13830         uses_subdirs.
13831         (func_emit_initmacro_start, func_emit_initmacro_end,
13832         func_emit_initmacro_done): Pass all arguments explicitly.
13833         (func_import): Determine two module lists main_modules,
13834         testsrelated_modules. Determine use_libtests. Determine two variables
13835         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13836         instead of just sed_transform_lib_file. Determine two variables
13837         main_files and testsrelated_files. Compute 'files' as the union of
13838         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13839         func_add_or_update. In the generated gnulib-comp.m4, collect the
13840         object files for tests/ in different variables than those for lib/.
13841         Substitute LIBTESTS_LIBDEPS.
13842         (func_create_testdir): Combine the uses_subdirs results from
13843         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13844
13845 2007-12-09  Bruno Haible  <bruno@clisp.org>
13846
13847         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13848         the build-aux directory.
13849
13850 2007-12-09  Bruno Haible  <bruno@clisp.org>
13851
13852         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13853         introduced on 2006-09-09.
13854
13855 2007-12-07  Jim Meyering  <meyering@redhat.com>
13856
13857         Let these macros work also with autoconf-2.59.
13858         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
13859         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13860         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13861
13862 2007-12-06  Jim Meyering  <meyering@redhat.com>
13863
13864         Avoid a configure-time syntax error in gl_FUNC_ACL.
13865         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13866         function in each branch, before testing the cache variable.
13867
13868 2007-12-04  Eric Blake  <ebb9@byu.net>
13869
13870         Make scripts executable.
13871         * build-aux/config.guess: Add execute permissions.
13872         * build-aux/config.sub: Likewise.
13873         * build-aux/gendocs.sh: Likewise.
13874
13875         Fix frexp on mingw.
13876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13877         cross-compiling.
13878         * doc/functions/frexp.texi (frexp): Document the bug.
13879
13880         Make cygwin fseeko check more reliable.
13881         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13882         version numbers, rather than unrelated feature check.
13883         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13884         * doc/functions/ftello.texi (ftello): Likewise.
13885         Reported by Bruno Haible.
13886
13887         * m4/strerror.m4: Bump version number.
13888
13889 2007-12-03  Bruno Haible  <bruno@clisp.org>
13890
13891         * doc/functions/mprotect.texi: Mention the mingw problem.
13892
13893 2007-12-03  Eric Blake  <ebb9@byu.net>
13894
13895         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13896         REPLACE_STRERROR is initialized before this macro.
13897
13898 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13899
13900         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
13901         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13902         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
13903         put -lsec in even for programs other than 'ls'.  This fixes a problem
13904         for gettext reported by Bruno Haible in
13905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13906         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13907         Add support for Solaris 10.  This isn't efficient, but should get the
13908         job done for now.
13909
13910 2007-12-03  James Youngman  <jay@gnu.org>
13911
13912         * doc/regexprops-generic.texi: change "an close-group" to "a
13913         close-group" and "illegal" to "not allowed".
13914
13915 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13916
13917         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13918         pr_byname.h. Needed for the rare case when the maintainer has done
13919         "make maintainer-clean" in the source directory and then attempts a
13920         build outside the source directory.
13921         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13922         scripts_byname.h.
13923
13924 2007-12-02  Martin Lambers <marlam@marlam.de>
13925             Bruno Haible  <bruno@clisp.org>
13926
13927         * lib/getpagesize.h: Remove file.
13928         * lib/unistd.in.h: Include declaration of getpagesize here.
13929         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13930         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13931         HAVE_SYS_PARAM_H.
13932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13933         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13934         * modules/getpagesize (Files): Remove lib/getpagesize.h.
13935         (Depends-on): Add unistd.
13936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13937         (Include): Use <unistd.h> instead of getpagesize.h.
13938         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13939         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13940         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13941         gl_GETPAGESIZE invocation, already handled by module dependency.
13942         * lib/pagealign_alloc.c: Don't include getpagesize.h.
13943
13944 2007-12-02  Bruno Haible  <bruno@clisp.org>
13945
13946         * modules/strings-tests: New file.
13947         * tests/test-strings.c: New file.
13948
13949         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13950         * lib/strings.in.h: New file.
13951         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13952         * m4/strings_h.m4: New file.
13953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13954         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13955         * modules/strings: New file.
13956         * modules/string (Makefile.am): Update.
13957         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13958         Reported by Karl Berry.
13959
13960 2007-12-01  Eric Blake  <ebb9@byu.net>
13961
13962         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13963         accomodate fix in cygwin 1.5.25.
13964
13965 2007-12-01  Jim Meyering  <meyering@redhat.com>
13966
13967         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13968         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13969         that would inhibit utf8-optimization of a regexp containing line-
13970         or buffer-anchors, e.g., `^', `$'.
13971
13972 2007-11-30  Bruno Haible  <bruno@clisp.org>
13973
13974         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13975         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13976         glthread_recursive_lock_init.
13977         * lib/lock.c (glthread_recursive_lock_init)
13978         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13979         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13980
13981 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         New function qset_acl, like set_acl but with syscall semantics.
13984         * lib/acl.h (qset_acl): New decl.
13985         * lib/acl.c (qset_acl): New function.
13986         (set_acl): Use new function.  Use more-consistent diagnostics.
13987
13988 2007-11-28  Jim Meyering  <meyering@redhat.com>
13989
13990         * modules/physmem (License): Change from GPL to LGPLv2+.
13991
13992 2007-11-26  Bruno Haible  <bruno@clisp.org>
13993
13994         * lib/vasnprintf.c (decode_long_double): Don't abort if the
13995         'long double' type has excess precision.
13996         Reported by Jim Meyering in
13997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13998
13999 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14000
14001         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
14002         Sync from <http://gnu.org/licenses>.
14003         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
14004         with license text from same location.
14005         * doc/maintain.texi, doc/standards.texi:  Sync from
14006         <http://savannah.gnu.org/projects/gnustandards>.
14007
14008 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
14009         and Jim Meyering  <meyering@redhat.com>
14010
14011         Adjust getdate' grammar to accept a slightly more regular language.
14012         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
14013         Before, the former was rejected.
14014         * lib/getdate.y (digits_to_date_time): New function, factored
14015         out of ...
14016         (number): ...here.  Just call digits_to_date_time.
14017         (hybrid): New non-terminal to handle an <unsigned number,
14018         signed relative offset> sequence consistently.
14019
14020 2007-11-18  Jim Meyering  <meyering@redhat.com>
14021
14022         Pull my changes from coreutils:
14023         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
14024         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
14025         use of $gnulib_tool_option_extras, so that it's separated from the
14026         preceding argument.
14027
14028         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
14029         * build-aux/bootstrap (cp_mark_as_generated): Create any required
14030         parent destination directories before copying a file into place.
14031
14032 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14033
14034         bootstrap: work also with 4-argument variant of AC_INIT
14035         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
14036
14037 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14038
14039         Port test-getaddrinfo to Solaris.
14040         Problem reported by Bruno Haible in
14041         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
14042         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
14043         explanation of setting 'hints'.
14044         Don't reject an implementation merely because it returns EAI_SERVICE.
14045         (EAI_SERVICE): Define to 0 if not defined.
14046
14047 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         The license of gnu-make and posix-shell is now "GPLed build tool".
14050         * modules/gnu-make (License): Likewise.
14051         * modules/posix-shell (License): Likewise.
14052
14053         New module posix-shell, for determining a POSIX shell
14054         or perhaps something that is close enough to a POSIX shell.
14055         * m4/posix-shell.m4: New file.
14056         * modules/posix-shell: New file.
14057
14058         * MODULES.html.sh: Mention new module.
14059
14060         New module gnu-make, for determining whether we're using GNU Make.
14061         * m4/gnu-make.m4: New file.
14062         * modules/gnu-make: New file.
14063         * MODULES.html.sh: Mention new module.
14064
14065 2007-11-14  Jim Meyering  <meyering@redhat.com>
14066
14067         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
14068         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
14069         use this macro to create a function _definition_.
14070         Remove useless "#undef ARGMATCH_DIE".
14071
14072 2007-11-14  Bruno Haible  <bruno@clisp.org>
14073
14074         * lib/config.charset: Update for OpenBSD 4.1.
14075         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
14076
14077 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         Document 64-bit #if problems in stdint.texi.
14080         * doc/headers/stdint.texi (stdint.h): Mention problems with
14081         64-bit-#if, and how to work around them.
14082
14083         Don't insist on 'long long int' support in the preprocessor.  It
14084         breaks too many things.  For example, PRIdMAX still uses a 'long
14085         long int' format with the latest Sun compiler, even though
14086         HAVE_LONG_LONG_INT isn't defined due to that compiler's
14087         preprocessor problem.  This causes the latest coreutils to dump
14088         core on Solaris 10 sparc with the Sun C compiler.
14089         Instead, fix the 2007-10-16 problem in a different way, by evaluating
14090         the troublesome expressions at configure-time, not at #if-time.
14091         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
14092         preprocessor.
14093         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
14094         compile-time C checks, done at 'configure'-time.
14095         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
14096         * modules/inttypes (Makefile): Substitute the new symbols that
14097         gl_INTTYPES_H now generates.
14098         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
14099
14100 2007-11-12  Bruno Haible  <bruno@clisp.org>
14101
14102         Tests for Unicode character classification functions.
14103
14104         * modules/unictype/bidicategory-byname-tests: New file.
14105         * modules/unictype/bidicategory-name-tests: New file.
14106         * modules/unictype/bidicategory-of-tests: New file.
14107         * modules/unictype/bidicategory-test-tests: New file.
14108         * modules/unictype/block-list-tests: New file.
14109         * modules/unictype/block-of-tests: New file.
14110         * modules/unictype/block-test-tests: New file.
14111         * modules/unictype/category-C-tests: New file.
14112         * modules/unictype/category-Cc-tests: New file.
14113         * modules/unictype/category-Cf-tests: New file.
14114         * modules/unictype/category-Cn-tests: New file.
14115         * modules/unictype/category-Co-tests: New file.
14116         * modules/unictype/category-Cs-tests: New file.
14117         * modules/unictype/category-L-tests: New file.
14118         * modules/unictype/category-Ll-tests: New file.
14119         * modules/unictype/category-Lm-tests: New file.
14120         * modules/unictype/category-Lo-tests: New file.
14121         * modules/unictype/category-Lt-tests: New file.
14122         * modules/unictype/category-Lu-tests: New file.
14123         * modules/unictype/category-M-tests: New file.
14124         * modules/unictype/category-Mc-tests: New file.
14125         * modules/unictype/category-Me-tests: New file.
14126         * modules/unictype/category-Mn-tests: New file.
14127         * modules/unictype/category-N-tests: New file.
14128         * modules/unictype/category-Nd-tests: New file.
14129         * modules/unictype/category-Nl-tests: New file.
14130         * modules/unictype/category-No-tests: New file.
14131         * modules/unictype/category-P-tests: New file.
14132         * modules/unictype/category-Pc-tests: New file.
14133         * modules/unictype/category-Pd-tests: New file.
14134         * modules/unictype/category-Pe-tests: New file.
14135         * modules/unictype/category-Pf-tests: New file.
14136         * modules/unictype/category-Pi-tests: New file.
14137         * modules/unictype/category-Po-tests: New file.
14138         * modules/unictype/category-Ps-tests: New file.
14139         * modules/unictype/category-S-tests: New file.
14140         * modules/unictype/category-Sc-tests: New file.
14141         * modules/unictype/category-Sk-tests: New file.
14142         * modules/unictype/category-Sm-tests: New file.
14143         * modules/unictype/category-So-tests: New file.
14144         * modules/unictype/category-Z-tests: New file.
14145         * modules/unictype/category-Zl-tests: New file.
14146         * modules/unictype/category-Zp-tests: New file.
14147         * modules/unictype/category-Zs-tests: New file.
14148         * modules/unictype/category-and-not-tests: New file.
14149         * modules/unictype/category-and-tests: New file.
14150         * modules/unictype/category-byname-tests: New file.
14151         * modules/unictype/category-name-tests: New file.
14152         * modules/unictype/category-none-tests: New file.
14153         * modules/unictype/category-of-tests: New file.
14154         * modules/unictype/category-or-tests: New file.
14155         * modules/unictype/category-test-withtable-tests: New file.
14156         * modules/unictype/combining-class-tests: New file.
14157         * modules/unictype/ctype-alnum-tests: New file.
14158         * modules/unictype/ctype-alpha-tests: New file.
14159         * modules/unictype/ctype-blank-tests: New file.
14160         * modules/unictype/ctype-cntrl-tests: New file.
14161         * modules/unictype/ctype-digit-tests: New file.
14162         * modules/unictype/ctype-graph-tests: New file.
14163         * modules/unictype/ctype-lower-tests: New file.
14164         * modules/unictype/ctype-print-tests: New file.
14165         * modules/unictype/ctype-punct-tests: New file.
14166         * modules/unictype/ctype-space-tests: New file.
14167         * modules/unictype/ctype-upper-tests: New file.
14168         * modules/unictype/ctype-xdigit-tests: New file.
14169         * modules/unictype/decimal-digit-tests: New file.
14170         * modules/unictype/digit-tests: New file.
14171         * modules/unictype/mirror-tests: New file.
14172         * modules/unictype/numeric-tests: New file.
14173         * modules/unictype/property-alphabetic-tests: New file.
14174         * modules/unictype/property-ascii-hex-digit-tests: New file.
14175         * modules/unictype/property-bidi-arabic-digit-tests: New file.
14176         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14177         * modules/unictype/property-bidi-block-separator-tests: New file.
14178         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14179         * modules/unictype/property-bidi-common-separator-tests: New file.
14180         * modules/unictype/property-bidi-control-tests: New file.
14181         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14182         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14183         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14184         * modules/unictype/property-bidi-european-digit-tests: New file.
14185         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14186         * modules/unictype/property-bidi-left-to-right-tests: New file.
14187         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14188         * modules/unictype/property-bidi-other-neutral-tests: New file.
14189         * modules/unictype/property-bidi-pdf-tests: New file.
14190         * modules/unictype/property-bidi-segment-separator-tests: New file.
14191         * modules/unictype/property-bidi-whitespace-tests: New file.
14192         * modules/unictype/property-byname-tests: New file.
14193         * modules/unictype/property-combining-tests: New file.
14194         * modules/unictype/property-composite-tests: New file.
14195         * modules/unictype/property-currency-symbol-tests: New file.
14196         * modules/unictype/property-dash-tests: New file.
14197         * modules/unictype/property-decimal-digit-tests: New file.
14198         * modules/unictype/property-default-ignorable-code-point-tests: New file.
14199         * modules/unictype/property-deprecated-tests: New file.
14200         * modules/unictype/property-diacritic-tests: New file.
14201         * modules/unictype/property-extender-tests: New file.
14202         * modules/unictype/property-format-control-tests: New file.
14203         * modules/unictype/property-grapheme-base-tests: New file.
14204         * modules/unictype/property-grapheme-extend-tests: New file.
14205         * modules/unictype/property-grapheme-link-tests: New file.
14206         * modules/unictype/property-hex-digit-tests: New file.
14207         * modules/unictype/property-hyphen-tests: New file.
14208         * modules/unictype/property-id-continue-tests: New file.
14209         * modules/unictype/property-id-start-tests: New file.
14210         * modules/unictype/property-ideographic-tests: New file.
14211         * modules/unictype/property-ids-binary-operator-tests: New file.
14212         * modules/unictype/property-ids-trinary-operator-tests: New file.
14213         * modules/unictype/property-ignorable-control-tests: New file.
14214         * modules/unictype/property-iso-control-tests: New file.
14215         * modules/unictype/property-join-control-tests: New file.
14216         * modules/unictype/property-left-of-pair-tests: New file.
14217         * modules/unictype/property-line-separator-tests: New file.
14218         * modules/unictype/property-logical-order-exception-tests: New file.
14219         * modules/unictype/property-lowercase-tests: New file.
14220         * modules/unictype/property-math-tests: New file.
14221         * modules/unictype/property-non-break-tests: New file.
14222         * modules/unictype/property-not-a-character-tests: New file.
14223         * modules/unictype/property-numeric-tests: New file.
14224         * modules/unictype/property-other-alphabetic-tests: New file.
14225         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14226         * modules/unictype/property-other-grapheme-extend-tests: New file.
14227         * modules/unictype/property-other-id-continue-tests: New file.
14228         * modules/unictype/property-other-id-start-tests: New file.
14229         * modules/unictype/property-other-lowercase-tests: New file.
14230         * modules/unictype/property-other-math-tests: New file.
14231         * modules/unictype/property-other-uppercase-tests: New file.
14232         * modules/unictype/property-paired-punctuation-tests: New file.
14233         * modules/unictype/property-paragraph-separator-tests: New file.
14234         * modules/unictype/property-pattern-syntax-tests: New file.
14235         * modules/unictype/property-pattern-white-space-tests: New file.
14236         * modules/unictype/property-private-use-tests: New file.
14237         * modules/unictype/property-punctuation-tests: New file.
14238         * modules/unictype/property-quotation-mark-tests: New file.
14239         * modules/unictype/property-radical-tests: New file.
14240         * modules/unictype/property-sentence-terminal-tests: New file.
14241         * modules/unictype/property-soft-dotted-tests: New file.
14242         * modules/unictype/property-space-tests: New file.
14243         * modules/unictype/property-terminal-punctuation-tests: New file.
14244         * modules/unictype/property-test-tests: New file.
14245         * modules/unictype/property-titlecase-tests: New file.
14246         * modules/unictype/property-unassigned-code-value-tests: New file.
14247         * modules/unictype/property-unified-ideograph-tests: New file.
14248         * modules/unictype/property-uppercase-tests: New file.
14249         * modules/unictype/property-variation-selector-tests: New file.
14250         * modules/unictype/property-white-space-tests: New file.
14251         * modules/unictype/property-xid-continue-tests: New file.
14252         * modules/unictype/property-xid-start-tests: New file.
14253         * modules/unictype/property-zero-width-tests: New file.
14254         * modules/unictype/scripts-tests: New file.
14255         * modules/unictype/syntax-c-ident-tests: New file.
14256         * modules/unictype/syntax-c-whitespace-tests: New file.
14257         * modules/unictype/syntax-java-ident-tests: New file.
14258         * modules/unictype/syntax-java-whitespace-tests: New file.
14259         * tests/unictype/test-bidi_byname.c: New file.
14260         * tests/unictype/test-bidi_name.c: New file.
14261         * tests/unictype/test-bidi_of.c: New file.
14262         * tests/unictype/test-bidi_test.c: New file.
14263         * tests/unictype/test-block_list.c: New file.
14264         * tests/unictype/test-block_of.c: New file.
14265         * tests/unictype/test-block_test.c: New file.
14266         * tests/unictype/test-categ_and.c: New file.
14267         * tests/unictype/test-categ_and_not.c: New file.
14268         * tests/unictype/test-categ_byname.c: New file.
14269         * tests/unictype/test-categ_name.c: New file.
14270         * tests/unictype/test-categ_none.c: New file.
14271         * tests/unictype/test-categ_of.c: New file.
14272         * tests/unictype/test-categ_or.c: New file.
14273         * tests/unictype/test-categ_test_withtable.c: New file.
14274         * tests/unictype/test-combining.c: New file.
14275         * tests/unictype/test-decdigit.c: New file.
14276         * tests/unictype/test-digit.c: New file.
14277         * tests/unictype/test-mirror.c: New file.
14278         * tests/unictype/test-numeric.c: New file.
14279         * tests/unictype/test-pr_byname.c: New file.
14280         * tests/unictype/test-pr_test.c: New file.
14281         * tests/unictype/test-predicate-part1.h: New file.
14282         * tests/unictype/test-predicate-part2.h: New file.
14283         * tests/unictype/test-scripts.c: New file.
14284         * tests/unictype/test-sy_c_ident.c: New file.
14285         * tests/unictype/test-sy_java_ident.c: New file.
14286
14287         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14288         for Unicode 5.0.0.
14289         * tests/unictype/test-categ_Cc.c: Likewise.
14290         * tests/unictype/test-categ_Cf.c: Likewise.
14291         * tests/unictype/test-categ_Cn.c: Likewise.
14292         * tests/unictype/test-categ_Co.c: Likewise.
14293         * tests/unictype/test-categ_Cs.c: Likewise.
14294         * tests/unictype/test-categ_L.c: Likewise.
14295         * tests/unictype/test-categ_Ll.c: Likewise.
14296         * tests/unictype/test-categ_Lm.c: Likewise.
14297         * tests/unictype/test-categ_Lo.c: Likewise.
14298         * tests/unictype/test-categ_Lt.c: Likewise.
14299         * tests/unictype/test-categ_Lu.c: Likewise.
14300         * tests/unictype/test-categ_M.c: Likewise.
14301         * tests/unictype/test-categ_Mc.c: Likewise.
14302         * tests/unictype/test-categ_Me.c: Likewise.
14303         * tests/unictype/test-categ_Mn.c: Likewise.
14304         * tests/unictype/test-categ_N.c: Likewise.
14305         * tests/unictype/test-categ_Nd.c: Likewise.
14306         * tests/unictype/test-categ_Nl.c: Likewise.
14307         * tests/unictype/test-categ_No.c: Likewise.
14308         * tests/unictype/test-categ_P.c: Likewise.
14309         * tests/unictype/test-categ_Pc.c: Likewise.
14310         * tests/unictype/test-categ_Pd.c: Likewise.
14311         * tests/unictype/test-categ_Pe.c: Likewise.
14312         * tests/unictype/test-categ_Pf.c: Likewise.
14313         * tests/unictype/test-categ_Pi.c: Likewise.
14314         * tests/unictype/test-categ_Po.c: Likewise.
14315         * tests/unictype/test-categ_Ps.c: Likewise.
14316         * tests/unictype/test-categ_S.c: Likewise.
14317         * tests/unictype/test-categ_Sc.c: Likewise.
14318         * tests/unictype/test-categ_Sk.c: Likewise.
14319         * tests/unictype/test-categ_Sm.c: Likewise.
14320         * tests/unictype/test-categ_So.c: Likewise.
14321         * tests/unictype/test-categ_Z.c: Likewise.
14322         * tests/unictype/test-categ_Zl.c: Likewise.
14323         * tests/unictype/test-categ_Zp.c: Likewise.
14324         * tests/unictype/test-categ_Zs.c: Likewise.
14325         * tests/unictype/test-ctype_alnum.c: Likewise.
14326         * tests/unictype/test-ctype_alpha.c: Likewise.
14327         * tests/unictype/test-ctype_blank.c: Likewise.
14328         * tests/unictype/test-ctype_cntrl.c: Likewise.
14329         * tests/unictype/test-ctype_digit.c: Likewise.
14330         * tests/unictype/test-ctype_graph.c: Likewise.
14331         * tests/unictype/test-ctype_lower.c: Likewise.
14332         * tests/unictype/test-ctype_print.c: Likewise.
14333         * tests/unictype/test-ctype_punct.c: Likewise.
14334         * tests/unictype/test-ctype_space.c: Likewise.
14335         * tests/unictype/test-ctype_upper.c: Likewise.
14336         * tests/unictype/test-ctype_xdigit.c: Likewise.
14337         * tests/unictype/test-decdigit.h: Likewise.
14338         * tests/unictype/test-digit.h: Likewise.
14339         * tests/unictype/test-numeric.h: Likewise.
14340         * tests/unictype/test-pr_alphabetic.c: Likewise.
14341         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14342         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14343         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14344         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14345         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14346         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14347         * tests/unictype/test-pr_bidi_control.c: Likewise.
14348         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14349         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14350         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14351         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14352         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14353         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14354         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14355         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14356         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14357         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14358         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14359         * tests/unictype/test-pr_combining.c: Likewise.
14360         * tests/unictype/test-pr_composite.c: Likewise.
14361         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14362         * tests/unictype/test-pr_dash.c: Likewise.
14363         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14364         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14365         * tests/unictype/test-pr_deprecated.c: Likewise.
14366         * tests/unictype/test-pr_diacritic.c: Likewise.
14367         * tests/unictype/test-pr_extender.c: Likewise.
14368         * tests/unictype/test-pr_format_control.c: Likewise.
14369         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14370         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14371         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14372         * tests/unictype/test-pr_hex_digit.c: Likewise.
14373         * tests/unictype/test-pr_hyphen.c: Likewise.
14374         * tests/unictype/test-pr_id_continue.c: Likewise.
14375         * tests/unictype/test-pr_id_start.c: Likewise.
14376         * tests/unictype/test-pr_ideographic.c: Likewise.
14377         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14378         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14379         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14380         * tests/unictype/test-pr_iso_control.c: Likewise.
14381         * tests/unictype/test-pr_join_control.c: Likewise.
14382         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14383         * tests/unictype/test-pr_line_separator.c: Likewise.
14384         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14385         * tests/unictype/test-pr_lowercase.c: Likewise.
14386         * tests/unictype/test-pr_math.c: Likewise.
14387         * tests/unictype/test-pr_non_break.c: Likewise.
14388         * tests/unictype/test-pr_not_a_character.c: Likewise.
14389         * tests/unictype/test-pr_numeric.c: Likewise.
14390         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14391         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14392         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14393         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14394         * tests/unictype/test-pr_other_id_start.c: Likewise.
14395         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14396         * tests/unictype/test-pr_other_math.c: Likewise.
14397         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14398         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14399         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14400         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14401         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14402         * tests/unictype/test-pr_private_use.c: Likewise.
14403         * tests/unictype/test-pr_punctuation.c: Likewise.
14404         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14405         * tests/unictype/test-pr_radical.c: Likewise.
14406         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14407         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14408         * tests/unictype/test-pr_space.c: Likewise.
14409         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14410         * tests/unictype/test-pr_titlecase.c: Likewise.
14411         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14412         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14413         * tests/unictype/test-pr_uppercase.c: Likewise.
14414         * tests/unictype/test-pr_variation_selector.c: Likewise.
14415         * tests/unictype/test-pr_white_space.c: Likewise.
14416         * tests/unictype/test-pr_xid_continue.c: Likewise.
14417         * tests/unictype/test-pr_xid_start.c: Likewise.
14418         * tests/unictype/test-pr_zero_width.c: Likewise.
14419         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14420         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14421
14422 2007-11-12  Bruno Haible  <bruno@clisp.org>
14423
14424         Unicode character classification functions.
14425         * lib/unictype.h: New file.
14426         * modules/unictype/base: New file.
14427         * modules/unictype/category-L: New file.
14428         * modules/unictype/category-Lu: New file.
14429         * modules/unictype/category-Ll: New file.
14430         * modules/unictype/category-Lt: New file.
14431         * modules/unictype/category-Lm: New file.
14432         * modules/unictype/category-Lo: New file.
14433         * modules/unictype/category-M: New file.
14434         * modules/unictype/category-Mn: New file.
14435         * modules/unictype/category-Mc: New file.
14436         * modules/unictype/category-Me: New file.
14437         * modules/unictype/category-N: New file.
14438         * modules/unictype/category-Nd: New file.
14439         * modules/unictype/category-Nl: New file.
14440         * modules/unictype/category-No: New file.
14441         * modules/unictype/category-P: New file.
14442         * modules/unictype/category-Pc: New file.
14443         * modules/unictype/category-Pd: New file.
14444         * modules/unictype/category-Ps: New file.
14445         * modules/unictype/category-Pe: New file.
14446         * modules/unictype/category-Pi: New file.
14447         * modules/unictype/category-Pf: New file.
14448         * modules/unictype/category-Po: New file.
14449         * modules/unictype/category-S: New file.
14450         * modules/unictype/category-Sm: New file.
14451         * modules/unictype/category-Sc: New file.
14452         * modules/unictype/category-Sk: New file.
14453         * modules/unictype/category-So: New file.
14454         * modules/unictype/category-Z: New file.
14455         * modules/unictype/category-Zs: New file.
14456         * modules/unictype/category-Zl: New file.
14457         * modules/unictype/category-Zp: New file.
14458         * modules/unictype/category-C: New file.
14459         * modules/unictype/category-Cc: New file.
14460         * modules/unictype/category-Cf: New file.
14461         * modules/unictype/category-Cs: New file.
14462         * modules/unictype/category-Co: New file.
14463         * modules/unictype/category-Cn: New file.
14464         * modules/unictype/category-or: New file.
14465         * modules/unictype/category-of: New file.
14466         * modules/unictype/category-test: New file.
14467         * modules/unictype/category-test-withtable: New file.
14468         * modules/unictype/category-byname: New file.
14469         * modules/unictype/category-none: New file.
14470         * modules/unictype/category-and: New file.
14471         * modules/unictype/category-and-not: New file.
14472         * modules/unictype/category-name: New file.
14473         * modules/unictype/combining-class: New file.
14474         * modules/unictype/category-all: New file.
14475         * modules/unictype/bidicategory-all: New file.
14476         * modules/unictype/bidicategory-byname: New file.
14477         * modules/unictype/bidicategory-name: New file.
14478         * modules/unictype/bidicategory-of: New file.
14479         * modules/unictype/bidicategory-test: New file.
14480         * modules/unictype/decimal-digit: New file.
14481         * modules/unictype/digit: New file.
14482         * modules/unictype/numeric: New file.
14483         * modules/unictype/mirror: New file.
14484         * modules/unictype/property-white-space: New file.
14485         * modules/unictype/property-alphabetic: New file.
14486         * modules/unictype/property-other-alphabetic: New file.
14487         * modules/unictype/property-not-a-character: New file.
14488         * modules/unictype/property-default-ignorable-code-point: New file.
14489         * modules/unictype/property-other-default-ignorable-code-point: New
14490         file.
14491         * modules/unictype/property-deprecated: New file.
14492         * modules/unictype/property-logical-order-exception: New file.
14493         * modules/unictype/property-variation-selector: New file.
14494         * modules/unictype/property-private-use: New file.
14495         * modules/unictype/property-unassigned-code-value: New file.
14496         * modules/unictype/property-uppercase: New file.
14497         * modules/unictype/property-other-uppercase: New file.
14498         * modules/unictype/property-lowercase: New file.
14499         * modules/unictype/property-other-lowercase: New file.
14500         * modules/unictype/property-titlecase: New file.
14501         * modules/unictype/property-soft-dotted: New file.
14502         * modules/unictype/property-id-start: New file.
14503         * modules/unictype/property-other-id-start: New file.
14504         * modules/unictype/property-id-continue: New file.
14505         * modules/unictype/property-other-id-continue: New file.
14506         * modules/unictype/property-xid-start: New file.
14507         * modules/unictype/property-xid-continue: New file.
14508         * modules/unictype/property-pattern-white-space: New file.
14509         * modules/unictype/property-pattern-syntax: New file.
14510         * modules/unictype/property-join-control: New file.
14511         * modules/unictype/property-grapheme-base: New file.
14512         * modules/unictype/property-grapheme-extend: New file.
14513         * modules/unictype/property-other-grapheme-extend: New file.
14514         * modules/unictype/property-grapheme-link: New file.
14515         * modules/unictype/property-bidi-control: New file.
14516         * modules/unictype/property-bidi-left-to-right: New file.
14517         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14518         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14519         * modules/unictype/property-bidi-european-digit: New file.
14520         * modules/unictype/property-bidi-eur-num-separator: New file.
14521         * modules/unictype/property-bidi-eur-num-terminator: New file.
14522         * modules/unictype/property-bidi-arabic-digit: New file.
14523         * modules/unictype/property-bidi-common-separator: New file.
14524         * modules/unictype/property-bidi-block-separator: New file.
14525         * modules/unictype/property-bidi-segment-separator: New file.
14526         * modules/unictype/property-bidi-whitespace: New file.
14527         * modules/unictype/property-bidi-non-spacing-mark: New file.
14528         * modules/unictype/property-bidi-boundary-neutral: New file.
14529         * modules/unictype/property-bidi-pdf: New file.
14530         * modules/unictype/property-bidi-embedding-or-override: New file.
14531         * modules/unictype/property-bidi-other-neutral: New file.
14532         * modules/unictype/property-hex-digit: New file.
14533         * modules/unictype/property-ascii-hex-digit: New file.
14534         * modules/unictype/property-ideographic: New file.
14535         * modules/unictype/property-unified-ideograph: New file.
14536         * modules/unictype/property-radical: New file.
14537         * modules/unictype/property-ids-binary-operator: New file.
14538         * modules/unictype/property-ids-trinary-operator: New file.
14539         * modules/unictype/property-zero-width: New file.
14540         * modules/unictype/property-space: New file.
14541         * modules/unictype/property-non-break: New file.
14542         * modules/unictype/property-iso-control: New file.
14543         * modules/unictype/property-format-control: New file.
14544         * modules/unictype/property-dash: New file.
14545         * modules/unictype/property-hyphen: New file.
14546         * modules/unictype/property-punctuation: New file.
14547         * modules/unictype/property-line-separator: New file.
14548         * modules/unictype/property-paragraph-separator: New file.
14549         * modules/unictype/property-quotation-mark: New file.
14550         * modules/unictype/property-sentence-terminal: New file.
14551         * modules/unictype/property-terminal-punctuation: New file.
14552         * modules/unictype/property-currency-symbol: New file.
14553         * modules/unictype/property-math: New file.
14554         * modules/unictype/property-other-math: New file.
14555         * modules/unictype/property-paired-punctuation: New file.
14556         * modules/unictype/property-left-of-pair: New file.
14557         * modules/unictype/property-combining: New file.
14558         * modules/unictype/property-composite: New file.
14559         * modules/unictype/property-decimal-digit: New file.
14560         * modules/unictype/property-numeric: New file.
14561         * modules/unictype/property-diacritic: New file.
14562         * modules/unictype/property-extender: New file.
14563         * modules/unictype/property-ignorable-control: New file.
14564         * modules/unictype/property-test: New file.
14565         * modules/unictype/property-byname: New file.
14566         * modules/unictype/property-all: New file.
14567         * modules/unictype/scripts: New file.
14568         * modules/unictype/scripts-all: New file.
14569         * modules/unictype/block-of: New file.
14570         * modules/unictype/block-test: New file.
14571         * modules/unictype/block-list: New file.
14572         * modules/unictype/block-all: New file.
14573         * modules/unictype/syntax-c-whitespace: New file.
14574         * modules/unictype/syntax-java-whitespace: New file.
14575         * modules/unictype/syntax-c-ident: New file.
14576         * modules/unictype/syntax-java-ident: New file.
14577         * modules/unictype/ctype-alnum: New file.
14578         * modules/unictype/ctype-alpha: New file.
14579         * modules/unictype/ctype-cntrl: New file.
14580         * modules/unictype/ctype-digit: New file.
14581         * modules/unictype/ctype-graph: New file.
14582         * modules/unictype/ctype-lower: New file.
14583         * modules/unictype/ctype-print: New file.
14584         * modules/unictype/ctype-punct: New file.
14585         * modules/unictype/ctype-space: New file.
14586         * modules/unictype/ctype-upper: New file.
14587         * modules/unictype/ctype-xdigit: New file.
14588         * modules/unictype/ctype-blank: New file.
14589         * lib/unictype/bidi_byname.c: New file.
14590         * lib/unictype/bidi_name.c: New file.
14591         * lib/unictype/bidi_of.c: New file.
14592         * lib/unictype/bidi_test.c: New file.
14593         * lib/unictype/bitmap.h: New file.
14594         * lib/unictype/block_test.c: New file.
14595         * lib/unictype/blocks.c: New file.
14596         * lib/unictype/categ_C.c: New file.
14597         * lib/unictype/categ_Cc.c: New file.
14598         * lib/unictype/categ_Cf.c: New file.
14599         * lib/unictype/categ_Cn.c: New file.
14600         * lib/unictype/categ_Co.c: New file.
14601         * lib/unictype/categ_Cs.c: New file.
14602         * lib/unictype/categ_L.c: New file.
14603         * lib/unictype/categ_Ll.c: New file.
14604         * lib/unictype/categ_Lm.c: New file.
14605         * lib/unictype/categ_Lo.c: New file.
14606         * lib/unictype/categ_Lt.c: New file.
14607         * lib/unictype/categ_Lu.c: New file.
14608         * lib/unictype/categ_M.c: New file.
14609         * lib/unictype/categ_Mc.c: New file.
14610         * lib/unictype/categ_Me.c: New file.
14611         * lib/unictype/categ_Mn.c: New file.
14612         * lib/unictype/categ_N.c: New file.
14613         * lib/unictype/categ_Nd.c: New file.
14614         * lib/unictype/categ_Nl.c: New file.
14615         * lib/unictype/categ_No.c: New file.
14616         * lib/unictype/categ_P.c: New file.
14617         * lib/unictype/categ_Pc.c: New file.
14618         * lib/unictype/categ_Pd.c: New file.
14619         * lib/unictype/categ_Pe.c: New file.
14620         * lib/unictype/categ_Pf.c: New file.
14621         * lib/unictype/categ_Pi.c: New file.
14622         * lib/unictype/categ_Po.c: New file.
14623         * lib/unictype/categ_Ps.c: New file.
14624         * lib/unictype/categ_S.c: New file.
14625         * lib/unictype/categ_Sc.c: New file.
14626         * lib/unictype/categ_Sk.c: New file.
14627         * lib/unictype/categ_Sm.c: New file.
14628         * lib/unictype/categ_So.c: New file.
14629         * lib/unictype/categ_Z.c: New file.
14630         * lib/unictype/categ_Zl.c: New file.
14631         * lib/unictype/categ_Zp.c: New file.
14632         * lib/unictype/categ_Zs.c: New file.
14633         * lib/unictype/categ_and.c: New file.
14634         * lib/unictype/categ_and_not.c: New file.
14635         * lib/unictype/categ_byname.c: New file.
14636         * lib/unictype/categ_name.c: New file.
14637         * lib/unictype/categ_none.c: New file.
14638         * lib/unictype/categ_of.c: New file.
14639         * lib/unictype/categ_or.c: New file.
14640         * lib/unictype/categ_test.c: New file.
14641         * lib/unictype/combining.c: New file.
14642         * lib/unictype/ctype_alnum.c: New file.
14643         * lib/unictype/ctype_alpha.c: New file.
14644         * lib/unictype/ctype_blank.c: New file.
14645         * lib/unictype/ctype_cntrl.c: New file.
14646         * lib/unictype/ctype_digit.c: New file.
14647         * lib/unictype/ctype_graph.c: New file.
14648         * lib/unictype/ctype_lower.c: New file.
14649         * lib/unictype/ctype_print.c: New file.
14650         * lib/unictype/ctype_punct.c: New file.
14651         * lib/unictype/ctype_space.c: New file.
14652         * lib/unictype/ctype_upper.c: New file.
14653         * lib/unictype/ctype_xdigit.c: New file.
14654         * lib/unictype/decdigit.c: New file.
14655         * lib/unictype/digit.c: New file.
14656         * lib/unictype/identsyntaxmap.h: New file.
14657         * lib/unictype/mirror.c: New file.
14658         * lib/unictype/numeric.c: New file.
14659         * lib/unictype/pr_alphabetic.c: New file.
14660         * lib/unictype/pr_ascii_hex_digit.c: New file.
14661         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14662         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14663         * lib/unictype/pr_bidi_block_separator.c: New file.
14664         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14665         * lib/unictype/pr_bidi_common_separator.c: New file.
14666         * lib/unictype/pr_bidi_control.c: New file.
14667         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14668         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14669         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14670         * lib/unictype/pr_bidi_european_digit.c: New file.
14671         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14672         * lib/unictype/pr_bidi_left_to_right.c: New file.
14673         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14674         * lib/unictype/pr_bidi_other_neutral.c: New file.
14675         * lib/unictype/pr_bidi_pdf.c: New file.
14676         * lib/unictype/pr_bidi_segment_separator.c: New file.
14677         * lib/unictype/pr_bidi_whitespace.c: New file.
14678         * lib/unictype/pr_byname.c: New file.
14679         * lib/unictype/pr_byname.gperf: New file.
14680         * lib/unictype/pr_combining.c: New file.
14681         * lib/unictype/pr_composite.c: New file.
14682         * lib/unictype/pr_currency_symbol.c: New file.
14683         * lib/unictype/pr_dash.c: New file.
14684         * lib/unictype/pr_decimal_digit.c: New file.
14685         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14686         * lib/unictype/pr_deprecated.c: New file.
14687         * lib/unictype/pr_diacritic.c: New file.
14688         * lib/unictype/pr_extender.c: New file.
14689         * lib/unictype/pr_format_control.c: New file.
14690         * lib/unictype/pr_grapheme_base.c: New file.
14691         * lib/unictype/pr_grapheme_extend.c: New file.
14692         * lib/unictype/pr_grapheme_link.c: New file.
14693         * lib/unictype/pr_hex_digit.c: New file.
14694         * lib/unictype/pr_hyphen.c: New file.
14695         * lib/unictype/pr_id_continue.c: New file.
14696         * lib/unictype/pr_id_start.c: New file.
14697         * lib/unictype/pr_ideographic.c: New file.
14698         * lib/unictype/pr_ids_binary_operator.c: New file.
14699         * lib/unictype/pr_ids_trinary_operator.c: New file.
14700         * lib/unictype/pr_ignorable_control.c: New file.
14701         * lib/unictype/pr_iso_control.c: New file.
14702         * lib/unictype/pr_join_control.c: New file.
14703         * lib/unictype/pr_left_of_pair.c: New file.
14704         * lib/unictype/pr_line_separator.c: New file.
14705         * lib/unictype/pr_logical_order_exception.c: New file.
14706         * lib/unictype/pr_lowercase.c: New file.
14707         * lib/unictype/pr_math.c: New file.
14708         * lib/unictype/pr_non_break.c: New file.
14709         * lib/unictype/pr_not_a_character.c: New file.
14710         * lib/unictype/pr_numeric.c: New file.
14711         * lib/unictype/pr_other_alphabetic.c: New file.
14712         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14713         * lib/unictype/pr_other_grapheme_extend.c: New file.
14714         * lib/unictype/pr_other_id_continue.c: New file.
14715         * lib/unictype/pr_other_id_start.c: New file.
14716         * lib/unictype/pr_other_lowercase.c: New file.
14717         * lib/unictype/pr_other_math.c: New file.
14718         * lib/unictype/pr_other_uppercase.c: New file.
14719         * lib/unictype/pr_paired_punctuation.c: New file.
14720         * lib/unictype/pr_paragraph_separator.c: New file.
14721         * lib/unictype/pr_pattern_syntax.c: New file.
14722         * lib/unictype/pr_pattern_white_space.c: New file.
14723         * lib/unictype/pr_private_use.c: New file.
14724         * lib/unictype/pr_punctuation.c: New file.
14725         * lib/unictype/pr_quotation_mark.c: New file.
14726         * lib/unictype/pr_radical.c: New file.
14727         * lib/unictype/pr_sentence_terminal.c: New file.
14728         * lib/unictype/pr_soft_dotted.c: New file.
14729         * lib/unictype/pr_space.c: New file.
14730         * lib/unictype/pr_terminal_punctuation.c: New file.
14731         * lib/unictype/pr_test.c: New file.
14732         * lib/unictype/pr_titlecase.c: New file.
14733         * lib/unictype/pr_unassigned_code_value.c: New file.
14734         * lib/unictype/pr_unified_ideograph.c: New file.
14735         * lib/unictype/pr_uppercase.c: New file.
14736         * lib/unictype/pr_variation_selector.c: New file.
14737         * lib/unictype/pr_white_space.c: New file.
14738         * lib/unictype/pr_xid_continue.c: New file.
14739         * lib/unictype/pr_xid_start.c: New file.
14740         * lib/unictype/pr_zero_width.c: New file.
14741         * lib/unictype/scripts.c: New file.
14742         * lib/unictype/sy_c_ident.c: New file.
14743         * lib/unictype/sy_c_whitespace.c: New file.
14744         * lib/unictype/sy_java_ident.c: New file.
14745         * lib/unictype/sy_java_whitespace.c: New file.
14746
14747         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14748         Unicode 5.0.0.
14749         * lib/unictype/blocks.h: Likewise.
14750         * lib/unictype/categ_C.h: Likewise.
14751         * lib/unictype/categ_Cc.h: Likewise.
14752         * lib/unictype/categ_Cf.h: Likewise.
14753         * lib/unictype/categ_Cn.h: Likewise.
14754         * lib/unictype/categ_Co.h: Likewise.
14755         * lib/unictype/categ_Cs.h: Likewise.
14756         * lib/unictype/categ_L.h: Likewise.
14757         * lib/unictype/categ_Ll.h: Likewise.
14758         * lib/unictype/categ_Lm.h: Likewise.
14759         * lib/unictype/categ_Lo.h: Likewise.
14760         * lib/unictype/categ_Lt.h: Likewise.
14761         * lib/unictype/categ_Lu.h: Likewise.
14762         * lib/unictype/categ_M.h: Likewise.
14763         * lib/unictype/categ_Mc.h: Likewise.
14764         * lib/unictype/categ_Me.h: Likewise.
14765         * lib/unictype/categ_Mn.h: Likewise.
14766         * lib/unictype/categ_N.h: Likewise.
14767         * lib/unictype/categ_Nd.h: Likewise.
14768         * lib/unictype/categ_Nl.h: Likewise.
14769         * lib/unictype/categ_No.h: Likewise.
14770         * lib/unictype/categ_P.h: Likewise.
14771         * lib/unictype/categ_Pc.h: Likewise.
14772         * lib/unictype/categ_Pd.h: Likewise.
14773         * lib/unictype/categ_Pe.h: Likewise.
14774         * lib/unictype/categ_Pf.h: Likewise.
14775         * lib/unictype/categ_Pi.h: Likewise.
14776         * lib/unictype/categ_Po.h: Likewise.
14777         * lib/unictype/categ_Ps.h: Likewise.
14778         * lib/unictype/categ_S.h: Likewise.
14779         * lib/unictype/categ_Sc.h: Likewise.
14780         * lib/unictype/categ_Sk.h: Likewise.
14781         * lib/unictype/categ_Sm.h: Likewise.
14782         * lib/unictype/categ_So.h: Likewise.
14783         * lib/unictype/categ_Z.h: Likewise.
14784         * lib/unictype/categ_Zl.h: Likewise.
14785         * lib/unictype/categ_Zp.h: Likewise.
14786         * lib/unictype/categ_Zs.h: Likewise.
14787         * lib/unictype/categ_of.h: Likewise.
14788         * lib/unictype/combining.h: Likewise.
14789         * lib/unictype/ctype_alnum.h: Likewise.
14790         * lib/unictype/ctype_alpha.h: Likewise.
14791         * lib/unictype/ctype_blank.h: Likewise.
14792         * lib/unictype/ctype_cntrl.h: Likewise.
14793         * lib/unictype/ctype_digit.h: Likewise.
14794         * lib/unictype/ctype_graph.h: Likewise.
14795         * lib/unictype/ctype_lower.h: Likewise.
14796         * lib/unictype/ctype_print.h: Likewise.
14797         * lib/unictype/ctype_punct.h: Likewise.
14798         * lib/unictype/ctype_space.h: Likewise.
14799         * lib/unictype/ctype_upper.h: Likewise.
14800         * lib/unictype/ctype_xdigit.h: Likewise.
14801         * lib/unictype/decdigit.h: Likewise.
14802         * lib/unictype/digit.h: Likewise.
14803         * lib/unictype/mirror.h: Likewise.
14804         * lib/unictype/numeric.h: Likewise.
14805         * lib/unictype/pr_alphabetic.h: Likewise.
14806         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14807         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14808         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14809         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14810         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14811         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14812         * lib/unictype/pr_bidi_control.h: Likewise.
14813         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14814         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14815         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14816         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14817         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14818         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14819         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14820         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14821         * lib/unictype/pr_bidi_pdf.h: Likewise.
14822         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14823         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14824         * lib/unictype/pr_combining.h: Likewise.
14825         * lib/unictype/pr_composite.h: Likewise.
14826         * lib/unictype/pr_currency_symbol.h: Likewise.
14827         * lib/unictype/pr_dash.h: Likewise.
14828         * lib/unictype/pr_decimal_digit.h: Likewise.
14829         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14830         * lib/unictype/pr_deprecated.h: Likewise.
14831         * lib/unictype/pr_diacritic.h: Likewise.
14832         * lib/unictype/pr_extender.h: Likewise.
14833         * lib/unictype/pr_format_control.h: Likewise.
14834         * lib/unictype/pr_grapheme_base.h: Likewise.
14835         * lib/unictype/pr_grapheme_extend.h: Likewise.
14836         * lib/unictype/pr_grapheme_link.h: Likewise.
14837         * lib/unictype/pr_hex_digit.h: Likewise.
14838         * lib/unictype/pr_hyphen.h: Likewise.
14839         * lib/unictype/pr_id_continue.h: Likewise.
14840         * lib/unictype/pr_id_start.h: Likewise.
14841         * lib/unictype/pr_ideographic.h: Likewise.
14842         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14843         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14844         * lib/unictype/pr_ignorable_control.h: Likewise.
14845         * lib/unictype/pr_iso_control.h: Likewise.
14846         * lib/unictype/pr_join_control.h: Likewise.
14847         * lib/unictype/pr_left_of_pair.h: Likewise.
14848         * lib/unictype/pr_line_separator.h: Likewise.
14849         * lib/unictype/pr_logical_order_exception.h: Likewise.
14850         * lib/unictype/pr_lowercase.h: Likewise.
14851         * lib/unictype/pr_math.h: Likewise.
14852         * lib/unictype/pr_non_break.h: Likewise.
14853         * lib/unictype/pr_not_a_character.h: Likewise.
14854         * lib/unictype/pr_numeric.h: Likewise.
14855         * lib/unictype/pr_other_alphabetic.h: Likewise.
14856         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14857         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14858         * lib/unictype/pr_other_id_continue.h: Likewise.
14859         * lib/unictype/pr_other_id_start.h: Likewise.
14860         * lib/unictype/pr_other_lowercase.h: Likewise.
14861         * lib/unictype/pr_other_math.h: Likewise.
14862         * lib/unictype/pr_other_uppercase.h: Likewise.
14863         * lib/unictype/pr_paired_punctuation.h: Likewise.
14864         * lib/unictype/pr_paragraph_separator.h: Likewise.
14865         * lib/unictype/pr_pattern_syntax.h: Likewise.
14866         * lib/unictype/pr_pattern_white_space.h: Likewise.
14867         * lib/unictype/pr_private_use.h: Likewise.
14868         * lib/unictype/pr_punctuation.h: Likewise.
14869         * lib/unictype/pr_quotation_mark.h: Likewise.
14870         * lib/unictype/pr_radical.h: Likewise.
14871         * lib/unictype/pr_sentence_terminal.h: Likewise.
14872         * lib/unictype/pr_soft_dotted.h: Likewise.
14873         * lib/unictype/pr_space.h: Likewise.
14874         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14875         * lib/unictype/pr_titlecase.h: Likewise.
14876         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14877         * lib/unictype/pr_unified_ideograph.h: Likewise.
14878         * lib/unictype/pr_uppercase.h: Likewise.
14879         * lib/unictype/pr_variation_selector.h: Likewise.
14880         * lib/unictype/pr_white_space.h: Likewise.
14881         * lib/unictype/pr_xid_continue.h: Likewise.
14882         * lib/unictype/pr_xid_start.h: Likewise.
14883         * lib/unictype/pr_zero_width.h: Likewise.
14884         * lib/unictype/scripts.h: Likewise.
14885         * lib/unictype/scripts_byname.gperf: Likewise.
14886         * lib/unictype/sy_c_ident.h: Likewise.
14887         * lib/unictype/sy_c_whitespace.h: Likewise.
14888         * lib/unictype/sy_java_ident.h: Likewise.
14889         * lib/unictype/sy_java_whitespace.h: Likewise.
14890
14891         * lib/unictype/Makefile: New file.
14892         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14893         glibc.
14894         * lib/unictype/3level.h: New file, copied from glibc.
14895         * lib/unictype/3levelbit.h: New file.
14896
14897 2007-11-11  Bruno Haible  <bruno@clisp.org>
14898
14899         * modules/gperf: New file.
14900         * modules/iconv_open (Depends-on): Add it.
14901         (Makefile.am): Remove the GPERF definition.
14902
14903 2007-11-11  Bruno Haible  <bruno@clisp.org>
14904
14905         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14906         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14907
14908 2007-11-11  Bruno Haible  <bruno@clisp.org>
14909
14910         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14911         (usage): Remove function.
14912
14913 2007-11-11  Bruno Haible  <bruno@clisp.org>
14914
14915         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14916         gl_FUNC_CEILF_LIBS.
14917         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14918         gl_FUNC_CEIL_LIBS.
14919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14920         gl_FUNC_CEILL_LIBS.
14921         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14922         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14923         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14924
14925 2007-11-11  Bruno Haible  <bruno@clisp.org>
14926
14927         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14928         roundf were declared but do not exist on functions.
14929         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14930         roundl were declared but do not exist on functions.
14931         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14932         HAVE_FLOORL_AND_CEILL, respectively.
14933         Needed for Sun C on Solaris 10.
14934
14935 2007-11-11  Bruno Haible  <bruno@clisp.org>
14936
14937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14938         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14939         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14940         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14941         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14942         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14943         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14944         HAVE_DECL_ROUNDF.
14945         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14946         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14948         of HAVE_DECL_ROUND*.
14949         * modules/math (Makefile.am): Update.
14950
14951 2007-11-10  Bruno Haible  <bruno@clisp.org>
14952
14953         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14954         ptrdiff_t as m4/intl.m4.
14955
14956 2007-11-10  Jim Meyering  <meyering@redhat.com>
14957
14958         Avoid link failure for the argmatch test.
14959         * tests/test-argmatch.c (usage): Define function to avoid a link
14960         failure: argmatch_die requires a usage function.
14961
14962 2007-11-09  Bruno Haible  <bruno@clisp.org>
14963
14964         * doc/functions/snprintf.texi: Mention BeOS deficiency.
14965         * doc/functions/vsnprintf.texi: Likewise.
14966         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14967         with a size argument < 2.
14968
14969 2007-11-09  Bruno Haible  <bruno@clisp.org>
14970
14971         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14972         buffer. Fixes an inefficiency introduced on 2007-11-03.
14973
14974 2007-11-09  Bruno Haible  <bruno@clisp.org>
14975
14976         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14977         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14978
14979 2007-11-08  Jim Meyering  <meyering@redhat.com>
14980
14981         Change cache variable name prefix "jm_" to "gl_" everywhere.
14982         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14983         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14984         * m4/uptime.m4: s/gl_/jm_/
14985
14986 2007-11-07  Bruno Haible  <bruno@clisp.org>
14987
14988         Update to GNU gettext 0.17.
14989         * m4/intl.m4: Update to GNU gettext 0.17.
14990         * m4/po.m4: Likewise.
14991         * modules/gettext (Files): Remove m4/ulonglong.m4.
14992         (configure.ac): Require gettext infrastructure from version 0.17.
14993
14994 2007-11-06  Bruno Haible  <bruno@clisp.org>
14995
14996         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14997         symbolic values are not defined in a public header.
14998         * lib/freadable.c (freadable) [QNX]: Likewise.
14999         * lib/freadahead.c (freadahead) [QNX]: Likewise.
15000         * lib/freading.c (freading) [QNX]: Likewise.
15001         * lib/fseterr.c (fseterr) [QNX]: Likewise.
15002         * lib/fwritable.c (fwritable) [QNX]: Likewise.
15003         * lib/fwriting.c (fwriting) [QNX]: Likewise.
15004         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
15005         Reported by Alain Magloire.
15006
15007         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
15008
15009 2007-11-05  Bruno Haible  <bruno@clisp.org>
15010
15011         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
15012         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
15013         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
15014         Reported by Eric Blake.
15015
15016 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15017             Bruno Haible  <bruno@clisp.org>
15018
15019         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
15020         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
15021         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
15022         (malloc): Undefine also before including <stdlib.h>.
15023         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
15024         Needed on OSF/1 4.0.
15025
15026 2007-11-05  Jim Meyering  <meyering@redhat.com>
15027
15028         git-version-gen: sync from coreutils.
15029         * build-aux/git-version-gen: Add comments.
15030         Change the first '-' to '.' in the snapshot version string,
15031         e.g., 6.9-377-08144 -> 6.9.377-08144
15032         Remove first parameter.
15033         Don't declare a version "-dirty" merely because a time
15034         stamp has changed.
15035
15036 2007-11-04  Bruno Haible  <bruno@clisp.org>
15037
15038         * lib/lock.h: Protect all macro definitions containing an 'if'
15039         statement through a "do { ... } while (0)".
15040         * lib/tls.h: Likewise.
15041
15042 2007-11-04  Bruno Haible  <bruno@clisp.org>
15043
15044         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
15045
15046 2007-11-04  Bruno Haible  <bruno@clisp.org>
15047
15048         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
15049         * modules/fprintf-posix (Depends-on): Add nocrash.
15050         * modules/snprintf-posix (Depends-on): Likewise.
15051         * modules/sprintf-posix (Depends-on): Likewise.
15052         * modules/vasnprintf-posix (Depends-on): Likewise.
15053         * modules/vasprintf-posix (Depends-on): Likewise.
15054         * modules/vfprintf-posix (Depends-on): Likewise.
15055         * modules/vsnprintf-posix (Depends-on): Likewise.
15056         * modules/vsprintf-posix (Depends-on): Likewise.
15057         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15058         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15059         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15060         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15062         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15063         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15064
15065 2007-11-04  Bruno Haible  <bruno@clisp.org>
15066
15067         * modules/nocrash: New file.
15068         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
15069         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
15070
15071 2007-11-04  Bruno Haible  <bruno@clisp.org>
15072
15073         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
15074         precision handling.
15075         * tests/test-vasprintf-posix.c (test_function): Likewise.
15076         * tests/test-snprintf-posix.h (test_function): Likewise.
15077         * tests/test-sprintf-posix.h (test_function): Likewise.
15078
15079         Fix *printf behaviour for large precisions on mingw and BeOS.
15080         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
15081         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
15082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
15083         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15085         gl_PRINTF_PRECISION and test its result. Invoke
15086         gl_PREREQ_VASNPRINTF_PRECISION.
15087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15094         * doc/functions/fprintf.texi: Update.
15095         * doc/functions/printf.texi: Update.
15096         * doc/functions/snprintf.texi: Update.
15097         * doc/functions/sprintf.texi: Update.
15098         * doc/functions/vfprintf.texi: Update.
15099         * doc/functions/vprintf.texi: Update.
15100         * doc/functions/vsnprintf.texi: Update.
15101         * doc/functions/vsprintf.texi: Update.
15102
15103 2007-11-04  Bruno Haible  <bruno@clisp.org>
15104
15105         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
15106
15107 2007-11-04  Bruno Haible  <bruno@clisp.org>
15108
15109         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
15110         Reported by Sylvain Beucler <beuc@gnu.org>.
15111
15112 2007-11-03  Bruno Haible  <bruno@clisp.org>
15113
15114         * tests/test-fprintf-posix2.sh: New file.
15115         * tests/test-fprintf-posix2.c: New file.
15116         * modules/fprintf-posix-tests (Files): Add them.
15117         (TESTS): Add test-fprintf-posix2.sh.
15118         (configure.ac): Check for getrlimit and setrlimit.
15119         (check_PROGRAMS): Add test-fprintf-posix2.
15120
15121         * tests/test-printf-posix2.sh: New file.
15122         * tests/test-printf-posix2.c: New file.
15123         * modules/printf-posix-tests (Files): Add them.
15124         (TESTS): Add test-printf-posix2.sh.
15125         (configure.ac): Check for getrlimit and setrlimit.
15126         (check_PROGRAMS): Add test-printf-posix2.
15127
15128         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
15129         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
15130         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
15131         (decode_double): New function, copied from decode_long_double.
15132         (scale10_round_decimal_decoded): New function, extracted from
15133         scale10_round_decimal_long_double.
15134         (scale10_round_decimal_long_double): Use it.
15135         (scale10_round_decimal_double): New function.
15136         (floorlog10): New function.
15137         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
15138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
15139         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15141         gl_PRINTF_ENOMEM and test its result. Invoke
15142         gl_PREREQ_VASNPRINTF_ENOMEM.
15143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15150         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15151         * modules/snprintf-posix (Depends-on): Likewise.
15152         * modules/sprintf-posix (Depends-on): Likewise.
15153         * modules/vasnprintf-posix (Depends-on): Likewise.
15154         * modules/vasprintf-posix (Depends-on): Likewise.
15155         * modules/vfprintf-posix (Depends-on): Likewise.
15156         * modules/vsnprintf-posix (Depends-on): Likewise.
15157         * modules/vsprintf-posix (Depends-on): Likewise.
15158         * doc/functions/fprintf.texi: Update.
15159         * doc/functions/printf.texi: Update.
15160         * doc/functions/snprintf.texi: Update.
15161         * doc/functions/sprintf.texi: Update.
15162         * doc/functions/vfprintf.texi: Update.
15163         * doc/functions/vprintf.texi: Update.
15164         * doc/functions/vsnprintf.texi: Update.
15165         * doc/functions/vsprintf.texi: Update.
15166
15167 2007-11-03  Bruno Haible  <bruno@clisp.org>
15168
15169         * modules/frexp-nolibm-tests: New file.
15170
15171         * modules/frexp-nolibm: New file.
15172         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15173
15174 2007-11-03  Bruno Haible  <bruno@clisp.org>
15175
15176         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15177         value is C99 compliant.
15178         Needed for OSF/1 5.1.
15179
15180 2007-11-03  Bruno Haible  <bruno@clisp.org>
15181
15182         Fix out-of-memory handling of vasnprintf.
15183         * lib/printf-parse.c: Include <errno.h>.
15184         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15185         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15186         is already set.
15187
15188 2007-11-02  Eric Blake  <ebb9@byu.net>
15189
15190         Fix tests on cygwin.
15191         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15192
15193 2007-11-01  Bruno Haible  <bruno@clisp.org>
15194
15195         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15196         warning.
15197         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15198         needed for POSIX compatibility.
15199
15200 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15201
15202         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15203         for compatibility with GNU.
15204
15205 2007-11-01  Bruno Haible  <bruno@clisp.org>
15206
15207         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15208         (putenv): Renamed from rpl_putenv. Change argument type from
15209         'const char *' to 'char *'.
15210         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15211         of defining putenv in config.h, just set REPLACE_PUTENV.
15212         * modules/putenv (Depends-on): Add stdlib.
15213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15214         (Include): Use <stdlib.h>.
15215         * lib/stdlib.in.h (putenv): New declaration.
15216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15217         REPLACE_PUTENV.
15218         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15219         REPLACE_PUTENV.
15220         Needed for MacOS X 10.5.0.
15221         Reported by Peter O'Gorman <peter@pogma.com>.
15222
15223 2007-11-01  Jim Meyering  <meyering@redhat.com>
15224
15225         Treat an empty date string exactly like "0".
15226         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15227         if the remaining date string (to be parsed) is empty, use "0".
15228         Reported by Mischa Molhoek and discussed in this thread:
15229         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15230
15231 2007-10-31  Bruno Haible  <bruno@clisp.org>
15232
15233         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15234         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15235         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15236         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15237         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15238         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15239
15240 2007-10-31  Bruno Haible  <bruno@clisp.org>
15241
15242         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15243         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15244         (AC_TYPE_LONG_LONG_INT): Use it.
15245         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15246         it as well.
15247         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15248         to m4/longlong.m4.
15249         * modules/stdint (Files): Remove m4/ulonglong.m4.
15250         * modules/strtoull (Files): Use m4/longlong.m4 instead of
15251         m4/ulonglong.m4.
15252         * modules/strtoumax (Files): Likewise.
15253
15254 2007-10-30  Bruno Haible  <bruno@clisp.org>
15255
15256         * modules/xvasprintf-posix: New file.
15257         Suggested by Eric Blake.
15258
15259 2007-10-30  Bruno Haible  <bruno@clisp.org>
15260
15261         * modules/xprintf-posix-tests: New file.
15262         * tests/test-xprintf-posix.sh: New file.
15263         * tests/test-xprintf-posix.c: New file.
15264         * tests/test-xfprintf-posix.c: New file.
15265
15266         * modules/xprintf-posix: New file.
15267
15268 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15269
15270         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15271         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15272         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15273
15274 2007-10-29  Bruno Haible  <bruno@clisp.org>
15275
15276         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15277         contain the special marker '_cv_'.
15278         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15279         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15280         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15281         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15282         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15283         Reported by Ralf Wildenhues.
15284
15285 2007-10-29  Bruno Haible  <bruno@clisp.org>
15286
15287         * gnulib-tool (func_import): When --lgpl is not specified, set
15288         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15289         GPLv3.
15290         Reported by Simon Josefsson.
15291
15292 2007-10-28  Bruno Haible  <bruno@clisp.org>
15293
15294         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15295         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15296         HAVE_DECL_ISFINITE.
15297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15298         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15299         HAVE_DECL_ISFINITE.
15300
15301 2007-10-28  Bruno Haible  <bruno@clisp.org>
15302
15303         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15304         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15305
15306 2007-10-28  Bruno Haible  <bruno@clisp.org>
15307
15308         Fix link errors with Sun C 5.0 on Solaris 10.
15309         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15310         function is declared but not present in the compiler's libm.
15311         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15312         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15313         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15314         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15315         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15316         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15317         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15319         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15320         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15321         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15322         HAVE_DECL_FLOORL.
15323
15324 2007-10-28  Bruno Haible  <bruno@clisp.org>
15325
15326         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15327         gl_FUNC_FLOORL. Cache the result.
15328         (gl_FUNC_FLOORL): Use it.
15329         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15330         gl_FUNC_CEILL. Cache the result.
15331         (gl_FUNC_CEILL): Use it.
15332
15333         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15334         gl_FUNC_FLOOR. Cache the result.
15335         (gl_FUNC_FLOOR): Use it.
15336         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15337         gl_FUNC_CEIL. Cache the result.
15338         (gl_FUNC_CEIL): Use it.
15339
15340         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15341         gl_FUNC_FLOORF. Cache the result.
15342         (gl_FUNC_FLOORF): Use it.
15343         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15344         gl_FUNC_CEILF. Cache the result.
15345         (gl_FUNC_CEILF): Use it.
15346
15347 2007-10-28  Bruno Haible  <bruno@clisp.org>
15348
15349         * gnulib-tool: Allow specifying the LGPL version number through
15350         --lgpl=2 or --lgpl=3.
15351         (func_usage): Document --lgpl with argument.
15352         Handle --lgpl=... arguments.
15353         (func_import): Recognize also gl_LGPL calls with an argument. When
15354         --lgpl=2 is used and the module's license is just LGPL, report an
15355         error. Set sed_transform_lib_file according to the lgpl variable. In
15356         the generated files, use --lgpl or gl_LGPL invocations with argument,
15357         if necessary.
15358         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15359         an LGPv2+ license.
15360         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15361         gl_LGPL macro.
15362
15363 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15364             Bruno Haible  <bruno@clisp.org>
15365
15366         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15367         (u16_uctomb_aux): Likewise.
15368         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15369         !HAVE_INLINE.
15370         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15371
15372 2007-10-28  Bruno Haible  <bruno@clisp.org>
15373
15374         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15375         Invoke AM_GETTEXT_OPTION if it exists.
15376         * modules/vasprintf: Likewise.
15377         * modules/verror: Likewise.
15378         * modules/xprintf: Likewise.
15379         * modules/xvasprintf: Likewise.
15380
15381 2007-10-27  Ben Pfaff  <blp@gnu.org>
15382
15383         * lib/math.in.h: Define isfinite macro and prototypes for
15384         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15385         implementations.
15386         * m4/math_h.m4: New substitutions for isfinite module.
15387         * lib/isfinite.c: New file.
15388         * m4/isfinite.m4: New file.
15389         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15390         * modules/isfinite: New file.
15391         * modules/isfinite-tests: New file.
15392         * tests/tests-isfinite.c: New file.
15393         * doc/functions/isfinite.texi: Mention isfinite module.
15394         * MODULES.html.sh: Mention new module.
15395
15396 2007-10-27  Ben Pfaff  <blp@gnu.org>
15397
15398         Ralf Wildenhues reported that Tru64 4.0D declares the round
15399         functions but does not have definitions.
15400         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15401         cannot be found in any library, set the output variable to
15402         "missing" instead of "".
15403         * m4/round.m4: Also use our substitute if we cannot find round in
15404         any library, even if it is declared.
15405         * m4/roundf.m4: Likewise for roundf.
15406         * m4/roundl.m4: Likewise for roundl.
15407         * lib/math.in.h: Undefine roundf, round, roundl before defining
15408         their replacements, to allow for hypothetical systems where these
15409         may be defined as macros but not available in libraries.
15410
15411 2007-10-27  Bruno Haible  <bruno@clisp.org>
15412
15413         * doc/gnulib.texi: Invoke @firstparagraphindent.
15414         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15415         changes in gnulib.
15416         (Source changes): New section.
15417
15418 2007-10-26  Bruno Haible  <bruno@clisp.org>
15419
15420         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15421         borrowed from autoconf.
15422
15423 2007-10-26  Bruno Haible  <bruno@clisp.org>
15424
15425         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15426         strerror returned the empty string. Needed on HP-UX 11.00.
15427
15428 2007-10-24  Micah Cowan  <micah@cowan.name>
15429
15430         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15431         * build-aux/bootstrap: Remove support for now-unnecessary option,
15432         --cvs-user, and envvars CVS_USER, CVS_RSH.
15433
15434 2007-10-24  Jim Meyering  <meyering@redhat.com>
15435
15436         Avoid diagnostics from sha1sum when there is no cached checksum.
15437         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15438         if the po.s1 file hasn't been created yet.
15439
15440         * build-aux/bootstrap: Sync from coreutils:
15441         2007-10-24  Jim Meyering  <meyering@redhat.com>
15442         Get gnulib from the git repository, not from an obsolete cvs one.
15443         * build-aux/bootstrap: Suggestion from Micah Cowan.
15444         2007-10-04  Jim Meyering  <jim@meyering.net>
15445         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15446         (update_po_files): Work also when there are no .po files in po/.
15447
15448 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15449
15450         * README: Append ".git" to git and cg examples.
15451         Problem reported by Benoit Sigoure.
15452
15453 2007-10-23  Micah Cowan  <micah@cowan.name>
15454
15455         * users.txt: Add wget.
15456
15457 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15458
15459         Fix linking of some unistdio tests on FreeBSD.
15460         * modules/unistdio/u16-vsnprintf-tests
15461         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15462         * modules/unistdio/u16-vsprintf-tests
15463         (test_u16_vsnprintf1_LDADD): Likewise.
15464         * modules/unistdio/u32-vsnprintf-tests
15465         (test_u32_vsnprintf1_LDADD): Likewise.
15466         * modules/unistdio/u32-vsprintf-tests
15467         (test_u32_vsprintf1_LDADD): Likewise.
15468         * modules/unistdio/u8-vsnprintf-tests
15469         (test_u8_vsnprintf1_LDADD): Likewise.
15470         * modules/unistdio/u8-vsprintf-tests
15471         (test_u8_vsprintf1_LDADD): Likewise.
15472         * modules/unistdio/ulc-vsnprintf-tests
15473         (test_ulc_vsnprintf1_LDADD): Likewise.
15474         * modules/unistdio/ulc-vsprintf-tests
15475         (test_ulc_vsprintf1_LDADD): Likewise.
15476
15477         Fix linking of some uniconv tests on FreeBSD.
15478         * modules/uniconv/u16-conv-from-enc-tests
15479         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15480         * modules/uniconv/u16-conv-to-enc-tests
15481         (test_u16_conv_to_enc_LDADD): Likewise.
15482         * modules/uniconv/u16-strconv-from-enc-tests
15483         (test_u16_strconv_from_enc_LDADD): Likewise.
15484         * modules/uniconv/u16-strconv-to-enc-tests
15485         (test_u16_strconv_to_enc_LDADD): Likewise.
15486         * modules/uniconv/u32-conv-from-enc-tests
15487         (test_u32_conv_from_enc_LDADD): Likewise.
15488         * modules/uniconv/u32-conv-to-enc-tests
15489         (test_u32_conv_to_enc_LDADD): Likewise.
15490         * modules/uniconv/u32-strconv-from-enc-tests
15491         (test_u32_strconv_from_enc_LDADD): Likewise.
15492         * modules/uniconv/u32-strconv-to-enc-tests
15493         (test_u32_strconv_to_enc_LDADD): Likewise.
15494         * modules/uniconv/u8-conv-from-enc-tests
15495         (test_u8_conv_from_enc_LDADD): Likewise.
15496         * modules/uniconv/u8-conv-to-enc-tests
15497         (test_u8_conv_to_enc_LDADD): Likewise.
15498         * modules/uniconv/u8-strconv-from-enc-tests
15499         (test_u8_strconv_from_enc_LDADD): Likewise.
15500         * modules/uniconv/u8-strconv-to-enc-tests
15501         (test_u8_strconv_to_enc_LDADD): Likewise.
15502
15503 2007-10-22  Bruno Haible  <bruno@clisp.org>
15504
15505         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15506         size.
15507
15508 2007-10-22  Eric Blake  <ebb9@byu.net>
15509
15510         Tweak x*printf documentation.
15511         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15512         variable name and comments.
15513         Suggested by Bruno Haible.
15514
15515 2007-10-22  Bruno Haible  <bruno@clisp.org>
15516
15517         * lib/acl.c (copy_acl): Fix file name in comment.
15518
15519 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15520
15521         Fix Tru64 problem with stdbool.h.
15522         * lib/stdbool.in.h (false, true):
15523         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15524         Don't declare as an enum in this situation; it runs afoul of Tru64.
15525         Problem reported by Steven M. Schweda in
15526         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15527
15528 2007-10-22  Eric Blake  <ebb9@byu.net>
15529
15530         Also wrap vf?printf.
15531         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15532         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15533         (xvprintf, xvfprintf): New functions.
15534
15535 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15536
15537         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15538         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15539
15540         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15541         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15542
15543 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15544
15545         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15546         by Bruno Haible.
15547
15548 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15549
15550         * lib/getloadavg.c
15551         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15552         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15553
15554         * tests/test-i-ring.c: Work for C89.
15555
15556 2007-10-22  Bruno Haible  <bruno@clisp.org>
15557
15558         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15559         -1u, in preprocessor expression, so that we don't test for the bug
15560         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15562
15563 2007-10-22  Eric Blake  <ebb9@byu.net>
15564
15565         * tests/test-yesno.sh: Silence stderr during test.
15566
15567 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15568
15569         * modules/crypto/gc-camellia: New file.
15570
15571         * m4/gc-camellia.m4: New file.
15572
15573         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15574
15575         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15576
15577 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15578
15579         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15580         --help to stdout.  Reported by sms@antinode.org (Steven
15581         M. Schweda).
15582
15583 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15584
15585         * users.txt: Fix link to libksba.
15586
15587 2007-10-21  Ben Pfaff  <blp@gnu.org>
15588
15589         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15590         round.c roundf implementation that depends on floorf and ceilf to
15591         be tested unconditionally.
15592
15593 2007-10-21  Ben Pfaff  <blp@gnu.org>
15594
15595         * m4/check-libm-func.m4: Removed.
15596         * m4/check-math-lib.m4: New file.
15597         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15598         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15599         definition and lack of AC_LIBOBJ([roundf]).
15600         * m4/roundl.m4: Ditto, and similarly for roundl.
15601         * modules/round: Reference new m4 file.
15602         * modules/roundf: Ditto.
15603         * modules/roundl: Ditto.
15604         * tests/test-round2.c (main): Use ROUND instead of round.
15605         Bug report from Bruno Haible.
15606
15607 2007-10-21  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15610         context.
15611
15612 2007-10-21  Bruno Haible  <bruno@clisp.org>
15613
15614         * tests/test-wcwidth.c (main): Allow negative result for some control
15615         characters.
15616
15617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15618         Needed on OSF/1 5.1.
15619
15620 2007-10-21  Bruno Haible  <bruno@clisp.org>
15621
15622         * tests/test-floorf1.c: Include isnanf.h.
15623         (main): Use isnanf() instead of isnan().
15624         * tests/test-ceilf1.c: Include isnanf.h.
15625         (main): Use isnanf() instead of isnan().
15626         * tests/test-truncf1.c: Include isnanf.h.
15627         (main): Use isnanf() instead of isnan().
15628         * tests/test-roundf1.c: Include isnanf.h.
15629         (main): Use isnanf() instead of isnan().
15630
15631 2007-10-21  Eric Blake  <ebb9@byu.net>
15632
15633         * users.txt: Update URL for m4.
15634
15635 2007-10-21  Bruno Haible  <bruno@clisp.org>
15636
15637         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15638
15639 2007-10-21  Bruno Haible  <bruno@clisp.org>
15640
15641         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15642         Git's management files if the CVS files are not present.
15643
15644 2007-10-20  Bruno Haible  <bruno@clisp.org>
15645
15646         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15647         gcc-3.4.x.
15648
15649 2007-10-20  Ben Pfaff  <blp@gnu.org>
15650
15651         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15652         implementations.
15653         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15654         * lib/round.c: New file.
15655         * lib/roundf.c: New file.
15656         * lib/roundl.c: New file.
15657         * m4/round.m4: New file.
15658         * m4/roundf.m4: New file.
15659         * m4/roundl.m4: New file.
15660         * m4/check-libm-func-m4: New file.
15661         * modules/math: Replace round, roundf, roundl related @VARS@ in
15662         math.in.h.
15663         * modules/round: New file.
15664         * modules/round-tests: New file.
15665         * modules/roundf: New file.
15666         * modules/roundf-tests: New file.
15667         * modules/roundl: New file.
15668         * modules/roundl-tests: New file.
15669         * tests/test-round1.c: New file.
15670         * tests/test-round2.c: New file.
15671         * tests/test-roundf1.c: New file.
15672         * tests/test-roundf2.c: New file.
15673         * tests/test-roundl.c: New file.
15674         * doc/functions/round.texi: Mention round module.
15675         * doc/functions/roundf.texi: Mention roundf module.
15676         * doc/functions/roundl.texi: Mention roundl module.
15677         * MODULES.html.sh: Mention new modules.
15678         Thanks to Bruno Haible for suggestions.
15679
15680 2007-10-20  Jim Meyering  <meyering@redhat.com>
15681
15682         * lib/xprintf.c: Include <config.h> unconditionally.
15683
15684         Change xprintf's license to GPL.
15685         * modules/xprintf (License): s/LGPL/GPL/, since this module
15686         depends on modules (exit and exitfail) which are GPL.
15687         Suggestion from Bruno Haible.
15688
15689         xprintf fixes.
15690         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15691         Use a clearer diagnostic.
15692         Patch from Bruno Haible.
15693
15694 2007-10-20  Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15697         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15699
15700 2007-10-20  Bruno Haible  <bruno@clisp.org>
15701
15702         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15703         precision in the comparison result > x - 1 or similar.
15704         * tests/test-ceilf2.c (correct_result_p): Likewise.
15705         * tests/test-truncf2.c (correct_result_p): Likewise.
15706         * tests/test-trunc2.c (correct_result_p): Likewise.
15707         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15708
15709 2007-10-20  Bruno Haible  <bruno@clisp.org>
15710
15711         * modules/ceil: New file.
15712         * m4/ceil.m4: New file.
15713         * doc/functions/ceil.texi: Mention the 'ceil' module.
15714
15715 2007-10-20  Bruno Haible  <bruno@clisp.org>
15716
15717         * modules/floor: New file.
15718         * m4/floor.m4: New file.
15719         * doc/functions/floor.texi: Mention the 'floor' module.
15720
15721 2007-10-20  Bruno Haible  <bruno@clisp.org>
15722
15723         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15724         of %a.
15725         * modules/floorf-tests (Depends-on): Likewise.
15726         * modules/truncf-tests (Depends-on): Likewise.
15727         * modules/trunc-tests (Depends-on): Likewise.
15728         Reported by Ben Pfaff.
15729
15730 2007-10-19  Jim Meyering  <meyering@redhat.com>
15731
15732         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15733         Don't bother testing specific errno values.  Just test ferror.
15734
15735         New module: xprintf
15736         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15737
15738 2007-10-19  Bruno Haible  <bruno@clisp.org>
15739
15740         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15741         syntax.
15742         * modules/javaexec (Makefile.am): Likewise.
15743         * modules/relocatable-prog (Makefile.am): Likewise.
15744         Suggested by Jim Meyering.
15745
15746 2007-10-18  Bruno Haible  <bruno@clisp.org>
15747
15748         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15749         Reported by Jim Meyering.
15750
15751 2007-10-18  Eric Blake  <ebb9@byu.net>
15752
15753         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15754
15755 2007-10-18  Bruno Haible  <bruno@clisp.org>
15756
15757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15758         the format string into writable memory. Needed in Fortify conditions.
15759
15760 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15761             Bruno Haible  <bruno@clisp.org>
15762
15763         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15764         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15765         * modules/trim (Depends-on): Add mbchar.
15766         (configure.ac): Add gl_FUNC_MBRTOWC.
15767         (Makefile.am): Augment lib_SOURCES.
15768
15769 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15770
15771         Modify glob.c to use fstatat and dirfd, to simplify it.
15772         Suggested by Eric Blake.
15773         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15774         Don't include <stdbool.h>; not used.
15775         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15776         (link_exists_p): Simplify implementation, since we can now assume
15777         dirfd and fstatat.
15778         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15779
15780 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15781
15782         * gnulib-tool (func_get_dependencies): Fix sed script to
15783         match only tests.
15784
15785 2007-10-17  Bruno Haible  <bruno@clisp.org>
15786
15787         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15788         allow locale names without encoding suffix.
15789         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15790         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15791
15792 2007-10-16  Bruno Haible  <bruno@clisp.org>
15793
15794         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15795         * lib/getgroups.c (getgroups): Likewise.
15796         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15797
15798 2007-10-16  Bruno Haible  <bruno@clisp.org>
15799
15800         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15801         * modules/malloc-posix (License): Likewise.
15802         * modules/realloc-posix (License): Likewise.
15803         * modules/calloc-posix (License): Likewise.
15804         * modules/intprops (License): Change from GPL to LGPL, with
15805         Paul Eggert's approval.
15806
15807 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         Merge glibc changes into lib/glob.c.
15810
15811         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15812         2007-10-15 04:59:03 UTC.  Here are the changes:
15813
15814         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15815
15816         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15817
15818         * lib/glob.c: Add some branch prediction throughout.
15819
15820         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15821
15822         [BZ #5103]
15823         * lib/glob.c (glob): Recognize patterns starting \/.
15824
15825         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15826
15827         [BZ #3996]
15828         * lib/glob.c (attribute_hidden): Define if not defined.
15829         (glob): Unescape dirname, filename or username when needed and not
15830         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15831         is NULL.  Handle unescaped [ in pattern without closing ].
15832         Don't pass GLOB_CHECK down to recursive glob for directories.
15833         (__glob_pattern_type): New function.
15834         (__glob_pattern_p): Implement using __glob_pattern_type.
15835         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15836         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15837         Remove unreachable code.
15838
15839         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15840
15841         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15842         explain why there are no leaks.
15843
15844         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15845
15846         [BZ #3253]
15847         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15848         time, rather allocate increasingly bigger arrays of pointers, if
15849         possible with alloca, if too large with malloc.
15850
15851 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15852
15853         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15854         Problem reported by H.Merijn Brand in
15855         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15856         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15857         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15858
15859 2007-10-15  Bruno Haible  <bruno@clisp.org>
15860
15861         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15862         with explicit rpl_ prefix.
15863         * lib/fopen.c (fopen): Likewise.
15864         * lib/freopen.c (freopen): Likewise.
15865         * lib/iconv.c (iconv): Likewise.
15866         * lib/iconv_close.c (iconv_close): Likewise.
15867
15868 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15869
15870         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15871
15872 2007-10-15  Bruno Haible  <bruno@clisp.org>
15873
15874         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15875         <stddef.h> instead of <stdlib.h> since we only need NULL.
15876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15877
15878 2007-10-15  Bruno Haible  <bruno@clisp.org>
15879
15880         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15881         Replace paragraph talking about LIBOBJS.
15882         Reported by Colin Watson <cjwatson@debian.org>.
15883
15884 2007-10-15  Bruno Haible  <bruno@clisp.org>
15885
15886         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15887         <stdlib.h> before using NULL.
15888
15889 2007-10-15  Simon Josefsson  <simon@josefsson.org>
15890
15891         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15892         Reported by Albert Chin <china@thewrittenword.com>.
15893
15894 2007-10-14  Bruno Haible  <bruno@clisp.org>
15895
15896         * modules/iconv_open-utf-tests: New file.
15897         * tests/test-iconv-utf.c: New file.
15898
15899         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15900         * modules/iconv_open-utf: New file.
15901         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15902         (iconv, iconv_close): New declarations.
15903         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15904         be defined.
15905         (iconv_open): Add special handling of conversion between UTF-8 and
15906         UTF-{16,32}{BE,LE}.
15907         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15908         * lib/iconv_close.c: New file.
15909         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15910         gl_FUNC_ICONV_OPEN.
15911         (gl_FUNC_ICONV_OPEN): Use it.
15912         (gl_FUNC_ICONV_OPEN_UTF): New macro.
15913         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15914         and REPLACE_ICONV_UTF.
15915         * modules/iconv_open (Depends-on): Add c-strcase.
15916         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15917         ICONV_CONST.
15918         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15919
15920 2007-10-13  Albert Chin  <china@thewrittenword.com>
15921             Bruno Haible  <bruno@clisp.org>
15922
15923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15924         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15925
15926 2007-10-13  Bruno Haible  <bruno@clisp.org>
15927
15928         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15929         defined, use the ISO C99 inline semantics.
15930         * lib/argp.h (ARGP_EI): Likewise.
15931
15932 2007-10-13  Bruno Haible  <bruno@clisp.org>
15933
15934         Handle 'inline' change in gcc 4.3.0.
15935         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15936         argp_fmtstream_write, argp_fmtstream_set_lmargin,
15937         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15938         argp_fmtstream_point): Disable 'extern' declaration if the function
15939         definition is going to be provided inline.
15940         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15941         semantics, not the ISO C99 inline semantics.
15942         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15943         'extern' declaration if the function definition is going to be provided
15944         inline.
15945         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15946         the GNU C inline semantics, not the ISO C99 inline semantics. With
15947         GCC 4.2, avoid a warning.
15948
15949 2007-10-13  Bruno Haible  <bruno@clisp.org>
15950
15951         * lib/freading.h (freading): Enable the use of __freading for
15952         glibc >= 2.7.
15953         * lib/freading.c (freading): Likewise.
15954
15955 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15956
15957         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15958         "warning: C99 inline functions are not supported; using GNU89".
15959
15960 2007-10-12  Bruno Haible  <bruno@clisp.org>
15961
15962         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15963         of 2.
15964         * tests/test-ceilf2.c: New file.
15965         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15966
15967         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15968         * modules/ceilf-tests: Update.
15969
15970 2007-10-12  Bruno Haible  <bruno@clisp.org>
15971
15972         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15973         of 2.
15974         * tests/test-floorf2.c: New file.
15975         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15976
15977         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15978         * modules/floorf-tests: Update.
15979
15980 2007-10-12  Bruno Haible  <bruno@clisp.org>
15981
15982         * tests/test-trunc2.c: New file.
15983         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15984
15985         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15986         * modules/trunc-tests: Update.
15987
15988 2007-10-12  Bruno Haible  <bruno@clisp.org>
15989
15990         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15991         of 2.
15992         * tests/test-truncf2.c: New file.
15993         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15994
15995         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15996         * modules/truncf-tests: Update.
15997
15998 2007-10-11  Eric Blake  <ebb9@byu.net>
15999
16000         Don't claim strerror is broken on Interix.
16001         * doc/functions/strerror.texi (strerror): Known broken systems are
16002         now Solaris 8, and not Interix.
16003         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
16004         Interix on cross-compile.
16005         Reported by Martin Koeppe in
16006         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
16007
16008 2007-10-11  Bruno Haible  <bruno@clisp.org>
16009
16010         * modules/i-ring-tests: New file.
16011         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
16012         instead of assert.
16013
16014 2007-10-11  Bruno Haible  <bruno@clisp.org>
16015
16016         * modules/filenamecat-tests: New file.
16017         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
16018         * lib/filenamecat.c: Remove test code.
16019
16020 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16021
16022         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
16023
16024         * lib/strerror.c: Include <string.h> always, to test interface,
16025         and to remove the need for the dummy.
16026         Include intprops.h to compute width instead of doing it ourselves
16027         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
16028         (strerror): Define it to return NULL if there's no system strerror.
16029         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
16030         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
16031         ancient pre-strerror Unix systems well any more.  Saying "unknown
16032         system error" is enough.
16033         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
16034         simpler strerror.c implementation.
16035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
16036         Simplify the tests to reflect the simpler strerror implementation.
16037         * modules/strerror (Depends-on): Add intprops.
16038
16039 2007-10-09  Eric Blake  <ebb9@byu.net>
16040
16041         Silence test-fpending.
16042         * modules/fpending-tests (Files): Add wrapper script.
16043         * tests/test-fpending.sh: New file.
16044
16045 2007-10-09  Bruno Haible  <bruno@clisp.org>
16046
16047         * MODULES.html.sh (func_module): Don't create a hyperlink for
16048         function names like 'printf_frexp'.
16049         (Misc): Add crc, memxor.
16050         (Characteristics of floating types): New section.
16051         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
16052         isnanf-nolibm, signbit, trunc, truncf, truncl.
16053         (Enhancements for ISO C 99 functions): New subsection Input/output.
16054         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
16055         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
16056         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
16057         (Compatibility checks for POSIX:2001 functions): Add clock-time.
16058         (Enhancements for POSIX:2001 functions): Add chdir-long.
16059         (File system functions): Add areadlink, chdir-safer, read-file.
16060         Remove cycle-check.
16061         (File system as inode set): New section.
16062         (Date and time): Add gethrxtime.
16063         (Multithreading): Add openmp.
16064         (Internationalization functions): Add localename.
16065         (Unicode string functions): Add unistr/u*-mbsnlen.
16066         (Support for maintaining and releasing projects): Add git-version-gen.
16067         (Lone files): Remove directories.
16068
16069 2007-10-08  Ben Pfaff  <blp@gnu.org>
16070
16071         * lib/xmalloca.h: Fix typo in comment.
16072
16073 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16074
16075         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
16076         when avoiding problems with integer overflow.  Use a portable test
16077         instead.
16078
16079 2007-10-08  Simon Josefsson  <simon@josefsson.org>
16080
16081         * modules/dummy (License): Change to LGPLv2+.
16082         * modules/float (License): Likewise
16083         * modules/realloc (License): Likewise
16084         * modules/stdlib (License): Likewise
16085
16086 2007-10-07  Bruno Haible  <bruno@clisp.org>
16087
16088         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
16089         * floor.c (TWO_MANT_DIG): Likewise.
16090         * ceil.c (TWO_MANT_DIG): Likewise.
16091         Reported by Ben Pfaff.
16092
16093 2007-10-07  Bruno Haible  <bruno@clisp.org>
16094
16095         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
16096         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
16097         * lib/frexp.c (FUNC): Likewise.
16098         * lib/printf-frexp.h (printf_frexp): Likewise.
16099         * lib/printf-frexpl.h (printf_frexpl): Likewise.
16100         * lib/printf-frexp.c (FUNC): Likewise.
16101         Suggested by Jim Meyering.
16102
16103 2007-10-07  Jim Meyering  <meyering@redhat.com>
16104
16105         Make xnanosleep's integer overflow test more robust.
16106         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
16107         so that gcc-4.3.0 doesn't optimize away this test for overflow.
16108
16109 2007-10-07  Bruno Haible  <bruno@clisp.org>
16110
16111         * NEWS: Mention the license change.
16112
16113         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
16114         abbreviations in the modules files.
16115
16116         Change copyright notice from GPLv2+ to GPLv3+.
16117         * README: Change copyright notice.
16118         * MODULES.html.sh: Likewise.
16119         * build-aux/bootstrap.conf: Likewise.
16120         * build-aux/config.libpath: Likewise.
16121         * build-aux/csharpcomp.sh.in: Likewise.
16122         * build-aux/csharpexec.sh.in: Likewise.
16123         * build-aux/install-reloc: Likewise.
16124         * build-aux/javacomp.sh.in: Likewise.
16125         * build-aux/javaexec.sh.in: Likewise.
16126         * build-aux/ldd.sh.in: Likewise.
16127         * build-aux/reloc-ldflags: Likewise.
16128         * build-aux/relocatable.sh.in: Likewise.
16129         * build-aux/x-to-1.in: Likewise.
16130         * check-module: Likewise.
16131         * config/srclistvars.sh: Likewise.
16132         * gnulib-tool: Likewise.
16133         * lib/acl-internal.h: Likewise.
16134         * lib/acl.c: Likewise.
16135         * lib/acl.h: Likewise.
16136         * lib/acl_entries.c: Likewise.
16137         * lib/areadlink-with-size.c: Likewise.
16138         * lib/areadlink.c: Likewise.
16139         * lib/areadlink.h: Likewise.
16140         * lib/argmatch.c: Likewise.
16141         * lib/argmatch.h: Likewise.
16142         * lib/argp-ba.c: Likewise.
16143         * lib/argp-eexst.c: Likewise.
16144         * lib/argp-fmtstream.c: Likewise.
16145         * lib/argp-fmtstream.h: Likewise.
16146         * lib/argp-fs-xinl.c: Likewise.
16147         * lib/argp-help.c: Likewise.
16148         * lib/argp-namefrob.h: Likewise.
16149         * lib/argp-parse.c: Likewise.
16150         * lib/argp-pin.c: Likewise.
16151         * lib/argp-pv.c: Likewise.
16152         * lib/argp-pvh.c: Likewise.
16153         * lib/argp-xinl.c: Likewise.
16154         * lib/argp.h: Likewise.
16155         * lib/at-func.c: Likewise.
16156         * lib/atanl.c: Likewise.
16157         * lib/backupfile.c: Likewise.
16158         * lib/backupfile.h: Likewise.
16159         * lib/basename.c: Likewise.
16160         * lib/binary-io.h: Likewise.
16161         * lib/byteswap.in.h: Likewise.
16162         * lib/c-stack.c: Likewise.
16163         * lib/c-stack.h: Likewise.
16164         * lib/c-strcasestr.c: Likewise.
16165         * lib/c-strcasestr.h: Likewise.
16166         * lib/c-strstr.c: Likewise.
16167         * lib/c-strstr.h: Likewise.
16168         * lib/c-strtod.c: Likewise.
16169         * lib/calloc.c: Likewise.
16170         * lib/canon-host.c: Likewise.
16171         * lib/canon-host.h: Likewise.
16172         * lib/canonicalize-lgpl.c: Likewise.
16173         * lib/canonicalize.c: Likewise.
16174         * lib/canonicalize.h: Likewise.
16175         * lib/ceil.c: Likewise.
16176         * lib/ceilf.c: Likewise.
16177         * lib/ceill.c: Likewise.
16178         * lib/chdir-long.c: Likewise.
16179         * lib/chdir-long.h: Likewise.
16180         * lib/chdir-safer.c: Likewise.
16181         * lib/chdir-safer.h: Likewise.
16182         * lib/chown.c: Likewise.
16183         * lib/classpath.c: Likewise.
16184         * lib/classpath.h: Likewise.
16185         * lib/clean-temp.c: Likewise.
16186         * lib/clean-temp.h: Likewise.
16187         * lib/cloexec.c: Likewise.
16188         * lib/close-stream.c: Likewise.
16189         * lib/closein.c: Likewise.
16190         * lib/closein.h: Likewise.
16191         * lib/closeout.c: Likewise.
16192         * lib/closeout.h: Likewise.
16193         * lib/concat-filename.c: Likewise.
16194         * lib/copy-file.c: Likewise.
16195         * lib/copy-file.h: Likewise.
16196         * lib/count-one-bits.h: Likewise.
16197         * lib/crc.c: Likewise.
16198         * lib/crc.h: Likewise.
16199         * lib/creat-safer.c: Likewise.
16200         * lib/csharpcomp.c: Likewise.
16201         * lib/csharpcomp.h: Likewise.
16202         * lib/csharpexec.c: Likewise.
16203         * lib/csharpexec.h: Likewise.
16204         * lib/cycle-check.c: Likewise.
16205         * lib/cycle-check.h: Likewise.
16206         * lib/diacrit.c: Likewise.
16207         * lib/diacrit.h: Likewise.
16208         * lib/diffseq.h: Likewise.
16209         * lib/dirchownmod.c: Likewise.
16210         * lib/dirent.in.h: Likewise.
16211         * lib/dirfd.c: Likewise.
16212         * lib/dirfd.h: Likewise.
16213         * lib/dirname.c: Likewise.
16214         * lib/dirname.h: Likewise.
16215         * lib/dummy.c: Likewise.
16216         * lib/dup-safer.c: Likewise.
16217         * lib/dup2.c: Likewise.
16218         * lib/eealloc.h: Likewise.
16219         * lib/error.c: Likewise.
16220         * lib/error.h: Likewise.
16221         * lib/euidaccess.c: Likewise.
16222         * lib/exclude.c: Likewise.
16223         * lib/exclude.h: Likewise.
16224         * lib/execute.c: Likewise.
16225         * lib/execute.h: Likewise.
16226         * lib/exitfail.c: Likewise.
16227         * lib/exitfail.h: Likewise.
16228         * lib/expl.c: Likewise.
16229         * lib/fatal-signal.c: Likewise.
16230         * lib/fatal-signal.h: Likewise.
16231         * lib/fbufmode.c: Likewise.
16232         * lib/fbufmode.h: Likewise.
16233         * lib/fchdir.c: Likewise.
16234         * lib/fchmodat.c: Likewise.
16235         * lib/fchownat.c: Likewise.
16236         * lib/fcntl--.h: Likewise.
16237         * lib/fcntl-safer.h: Likewise.
16238         * lib/fcntl.in.h: Likewise.
16239         * lib/fd-safer.c: Likewise.
16240         * lib/fflush.c: Likewise.
16241         * lib/file-has-acl.c: Likewise.
16242         * lib/file-set.c: Likewise.
16243         * lib/file-type.c: Likewise.
16244         * lib/file-type.h: Likewise.
16245         * lib/fileblocks.c: Likewise.
16246         * lib/filemode.c: Likewise.
16247         * lib/filemode.h: Likewise.
16248         * lib/filename.h: Likewise.
16249         * lib/filenamecat.c: Likewise.
16250         * lib/filenamecat.h: Likewise.
16251         * lib/findprog.c: Likewise.
16252         * lib/findprog.h: Likewise.
16253         * lib/float.in.h: Likewise.
16254         * lib/floor.c: Likewise.
16255         * lib/floorf.c: Likewise.
16256         * lib/floorl.c: Likewise.
16257         * lib/fopen-safer.c: Likewise.
16258         * lib/fopen.c: Likewise.
16259         * lib/fpending.c: Likewise.
16260         * lib/fpending.h: Likewise.
16261         * lib/fprintf.c: Likewise.
16262         * lib/fprintftime.h: Likewise.
16263         * lib/fpucw.h: Likewise.
16264         * lib/fpurge.c: Likewise.
16265         * lib/fpurge.h: Likewise.
16266         * lib/freadable.c: Likewise.
16267         * lib/freadable.h: Likewise.
16268         * lib/freadahead.c: Likewise.
16269         * lib/freadahead.h: Likewise.
16270         * lib/freading.c: Likewise.
16271         * lib/freading.h: Likewise.
16272         * lib/free.c: Likewise.
16273         * lib/freopen.c: Likewise.
16274         * lib/frexp.c: Likewise.
16275         * lib/frexpl.c: Likewise.
16276         * lib/fseek.c: Likewise.
16277         * lib/fseterr.c: Likewise.
16278         * lib/fseterr.h: Likewise.
16279         * lib/fstatat.c: Likewise.
16280         * lib/fstrcmp.c: Likewise.
16281         * lib/fstrcmp.h: Likewise.
16282         * lib/fsusage.c: Likewise.
16283         * lib/fsusage.h: Likewise.
16284         * lib/ftell.c: Likewise.
16285         * lib/ftello.c: Likewise.
16286         * lib/fts-cycle.c: Likewise.
16287         * lib/fts.c: Likewise.
16288         * lib/fts_.h: Likewise.
16289         * lib/full-read.c: Likewise.
16290         * lib/full-read.h: Likewise.
16291         * lib/full-write.c: Likewise.
16292         * lib/full-write.h: Likewise.
16293         * lib/fwritable.c: Likewise.
16294         * lib/fwritable.h: Likewise.
16295         * lib/fwriteerror.c: Likewise.
16296         * lib/fwriteerror.h: Likewise.
16297         * lib/fwriting.c: Likewise.
16298         * lib/fwriting.h: Likewise.
16299         * lib/gcd.c: Likewise.
16300         * lib/gcd.h: Likewise.
16301         * lib/getcwd.c: Likewise.
16302         * lib/getdate.h: Likewise.
16303         * lib/getdate.y: Likewise.
16304         * lib/getdomainname.c: Likewise.
16305         * lib/getdomainname.h: Likewise.
16306         * lib/getgroups.c: Likewise.
16307         * lib/gethostname.c: Likewise.
16308         * lib/gethrxtime.c: Likewise.
16309         * lib/gethrxtime.h: Likewise.
16310         * lib/getloadavg.c: Likewise.
16311         * lib/getndelim2.c: Likewise.
16312         * lib/getndelim2.h: Likewise.
16313         * lib/getnline.c: Likewise.
16314         * lib/getnline.h: Likewise.
16315         * lib/getopt.c: Likewise.
16316         * lib/getopt.in.h: Likewise.
16317         * lib/getopt1.c: Likewise.
16318         * lib/getopt_int.h: Likewise.
16319         * lib/getpagesize.h: Likewise.
16320         * lib/getsubopt.c: Likewise.
16321         * lib/gettime.c: Likewise.
16322         * lib/getugroups.c: Likewise.
16323         * lib/getugroups.h: Likewise.
16324         * lib/getusershell.c: Likewise.
16325         * lib/gl_anyavltree_list1.h: Likewise.
16326         * lib/gl_anyavltree_list2.h: Likewise.
16327         * lib/gl_anyhash_list1.h: Likewise.
16328         * lib/gl_anyhash_list2.h: Likewise.
16329         * lib/gl_anylinked_list1.h: Likewise.
16330         * lib/gl_anylinked_list2.h: Likewise.
16331         * lib/gl_anyrbtree_list1.h: Likewise.
16332         * lib/gl_anyrbtree_list2.h: Likewise.
16333         * lib/gl_anytree_list1.h: Likewise.
16334         * lib/gl_anytree_list2.h: Likewise.
16335         * lib/gl_anytree_oset.h: Likewise.
16336         * lib/gl_anytreehash_list1.h: Likewise.
16337         * lib/gl_anytreehash_list2.h: Likewise.
16338         * lib/gl_array_list.c: Likewise.
16339         * lib/gl_array_list.h: Likewise.
16340         * lib/gl_array_oset.c: Likewise.
16341         * lib/gl_array_oset.h: Likewise.
16342         * lib/gl_avltree_list.c: Likewise.
16343         * lib/gl_avltree_list.h: Likewise.
16344         * lib/gl_avltree_oset.c: Likewise.
16345         * lib/gl_avltree_oset.h: Likewise.
16346         * lib/gl_avltreehash_list.c: Likewise.
16347         * lib/gl_avltreehash_list.h: Likewise.
16348         * lib/gl_carray_list.c: Likewise.
16349         * lib/gl_carray_list.h: Likewise.
16350         * lib/gl_linked_list.c: Likewise.
16351         * lib/gl_linked_list.h: Likewise.
16352         * lib/gl_linkedhash_list.c: Likewise.
16353         * lib/gl_linkedhash_list.h: Likewise.
16354         * lib/gl_list.c: Likewise.
16355         * lib/gl_list.h: Likewise.
16356         * lib/gl_oset.c: Likewise.
16357         * lib/gl_oset.h: Likewise.
16358         * lib/gl_rbtree_list.c: Likewise.
16359         * lib/gl_rbtree_list.h: Likewise.
16360         * lib/gl_rbtree_oset.c: Likewise.
16361         * lib/gl_rbtree_oset.h: Likewise.
16362         * lib/gl_rbtreehash_list.c: Likewise.
16363         * lib/gl_rbtreehash_list.h: Likewise.
16364         * lib/gl_sublist.c: Likewise.
16365         * lib/gl_sublist.h: Likewise.
16366         * lib/group-member.c: Likewise.
16367         * lib/group-member.h: Likewise.
16368         * lib/hard-locale.c: Likewise.
16369         * lib/hard-locale.h: Likewise.
16370         * lib/hash-pjw.c: Likewise.
16371         * lib/hash-pjw.h: Likewise.
16372         * lib/hash-triple.c: Likewise.
16373         * lib/hash.c: Likewise.
16374         * lib/hash.h: Likewise.
16375         * lib/human.c: Likewise.
16376         * lib/human.h: Likewise.
16377         * lib/i-ring.c: Likewise.
16378         * lib/i-ring.h: Likewise.
16379         * lib/idcache.c: Likewise.
16380         * lib/imaxabs.c: Likewise.
16381         * lib/imaxdiv.c: Likewise.
16382         * lib/inet_pton.c: Likewise.
16383         * lib/inet_pton.h: Likewise.
16384         * lib/intprops.h: Likewise.
16385         * lib/inttostr.c: Likewise.
16386         * lib/inttostr.h: Likewise.
16387         * lib/inttypes.in.h: Likewise.
16388         * lib/isapipe.c: Likewise.
16389         * lib/isdir.c: Likewise.
16390         * lib/isnan.c: Likewise.
16391         * lib/isnan.h: Likewise.
16392         * lib/isnanf.c: Likewise.
16393         * lib/isnanf.h: Likewise.
16394         * lib/isnanl-nolibm.h: Likewise.
16395         * lib/isnanl.c: Likewise.
16396         * lib/isnanl.h: Likewise.
16397         * lib/javacomp.c: Likewise.
16398         * lib/javacomp.h: Likewise.
16399         * lib/javaexec.c: Likewise.
16400         * lib/javaexec.h: Likewise.
16401         * lib/javaversion.c: Likewise.
16402         * lib/javaversion.h: Likewise.
16403         * lib/javaversion.java: Likewise.
16404         * lib/lbrkprop.h: Likewise.
16405         * lib/lchmod.h: Likewise.
16406         * lib/lchown.c: Likewise.
16407         * lib/ldexpl.c: Likewise.
16408         * lib/linebreak.c: Likewise.
16409         * lib/linebreak.h: Likewise.
16410         * lib/linebuffer.c: Likewise.
16411         * lib/linebuffer.h: Likewise.
16412         * lib/locale.in.h: Likewise.
16413         * lib/logl.c: Likewise.
16414         * lib/long-options.c: Likewise.
16415         * lib/long-options.h: Likewise.
16416         * lib/lstat.c: Likewise.
16417         * lib/lstat.h: Likewise.
16418         * lib/math.in.h: Likewise.
16419         * lib/mbchar.c: Likewise.
16420         * lib/mbchar.h: Likewise.
16421         * lib/mbfile.h: Likewise.
16422         * lib/mbiter.h: Likewise.
16423         * lib/mbscasecmp.c: Likewise.
16424         * lib/mbscasestr.c: Likewise.
16425         * lib/mbschr.c: Likewise.
16426         * lib/mbscspn.c: Likewise.
16427         * lib/mbslen.c: Likewise.
16428         * lib/mbsncasecmp.c: Likewise.
16429         * lib/mbsnlen.c: Likewise.
16430         * lib/mbspbrk.c: Likewise.
16431         * lib/mbspcasecmp.c: Likewise.
16432         * lib/mbsrchr.c: Likewise.
16433         * lib/mbssep.c: Likewise.
16434         * lib/mbsspn.c: Likewise.
16435         * lib/mbsstr.c: Likewise.
16436         * lib/mbstok_r.c: Likewise.
16437         * lib/mbswidth.c: Likewise.
16438         * lib/mbswidth.h: Likewise.
16439         * lib/mbuiter.h: Likewise.
16440         * lib/memcasecmp.c: Likewise.
16441         * lib/memcasecmp.h: Likewise.
16442         * lib/memchr.c: Likewise.
16443         * lib/memcmp.c: Likewise.
16444         * lib/memcoll.c: Likewise.
16445         * lib/memcoll.h: Likewise.
16446         * lib/memcpy.c: Likewise.
16447         * lib/memrchr.c: Likewise.
16448         * lib/mkancesdirs.c: Likewise.
16449         * lib/mkdir-p.c: Likewise.
16450         * lib/mkdir-p.h: Likewise.
16451         * lib/mkdir.c: Likewise.
16452         * lib/mkdirat.c: Likewise.
16453         * lib/mkdtemp.c: Likewise.
16454         * lib/mkstemp-safer.c: Likewise.
16455         * lib/mkstemp.c: Likewise.
16456         * lib/modechange.c: Likewise.
16457         * lib/modechange.h: Likewise.
16458         * lib/mountlist.c: Likewise.
16459         * lib/mountlist.h: Likewise.
16460         * lib/mpsort.c: Likewise.
16461         * lib/nanosleep.c: Likewise.
16462         * lib/obstack.c: Likewise.
16463         * lib/obstack.h: Likewise.
16464         * lib/open-safer.c: Likewise.
16465         * lib/open.c: Likewise.
16466         * lib/openat-die.c: Likewise.
16467         * lib/openat-priv.h: Likewise.
16468         * lib/openat-proc.c: Likewise.
16469         * lib/openat.c: Likewise.
16470         * lib/openat.h: Likewise.
16471         * lib/pagealign_alloc.c: Likewise.
16472         * lib/pagealign_alloc.h: Likewise.
16473         * lib/physmem.c: Likewise.
16474         * lib/physmem.h: Likewise.
16475         * lib/pipe-safer.c: Likewise.
16476         * lib/pipe.c: Likewise.
16477         * lib/pipe.h: Likewise.
16478         * lib/posixtm.c: Likewise.
16479         * lib/posixtm.h: Likewise.
16480         * lib/posixver.c: Likewise.
16481         * lib/printf-frexp.c: Likewise.
16482         * lib/printf-frexp.h: Likewise.
16483         * lib/printf-frexpl.c: Likewise.
16484         * lib/printf-frexpl.h: Likewise.
16485         * lib/printf.c: Likewise.
16486         * lib/progname.c: Likewise.
16487         * lib/progname.h: Likewise.
16488         * lib/progreloc.c: Likewise.
16489         * lib/putenv.c: Likewise.
16490         * lib/quote.c: Likewise.
16491         * lib/quote.h: Likewise.
16492         * lib/quotearg.c: Likewise.
16493         * lib/quotearg.h: Likewise.
16494         * lib/raise.c: Likewise.
16495         * lib/readline.c: Likewise.
16496         * lib/readline.h: Likewise.
16497         * lib/readlink.c: Likewise.
16498         * lib/readtokens.c: Likewise.
16499         * lib/readtokens.h: Likewise.
16500         * lib/readtokens0.c: Likewise.
16501         * lib/readtokens0.h: Likewise.
16502         * lib/readutmp.c: Likewise.
16503         * lib/readutmp.h: Likewise.
16504         * lib/realloc.c: Likewise.
16505         * lib/relocwrapper.c: Likewise.
16506         * lib/rename-dest-slash.c: Likewise.
16507         * lib/rename.c: Likewise.
16508         * lib/rmdir.c: Likewise.
16509         * lib/rpmatch.c: Likewise.
16510         * lib/safe-read.c: Likewise.
16511         * lib/safe-read.h: Likewise.
16512         * lib/safe-write.c: Likewise.
16513         * lib/safe-write.h: Likewise.
16514         * lib/same-inode.h: Likewise.
16515         * lib/same.c: Likewise.
16516         * lib/same.h: Likewise.
16517         * lib/save-cwd.c: Likewise.
16518         * lib/save-cwd.h: Likewise.
16519         * lib/savedir.c: Likewise.
16520         * lib/savedir.h: Likewise.
16521         * lib/savewd.c: Likewise.
16522         * lib/savewd.h: Likewise.
16523         * lib/search.in.h: Likewise.
16524         * lib/setenv.c: Likewise.
16525         * lib/setenv.h: Likewise.
16526         * lib/settime.c: Likewise.
16527         * lib/sh-quote.c: Likewise.
16528         * lib/sh-quote.h: Likewise.
16529         * lib/sig2str.c: Likewise.
16530         * lib/sig2str.h: Likewise.
16531         * lib/signal.in.h: Likewise.
16532         * lib/signbitd.c: Likewise.
16533         * lib/signbitf.c: Likewise.
16534         * lib/signbitl.c: Likewise.
16535         * lib/sigprocmask.c: Likewise.
16536         * lib/sincosl.c: Likewise.
16537         * lib/sleep.c: Likewise.
16538         * lib/sprintf.c: Likewise.
16539         * lib/sqrtl.c: Likewise.
16540         * lib/stat-time.h: Likewise.
16541         * lib/stdio--.h: Likewise.
16542         * lib/stdio-safer.h: Likewise.
16543         * lib/stdlib--.h: Likewise.
16544         * lib/stdlib-safer.h: Likewise.
16545         * lib/stdlib.in.h: Likewise.
16546         * lib/stpcpy.c: Likewise.
16547         * lib/stpncpy.c: Likewise.
16548         * lib/strchrnul.c: Likewise.
16549         * lib/strcspn.c: Likewise.
16550         * lib/strerror.c: Likewise.
16551         * lib/strftime.c: Likewise.
16552         * lib/strftime.h: Likewise.
16553         * lib/striconveh.c: Likewise.
16554         * lib/striconveh.h: Likewise.
16555         * lib/striconveha.c: Likewise.
16556         * lib/striconveha.h: Likewise.
16557         * lib/stripslash.c: Likewise.
16558         * lib/strnlen1.c: Likewise.
16559         * lib/strnlen1.h: Likewise.
16560         * lib/strtod.c: Likewise.
16561         * lib/strtoimax.c: Likewise.
16562         * lib/strtok_r.c: Likewise.
16563         * lib/strtol.c: Likewise.
16564         * lib/strtoll.c: Likewise.
16565         * lib/strtoul.c: Likewise.
16566         * lib/strtoull.c: Likewise.
16567         * lib/sysexits.in.h: Likewise.
16568         * lib/tempname.c: Likewise.
16569         * lib/tempname.h: Likewise.
16570         * lib/timespec.h: Likewise.
16571         * lib/tls.c: Likewise.
16572         * lib/tls.h: Likewise.
16573         * lib/tmpdir.c: Likewise.
16574         * lib/tmpdir.h: Likewise.
16575         * lib/tmpfile-safer.c: Likewise.
16576         * lib/tmpfile.c: Likewise.
16577         * lib/trigl.c: Likewise.
16578         * lib/trigl.h: Likewise.
16579         * lib/trim.c: Likewise.
16580         * lib/trim.h: Likewise.
16581         * lib/trunc.c: Likewise.
16582         * lib/truncf.c: Likewise.
16583         * lib/truncl.c: Likewise.
16584         * lib/tsearch.c: Likewise.
16585         * lib/unicodeio.c: Likewise.
16586         * lib/unicodeio.h: Likewise.
16587         * lib/unistd--.h: Likewise.
16588         * lib/unistd-safer.h: Likewise.
16589         * lib/unistdio/ulc-fprintf.c: Likewise.
16590         * lib/unistdio/ulc-vfprintf.c: Likewise.
16591         * lib/unlinkdir.c: Likewise.
16592         * lib/unlinkdir.h: Likewise.
16593         * lib/unlocked-io.h: Likewise.
16594         * lib/unsetenv.c: Likewise.
16595         * lib/userspec.c: Likewise.
16596         * lib/utime.c: Likewise.
16597         * lib/utimecmp.c: Likewise.
16598         * lib/utimecmp.h: Likewise.
16599         * lib/utimens.c: Likewise.
16600         * lib/verify.h: Likewise.
16601         * lib/verror.c: Likewise.
16602         * lib/verror.h: Likewise.
16603         * lib/version-etc-fsf.c: Likewise.
16604         * lib/version-etc.c: Likewise.
16605         * lib/version-etc.h: Likewise.
16606         * lib/vfprintf.c: Likewise.
16607         * lib/vprintf.c: Likewise.
16608         * lib/vsprintf.c: Likewise.
16609         * lib/w32spawn.h: Likewise.
16610         * lib/wait-process.c: Likewise.
16611         * lib/wait-process.h: Likewise.
16612         * lib/wcwidth.c: Likewise.
16613         * lib/write-any-file.c: Likewise.
16614         * lib/xalloc-die.c: Likewise.
16615         * lib/xalloc.h: Likewise.
16616         * lib/xasprintf.c: Likewise.
16617         * lib/xgetcwd.c: Likewise.
16618         * lib/xgetcwd.h: Likewise.
16619         * lib/xgetdomainname.c: Likewise.
16620         * lib/xgetdomainname.h: Likewise.
16621         * lib/xgethostname.c: Likewise.
16622         * lib/xmalloc.c: Likewise.
16623         * lib/xmalloca.c: Likewise.
16624         * lib/xmalloca.h: Likewise.
16625         * lib/xmemcoll.c: Likewise.
16626         * lib/xnanosleep.c: Likewise.
16627         * lib/xreadlink.c: Likewise.
16628         * lib/xreadlink.h: Likewise.
16629         * lib/xsetenv.c: Likewise.
16630         * lib/xsetenv.h: Likewise.
16631         * lib/xstriconv.c: Likewise.
16632         * lib/xstriconv.h: Likewise.
16633         * lib/xstrndup.c: Likewise.
16634         * lib/xstrndup.h: Likewise.
16635         * lib/xstrtod.c: Likewise.
16636         * lib/xstrtod.h: Likewise.
16637         * lib/xstrtol-error.c: Likewise.
16638         * lib/xstrtol.c: Likewise.
16639         * lib/xstrtol.h: Likewise.
16640         * lib/xtime.h: Likewise.
16641         * lib/xvasprintf.c: Likewise.
16642         * lib/xvasprintf.h: Likewise.
16643         * lib/yesno.c: Likewise.
16644         * lib/yesno.h: Likewise.
16645         * posix-modules: Likewise.
16646         * tests/test-alloca-opt.c: Likewise.
16647         * tests/test-arcfour.c: Likewise.
16648         * tests/test-arctwo.c: Likewise.
16649         * tests/test-argmatch.c: Likewise.
16650         * tests/test-argp-2.sh: Likewise.
16651         * tests/test-argp.c: Likewise.
16652         * tests/test-arpa_inet.c: Likewise.
16653         * tests/test-array_list.c: Likewise.
16654         * tests/test-array_oset.c: Likewise.
16655         * tests/test-atexit.c: Likewise.
16656         * tests/test-avltree_list.c: Likewise.
16657         * tests/test-avltree_oset.c: Likewise.
16658         * tests/test-avltreehash_list.c: Likewise.
16659         * tests/test-base64.c: Likewise.
16660         * tests/test-binary-io.c: Likewise.
16661         * tests/test-byteswap.c: Likewise.
16662         * tests/test-c-ctype.c: Likewise.
16663         * tests/test-c-strcasecmp.c: Likewise.
16664         * tests/test-c-strcasestr.c: Likewise.
16665         * tests/test-c-strncasecmp.c: Likewise.
16666         * tests/test-c-strstr.c: Likewise.
16667         * tests/test-canonicalize-lgpl.c: Likewise.
16668         * tests/test-canonicalize.c: Likewise.
16669         * tests/test-carray_list.c: Likewise.
16670         * tests/test-ceilf.c: Likewise.
16671         * tests/test-ceill.c: Likewise.
16672         * tests/test-count-one-bits.c: Likewise.
16673         * tests/test-crc.c: Likewise.
16674         * tests/test-dirname.c: Likewise.
16675         * tests/test-fbufmode.c: Likewise.
16676         * tests/test-fcntl.c: Likewise.
16677         * tests/test-fflush.c: Likewise.
16678         * tests/test-floorf.c: Likewise.
16679         * tests/test-floorl.c: Likewise.
16680         * tests/test-fopen.c: Likewise.
16681         * tests/test-fprintf-posix.c: Likewise.
16682         * tests/test-fprintf-posix.h: Likewise.
16683         * tests/test-fpurge.c: Likewise.
16684         * tests/test-freadable.c: Likewise.
16685         * tests/test-freadahead.c: Likewise.
16686         * tests/test-freading.c: Likewise.
16687         * tests/test-freopen.c: Likewise.
16688         * tests/test-frexp.c: Likewise.
16689         * tests/test-frexpl.c: Likewise.
16690         * tests/test-fseek.c: Likewise.
16691         * tests/test-fseeko.c: Likewise.
16692         * tests/test-fseterr.c: Likewise.
16693         * tests/test-fstrcmp.c: Likewise.
16694         * tests/test-ftell.c: Likewise.
16695         * tests/test-ftello.c: Likewise.
16696         * tests/test-fwritable.c: Likewise.
16697         * tests/test-fwriting.c: Likewise.
16698         * tests/test-getaddrinfo.c: Likewise.
16699         * tests/test-getpass.c: Likewise.
16700         * tests/test-gettimeofday.c: Likewise.
16701         * tests/test-hmac-md5.c: Likewise.
16702         * tests/test-hmac-sha1.c: Likewise.
16703         * tests/test-iconv.c: Likewise.
16704         * tests/test-iconvme.c: Likewise.
16705         * tests/test-inttypes.c: Likewise.
16706         * tests/test-isnan.c: Likewise.
16707         * tests/test-isnanf.c: Likewise.
16708         * tests/test-isnanl-nolibm.c: Likewise.
16709         * tests/test-isnanl.c: Likewise.
16710         * tests/test-isnanl.h: Likewise.
16711         * tests/test-ldexpl.c: Likewise.
16712         * tests/test-linked_list.c: Likewise.
16713         * tests/test-linkedhash_list.c: Likewise.
16714         * tests/test-locale.c: Likewise.
16715         * tests/test-localename.c: Likewise.
16716         * tests/test-lock.c: Likewise.
16717         * tests/test-lseek.c: Likewise.
16718         * tests/test-malloca.c: Likewise.
16719         * tests/test-math.c: Likewise.
16720         * tests/test-mbscasecmp.c: Likewise.
16721         * tests/test-mbscasestr1.c: Likewise.
16722         * tests/test-mbscasestr2.c: Likewise.
16723         * tests/test-mbscasestr3.c: Likewise.
16724         * tests/test-mbscasestr4.c: Likewise.
16725         * tests/test-mbschr.c: Likewise.
16726         * tests/test-mbscspn.c: Likewise.
16727         * tests/test-mbsncasecmp.c: Likewise.
16728         * tests/test-mbspbrk.c: Likewise.
16729         * tests/test-mbspcasecmp.c: Likewise.
16730         * tests/test-mbsrchr.c: Likewise.
16731         * tests/test-mbsspn.c: Likewise.
16732         * tests/test-mbsstr1.c: Likewise.
16733         * tests/test-mbsstr2.c: Likewise.
16734         * tests/test-mbsstr3.c: Likewise.
16735         * tests/test-md5.c: Likewise.
16736         * tests/test-memmem.c: Likewise.
16737         * tests/test-netinet_in.c: Likewise.
16738         * tests/test-open.c: Likewise.
16739         * tests/test-printf-frexp.c: Likewise.
16740         * tests/test-printf-frexpl.c: Likewise.
16741         * tests/test-printf-posix.c: Likewise.
16742         * tests/test-printf-posix.h: Likewise.
16743         * tests/test-rbtree_list.c: Likewise.
16744         * tests/test-rbtree_oset.c: Likewise.
16745         * tests/test-rbtreehash_list.c: Likewise.
16746         * tests/test-read-file.c: Likewise.
16747         * tests/test-rijndael.c: Likewise.
16748         * tests/test-search.c: Likewise.
16749         * tests/test-signbit.c: Likewise.
16750         * tests/test-sleep.c: Likewise.
16751         * tests/test-snprintf-posix.c: Likewise.
16752         * tests/test-snprintf-posix.h: Likewise.
16753         * tests/test-snprintf.c: Likewise.
16754         * tests/test-sprintf-posix.c: Likewise.
16755         * tests/test-sprintf-posix.h: Likewise.
16756         * tests/test-stat-time.c: Likewise.
16757         * tests/test-stdbool.c: Likewise.
16758         * tests/test-stdint.c: Likewise.
16759         * tests/test-stdio.c: Likewise.
16760         * tests/test-stdlib.c: Likewise.
16761         * tests/test-stpncpy.c: Likewise.
16762         * tests/test-strcasestr.c: Likewise.
16763         * tests/test-striconv.c: Likewise.
16764         * tests/test-striconveh.c: Likewise.
16765         * tests/test-striconveha.c: Likewise.
16766         * tests/test-string.c: Likewise.
16767         * tests/test-sys_select.c: Likewise.
16768         * tests/test-sys_socket.c: Likewise.
16769         * tests/test-sys_stat.c: Likewise.
16770         * tests/test-sys_time.c: Likewise.
16771         * tests/test-sysexits.c: Likewise.
16772         * tests/test-time.c: Likewise.
16773         * tests/test-tls.c: Likewise.
16774         * tests/test-trunc.c: Likewise.
16775         * tests/test-truncf.c: Likewise.
16776         * tests/test-truncl.c: Likewise.
16777         * tests/test-unistd.c: Likewise.
16778         * tests/test-vasnprintf-posix.c: Likewise.
16779         * tests/test-vasnprintf-posix2.c: Likewise.
16780         * tests/test-vasnprintf.c: Likewise.
16781         * tests/test-vasprintf-posix.c: Likewise.
16782         * tests/test-vasprintf.c: Likewise.
16783         * tests/test-verify.c: Likewise.
16784         * tests/test-vfprintf-posix.c: Likewise.
16785         * tests/test-vprintf-posix.c: Likewise.
16786         * tests/test-vsnprintf-posix.c: Likewise.
16787         * tests/test-vsnprintf.c: Likewise.
16788         * tests/test-vsprintf-posix.c: Likewise.
16789         * tests/test-wchar.c: Likewise.
16790         * tests/test-wctype.c: Likewise.
16791         * tests/test-wcwidth.c: Likewise.
16792         * tests/test-xstrtol.c: Likewise.
16793         * tests/test-xvasprintf.c: Likewise.
16794         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16795         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16796         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16797         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16798         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16799         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16800         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16801         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16802         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16803         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16804         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16805         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16806         * tests/uniname/test-uninames.c: Likewise.
16807         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16808         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16809         * tests/unistdio/test-u16-printf1.h: Likewise.
16810         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16811         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16812         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16813         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16814         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16815         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16816         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16817         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16818         * tests/unistdio/test-u32-printf1.h: Likewise.
16819         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16820         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16821         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16822         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16823         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16824         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16825         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16826         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16827         * tests/unistdio/test-u8-printf1.h: Likewise.
16828         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16829         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16830         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16831         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16832         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16833         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16834         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16835         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16836         * tests/unistdio/test-ulc-printf1.h: Likewise.
16837         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16838         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16839         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16840         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16841         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16842         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16843         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16844         * tests/uniwidth/test-u16-width.c: Likewise.
16845         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16846         * tests/uniwidth/test-u32-width.c: Likewise.
16847         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16848         * tests/uniwidth/test-u8-width.c: Likewise.
16849         * tests/uniwidth/test-uc_width.c: Likewise.
16850         * config/srclist-update: Likewise.
16851         (fixlicense): Update to GPLv3+.
16852
16853         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16854         * tests/test-tsearch.c: Change copyright notice.
16855
16856         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16857         * lib/c-strcaseeq.h: Change copyright notice.
16858         * lib/streq.h: Likewise.
16859         * lib/uniconv.h: Likewise.
16860         * lib/uniconv/u-conv-from-enc.h: Likewise.
16861         * lib/uniconv/u-conv-to-enc.h: Likewise.
16862         * lib/uniconv/u-strconv-from-enc.h: Likewise.
16863         * lib/uniconv/u-strconv-to-enc.h: Likewise.
16864         * lib/uniconv/u16-conv-from-enc.c: Likewise.
16865         * lib/uniconv/u16-conv-to-enc.c: Likewise.
16866         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16867         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16868         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16869         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16870         * lib/uniconv/u32-conv-from-enc.c: Likewise.
16871         * lib/uniconv/u32-conv-to-enc.c: Likewise.
16872         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16873         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16874         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16875         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16876         * lib/uniconv/u8-conv-from-enc.c: Likewise.
16877         * lib/uniconv/u8-conv-to-enc.c: Likewise.
16878         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16879         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16880         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16881         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16882         * lib/uniname.h: Likewise.
16883         * lib/uniname/uniname.c: Likewise.
16884         * lib/unistdio.h: Likewise.
16885         * lib/unistdio/u-asnprintf.h: Likewise.
16886         * lib/unistdio/u-asprintf.h: Likewise.
16887         * lib/unistdio/u-printf-args.c: Likewise.
16888         * lib/unistdio/u-printf-args.h: Likewise.
16889         * lib/unistdio/u-printf-parse.h: Likewise.
16890         * lib/unistdio/u-snprintf.h: Likewise.
16891         * lib/unistdio/u-sprintf.h: Likewise.
16892         * lib/unistdio/u-vasprintf.h: Likewise.
16893         * lib/unistdio/u-vsnprintf.h: Likewise.
16894         * lib/unistdio/u-vsprintf.h: Likewise.
16895         * lib/unistdio/u16-asnprintf.c: Likewise.
16896         * lib/unistdio/u16-asprintf.c: Likewise.
16897         * lib/unistdio/u16-printf-parse.c: Likewise.
16898         * lib/unistdio/u16-snprintf.c: Likewise.
16899         * lib/unistdio/u16-sprintf.c: Likewise.
16900         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16901         * lib/unistdio/u16-u16-asprintf.c: Likewise.
16902         * lib/unistdio/u16-u16-snprintf.c: Likewise.
16903         * lib/unistdio/u16-u16-sprintf.c: Likewise.
16904         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16905         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16906         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16907         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16908         * lib/unistdio/u16-vasnprintf.c: Likewise.
16909         * lib/unistdio/u16-vasprintf.c: Likewise.
16910         * lib/unistdio/u16-vsnprintf.c: Likewise.
16911         * lib/unistdio/u16-vsprintf.c: Likewise.
16912         * lib/unistdio/u32-asnprintf.c: Likewise.
16913         * lib/unistdio/u32-asprintf.c: Likewise.
16914         * lib/unistdio/u32-printf-parse.c: Likewise.
16915         * lib/unistdio/u32-snprintf.c: Likewise.
16916         * lib/unistdio/u32-sprintf.c: Likewise.
16917         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16918         * lib/unistdio/u32-u32-asprintf.c: Likewise.
16919         * lib/unistdio/u32-u32-snprintf.c: Likewise.
16920         * lib/unistdio/u32-u32-sprintf.c: Likewise.
16921         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16922         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16923         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16924         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16925         * lib/unistdio/u32-vasnprintf.c: Likewise.
16926         * lib/unistdio/u32-vasprintf.c: Likewise.
16927         * lib/unistdio/u32-vsnprintf.c: Likewise.
16928         * lib/unistdio/u32-vsprintf.c: Likewise.
16929         * lib/unistdio/u8-asnprintf.c: Likewise.
16930         * lib/unistdio/u8-asprintf.c: Likewise.
16931         * lib/unistdio/u8-printf-parse.c: Likewise.
16932         * lib/unistdio/u8-snprintf.c: Likewise.
16933         * lib/unistdio/u8-sprintf.c: Likewise.
16934         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16935         * lib/unistdio/u8-u8-asprintf.c: Likewise.
16936         * lib/unistdio/u8-u8-snprintf.c: Likewise.
16937         * lib/unistdio/u8-u8-sprintf.c: Likewise.
16938         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16939         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16940         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16941         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16942         * lib/unistdio/u8-vasnprintf.c: Likewise.
16943         * lib/unistdio/u8-vasprintf.c: Likewise.
16944         * lib/unistdio/u8-vsnprintf.c: Likewise.
16945         * lib/unistdio/u8-vsprintf.c: Likewise.
16946         * lib/unistdio/ulc-asnprintf.c: Likewise.
16947         * lib/unistdio/ulc-asprintf.c: Likewise.
16948         * lib/unistdio/ulc-printf-parse.c: Likewise.
16949         * lib/unistdio/ulc-snprintf.c: Likewise.
16950         * lib/unistdio/ulc-sprintf.c: Likewise.
16951         * lib/unistdio/ulc-vasnprintf.c: Likewise.
16952         * lib/unistdio/ulc-vasprintf.c: Likewise.
16953         * lib/unistdio/ulc-vsnprintf.c: Likewise.
16954         * lib/unistdio/ulc-vsprintf.c: Likewise.
16955         * lib/unistr.h: Likewise.
16956         * lib/unistr/u-cpy-alloc.h: Likewise.
16957         * lib/unistr/u-cpy.h: Likewise.
16958         * lib/unistr/u-endswith.h: Likewise.
16959         * lib/unistr/u-move.h: Likewise.
16960         * lib/unistr/u-set.h: Likewise.
16961         * lib/unistr/u-startswith.h: Likewise.
16962         * lib/unistr/u-stpcpy.h: Likewise.
16963         * lib/unistr/u-stpncpy.h: Likewise.
16964         * lib/unistr/u-strcat.h: Likewise.
16965         * lib/unistr/u-strcpy.h: Likewise.
16966         * lib/unistr/u-strcspn.h: Likewise.
16967         * lib/unistr/u-strdup.h: Likewise.
16968         * lib/unistr/u-strlen.h: Likewise.
16969         * lib/unistr/u-strncat.h: Likewise.
16970         * lib/unistr/u-strncpy.h: Likewise.
16971         * lib/unistr/u-strnlen.h: Likewise.
16972         * lib/unistr/u-strpbrk.h: Likewise.
16973         * lib/unistr/u-strspn.h: Likewise.
16974         * lib/unistr/u-strstr.h: Likewise.
16975         * lib/unistr/u-strtok.h: Likewise.
16976         * lib/unistr/u16-check.c: Likewise.
16977         * lib/unistr/u16-chr.c: Likewise.
16978         * lib/unistr/u16-cmp.c: Likewise.
16979         * lib/unistr/u16-cpy-alloc.c: Likewise.
16980         * lib/unistr/u16-cpy.c: Likewise.
16981         * lib/unistr/u16-endswith.c: Likewise.
16982         * lib/unistr/u16-mblen.c: Likewise.
16983         * lib/unistr/u16-mbsnlen.c: Likewise.
16984         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16985         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16986         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16987         * lib/unistr/u16-mbtouc.c: Likewise.
16988         * lib/unistr/u16-mbtoucr.c: Likewise.
16989         * lib/unistr/u16-move.c: Likewise.
16990         * lib/unistr/u16-next.c: Likewise.
16991         * lib/unistr/u16-prev.c: Likewise.
16992         * lib/unistr/u16-set.c: Likewise.
16993         * lib/unistr/u16-startswith.c: Likewise.
16994         * lib/unistr/u16-stpcpy.c: Likewise.
16995         * lib/unistr/u16-stpncpy.c: Likewise.
16996         * lib/unistr/u16-strcat.c: Likewise.
16997         * lib/unistr/u16-strchr.c: Likewise.
16998         * lib/unistr/u16-strcmp.c: Likewise.
16999         * lib/unistr/u16-strcpy.c: Likewise.
17000         * lib/unistr/u16-strcspn.c: Likewise.
17001         * lib/unistr/u16-strdup.c: Likewise.
17002         * lib/unistr/u16-strlen.c: Likewise.
17003         * lib/unistr/u16-strmblen.c: Likewise.
17004         * lib/unistr/u16-strmbtouc.c: Likewise.
17005         * lib/unistr/u16-strncat.c: Likewise.
17006         * lib/unistr/u16-strncmp.c: Likewise.
17007         * lib/unistr/u16-strncpy.c: Likewise.
17008         * lib/unistr/u16-strnlen.c: Likewise.
17009         * lib/unistr/u16-strpbrk.c: Likewise.
17010         * lib/unistr/u16-strrchr.c: Likewise.
17011         * lib/unistr/u16-strspn.c: Likewise.
17012         * lib/unistr/u16-strstr.c: Likewise.
17013         * lib/unistr/u16-strtok.c: Likewise.
17014         * lib/unistr/u16-to-u32.c: Likewise.
17015         * lib/unistr/u16-to-u8.c: Likewise.
17016         * lib/unistr/u16-uctomb-aux.c: Likewise.
17017         * lib/unistr/u16-uctomb.c: Likewise.
17018         * lib/unistr/u32-check.c: Likewise.
17019         * lib/unistr/u32-chr.c: Likewise.
17020         * lib/unistr/u32-cmp.c: Likewise.
17021         * lib/unistr/u32-cpy-alloc.c: Likewise.
17022         * lib/unistr/u32-cpy.c: Likewise.
17023         * lib/unistr/u32-endswith.c: Likewise.
17024         * lib/unistr/u32-mblen.c: Likewise.
17025         * lib/unistr/u32-mbsnlen.c: Likewise.
17026         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17027         * lib/unistr/u32-mbtouc.c: Likewise.
17028         * lib/unistr/u32-mbtoucr.c: Likewise.
17029         * lib/unistr/u32-move.c: Likewise.
17030         * lib/unistr/u32-next.c: Likewise.
17031         * lib/unistr/u32-prev.c: Likewise.
17032         * lib/unistr/u32-set.c: Likewise.
17033         * lib/unistr/u32-startswith.c: Likewise.
17034         * lib/unistr/u32-stpcpy.c: Likewise.
17035         * lib/unistr/u32-stpncpy.c: Likewise.
17036         * lib/unistr/u32-strcat.c: Likewise.
17037         * lib/unistr/u32-strchr.c: Likewise.
17038         * lib/unistr/u32-strcmp.c: Likewise.
17039         * lib/unistr/u32-strcpy.c: Likewise.
17040         * lib/unistr/u32-strcspn.c: Likewise.
17041         * lib/unistr/u32-strdup.c: Likewise.
17042         * lib/unistr/u32-strlen.c: Likewise.
17043         * lib/unistr/u32-strmblen.c: Likewise.
17044         * lib/unistr/u32-strmbtouc.c: Likewise.
17045         * lib/unistr/u32-strncat.c: Likewise.
17046         * lib/unistr/u32-strncmp.c: Likewise.
17047         * lib/unistr/u32-strncpy.c: Likewise.
17048         * lib/unistr/u32-strnlen.c: Likewise.
17049         * lib/unistr/u32-strpbrk.c: Likewise.
17050         * lib/unistr/u32-strrchr.c: Likewise.
17051         * lib/unistr/u32-strspn.c: Likewise.
17052         * lib/unistr/u32-strstr.c: Likewise.
17053         * lib/unistr/u32-strtok.c: Likewise.
17054         * lib/unistr/u32-to-u16.c: Likewise.
17055         * lib/unistr/u32-to-u8.c: Likewise.
17056         * lib/unistr/u32-uctomb.c: Likewise.
17057         * lib/unistr/u8-check.c: Likewise.
17058         * lib/unistr/u8-chr.c: Likewise.
17059         * lib/unistr/u8-cmp.c: Likewise.
17060         * lib/unistr/u8-cpy-alloc.c: Likewise.
17061         * lib/unistr/u8-cpy.c: Likewise.
17062         * lib/unistr/u8-endswith.c: Likewise.
17063         * lib/unistr/u8-mblen.c: Likewise.
17064         * lib/unistr/u8-mbsnlen.c: Likewise.
17065         * lib/unistr/u8-mbtouc-aux.c: Likewise.
17066         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17067         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17068         * lib/unistr/u8-mbtouc.c: Likewise.
17069         * lib/unistr/u8-mbtoucr.c: Likewise.
17070         * lib/unistr/u8-move.c: Likewise.
17071         * lib/unistr/u8-next.c: Likewise.
17072         * lib/unistr/u8-prev.c: Likewise.
17073         * lib/unistr/u8-set.c: Likewise.
17074         * lib/unistr/u8-startswith.c: Likewise.
17075         * lib/unistr/u8-stpcpy.c: Likewise.
17076         * lib/unistr/u8-stpncpy.c: Likewise.
17077         * lib/unistr/u8-strcat.c: Likewise.
17078         * lib/unistr/u8-strchr.c: Likewise.
17079         * lib/unistr/u8-strcmp.c: Likewise.
17080         * lib/unistr/u8-strcpy.c: Likewise.
17081         * lib/unistr/u8-strcspn.c: Likewise.
17082         * lib/unistr/u8-strdup.c: Likewise.
17083         * lib/unistr/u8-strlen.c: Likewise.
17084         * lib/unistr/u8-strmblen.c: Likewise.
17085         * lib/unistr/u8-strmbtouc.c: Likewise.
17086         * lib/unistr/u8-strncat.c: Likewise.
17087         * lib/unistr/u8-strncmp.c: Likewise.
17088         * lib/unistr/u8-strncpy.c: Likewise.
17089         * lib/unistr/u8-strnlen.c: Likewise.
17090         * lib/unistr/u8-strpbrk.c: Likewise.
17091         * lib/unistr/u8-strrchr.c: Likewise.
17092         * lib/unistr/u8-strspn.c: Likewise.
17093         * lib/unistr/u8-strstr.c: Likewise.
17094         * lib/unistr/u8-strtok.c: Likewise.
17095         * lib/unistr/u8-to-u16.c: Likewise.
17096         * lib/unistr/u8-to-u32.c: Likewise.
17097         * lib/unistr/u8-uctomb-aux.c: Likewise.
17098         * lib/unistr/u8-uctomb.c: Likewise.
17099         * lib/unitypes.h: Likewise.
17100         * lib/uniwidth.h: Likewise.
17101         * lib/uniwidth/cjk.h: Likewise.
17102         * lib/uniwidth/u16-strwidth.c: Likewise.
17103         * lib/uniwidth/u16-width.c: Likewise.
17104         * lib/uniwidth/u32-strwidth.c: Likewise.
17105         * lib/uniwidth/u32-width.c: Likewise.
17106         * lib/uniwidth/u8-strwidth.c: Likewise.
17107         * lib/uniwidth/u8-width.c: Likewise.
17108         * lib/uniwidth/width.c: Likewise.
17109
17110 2007-10-07  Bruno Haible  <bruno@clisp.org>
17111
17112         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
17113         The file is still under LGPL (see modules/inttypes).
17114
17115 2007-10-06  Bruno Haible  <bruno@clisp.org>
17116
17117         * modules/trunc (Dependencies): Add 'extensions'.
17118         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
17119         Reported by Ben Pfaff <blp@gnu.org>.
17120
17121 2007-10-06  Bruno Haible  <bruno@clisp.org>
17122
17123         * modules/freopen-tests: New file.
17124         * tests/test-freopen.c: New file.
17125
17126         * modules/fopen-tests: New file.
17127         * tests/test-fopen.c: New file.
17128
17129         * modules/fopen: New file.
17130         * lib/fopen.c: New file.
17131         * m4/fopen.m4: New file.
17132         * modules/freopen: New file.
17133         * lib/freopen.c: New file.
17134         * m4/freopen.m4: New file.
17135         * lib/stdio.in.h (fopen, freopen): New declarations.
17136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17137         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17138         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
17139         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17140         * doc/functions/fopen.texi: Mention the 'fopen' module.
17141         * doc/functions/freopen.texi: Mention the 'freopen' module.
17142
17143 2007-10-06  Bruno Haible  <bruno@clisp.org>
17144
17145         * modules/open-tests: New file.
17146         * tests/test-open.c: New file.
17147
17148         * modules/open: New file.
17149         * lib/open.c: New file.
17150         * m4/open.m4: New file.
17151         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17152         lib/open.c does.
17153         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17154         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17155         macros.
17156         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17157         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17158         REPLACE_OPEN.
17159         * doc/functions/open.texi: Mention the 'open' module.
17160
17161 2007-10-04  Bruno Haible  <bruno@clisp.org>
17162
17163         * modules/ceill-tests: New file.
17164         * tests/test-ceill.c: New file.
17165
17166         * modules/ceill: New file.
17167         * lib/ceill.c: Replace entire file.
17168         * m4/ceill.m4: New file.
17169         * lib/math.in.h (ceill): Replace declaration.
17170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17171         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17172         * doc/functions/ceill.texi: Mention the 'ceill' module.
17173         * modules/mathl (Files): Remove lib/ceill.c.
17174         (Depends-on): Add ceill.
17175
17176 2007-10-04  Bruno Haible  <bruno@clisp.org>
17177
17178         * modules/ceilf-tests: New file.
17179         * tests/test-ceilf.c: New file.
17180
17181         * modules/ceilf: New file.
17182         * lib/ceil.c: New file.
17183         * lib/ceilf.c: New file.
17184         * m4/ceilf.m4: New file.
17185         * lib/math.in.h (ceilf): New declaration.
17186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17187         HAVE_DECL_CEILF.
17188         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17189         HAVE_DECL_CEILF.
17190         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17191
17192 2007-10-04  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/floorl-tests: New file.
17195         * tests/test-floorl.c: New file.
17196
17197         * modules/floorl: New file.
17198         * lib/floorl.c: Replace entire file.
17199         * m4/floorl.m4: New file.
17200         * lib/math.in.h (floorl): Replace declaration.
17201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17202         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17203         * doc/functions/floorl.texi: Mention the 'floorl' module.
17204         * modules/mathl (Files): Remove lib/floorl.c.
17205         (Depends-on): Add floorl.
17206
17207 2007-10-04  Bruno Haible  <bruno@clisp.org>
17208
17209         * modules/floorf-tests: New file.
17210         * tests/test-floorf.c: New file.
17211
17212         * modules/floorf: New file.
17213         * lib/floor.c: New file.
17214         * lib/floorf.c: New file.
17215         * m4/floorf.m4: New file.
17216         * lib/math.in.h (floorf): New declaration.
17217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17218         HAVE_DECL_FLOORF.
17219         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17220         HAVE_DECL_FLOORF.
17221         * doc/functions/floorf.texi: Mention the 'floorf' module.
17222
17223 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17224             Bruno Haible  <bruno@clisp.org>
17225
17226         Advertise for the Git server instead of the CVS server.
17227         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17228         repository instead of the CVS one.
17229         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17230         about all VCS systems generically.
17231         * doc/gnulib.texi (Introduction): Capitalize `Git'.
17232
17233 2007-10-04  Bruno Haible  <bruno@clisp.org>
17234
17235         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17236         means.
17237         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17238
17239 2007-10-04  Bruno Haible  <bruno@clisp.org>
17240
17241         * modules/truncl-tests: New file.
17242         * tests/test-truncl.c: New file.
17243
17244         * modules/truncl: New file.
17245         * lib/truncl.c: New file.
17246         * m4/truncl.m4: New file.
17247         * lib/math.in.h (truncl): New declaration.
17248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17249         HAVE_DECL_TRUNCL.
17250         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17251         HAVE_DECL_TRUNCL.
17252         * doc/functions/truncl.texi: Mention the 'truncl' module.
17253
17254 2007-10-04  Bruno Haible  <bruno@clisp.org>
17255
17256         * modules/truncf-tests: New file.
17257         * tests/test-truncf.c: New file.
17258
17259         * modules/truncf: New file.
17260         * lib/trunc.c: Make paramerizable through USE_* macros.
17261         * lib/truncf.c: New file.
17262         * m4/truncf.m4: New file.
17263         * lib/math.in.h (truncf): New declaration.
17264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17265         HAVE_DECL_TRUNCF.
17266         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17267         HAVE_DECL_TRUNCF.
17268         * doc/functions/truncf.texi: Mention the 'truncf' module.
17269
17270 2007-10-03  Bruno Haible  <bruno@clisp.org>
17271
17272         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17273         augmentation also for tests modules.
17274         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17275         * modules/atexit-tests (Makefile.am): Likewise.
17276         * modules/binary-io-tests (Makefile.am): Likewise.
17277         * modules/c-strcase-tests (Makefile.am): Likewise.
17278         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17279         * modules/canonicalize-tests (Makefile.am): Likewise.
17280         * modules/closein-tests (Makefile.am): Likewise.
17281         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17282         * modules/freadahead-tests (Makefile.am): Likewise.
17283         * modules/fseek-tests (Makefile.am): Likewise.
17284         * modules/fseeko-tests (Makefile.am): Likewise.
17285         * modules/ftell-tests (Makefile.am): Likewise.
17286         * modules/ftello-tests (Makefile.am): Likewise.
17287         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17288         * modules/isnanl-tests (Makefile.am): Likewise.
17289         * modules/lseek-tests (Makefile.am): Likewise.
17290         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17291         * modules/mbscasestr-tests (Makefile.am): Likewise.
17292         * modules/mbschr-tests (Makefile.am): Likewise.
17293         * modules/mbscspn-tests (Makefile.am): Likewise.
17294         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17295         * modules/mbspbrk-tests (Makefile.am): Likewise.
17296         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17297         * modules/mbsrchr-tests (Makefile.am): Likewise.
17298         * modules/mbsspn-tests (Makefile.am): Likewise.
17299         * modules/mbsstr-tests (Makefile.am): Likewise.
17300         * modules/printf-posix-tests (Makefile.am): Likewise.
17301         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17302         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17303         * modules/tsearch-tests (Makefile.am): Likewise.
17304         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17305         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17306         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17307         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17308         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17309         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17310         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17311         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17312         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17313         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17314         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17315         * modules/xstrtol-tests (Makefile.am): Likewise.
17316         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17317         * modules/yesno-tests (Makefile.am): Likewise.
17318
17319 2007-10-03  Bruno Haible  <bruno@clisp.org>
17320
17321         * modules/trunc-tests: New file.
17322         * tests/test-trunc.c: New file.
17323
17324         * modules/trunc: New file.
17325         * lib/trunc.c: New file.
17326         * m4/trunc.m4: New file.
17327         * lib/math.in.h (trunc): New declaration.
17328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17329         HAVE_DECL_TRUNC.
17330         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17331         HAVE_DECL_TRUNC.
17332         * doc/functions/trunc.texi: Mention the 'trunc' module.
17333
17334 2007-10-03  Bruno Haible  <bruno@clisp.org>
17335
17336         * tests/test-fpending.c: New file, mostly copied
17337         from coreutils/lib/t-fpending.c.
17338         * modules/fpending-tests: New file.
17339
17340 2007-10-03  Bruno Haible  <bruno@clisp.org>
17341
17342         Port the stdio extensions to QNX (untested).
17343         * lib/fseterr.c (fseterr): Add support for QNX.
17344         * lib/fbufmode.c (fbufmode): Likewise.
17345         * lib/freadable.c (freadable): Likewise.
17346         * lib/fwritable.c (fwritable): Likewise.
17347         * lib/freading.c (freading): Likewise.
17348         * lib/fwriting.c (fwriting): Likewise.
17349         * lib/freadahead.c (freadahed): Likewise.
17350         * lib/fpurge.c (fpurge): Likewise.
17351         * lib/fseeko.c (rpl_fseeko): Likewise.
17352
17353 2007-10-03  Bruno Haible  <bruno@clisp.org>
17354             Jim Meyering  <jim@meyering.net>
17355             Eric Blake  <ebb9@byu.net>
17356
17357         * doc/relocatable.texi: Use @command instead of @program.
17358
17359 2007-10-02  Jim Meyering  <jim@meyering.net>
17360
17361         Perform one more "_.h" -> ".in.h" substitution.
17362         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17363         instead of unistd_.h here, too.
17364
17365 2007-10-01  Bruno Haible  <bruno@clisp.org>
17366
17367         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17368         Needed for the alloca-opt module.
17369
17370 2007-09-30  Bruno Haible  <bruno@clisp.org>
17371
17372         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17373         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17374         alloca_.h.
17375         * lib/argz.in.h: Renamed from lib/argz_.h.
17376         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17377         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17378         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17379         byteswap_.h.
17380         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17381         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17382         dirent_.h.
17383         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17384         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17385         fcntl_.h.
17386         * lib/float.in.h: Renamed from lib/float_.h.
17387         * modules/float (Files, Makefile.am): Use float.in.h instead of
17388         float_.h.
17389         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17390         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17391         fnmatch_.h.
17392         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17393         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17394         getopt_.h.
17395         * lib/glob.in.h: Renamed from lib/glob_.h.
17396         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17397         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17398         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17399         iconv_.h.
17400         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17401         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17402         inttypes_.h.
17403         * lib/locale.in.h: Renamed from lib/locale_.h.
17404         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17405         locale_.h.
17406         * lib/math.in.h: Renamed from lib/math_.h.
17407         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17408         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17409         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17410         of netinet_in_.h. Add dependency.
17411         * lib/poll.in.h: Renamed from lib/poll_.h.
17412         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17413         * lib/search.in.h: Renamed from lib/search_.h.
17414         * modules/search (Files, Makefile.am): Use search.in.h instead of
17415         search_.h.
17416         * lib/signal.in.h: Renamed from lib/signal_.h.
17417         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17418         _signal.h.
17419         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17420         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17421         stdbool_.h.
17422         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17423         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17424         stdint_.h.
17425         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17426         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17427         stdio_.h.
17428         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17429         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17430         stdlib_.h.
17431         * lib/string.in.h: Renamed from lib/string_.h.
17432         * modules/string (Files, Makefile.am): Use string.in.h instead of
17433         string_.h.
17434         * doc/gnulib-tool.texi (Initial import): Update.
17435         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17436         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17437         of sys_select_.h. Add dependency.
17438         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17439         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17440         of sys_socket_.h.
17441         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17442         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17443         sys_stat_.h.
17444         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17445         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17446         sys_time_.h.
17447         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17448         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17449         sysexits_.h.
17450         * lib/time.in.h: Renamed from lib/time_.h.
17451         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17452         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17453         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17454         unistd_.h.
17455         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17456         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17457         wchar_.h.
17458         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17459         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17460         wctype_.h.
17461         * build-aux/bootstrap (slurp): Update.
17462         * lib/.cppi-disable: Update.
17463
17464 2007-09-30  Bruno Haible  <bruno@clisp.org>
17465
17466         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17467         Needed on BeOS.
17468
17469 2007-09-30  Bruno Haible  <bruno@clisp.org>
17470
17471         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17472
17473 2007-09-29  Bruno Haible  <bruno@clisp.org>
17474
17475         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17476
17477 2007-09-29  Bruno Haible  <bruno@clisp.org>
17478
17479         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17480         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17481         * build-aux/install-reloc: Compile also areadlink.c.
17482         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17483
17484 2007-09-29  Bruno Haible  <bruno@clisp.org>
17485
17486         * gnulib-tool (func_emit_initmacro_done): Indentation.
17487
17488 2007-09-29  Bruno Haible  <bruno@clisp.org>
17489
17490         * README: Add CVS checkout update instructions.
17491         Info from Bob Proulx <bob@proulx.com>.
17492
17493 2007-09-28  Eric Blake  <ebb9@byu.net>
17494
17495         Provide move-if-change.
17496         * build-aux/move-if-change: New file, based on best practice
17497         rather than any canonical upstream location.
17498
17499 2007-09-28  Jim Meyering  <jim@meyering.net>
17500
17501         Fix canonicalize loop-detection corner case.
17502         Do not attempt to stat the symlink values stored via seen_triple.
17503         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17504         on linux-2.6.18, (but not 2.6.22).
17505         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17506         triple_compare.  The former compares dev,ino,filename, while the latter
17507         would actually stat dirname(filename) when dev and ino were equal.
17508         * lib/hash-triple.c: Install <string.h>.
17509         (STREQ): Define.
17510         (triple_compare_ino_str): New function.
17511         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17512
17513 2007-09-28  Eric Blake  <ebb9@byu.net>
17514
17515         Enforce that AC_REPLACE_FUNCS files exist.
17516         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17517         override check for typos.
17518
17519         Fix test-closein on Solaris 10.
17520         * tests/test-closein.c (main): Don't assume stdin can be inherited
17521         closed on all systems.
17522         * tests/test-closein.sh: Likewise.
17523         Reported by Piotr Tarnowski.
17524
17525 2007-09-28  Jim Meyering  <jim@meyering.net>
17526
17527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17528
17529 2007-09-27  Jim Meyering  <jim@meyering.net>
17530
17531         canonicalize: Avoid a false-positive cycle failure.
17532         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17533         Sort.  Remove cycle-check.
17534         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17535         not cycle-check.h.
17536         (seen_triple): New function.
17537         (canonicalize_filename_mode): Use it instead of cycle-check.
17538         * tests/test-canonicalize.c: Add a test for this bug.
17539         * tests/test-canonicalize.sh: Set up and run the test.
17540
17541         New module, file-set, from coreutils.
17542         * modules/file-set: Define it.
17543         * lib/file-set.c, lib/file-set.h: Implement.
17544
17545         New module, hash-triple, from coreutils.
17546         * modules/hash-triple: Define it.
17547         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17548
17549 2007-09-25  Eric Blake  <ebb9@byu.net>
17550
17551         Fix strerror on Interix.
17552         * lib/string_.h (strerror): Declare replacement.
17553         * doc/functions/strerror.texi (strerror): Document the Interix
17554         shortcoming.
17555         * modules/string (Makefile.am): Support new hooks.
17556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17557         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17558         gl_FUNC_STRERROR_SEPARATE.
17559         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17560         * lib/strerror.c (rpl_strerror): Provide replacement.
17561         * modules/strerror (Depends-on): Add string.
17562         (configure.ac): Detect use of module.
17563         * tests/test-strerror.c: New file.
17564         * modules/strerror-tests: New test module.
17565         * modules/argp (Depends-on): Add strerror.
17566         * modules/error (Depends-on): Likewise.
17567         Reported by Martin Koeppe.
17568
17569 2007-09-24  Bruno Haible  <bruno@clisp.org>
17570
17571         * README: Update git instructions.
17572
17573 2007-09-24  Eric Blake  <ebb9@byu.net>
17574
17575         Revert fpending breakage from 2007-09-08.
17576         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17577         __fpending.c.
17578
17579 2007-09-24  Jim Meyering  <jim@meyering.net>
17580
17581         filenamecat.c: Add a test.
17582         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17583         showing how the function works when DIR is the empty string.
17584
17585 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17586
17587         * tests/test-canonicalize.sh: Turn on executable bit.
17588
17589 2007-09-19  Eric Blake  <ebb9@byu.net>
17590
17591         * README: Update CVS instructions.
17592
17593 2007-09-18  Bruno Haible  <bruno@clisp.org>
17594
17595         * modules/areadlink: New file.
17596         * lib/areadlink.h (areadlink): New declaration.
17597         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17598
17599 2007-09-17  Jim Meyering  <jim@meyering.net>
17600
17601         * lib/savewd.c (ESTALE) [!defined]: Define.
17602         Reported to be required on Interix by Martin Koeppe.
17603
17604 2007-09-17  Bruno Haible  <bruno@clisp.org>
17605
17606         * gnulib-tool (func_version): Use $version.
17607
17608 2007-09-16  Bruno Haible  <bruno@clisp.org>
17609
17610         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17611         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17612         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17613         Reported by Greg Schafer <gschafer@zip.com.au>.
17614
17615 2007-09-15  Bruno Haible  <bruno@clisp.org>
17616
17617         * gnulib-tool (sed): Try a little harder to make bash understand the
17618         alias.
17619         Reported by Bruce Korb <bruce.korb@gmail.com>.
17620
17621 2007-09-13  Eric Blake  <ebb9@byu.net>
17622
17623         * ChangeLog: Remove conflict markers.
17624
17625 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17626
17627         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17628         Reported by Bruno Haible <bruno@clisp.org>.
17629
17630 2007-09-12  Bruno Haible  <bruno@clisp.org>
17631
17632         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17633         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17634         is not defined.
17635
17636 2007-09-12  Eric Blake  <ebb9@byu.net>
17637
17638         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17639         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17640         Autoconf definition.
17641         * modules/euidaccess (Depends-on): Add extensions, for
17642         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17643         * modules/fnmatch (Depends-on): Likewise.
17644         * modules/getaddrinfo (Depends-on): Likewise.
17645         * modules/getdelim (Depends-on): Likewise.
17646         * modules/getline (Depends-on): Likewise.
17647         * modules/getsubopt (Depends-on): Likewise.
17648         * modules/gettext (Depends-on): Likewise.
17649         * modules/group-member (Depends-on): Likewise.
17650         * modules/mbchar (Depends-on): Likewise.
17651         * modules/memmem (Depends-on): Likewise.
17652         * modules/mempcpy (Depends-on): Likewise.
17653         * modules/memrchr (Depends-on): Likewise.
17654         * modules/pagealign_alloc (Depends-on): Likewise.
17655         * modules/readutmp (Depends-on): Likewise.
17656         * modules/stpcpy (Depends-on): Likewise.
17657         * modules/stpncpy (Depends-on): Likewise.
17658         * modules/strchrnul (Depends-on): Likewise.
17659         * modules/strndup (Depends-on): Likewise.
17660         * modules/strsep (Depends-on): Likewise.
17661         * modules/strverscmp (Depends-on): Likewise.
17662         * modules/vasprintf (Depends-on): Likewise.
17663         * modules/wcwidth (Depends-on): Likewise.
17664         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17665         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17666         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17667         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17670         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17672         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17673         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17674         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17675         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17676         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17677         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17678         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17679         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17680         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17681         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17683         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17684         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17685         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17686         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17687         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17688         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17690         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17691         so that lock.m4 can be used in gettext without extensions module.
17692
17693 2007-09-11  Bruno Haible  <bruno@clisp.org>
17694
17695         * m4/isc-posix.m4: Remove file.
17696         Suggested by Eric Blake.
17697
17698 2007-09-11  Eric Blake  <ebb9@byu.net>
17699
17700         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17701
17702 2007-09-10  Bruno Haible  <bruno@clisp.org>
17703
17704         * posix-modules: Fix typo in error message.
17705         Reported by Matt <mkraai@beckman.com>.
17706
17707 2007-09-09  Bruno Haible  <bruno@clisp.org>
17708
17709         * doc/functions/getdelim.texi: Update list of platforms lacking the
17710         function.
17711         * doc/functions/getline.texi: Likewise.
17712
17713 2007-09-09  Jim Meyering  <jim@meyering.net>
17714
17715         * lib/hash.c (hash_initialize): Detect calloc failure.
17716         Reported by Bruno Haible.
17717
17718 2007-09-09  Bruno Haible  <bruno@clisp.org>
17719
17720         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17721         malloc or realloc fails.
17722
17723 2007-09-09  Bruno Haible  <bruno@clisp.org>
17724
17725         * modules/getcwd (Depends-on): Add malloc-posix.
17726         * modules/glob (Depends-on): Likewise.
17727         * modules/putenv (Depends-on): Likewise.
17728         * modules/strdup (Depends-on): Likewise.
17729         * modules/getdelim (Depends-on): Add realloc-posix.
17730         * modules/read-file (Depends-on): Likewise.
17731
17732 2007-09-09  Bruno Haible  <bruno@clisp.org>
17733
17734         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17735         (gl_FUNC_MALLOC_POSIX): Require it.
17736         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17737         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17738         * modules/realloc (Files): Add m4/malloc.m4.
17739         * modules/calloc (Files): Likewise.
17740
17741 2007-09-09  Bruno Haible  <bruno@clisp.org>
17742
17743         * modules/malloc-posix: New file.
17744         * modules/malloc (Depends-on): Add malloc-posix.
17745         * lib/malloc.c: Include errno.h.
17746         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17747         and a POSIX-compatible malloc into a single function. Set ENOMEM
17748         when returning NULL.
17749         * m4/malloc.m4: New file.
17750         * doc/functions/malloc.texi: Mention the malloc-posix module.
17751         * lib/stdlib_.h (malloc): New declaration.
17752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17753         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17754         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17755         and HAVE_MALLOC_POSIX.
17756
17757 2007-09-09  Bruno Haible  <bruno@clisp.org>
17758
17759         * modules/realloc-posix: New file.
17760         * modules/realloc (Depends-on): Add realloc-posix.
17761         * lib/realloc.c: Include errno.h.
17762         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17763         and a POSIX-compatible realloc into a single function. Set ENOMEM
17764         when returning NULL.
17765         * m4/realloc.m4: New file.
17766         * doc/functions/realloc.texi: Mention the realloc-posix module.
17767         * lib/stdlib_.h (realloc): New declaration.
17768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17769         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17770         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17771         and HAVE_REALLOC_POSIX.
17772
17773 2007-09-09  Bruno Haible  <bruno@clisp.org>
17774
17775         * modules/calloc-posix: New file.
17776         * modules/calloc (Depends-on): Add calloc-posix.
17777         * lib/calloc.c: Include errno.h.
17778         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17779         and a POSIX-compatible calloc into a single function. Set ENOMEM
17780         when returning NULL.
17781         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17782         * doc/functions/calloc.texi: Mention the calloc-posix module.
17783         * lib/stdlib_.h (calloc): New declaration.
17784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17785         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17786         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17787         and HAVE_CALLOC_POSIX.
17788
17789 2007-09-09  Bruno Haible  <bruno@clisp.org>
17790
17791         Allow for modules to show an arbitrary notice.
17792         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17793         * gnulib-tool: New option --extract-notice.
17794         (func_usage): Document it.
17795         (sed_extract_prog): Update.
17796         (func_get_notice): New function.
17797         (func_modules_notice): New function.
17798         (func_import, func_create_testdir): Invoke it.
17799         Suggested by Jim Meyering.
17800
17801 2007-09-09  Bruno Haible  <bruno@clisp.org>
17802
17803         * gnulib-tool: New options --verbose, --quiet.
17804         (func_usage): Document them.
17805         (verbose): New variable.
17806         (func_execute_command): New function.
17807         (func_import): Don't show the module list and the file list if
17808         $verbose < 0.
17809         (func_create_testdir): Likewise. Use func_execute_command.
17810         (func_create_megatestdir): Use func_execute_command.
17811
17812 2007-09-08  Bruno Haible  <bruno@clisp.org>
17813
17814         * gnulib-tool (func_import): Prefer rsync over wget when available,
17815         for fetching the PO files.
17816
17817 2007-09-08  Bruno Haible  <bruno@clisp.org>
17818
17819         * posix-modules: New file. Portions copied from gnulib-tool.
17820         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17821
17822 2007-09-08  Jim Meyering  <jim@meyering.net>
17823
17824         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17825         * lib/fpending.h: Rename from __fpending.h.
17826         * lib/fpending.c: Rename from __fpending.c.
17827         Include "fpending.h", not "__fpending.h".
17828         * lib/__fpending.h, lib/__fpending.c: Remove files.
17829         * modules/fpending (Files): Reflect new file names.
17830         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17831
17832 2007-09-08  Bruno Haible  <bruno@clisp.org>
17833
17834         * m4/inttypes-h.m4: Remove stub file.
17835
17836 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17837
17838         * doc/headers/stdint.texi: Discuss #include_next issue.
17839
17840 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17841
17842         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17843
17844 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17845
17846         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17847         in variable name.
17848
17849 2007-09-03  Jim Meyering  <jim@meyering.net>
17850
17851         New module: git-version-gen.
17852         * modules/git-version-gen: New file.
17853
17854         Import changes from coreutils for bootstrap script.
17855
17856         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17857
17858         bootstrap: uses rsync to download the .po files
17859         * build-aux/bootstrap (po_download_command_format): New global.
17860         (download_po_files): Use rsync.
17861         (update_po_files): Don't remove .po files after download,
17862         so future rsync runs can take advantage of the copies.
17863
17864         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17865
17866         Solve the unnecessary-.po-file-regeneration problem once and for all.
17867         * build-aux/bootstrap (download_po_files): New function, renamed from
17868         get_translations.  Now, downloads, but doesn't update LINGUAS.
17869         (update_po_files): New function.
17870
17871         bootstrap: Ignore more.
17872         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17873         uniwidth to e.g., lib/.gitignore.
17874         (slurp): Handle the sys_stat_.h -> sys mapping, too.
17875
17876         * build-aux/bootstrap: New setting: vc_ignore.
17877         (insert_sorted_if_absent): Create $file if absent.
17878         Adapt to new, possibly empty, list: $vc_ignore.
17879
17880         bootstrap: generate more ignorable names
17881         * build-aux/bootstrap (slurp): When generating ignorable names,
17882         also map .sin to .sed, .gperf to .c, and .y to .c.
17883
17884 2007-09-03  Jim Meyering  <jim@meyering.net>
17885
17886         * build-aux/git-version-gen: New file, from coreutils.  For details, see
17887         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17888
17889 2007-09-02  Bruno Haible  <bruno@clisp.org>
17890
17891         Fix mis-recognition of 'mcs' on QNX 6.
17892         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17893         output contains the string "Mono".
17894         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17895         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17896
17897 2007-09-01  Bruno Haible  <bruno@clisp.org>
17898
17899         Fix collision between uniwidth/* and linebreak modules.
17900         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17901         u32_width): Remove declarations.
17902         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17903         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17904         streq3, streq2, streq1, streq0): Remove functions.
17905         (STREQ): Remove macro.
17906         (is_cjk_encoding): Remove function.
17907         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17908         (uc_width, u8_width, u16_width, u32_width): Remove functions.
17909         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17910         * NEWS: Document the change.
17911
17912 2007-09-01  Bruno Haible  <bruno@clisp.org>
17913
17914         * lib/streq.h: Add double-inclusion guard.
17915
17916 2007-09-01  Karl Berry  <karl@gnu.org>
17917
17918         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17919
17920 2007-08-28  Jim Meyering  <jim@meyering.net>
17921
17922         Rename mreadlink_with_size to areadlink_with_size.
17923         * NEWS: Document the change.
17924         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17925         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17926         * lib/mreadlink.h: Rename this to...
17927         * lib/areadlink.h: ...this.
17928         * modules/mreadlink-with-size: Rename this to...
17929         * modules/areadlink-with-size: ...this.
17930         * lib/canonicalize.c: Reflect the renaming.
17931         * modules/canonicalize: Likewise.
17932
17933 2007-08-26  Bruno Haible  <bruno@clisp.org>
17934
17935         * gnulib-tool (func_import): When deciding which files to remove,
17936         consider also dangling symbolic links.
17937         Reported by Eric Blake.
17938
17939 2007-08-26  Bruno Haible  <bruno@clisp.org>
17940
17941         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17942
17943 2007-08-23  Simon Josefsson  <simon@josefsson.org>
17944
17945         * lib/readline.c: Don't include getline.h, the prototype is now
17946         found in stdio.h.
17947
17948 2007-08-23  Jim Meyering  <jim@meyering.net>
17949
17950         Getdelim touchup.
17951         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17952         around the funlockfile call, since funlockfile never sets errno.
17953         Don't set errno upon failed realloc.
17954
17955 2007-08-22  Eric Blake  <ebb9@byu.net>
17956
17957         Getline touchups.
17958         * lib/getdelim.c (getdelim): Revert regression that required *n to
17959         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
17960         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17961         getdelim, rather than whether implementation is missing.
17962         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17963         * lib/stdio_.h (getline): Also declare if replacement is
17964         required.
17965         * doc/functions/getdelim.texi: New file.
17966         * doc/functions/getline.texi: Likewise.
17967         * doc/gnulib.texi (Function Substitutes): Add new files.
17968         Reported by Bruno Haible.
17969
17970 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
17971
17972         * users.txt: Add Guile.
17973
17974 2007-08-22  Eric Blake  <ebb9@byu.net>
17975
17976         * tests/test-getdelim.c (main): Use remove, not unlink.
17977         * tests/test-getline.c (main): Likewise.
17978
17979         Move getline and getdelim into stdio.h, per POSIX 200x.
17980         * modules/getline (Files): Remove getline.h.
17981         (Depends-on): Add stdio.
17982         (configure.ac): Add module indicator.
17983         * modules/getdelim (Files): Remove getdelim.h.
17984         (Depends-on): Add stdio.
17985         (configure.ac): Add module indicator.
17986         * modules/stdio (Makefile.am): Work with new indicators.
17987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17988         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17989         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17990         * lib/getdelim.h: Delete.
17991         * lib/getline.h: Delete.
17992         * lib/stdio_.h (getdelim, getline): Declare.
17993         * modules/getdelim-tests: New module.
17994         * modules/getline-tests: Likewise.
17995         * tests/test-getdelim.c: New file.
17996         * tests/test-getline.c: Likewise.
17997         * NEWS: Document the change.
17998         * lib/getline.c: Update choice of header.
17999         * lib/csharpcomp.c: Likewise.
18000         * lib/getpass.c: Likewise.
18001         * lib/javacomp.c: Likewise.
18002         * lib/javaversion.c: Likewise.
18003         * lib/yesno.c: Likewise.
18004         * lib/getdelim.c: Likewise.
18005         (getdelim): Set errno on failure, and avoid memory leak.
18006
18007 2007-08-19  Bruno Haible  <bruno@clisp.org>
18008
18009         * modules/closein (Depends-on): Add freadahead.
18010         * lib/closein.c: Include freadahead.h.
18011         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
18012         is zero.
18013
18014 2007-08-19  Bruno Haible  <bruno@clisp.org>
18015
18016         * modules/freadahead-tests: New file.
18017         * tests/test-freadahead.sh: New file.
18018         * tests/test-freadahead.c: New file.
18019
18020         * modules/freadahead: New file.
18021         * lib/freadahead.h: New file.
18022         * lib/freadahead.c: New file.
18023         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18024         fbufmode, fpurge, freadable, fwritable.
18025
18026 2007-08-19  Eric Blake  <ebb9@byu.net>
18027
18028         Test yesno in combination with closein.
18029         * lib/yesno.c (yesno): Document use of stdin.
18030         * modules/yesno-tests (Files): New module.
18031         * tests/test-yesno.c (main): New file.
18032         * tests/test-yesno.sh: Likewise.
18033
18034 2007-08-19  Bruno Haible  <bruno@clisp.org>
18035
18036         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
18037         * lib/fseeko.c (rpl_fseeko): Likewise.
18038         * lib/fseterr.c (fseterr): Likewise.
18039
18040 2007-08-19  Bruno Haible  <bruno@clisp.org>
18041
18042         * tests/test-lseek.c (main): Disable a test for BeOS.
18043         * doc/functions/lseek.texi: Document the BeOS bug.
18044
18045 2007-08-19  Bruno Haible  <bruno@clisp.org>
18046             Eric Blake  <ebb9@byu.net>
18047
18048         * lib/lseek.c: Include <sys/stat.h>.
18049         (rpl_lseek): Add workaround code also for Unix platforms.
18050         Needed for BeOS.
18051         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
18052         * doc/functions/lseek.texi: Document BeOS definiency.
18053
18054 2007-08-18  Bruno Haible  <bruno@clisp.org>
18055
18056         * modules/fstrcmp-tests: New file.
18057         * tests/test-fstrcmp.c: New file.
18058
18059 2007-08-18  Bruno Haible  <bruno@clisp.org>
18060
18061         * modules/fstrcmp: New file, from GNU gettext with modifications.
18062         * lib/fstrcmp.h: New file, from GNU gettext.
18063         * lib/fstrcmp.c: New file, from GNU gettext.
18064         * MODULES.html.sh (String handling): Add fstrcmp.
18065
18066 2007-08-18  Bruno Haible  <bruno@clisp.org>
18067
18068         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
18069         'bool'.
18070         (diag, compareseq): Remove const from the ctxt argument.
18071         (USE_HEURISTIC): Undefine at the end.
18072
18073 2007-08-18  Jim Meyering  <jim@meyering.net>
18074
18075         New file: lib/idcache.h
18076         * NEWS: Mention the addition.
18077         * modules/idcache (Files): Add lib/idcache.h
18078         * lib/idcache.c: Include "idcache.h".
18079         Don't include <sys/types.h>.
18080         Add a FIXME comment.
18081         Move file-scoped "static" declarations to the top.
18082         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
18083
18084 2007-08-17  Bruno Haible  <bruno@clisp.org>
18085         and Paul Eggert  <eggert@cs.ucla.edu>
18086
18087         * MODULES.html.sh: Add diffseq.
18088         * modules/diffseq: New file.
18089         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
18090         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
18091
18092 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         Import changes from coreutils for bootstrap script.
18095
18096         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
18097
18098         * build-aux/bootstrap (slurp): Work even in environments where
18099         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
18100         current code does not slurp files whose names start with ".", and
18101         this looks like it might be a troublesome area.
18102
18103         2007-07-11  Jim Meyering  <jim@meyering.net>
18104
18105         If there's a GPL vN copyright comment, require that N == 3.
18106
18107         2007-07-08  Jim Meyering  <jim@meyering.net>
18108
18109         Run the coreutils-specific code only if tests/Makefile.am.in exists.
18110         * build-aux/bootstrap (mam_template): Move definition out of loop.
18111
18112         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
18113
18114         * build-aux/bootstrap (symlink_to_dir): Rename function from
18115         symlink_to_gnulib.  Add a directory parameter.  Update all
18116         callers.
18117         (cp_mark_as_generated): Also check for -- and link to -- files in
18118         gl/.
18119
18120         2007-07-08  Jim Meyering  <jim@meyering.net>
18121
18122         Adapt to deeper hierarchy in gnulib.
18123         * build-aux/bootstrap (symlink_to_dir): If the destination
18124         directory doesn't exist, create it. This is required at least for
18125         "lib/uniwidth/cjk.h".
18126
18127         2007-05-15  Jim Meyering  <jim@meyering.net>
18128
18129         * build-aux/bootstrap: Now that generated Makefile.am files
18130         are no longer under version control, they must be created at
18131         bootstrap time.
18132
18133 2007-08-14  Ben Pfaff  <blp@gnu.org>
18134
18135         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
18136
18137 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18138
18139         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
18140         given the changes below.
18141         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
18142         even on hosts that have padding bits beyond the supported 64.
18143
18144 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18145
18146         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
18147         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
18148         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
18149         depends on it.
18150         (xstrtol_error): Remove.
18151         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18152         but with a different signature.
18153         (ATTRIBUTE_NORETURN, __attribute__): New macros.
18154         * lib/xstrtol-error.c: Include exitfail.h.
18155         (xstrtol_fatal): New function, with a different signature from the
18156         old xstrtol_error, so that the caller need not worry about passing
18157         in an exit status, or about storage management of the option argument.
18158         (xstrtol_error): Now a static function.  Redo signature to
18159         implement xstrtol_fatal.  Output the correct number of hyphens in
18160         front of the option so that the caller need not worry about
18161         storage management.
18162         (N_): New macro.
18163         (_): Remove; not used now.
18164         * modules/xstrtol: Depend on getopt.
18165         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18166         of old STRTOL_FATAL_ERROR macro.
18167         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18168         of test program.
18169         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18170         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18171
18172 2007-08-08  Eric Blake  <ebb9@byu.net>
18173
18174         * lib/xstrtol-error.c: Add missing include.
18175
18176         Move xstrtol messages into gnulib domain, when --pobase is used.
18177         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18178         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18179         * modules/xstrtol (Files): Distribute new file.
18180         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18181         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18182         * tests/test-xstrtol.c: ...into new file.
18183         * tests/test-xstrtoul.c: Also test xstrtoul.
18184         * tests/test-xstrtoimax.c: Also test xstrtoimax.
18185         * tests/test-xstrtoumax.c: Also test xstrtoumax.
18186         * tests/test-xstrtol.sh: Drive the tests.
18187         * tests/test-xstrtoimax.sh: Likewise.
18188         * tests/test-xstrtoumax.sh: Likewise.
18189         * modules/xstrtol-tests: New module.
18190         * modules/xstrtoimax-tests: Likewise.
18191         * modules/xstrtoumax-tests: Likewise.
18192
18193 2007-08-08  Jim Meyering  <jim@meyering.net>
18194
18195         New function: mfile_name_concat.
18196         * lib/filenamecat.c (mfile_name_concat): New function, just like
18197         file_name_concat, but return NULL upon failure rather than exiting
18198         with a diagnostic.
18199         * lib/filenamecat.h: Declare it.
18200
18201 2007-08-07  Bruno Haible  <bruno@clisp.org>
18202
18203         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18204         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18205         warning from gcc.
18206         Reported by Eric Blake.
18207
18208 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18209
18210         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18211         * modules/crypto/arcfour (License): Likewise.
18212         * modules/crypto/des-tests (License): Likewise.
18213         * modules/crypto/gc-arctwo-tests (License): Likewise.
18214         * modules/crypto/gc-des-tests (License): Likewise.
18215         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18216         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18217         * modules/crypto/gc-md2-tests (License): Likewise.
18218         * modules/crypto/gc-md4-tests (License): Likewise.
18219         * modules/crypto/gc-md5-tests (License): Likewise.
18220         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18221         * modules/crypto/gc-rijndael-tests (License): Likewise.
18222         * modules/crypto/gc-sha1-tests (License): Likewise.
18223         * modules/crypto/gc-tests (License): Likewise.
18224         * modules/crypto/hmac-md5 (License): Likewise.
18225         * modules/crypto/hmac-sha1 (License): Likewise.
18226         * modules/crypto/md2-tests (License): Likewise.
18227         * modules/crypto/md4-tests (License): Likewise.
18228         * modules/crypto/md5 (License): Likewise.
18229         * modules/crypto/rijndael (License): Likewise.
18230         * modules/crypto/sha1 (License): Likewise.
18231         * modules/memxor (License): Likewise.
18232
18233 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18234         and Bruno Haible  <bruno@clisp.org>
18235
18236         * NEWS: Describe interface changes to human, xstrtol.
18237         * lib/human.h: Include <xstrtol.h>.
18238         (human_options): Return enum strtol_error, not int.  Remove
18239         bool arg; take int * instead.
18240         * lib/human.c: Don't include "gettext.h".
18241         (_): Remove; no longer used.
18242         Don't include <xstrtol.h>, since human.h does it.
18243         (human_options): Adjust to abovementioned interface changes.
18244         Do not report error to stderr; that's now the caller's
18245         responsibility.
18246         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18247         interface change.
18248         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18249         Str, Argument_type_string.  All uses changed.  Put " argument"
18250         in diagnostics to make them clearer.  Change wording of suffix
18251         message for clarity.
18252         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18253         Argument_type_string.
18254         (STRTOL_FATAL_WARN): Remove; no longer used.
18255         * modules/human (Depends-on): Remove gettext-h.
18256
18257 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18258
18259         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18260
18261 2007-07-31  Bruno Haible  <bruno@clisp.org>
18262
18263         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18264         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18265         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18266
18267 2007-07-31  Bruno Haible  <bruno@clisp.org>
18268
18269         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18270         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18271
18272 2007-07-30  Bruno Haible  <bruno@clisp.org>
18273
18274         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18275         * modules/c-ctype (License): Likewise.
18276         * modules/c-strcase (License): Likewise.
18277         * modules/check-version (License): Likewise.
18278         * modules/iconv (License): Likewise.
18279         * modules/iconv_open (License): Likewise.
18280         * modules/read-file (License): Likewise.
18281         * modules/striconv (License): Likewise.
18282         * modules/strverscmp (License): Likewise.
18283         * modules/vasprintf (License): Likewise.
18284         * modules/crypto/des (License): Likewise.
18285         * modules/crypto/gc (License): Likewise.
18286         * modules/crypto/gc-arcfour (License): Likewise.
18287         * modules/crypto/gc-arctwo (License): Likewise.
18288         * modules/crypto/gc-des (License): Likewise.
18289         * modules/crypto/gc-hmac-md5 (License): Likewise.
18290         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18291         * modules/crypto/gc-md2 (License): Likewise.
18292         * modules/crypto/gc-md4 (License): Likewise.
18293         * modules/crypto/gc-md5 (License): Likewise.
18294         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18295         * modules/crypto/gc-random (License): Likewise.
18296         * modules/crypto/gc-rijndael (License): Likewise.
18297         * modules/crypto/gc-sha1 (License): Likewise.
18298         * modules/crypto/md2 (License): Likewise.
18299         * modules/crypto/md4 (License): Likewise.
18300
18301 2007-07-30  Jim Meyering  <jim@meyering.net>
18302
18303         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18304         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18305         it has valid stat data.  This bug would cause du not to count the
18306         sizes of inaccessible directories.
18307         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18308         in <http://bugzilla.redhat.com/250077>.
18309
18310 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18311             Bruno Haible  <bruno@clisp.org>
18312
18313         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18314         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18315         #include_next, gives a diagnostic about it, but reports no error in
18316         the exit code.
18317         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18318
18319 2007-07-24  Ben Pfaff  <blp@gnu.org>
18320
18321         Improve name: "count-one-bits" is better than "popcount".
18322         * MODULES.html.sh: Update name.
18323         * lib/popcount.h: Renamed lib/count-one-bits.h.
18324         (popcount): Renamed count_one_bits.
18325         (popcountl): Renamed count_one_bits_l.
18326         (popcountll): Renamed count_one_bits_ll.
18327         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18328         * modules/popcount: Renamed module/count-one-bits.
18329         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18330         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18331
18332 2007-07-23  Ben Pfaff  <blp@gnu.org>
18333
18334         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18335         better code generation, and add U to large constants to avoid
18336         warnings, in non-GCC case.
18337         Suggested by Bruno Haible.
18338
18339 2007-07-23  Ben Pfaff  <blp@gnu.org>
18340
18341         * lib/popcount.h: Use verify_true instead of if...abort.
18342         * modules/popcount: Depend on verify module.
18343         Suggested by Jim Meyering.
18344
18345 2007-07-23  Bruno Haible  <bruno@clisp.org>
18346
18347         * gnulib-tool (func_import): Create a .cvsignore file also when the
18348         directory is not yet in CVS but the toplevel directory is. When
18349         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18350         Reported by Karl Berry.
18351
18352 2007-07-22  Ben Pfaff  <blp@gnu.org>
18353
18354         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18355         case.
18356         Suggested by Eric Blake.
18357
18358 2007-07-22  Ben Pfaff  <blp@gnu.org>
18359
18360         New module: popcount.
18361         * MODULES.html.sh: Add popcount.
18362         * modules/popcount: New file.
18363         * modules/popcount-tests: New file.
18364         * tests/test-popcount.c: New file.
18365         * lib/popcount.h: New file.
18366         * m4/popcount.m4: New file.
18367
18368 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18369
18370         * build-aux/announce-gen: Update to GPLv3.
18371
18372         * build-aux/config.guess: Update from config.
18373
18374 2007-07-21  Bruno Haible  <bruno@clisp.org>
18375
18376         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18377         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18378
18379 2007-07-20  Jim Meyering  <jim@meyering.net>
18380
18381         * check-module: Diagnose a self-dependency.
18382
18383 2007-07-19  Bruno Haible  <bruno@clisp.org>
18384
18385         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18386         empty.
18387         Reported by Eric Blake.
18388
18389 2007-07-18  Bruno Haible  <bruno@clisp.org>
18390
18391         * gnulib-tool: New options --po-base, --po-domain.
18392         (func_usage): Document them.
18393         (pobase, po_domain): New variables.
18394         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18395         DEFAULT_TEXT_DOMAIN.
18396         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18397         (func_import): Consider pobase and po_domain. Create a po/ directory.
18398         (func_create_testdir): Set pobase and po_domain to empty.
18399         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18400         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18401
18402 2007-07-18  Bruno Haible  <bruno@clisp.org>
18403
18404         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18405         EXTRA_DIST augmentation for files in build-aux/.
18406
18407 2007-07-16  Bruno Haible  <bruno@clisp.org>
18408
18409         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18410         * modules/getdelim (License): Likewise.
18411
18412 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18413
18414         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18415         * modules/d-type (License): Likewise.
18416         * modules/extensions (License): Likewise.
18417         * modules/fnmatch (License): Likewise.
18418         * modules/fseeko (License): Likewise.
18419         * modules/getaddrinfo (License): Likewise.
18420         * modules/getline (License): Likewise.
18421         * modules/getlogin_r (License): Likewise.
18422         * modules/getpass (License): Likewise.
18423         * modules/gettimeofday (License): Likewise.
18424         * modules/glob (License): Likewise.
18425         * modules/inet_ntop (License): Likewise.
18426         * modules/malloc (License): Likewise.
18427         * modules/malloca (License): Likewise.
18428         * modules/memmem (License): Likewise.
18429         * modules/mempcpy (License): Likewise.
18430         * modules/memset (License): Likewise.
18431         * modules/minmax (License): Likewise.
18432         * modules/mktime (License): Likewise.
18433         * modules/netinet_in (License): Likewise.
18434         * modules/pathmax (License): Likewise.
18435         * modules/poll (License): Likewise.
18436         * modules/regex (License): Likewise.
18437         * modules/snprintf (License): Likewise.
18438         * modules/stdbool (License): Likewise.
18439         * modules/stdint (License): Likewise.
18440         * modules/stdio (License): Likewise.
18441         * modules/strcase (License): Likewise.
18442         * modules/strcasestr (License): Likewise.
18443         * modules/strdup (License): Likewise.
18444         * modules/string (License): Likewise.
18445         * modules/strndup (License): Likewise.
18446         * modules/strnlen (License): Likewise.
18447         * modules/strpbrk (License): Likewise.
18448         * modules/strptime (License): Likewise.
18449         * modules/strsep (License): Likewise.
18450         * modules/sys_select (License): Likewise.
18451         * modules/sys_socket (License): Likewise.
18452         * modules/sys_stat (License): Likewise.
18453         * modules/sys_time (License): Likewise.
18454         * modules/time (License): Likewise.
18455         * modules/time_r (License): Likewise.
18456         * modules/timegm (License): Likewise.
18457         * modules/unistd (License): Likewise.
18458         * modules/vsnprintf (License): Likewise.
18459         * modules/wctype (License): Likewise.
18460
18461 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18462
18463         * modules/argz (License): LGPLv2+.
18464
18465 2007-07-15  Karl Berry  <karl@gnu.org>
18466
18467         * doc/gnulib.texi: revise node structure per new fdl.texi.
18468
18469 2007-07-14  Bruno Haible  <bruno@clisp.org>
18470
18471         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18472         the output file.
18473         * lib/uniname/uninames.h: Regenerated.
18474
18475 2007-07-14  Karl Berry  <karl@gnu.org>
18476
18477         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18478         omitting sectioning and index commands.
18479
18480 2007-07-13  Bruno Haible  <bruno@clisp.org>
18481
18482         New gnulib-tool option --more-symlinks.
18483         * gnulib-tool (func_usage): Document --more-symlinks.
18484         (do_copyrights): New variable.
18485         Recognize option --more-symlinks.
18486         (func_import): Don't add a copyright notice transform to
18487         sed_transform_lib_file if do_copyrights is empty.
18488
18489 2007-07-13  Bruno Haible  <bruno@clisp.org>
18490
18491         * lib/vasnprintf.c (decimal_point_char): Define also if
18492         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18493         && !NEED_PRINTF_DIRECTIVE_A.
18494         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18495         Gary V. Vaughan <gary@gnu.org>.
18496
18497 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18498
18499         * lib/inttypes_.h: Undo previous change, since it was fixed
18500         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18501
18502 2007-07-13  Bruno Haible  <bruno@clisp.org>
18503
18504         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18505         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18506
18507 2007-07-13  Jim Meyering  <jim@meyering.net>
18508
18509         df: Don't fail for Tru64's "file-on-file mount".
18510         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18511         so we fall through and use statfs instead.  Details here:
18512         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18513         Reported by Albert Chin.
18514
18515 2007-07-13  Bruno Haible  <bruno@clisp.org>
18516
18517         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18518         * modules/configmake (License): Likewise.
18519         * modules/gettext (License): Likewise.
18520         * modules/gettext-h (License): Likewise.
18521         * modules/include_next (License): Likewise.
18522         * modules/link-warning (License): Likewise.
18523         * modules/localcharset (License): Likewise.
18524         * modules/localename (License): Likewise.
18525         * modules/lock (License): Likewise.
18526         * modules/relocatable-lib-lgpl (License): Likewise.
18527         * modules/size_max (License): Likewise.
18528         * modules/vasnprintf (License): Likewise.
18529         * modules/wchar (License): Likewise.
18530         * modules/xsize (License): Likewise.
18531
18532 2007-07-13  Bruno Haible  <bruno@clisp.org>
18533
18534         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18535         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18536
18537 2007-07-12  Bruno Haible  <bruno@clisp.org>
18538
18539         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18540         in the modules files.
18541
18542 2007-07-11  Karl Berry  <karl@gnu.org>
18543
18544         * MODULES.html.sh (func_module): use
18545          sed -e '\|^'"${includefile}"'$|d'
18546          instead of /.../d, to avoid errors on $includefile's containing /.
18547
18548 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18549
18550         * gnulib-tool (func_import): Avoid duplication of --avoid
18551         statements
18552         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18553         names to `_' in variable names.
18554
18555 2007-07-10  Eric Blake  <ebb9@byu.net>
18556
18557         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18558         * NEWS: Document this change.
18559
18560 2007-07-08  Bruno Haible  <bruno@clisp.org>
18561
18562         Update to Unicode 5.0.
18563         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18564         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18565         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18566         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18567         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18568         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18569         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18570         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18571         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18572         U+10A3F, U+1D242..U+1D244.
18573         (nonspacing_table_ind): Update.
18574         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18575         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18576
18577 2007-07-08  Bruno Haible  <bruno@clisp.org>
18578
18579         Update to Unicode 5.0.
18580         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18581         code transform. Extend the name index field of unicode_name_to_code and
18582         unicode_code_to_name from 16 to 24 bits.
18583         * lib/uniname/uniname.c (unicode_character_name,
18584         unicode_name_character): Add the range 0x12xxx to the code transform.
18585         * lib/uniname/uninames.h: Regenerated.
18586         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18587
18588 2007-07-07  Bruno Haible  <bruno@clisp.org>
18589
18590         * modules/wcwidth-tests: New file.
18591         * tests/test-wcwidth.c: New file.
18592
18593         Work around MacOS X wcwidth() bug.
18594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18595         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18596         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18597         original wcwidth in non-UTF-8 locales.
18598         * modules/wcwidth (Depends-on): Add localcharset, streq,
18599         uniwidth/width.
18600         * doc/functions/wcwidth.texi: Update.
18601
18602 2007-07-07  Bruno Haible  <bruno@clisp.org>
18603
18604         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18605         (wcwidth): New declaration.
18606         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18607         macros.
18608         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18609         here. Prepare for creating <wchar.h> unconditionally.
18610         * modules/wchar (Depends-on): Add link-warning.
18611         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18612         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18613         * lib/wcwidth.h: Remove file.
18614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18615         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18616         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18617         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18618         (Include): Replace wcwidth.h with <wchar.h>.
18619         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18620         * lib/mbchar.h: Don't include wcwidth.h.
18621         * lib/mbswidth.c: Likewise.
18622         * NEWS: Mention the change.
18623
18624 2007-07-07  Bruno Haible  <bruno@clisp.org>
18625
18626         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18627         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18628         definition with an external declaration.
18629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18630         defined as a function. Remove AC_C_INLINE requirement.
18631         * modules/wcwidth (Files): Add lib/wcwidth.c.
18632         (Makefile.am): Remove redundant statement.
18633
18634 2007-07-07  Bruno Haible  <bruno@clisp.org>
18635
18636         * MODULES.html.sh (Unicode string functions): Add the new modules.
18637
18638         * tests/uniwidth/test-u32-strwidth.c: New file.
18639         * modules/uniwidth/u32-strwidth-tests: New file.
18640
18641         * lib/uniwidth/u32-strwidth.c: New file.
18642         * modules/uniwidth/u32-strwidth: New file.
18643
18644         * tests/uniwidth/test-u16-strwidth.c: New file.
18645         * modules/uniwidth/u16-strwidth-tests: New file.
18646
18647         * lib/uniwidth/u16-strwidth.c: New file.
18648         * modules/uniwidth/u16-strwidth: New file.
18649
18650         * tests/uniwidth/test-u8-strwidth.c: New file.
18651         * modules/uniwidth/u8-strwidth-tests: New file.
18652
18653         * lib/uniwidth/u8-strwidth.c: New file.
18654         * modules/uniwidth/u8-strwidth: New file.
18655
18656         * tests/uniwidth/test-u32-width.c: New file.
18657         * modules/uniwidth/u32-width-tests: New file.
18658
18659         * lib/uniwidth/u32-width.c: New file.
18660         * modules/uniwidth/u32-width: New file.
18661
18662         * tests/uniwidth/test-u16-width.c: New file.
18663         * modules/uniwidth/u16-width-tests: New file.
18664
18665         * lib/uniwidth/u16-width.c: New file.
18666         * modules/uniwidth/u16-width: New file.
18667
18668         * tests/uniwidth/test-u8-width.c: New file.
18669         * modules/uniwidth/u8-width-tests: New file.
18670
18671         * lib/uniwidth/u8-width.c: New file.
18672         * modules/uniwidth/u8-width: New file.
18673
18674         * tests/uniwidth/test-uc_width.c: New file.
18675         * modules/uniwidth/width-tests: New file.
18676
18677         * lib/uniwidth/width.c: New file, from GNU libiconv.
18678         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18679         * modules/uniwidth/width: New file.
18680
18681         * lib/uniwidth.h: New file, from GNU libiconv.
18682         * modules/uniwidth/base: New file.
18683
18684 2007-07-07  Bruno Haible  <bruno@clisp.org>
18685
18686         * lib/uniname.h: New file, from GNU gettext.
18687         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18688         * lib/uniname/uninames.h: New file, from GNU gettext.
18689         * lib/uniname/uniname.c: New file, from GNU gettext.
18690         * tests/uniname/test-uninames.sh: New file.
18691         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18692         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18693         * modules/uniname/base: New file.
18694         * modules/uniname/uniname: New file.
18695         * modules/uniname/uniname-tests: New file.
18696         * MODULES.html.sh (Unicode string functions): Add the new modules.
18697
18698 2007-07-06  Bruno Haible  <bruno@clisp.org>
18699
18700         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18701
18702 2007-07-06  Bruno Haible  <bruno@clisp.org>
18703
18704         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18705         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18706         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18707         include <sys/time.h>.
18708         Reported by Eric Blake.
18709
18710 2007-07-06  Eric Blake  <ebb9@byu.net>
18711
18712         Fix testing canonicalize on cygwin.
18713         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18714         Revert patch from 2007-06-19.
18715         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18716         canonicalize module is also in use.
18717         * tests/test-canonicalize.c: New file.
18718         * tests/test-canonicalize.sh: Likewise.
18719         * modules/canonicalize-tests: Likewise.
18720
18721 2007-07-06  Jim Meyering  <jim@meyering.net>
18722
18723         * lib/getugroups.c (getugroups): Detect getgrent failure.
18724         Adjust comment to reflect reality: this function may return -1.
18725
18726 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18727
18728         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18729         the new TP address.
18730         (usage): Fix typo
18731         (gnulib_mk): New variable.
18732
18733 2007-07-05  Jim Meyering  <jim@meyering.net>
18734
18735         Don't let endgrent clobber errno, no matter how improbable.
18736         * lib/getugroups.c (getugroups): Save and restore errno around
18737         endgrent call.
18738
18739         Close the group DB even when failing with 2^31 or more members.
18740         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18741
18742 2007-07-04  Jim Meyering  <jim@meyering.net>
18743
18744         * lib/getugroups.h: New file.
18745         * lib/getugroups.c: Include "getugroups.h".
18746         Remove uses of "register" keyword.
18747         Move local variable, "cp", down into scope where used.
18748         Give "username" parameter the "const" attribute.
18749         * modules/getugroups (Files): Add lib/getugroups.h
18750
18751 2007-07-04  Karl Berry  <karl@gnu.org>
18752
18753         * MODULES.html.sh (func_all_modules): Complete rename of
18754         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18755
18756 2007-07-02  Bruno Haible  <bruno@clisp.org>
18757
18758         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18759         mode, when inttypes.h comes from gnulib.
18760         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18761
18762 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18763
18764         * NEWS: Mention lgpl module name change.
18765
18766         * modules/lgpl-2.1: Renamed from lgpl.
18767
18768         * NEWS: Mention gpl module name change.
18769
18770         * modules/gpl-3.0: New file, based on gpl-2.0.
18771
18772         * modules/gpl-2.0: Renamed from gpl.
18773
18774         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18775         doc/gpl-2.0.texi.
18776
18777 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18778
18779         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18780         #define __STDC_LIMIT_MACROS temporarily while including
18781         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18782         Problem reported by Joel E. Denny in
18783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18784
18785 2007-07-01  Bruno Haible  <bruno@clisp.org>
18786
18787         * lib/unistdio.h: New file.
18788         * lib/unistdio/u-asnprintf.h: New file.
18789         * lib/unistdio/u-asprintf.h: New file.
18790         * lib/unistdio/u-printf-args.c: New file.
18791         * lib/unistdio/u-printf-args.h: New file.
18792         * lib/unistdio/u-printf-parse.h: New file.
18793         * lib/unistdio/u-snprintf.h: New file.
18794         * lib/unistdio/u-sprintf.h: New file.
18795         * lib/unistdio/u-vasprintf.h: New file.
18796         * lib/unistdio/u-vsnprintf.h: New file.
18797         * lib/unistdio/u-vsprintf.h: New file.
18798         * lib/unistdio/ulc-asnprintf.c: New file.
18799         * lib/unistdio/ulc-asprintf.c: New file.
18800         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18801         * lib/unistdio/ulc-printf-parse.c: New file.
18802         * lib/unistdio/ulc-snprintf.c: New file.
18803         * lib/unistdio/ulc-sprintf.c: New file.
18804         * lib/unistdio/ulc-vasnprintf.c: New file.
18805         * lib/unistdio/ulc-vasprintf.c: New file.
18806         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18807         * lib/unistdio/ulc-vsnprintf.c: New file.
18808         * lib/unistdio/ulc-vsprintf.c: New file.
18809         * lib/unistdio/u8-asnprintf.c: New file.
18810         * lib/unistdio/u8-asprintf.c: New file.
18811         * lib/unistdio/u8-printf-parse.c: New file.
18812         * lib/unistdio/u8-snprintf.c: New file.
18813         * lib/unistdio/u8-sprintf.c: New file.
18814         * lib/unistdio/u8-vasnprintf.c: New file.
18815         * lib/unistdio/u8-vasprintf.c: New file.
18816         * lib/unistdio/u8-vsnprintf.c: New file.
18817         * lib/unistdio/u8-vsprintf.c: New file.
18818         * lib/unistdio/u8-u8-asnprintf.c: New file.
18819         * lib/unistdio/u8-u8-asprintf.c: New file.
18820         * lib/unistdio/u8-u8-snprintf.c: New file.
18821         * lib/unistdio/u8-u8-sprintf.c: New file.
18822         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18823         * lib/unistdio/u8-u8-vasprintf.c: New file.
18824         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18825         * lib/unistdio/u8-u8-vsprintf.c: New file.
18826         * lib/unistdio/u16-asnprintf.c: New file.
18827         * lib/unistdio/u16-asprintf.c: New file.
18828         * lib/unistdio/u16-printf-parse.c: New file.
18829         * lib/unistdio/u16-snprintf.c: New file.
18830         * lib/unistdio/u16-sprintf.c: New file.
18831         * lib/unistdio/u16-vasnprintf.c: New file.
18832         * lib/unistdio/u16-vasprintf.c: New file.
18833         * lib/unistdio/u16-vsnprintf.c: New file.
18834         * lib/unistdio/u16-vsprintf.c: New file.
18835         * lib/unistdio/u16-u16-asnprintf.c: New file.
18836         * lib/unistdio/u16-u16-asprintf.c: New file.
18837         * lib/unistdio/u16-u16-snprintf.c: New file.
18838         * lib/unistdio/u16-u16-sprintf.c: New file.
18839         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18840         * lib/unistdio/u16-u16-vasprintf.c: New file.
18841         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18842         * lib/unistdio/u16-u16-vsprintf.c: New file.
18843         * lib/unistdio/u32-asnprintf.c: New file.
18844         * lib/unistdio/u32-asprintf.c: New file.
18845         * lib/unistdio/u32-printf-parse.c: New file.
18846         * lib/unistdio/u32-snprintf.c: New file.
18847         * lib/unistdio/u32-sprintf.c: New file.
18848         * lib/unistdio/u32-vasnprintf.c: New file.
18849         * lib/unistdio/u32-vasprintf.c: New file.
18850         * lib/unistdio/u32-vsnprintf.c: New file.
18851         * lib/unistdio/u32-vsprintf.c: New file.
18852         * lib/unistdio/u32-u32-asnprintf.c: New file.
18853         * lib/unistdio/u32-u32-asprintf.c: New file.
18854         * lib/unistdio/u32-u32-snprintf.c: New file.
18855         * lib/unistdio/u32-u32-sprintf.c: New file.
18856         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18857         * lib/unistdio/u32-u32-vasprintf.c: New file.
18858         * lib/unistdio/u32-u32-vsnprintf.c: New file.
18859         * lib/unistdio/u32-u32-vsprintf.c: New file.
18860         * tests/unistdio/test-ulc-asnprintf1.c: New file.
18861         * tests/unistdio/test-ulc-asnprintf1.h: New file.
18862         * tests/unistdio/test-ulc-printf1.h: New file.
18863         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18864         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18865         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18866         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18867         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18868         * tests/unistdio/test-ulc-vasprintf1.c: New file.
18869         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18870         * tests/unistdio/test-ulc-vsprintf1.c: New file.
18871         * tests/unistdio/test-u8-asnprintf1.c: New file.
18872         * tests/unistdio/test-u8-asnprintf1.h: New file.
18873         * tests/unistdio/test-u8-printf1.h: New file.
18874         * tests/unistdio/test-u8-vasnprintf1.c: New file.
18875         * tests/unistdio/test-u8-vasnprintf2.c: New file.
18876         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18877         * tests/unistdio/test-u8-vasnprintf3.c: New file.
18878         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18879         * tests/unistdio/test-u8-vasprintf1.c: New file.
18880         * tests/unistdio/test-u8-vsnprintf1.c: New file.
18881         * tests/unistdio/test-u8-vsprintf1.c: New file.
18882         * tests/unistdio/test-u16-asnprintf1.c: New file.
18883         * tests/unistdio/test-u16-asnprintf1.h: New file.
18884         * tests/unistdio/test-u16-printf1.h: New file.
18885         * tests/unistdio/test-u16-vasnprintf1.c: New file.
18886         * tests/unistdio/test-u16-vasnprintf2.c: New file.
18887         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18888         * tests/unistdio/test-u16-vasnprintf3.c: New file.
18889         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18890         * tests/unistdio/test-u16-vasprintf1.c: New file.
18891         * tests/unistdio/test-u16-vsnprintf1.c: New file.
18892         * tests/unistdio/test-u16-vsprintf1.c: New file.
18893         * tests/unistdio/test-u32-asnprintf1.c: New file.
18894         * tests/unistdio/test-u32-asnprintf1.h: New file.
18895         * tests/unistdio/test-u32-printf1.h: New file.
18896         * tests/unistdio/test-u32-vasnprintf1.c: New file.
18897         * tests/unistdio/test-u32-vasnprintf2.c: New file.
18898         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18899         * tests/unistdio/test-u32-vasnprintf3.c: New file.
18900         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18901         * tests/unistdio/test-u32-vasprintf1.c: New file.
18902         * tests/unistdio/test-u32-vsnprintf1.c: New file.
18903         * tests/unistdio/test-u32-vsprintf1.c: New file.
18904         * modules/unistdio/base: New file.
18905         * modules/unistdio/u-printf-args: New file.
18906         * modules/unistdio/ulc-asnprintf: New file.
18907         * modules/unistdio/ulc-asprintf: New file.
18908         * modules/unistdio/ulc-fprintf: New file.
18909         * modules/unistdio/ulc-printf-parse: New file.
18910         * modules/unistdio/ulc-snprintf: New file.
18911         * modules/unistdio/ulc-sprintf: New file.
18912         * modules/unistdio/ulc-vasnprintf: New file.
18913         * modules/unistdio/ulc-vasprintf: New file.
18914         * modules/unistdio/ulc-vfprintf: New file.
18915         * modules/unistdio/ulc-vsnprintf: New file.
18916         * modules/unistdio/ulc-vsprintf: New file.
18917         * modules/unistdio/u8-asnprintf: New file.
18918         * modules/unistdio/u8-asprintf: New file.
18919         * modules/unistdio/u8-printf-parse: New file.
18920         * modules/unistdio/u8-snprintf: New file.
18921         * modules/unistdio/u8-sprintf: New file.
18922         * modules/unistdio/u8-vasnprintf: New file.
18923         * modules/unistdio/u8-vasprintf: New file.
18924         * modules/unistdio/u8-vsnprintf: New file.
18925         * modules/unistdio/u8-vsprintf: New file.
18926         * modules/unistdio/u8-u8-asnprintf: New file.
18927         * modules/unistdio/u8-u8-asprintf: New file.
18928         * modules/unistdio/u8-u8-snprintf: New file.
18929         * modules/unistdio/u8-u8-sprintf: New file.
18930         * modules/unistdio/u8-u8-vasnprintf: New file.
18931         * modules/unistdio/u8-u8-vasprintf: New file.
18932         * modules/unistdio/u8-u8-vsnprintf: New file.
18933         * modules/unistdio/u8-u8-vsprintf: New file.
18934         * modules/unistdio/u16-asnprintf: New file.
18935         * modules/unistdio/u16-asprintf: New file.
18936         * modules/unistdio/u16-printf-parse: New file.
18937         * modules/unistdio/u16-snprintf: New file.
18938         * modules/unistdio/u16-sprintf: New file.
18939         * modules/unistdio/u16-vasnprintf: New file.
18940         * modules/unistdio/u16-vasprintf: New file.
18941         * modules/unistdio/u16-vsnprintf: New file.
18942         * modules/unistdio/u16-vsprintf: New file.
18943         * modules/unistdio/u16-u16-asnprintf: New file.
18944         * modules/unistdio/u16-u16-asprintf: New file.
18945         * modules/unistdio/u16-u16-snprintf: New file.
18946         * modules/unistdio/u16-u16-sprintf: New file.
18947         * modules/unistdio/u16-u16-vasnprintf: New file.
18948         * modules/unistdio/u16-u16-vasprintf: New file.
18949         * modules/unistdio/u16-u16-vsnprintf: New file.
18950         * modules/unistdio/u16-u16-vsprintf: New file.
18951         * modules/unistdio/u32-asnprintf: New file.
18952         * modules/unistdio/u32-asprintf: New file.
18953         * modules/unistdio/u32-printf-parse: New file.
18954         * modules/unistdio/u32-snprintf: New file.
18955         * modules/unistdio/u32-sprintf: New file.
18956         * modules/unistdio/u32-vasnprintf: New file.
18957         * modules/unistdio/u32-vasprintf: New file.
18958         * modules/unistdio/u32-vsnprintf: New file.
18959         * modules/unistdio/u32-vsprintf: New file.
18960         * modules/unistdio/u32-u32-asnprintf: New file.
18961         * modules/unistdio/u32-u32-asprintf: New file.
18962         * modules/unistdio/u32-u32-snprintf: New file.
18963         * modules/unistdio/u32-u32-sprintf: New file.
18964         * modules/unistdio/u32-u32-vasnprintf: New file.
18965         * modules/unistdio/u32-u32-vasprintf: New file.
18966         * modules/unistdio/u32-u32-vsnprintf: New file.
18967         * modules/unistdio/u32-u32-vsprintf: New file.
18968         * modules/unistdio/ulc-asnprintf-tests: New file.
18969         * modules/unistdio/ulc-vasnprintf-tests: New file.
18970         * modules/unistdio/ulc-vasprintf-tests: New file.
18971         * modules/unistdio/ulc-vsnprintf-tests: New file.
18972         * modules/unistdio/ulc-vsprintf-tests: New file.
18973         * modules/unistdio/u8-asnprintf-tests: New file.
18974         * modules/unistdio/u8-vasnprintf-tests: New file.
18975         * modules/unistdio/u8-vasprintf-tests: New file.
18976         * modules/unistdio/u8-vsnprintf-tests: New file.
18977         * modules/unistdio/u8-vsprintf-tests: New file.
18978         * modules/unistdio/u16-asnprintf-tests: New file.
18979         * modules/unistdio/u16-vasnprintf-tests: New file.
18980         * modules/unistdio/u16-vasprintf-tests: New file.
18981         * modules/unistdio/u16-vsnprintf-tests: New file.
18982         * modules/unistdio/u16-vsprintf-tests: New file.
18983         * modules/unistdio/u32-asnprintf-tests: New file.
18984         * modules/unistdio/u32-vasnprintf-tests: New file.
18985         * modules/unistdio/u32-vasprintf-tests: New file.
18986         * modules/unistdio/u32-vsnprintf-tests: New file.
18987         * modules/unistdio/u32-vsprintf-tests: New file.
18988         * MODULES.html.sh (Unicode string functions): Add the new modules.
18989
18990 2007-07-01  Bruno Haible  <bruno@clisp.org>
18991
18992         * lib/sprintf.c (sprintf): Limit the available length estimation,
18993         to avoid address wraparound.
18994         * lib/vsprintf.c (vsprintf): Likewise.
18995         * modules/sprintf-posix (Dependencies): Add stdint.
18996         * modules/vsprintf-posix (Dependencies): Likewise.
18997
18998 2007-07-01  Bruno Haible  <bruno@clisp.org>
18999
19000         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
19001         Windows PATH as well. Conservative double-quoting. Comments.
19002
19003 2007-07-01  Bruno Haible  <bruno@clisp.org>
19004             Eric Blake  <ebb9@byu.net>
19005             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19006
19007         * gnulib-tool (self_abspathname): Fix algorithm to cope with
19008         empty components in $PATH, denoting '.'.
19009
19010 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19011
19012         * gnulib-tool: Fix indentation.
19013         (func_create_megatestdir): Likewise.
19014         Report by Bruno Haible.
19015
19016 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19017
19018         Sync from Automake.
19019         * build-aux/gnupload: Fix shell portability issues with for loops.
19020         Report by Karl Berry.
19021
19022 2007-06-29  Simon Josefsson  <simon@josefsson.org>
19023
19024         * build-aux/maint.mk (POURL): Use translationproject.org.
19025
19026 2007-06-27  Simon Josefsson  <simon@josefsson.org>
19027             Bruno Haible  <bruno@clisp.org>
19028
19029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
19030         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
19031         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
19032         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
19033         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
19034
19035 2007-06-27  Bruno Haible  <bruno@clisp.org>
19036
19037         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
19038         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
19039
19040 2007-06-26  Karl Berry  <karl@gnu.org>
19041
19042         * MODULES.html.sh: remove xreadlink-with-size.
19043
19044 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19045
19046         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
19047         method that I hope also handles the double-include problem noted
19048         by Bruno Haible in
19049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
19050
19051 2007-06-23  Bruno Haible  <bruno@clisp.org>
19052
19053         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19054         Don't let the 'mostlyclean' target fail if the last subdirectory could
19055         not be removed.
19056         Reported by Karl Berry.
19057
19058 2007-06-23  Bruno Haible  <bruno@clisp.org>
19059
19060         * gnulib-tool (echo): Add a speedier workaround for ksh.
19061         * tests/test-echo.sh: Likewise.
19062
19063 2007-06-23  Bruno Haible  <bruno@clisp.org>
19064
19065         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
19066         * tests/test-echo.sh: Likewise.
19067
19068 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19069
19070         * gnulib-tool (IFS): Initialize early, so we don't set it to
19071         empty later.
19072         (self_abspathname): Rewrite algorithm to set it, reindent.
19073         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19074         (func_create_megatestdir): Merge some sed scripts.
19075
19076 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19077
19078         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
19079         exposed by Sun Studio 11 cc on Solaris 8.
19080
19081 2007-06-22  Bruno Haible  <bruno@clisp.org>
19082
19083         * gnulib-tool (echo): Ensure the echo primitive does not interpret
19084         backslashes.
19085         * tests/test-echo.sh: New file.
19086
19087 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19088
19089         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
19090         simplify `sed_replace_build_aux' scripts, they are portable but
19091         echoing them with `echo' is not.
19092         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
19093
19094 2007-06-21  Karl Berry  <karl@gnu.org>
19095
19096         * config/srclist.txt: guess we can't handle the licenses via
19097         srclist at the moment.
19098
19099 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19100
19101         * MODULES.html.sh: Add include_next.
19102         * modules/include_next: New file.
19103
19104 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19105
19106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
19107         INCLUDE_NEXT.
19108         (gl_CHECK_NEXT_HEADERS): New macro.
19109         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
19110         the obsolescent gl_ABSOLUTE_HEADER.
19111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19112         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19113         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19114         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19115         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19116         * m4/math_h.m4 (gl_MATH_H): Likewise.
19117         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19119         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19120         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19121         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19122         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19123         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19127         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19128         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19129         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
19130         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19131         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19132         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19133         * m4/inttypes.m4 (gl_INTTYPES_H): Define
19134         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
19135         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
19136         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
19137         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
19138         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
19139         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
19140         * lib/float_.h: Likewise.
19141         * lib/inttypes_.h: Likewise.
19142         * lib/math_.h: Likewise.
19143         * lib/search_.h: Likewise.
19144         * lib/signal_.h: Likewise.
19145         * lib/stdint_.h: Likewise.
19146         * lib/stdio_.h: Likewise.
19147         * lib/stdlib_.h: Likewise.
19148         * lib/string_.h: Likewise.
19149         * lib/sys_stat_.h: Likewise.
19150         * lib/sys_time_.h: Likewise.
19151         * lib/time_.h: Likewise.
19152         * lib/unistd_.h: Likewise.
19153         * lib/wchar_.h: Likewise.
19154         * lib/wctype_.h: Likewise.
19155         * lib/dirent_.h: Likewise.
19156         * lib/iconv_.h: Likewise.
19157         * lib/locale_.h: Likewise.
19158         * lib/netinet_in_.h: Likewise.
19159         * lib/sys_select_.h: Likewise.
19160         * lib/sys_socket_.h: Likewise.
19161         * lib/sysexits_.h: Likewise.
19162         * modules/fcntl (Depends-on): Depend on include_next, not
19163         absolute_header.
19164         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19165         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19166         * modules/fchdir: Likewise.
19167         * modules/float: Likewise.
19168         * modules/iconv_open: Likewise.
19169         * modules/inttypes: Likewise.
19170         * modules/locale: Likewise.
19171         * modules/math: Likewise.
19172         * modules/netinet_in: Likewise.
19173         * modules/search: Likewise.
19174         * modules/signal: Likewise.
19175         * modules/stdint: Likewise.
19176         * modules/stdio: Likewise.
19177         * modules/stdlib: Likewise.
19178         * modules/string: Likewise.
19179         * modules/sys_select: Likewise.
19180         * modules/sys_socket: Likewise.
19181         * modules/sys_stat: Likewise.
19182         * modules/sys_time: Likewise.
19183         * modules/sysexits: Likewise.
19184         * modules/time: Likewise.
19185         * modules/unistd: Likewise.
19186         * modules/wchar: Likewise.
19187         * modules/wctype: Likewise.
19188         * modules/sys_stat: Change maintainer to "all".
19189         * modules/unistd: Likewise.
19190
19191 2007-06-20  Karl Berry  <karl@gnu.org>
19192
19193         * config/srclist.txt: track www changes in license files.
19194
19195 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
19196
19197         * build-aux/bootstrap: Remove stray dot.
19198         Make sure build_aux settings are honored when linking
19199         gnulib_extra_files.
19200
19201 2007-06-19  Eric Blake  <ebb9@byu.net>
19202
19203         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19204         Allow compilation on cygwin.
19205
19206 2007-06-19  Jim Meyering  <jim@meyering.net>
19207
19208         xreadlink-with-size: Remove module.  No longer used.
19209         Ex-callers now use xreadlink or mreadlink-with-size.
19210         * modules/xreadlink-with-size: Remove module.
19211         * lib/xreadlink-with-size.c: Remove file.
19212         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19213         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19214         just before the function definition *is* accurate.
19215
19216         Eliminate one way canonicalize_filename_mode could exit.
19217         * lib/canonicalize.c (canonicalize_filename_mode):
19218         Use mreadlink_with_size, not xreadlink_with_size.
19219
19220 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         Detect porting problems to FreeBSD/arm, which has time_t wider than
19223         long int.  Original problem reported for GNU diff by Xin Li in
19224         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19225         * modules/getdate (Depends-on): Add intprops, verify.
19226         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19227         is an integer type no wider than long int.
19228
19229 2007-06-18  Jim Meyering  <jim@meyering.net>
19230
19231         New module: mreadlink-with-size.
19232         * MODULES.html.sh: Add mreadlink-with-size.
19233         * modules/mreadlink-with-size: New module
19234         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19235         not xreadlink-with-size.
19236         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19237
19238 2007-06-16  Bruno Haible  <bruno@clisp.org>
19239
19240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19241         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19242         Reported by Gary V. Vaughan <gary@gnu.org>.
19243
19244 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19245
19246         Revamp lchown so that it lives in unistd.h where it belongs.
19247         * lib/lchown.h: Remove.
19248         * lib/dirchownmod.c: Don't include lib/lchown.h.
19249         * lib/fchownat.c: Likewise.
19250         * lib/openat.c: Likewise.
19251         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19252         does not follow symlinks.
19253         (EOPNOTSUPP): Define if not defined.
19254         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19255         is defined to 0.
19256         (lchown): New decl.
19257         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19258         Do not check for lchown decl.
19259         Set REPLACE_LCHOWN.
19260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19261         REPLACE_LCHOWN.
19262         * modules/chown: Make it clear it follows symlinks.
19263         * modules/lchown: Make it clear it doesn't follow symlinks.
19264         (Files): Remove lib/lchown.h
19265         (Depends-on): Add unistd.
19266         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19267         (Include): Include <unistd.h>, not "lchown.h".
19268         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19269         REPLACE_LCHOWN.
19270
19271 2007-06-15  Jim Meyering  <jim@meyering.net>
19272
19273         Change license (GPL to LGPL) of fsusage and dependents.
19274         * modules/fsusage (License): Change to LGPL.
19275         * modules/full-read (License): Likewise.
19276         * modules/full-write (License): Likewise.
19277         * modules/safe-read (License): Likewise.
19278         * modules/safe-write (License): Likewise.
19279
19280 2007-06-14  Ben Pfaff  <blp@gnu.org>
19281
19282         Missing part of allocsa -> malloca transition.
19283         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19284         gl_MALLOCA.
19285
19286 2007-06-12  Bruno Haible  <bruno@clisp.org>
19287
19288         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19289         to ia64, x86_64, i386.
19290         Reported by Eric Blake.
19291
19292 2007-06-12  Bruno Haible  <bruno@clisp.org>
19293
19294         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19295         cross-compiling to x86_64.
19296
19297 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19298
19299         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19300         glitch reported by Ralf Wildenhues in
19301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19302
19303         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19304         Vin Shelton.
19305
19306 2007-06-11  Bruno Haible  <bruno@clisp.org>
19307
19308         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19309         replacement string.
19310         Reported by Eric Blake.
19311
19312 2007-06-10  Bruno Haible  <bruno@clisp.org>
19313
19314         Prepare vasnprintf code for use with Unicode strings.
19315         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19316         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19317         TYPE_U32_STRING.
19318         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19319         a_u32_string variants.
19320         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19321         * lib/printf-args.c: Don't include config.h and the specification
19322         header if PRINTF_FETCHARGS is already defined.
19323         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19324         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19325         TYPE_U16_STRING, TYPE_U32_STRING.
19326         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19327         u16_directive, u16_directives, u32_directive, u32_directives): New
19328         types.
19329         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19330         New declarations.
19331         * lib/printf-parse.c: Don't include config.h and the specification
19332         header if PRINTF_PARSE is already defined. Eliminate the set of
19333         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19334         them now. Include c-ctype.h.
19335         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19336         directive and CHAR_T_ONLY_ASCII.
19337         * lib/vasnprintf.c: Don't include config.h and the specification header
19338         if VASNPRINTF is already defined.
19339         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19340         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19341         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19342         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19343         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19344         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19345         code accordingly.
19346         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19347         pad_ourselves also in this case, with the 'c' and 's' directives, and
19348         with a different notion of "width".
19349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19350
19351 2007-06-10  Bruno Haible  <bruno@clisp.org>
19352
19353         * modules/unistr/u32-mbsnlen: New file.
19354         * lib/unistr/u32-mbsnlen.c: New file.
19355
19356         * modules/unistr/u16-mbsnlen: New file.
19357         * lib/unistr/u16-mbsnlen.c: New file.
19358
19359         * modules/unistr/u8-mbsnlen: New file.
19360         * lib/unistr/u8-mbsnlen.c: New file.
19361
19362         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19363         declarations.
19364
19365 2007-06-10  Bruno Haible  <bruno@clisp.org>
19366
19367         * lib/string_.h (mbsnlen): New declaration.
19368         * lib/mbsnlen.c: New file.
19369         * m4/mbsnlen.m4: New file.
19370         * modules/mbsnlen: New file.
19371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19372         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19373         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19374
19375 2007-06-10  Bruno Haible  <bruno@clisp.org>
19376
19377         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19378
19379 2007-06-10  Bruno Haible  <bruno@clisp.org>
19380
19381         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19382         * lib/mbuiter.h: Likewise.
19383
19384 2007-06-10  Bruno Haible  <bruno@clisp.org>
19385
19386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19387         declaration.
19388
19389 2007-06-10  Karl Berry  <karl@gnu.org>
19390
19391         * config/srclist.txt: remove gettext entries, Bruno prefers
19392         to update individually.
19393
19394 2007-06-10  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19397         'maxlen'. Ensure only length + width bytes are allocated, not
19398         length + 1 + width.
19399
19400 2007-06-09  Bruno Haible  <bruno@clisp.org>
19401
19402         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19403         (CHAR_T): Remove macro.
19404         (VASNPRINTF): Update.
19405
19406 2007-06-09  Bruno Haible  <bruno@clisp.org>
19407
19408         * MODULES.html.sh (Unicode string functions): Add the new modules.
19409
19410         * modules/uniconv/u32-conv-to-enc: New file.
19411         * lib/uniconv/u32-conv-to-enc.c: New file.
19412         * modules/uniconv/u32-conv-to-enc-tests: New file.
19413         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19414
19415         * modules/uniconv/u16-conv-to-enc: New file.
19416         * lib/uniconv/u16-conv-to-enc.c: New file.
19417         * lib/uniconv/u-conv-to-enc.h: New file.
19418         * modules/uniconv/u16-conv-to-enc-tests: New file.
19419         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19420
19421         * modules/uniconv/u8-conv-to-enc: New file.
19422         * lib/uniconv/u8-conv-to-enc.c: New file.
19423         * modules/uniconv/u8-conv-to-enc-tests: New file.
19424         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19425
19426         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19427         u32_conv_to_encoding): New declarations.
19428
19429 2007-06-09  Bruno Haible  <bruno@clisp.org>
19430
19431         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19432
19433 2007-06-09  Bruno Haible  <bruno@clisp.org>
19434
19435         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19436         * modules/malloca: Renamed from modules/allocsa, updated.
19437         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19438         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19439         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19440         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19441         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19442         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19443         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19444         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19445         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19446         * modules/c-strcasestr (Depends-on): Update.
19447         * lib/c-strcasestr.c: Update.
19448         * modules/c-strstr (Depends-on): Update.
19449         * lib/c-strstr.c: Update.
19450         * modules/canonicalize-lgpl (Depends-on): Update.
19451         * lib/canonicalize-lgpl.c: Update.
19452         * modules/clean-temp (Depends-on): Update.
19453         * lib/clean-temp.c: Update.
19454         * modules/csharpcomp (Depends-on): Update.
19455         * lib/csharpcomp.c: Update.
19456         * modules/csharpexec (Depends-on): Update.
19457         * lib/csharpexec.c: Update.
19458         * modules/javacomp (Depends-on): Update.
19459         * lib/javacomp.c: Update.
19460         * modules/javaexec (Depends-on): Update.
19461         * lib/javaexec.c: Update.
19462         * modules/mbscasestr (Depends-on): Update.
19463         * lib/mbscasestr.c: Update.
19464         * modules/mbsstr (Depends-on): Update.
19465         * lib/mbsstr.c: Update.
19466         * modules/setenv (Depends-on): Update.
19467         * lib/setenv.c: Update.
19468         * modules/strcasestr (Depends-on): Update.
19469         * lib/strcasestr.c: Update.
19470         * modules/striconveha (Depends-on): Update.
19471         * lib/striconveha.c: Update.
19472         * modules/relocatable-prog-wrapper (Files): Update.
19473         * lib/relocwrapper.c: Update.
19474         * build-aux/install-reloc: Update.
19475         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19476
19477 2007-06-08  Bruno Haible  <bruno@clisp.org>
19478
19479         Port to uClibc.
19480         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19481         * lib/fpurge.c (fpurge): Likewise.
19482         * lib/freading.c (freading): Likewise.
19483         * lib/fseeko.c (rpl_fseeko): Likewise.
19484         * lib/fseterr.c (fseterr): Likewise.
19485         * lib/fwriting.c (fwriting): Likewise.
19486         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19487
19488 2007-06-08  Bruno Haible  <bruno@clisp.org>
19489
19490         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19491         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19492         * modules/gettext (Files): Add m4/intlmacosx.m4.
19493
19494 2007-06-07  Bruno Haible  <bruno@clisp.org>
19495
19496         * modules/localename-tests: New file.
19497         * tests/test-localename.c: New file.
19498
19499         New module 'localename'.
19500         * lib/localename.h: New file.
19501         * lib/localename.c: New file, from GNU gettext.
19502         * m4/localename.m4: New file.
19503         * modules/localename: New file.
19504
19505 2007-06-07  Bruno Haible  <bruno@clisp.org>
19506
19507         Work around the lack of <wchar.h> on some builds of uClibc.
19508         * doc/headers/wchar.texi: Update.
19509         * lib/wchar_.h: Include <wchar.h> only if it exists.
19510         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19511         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19512         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19513         doesn't exist.
19514         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19515         * modules/mbfile (Depends-on): Add wchar.
19516         * modules/mbiter (Depends-on): Likewise.
19517         * modules/mbuiter (Depends-on): Likewise.
19518         Reported by Simon Josefsson.
19519
19520 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19521
19522         Work around problem reported by Steven M. Schweda in
19523         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19524         Tru64 5.1B with the Compaq compiler environment installed declares
19525         an 'isblank' function but does not define it in the C library.
19526         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19527         * lib/regex_internal.h (isblank): Likewise.
19528         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19529         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19530
19531 2007-06-05  Bruno Haible  <bruno@clisp.org>
19532
19533         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19534         ia64.
19535         * modules/printf-safe: New file.
19536         * modules/fprintf-posix (Depends-on): Add printf-safe.
19537         * modules/printf-posix (Depends-on): Likewise.
19538         * modules/snprintf-posix (Depends-on): Likewise.
19539         * modules/sprintf-posix (Depends-on): Likewise.
19540         * modules/vasnprintf-posix (Depends-on): Likewise.
19541         * modules/vasprintf-posix (Depends-on): Likewise.
19542         * modules/vfprintf-posix (Depends-on): Likewise.
19543         * modules/vprintf-posix (Depends-on): Likewise.
19544         * modules/vsnprintf-posix (Depends-on): Likewise.
19545         * modules/vsprintf-posix (Depends-on): Likewise.
19546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19547         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19548         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19549         "no" on i386, x86_64, ia64.
19550         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19551         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19552         on i386, x86_64, ia64.
19553         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19554         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19555         on i386, x86_64, ia64.
19556         * tests/test-vasnprintf-posix.c: Include float.h.
19557         (LDBL80_WORDS): New macro.
19558         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19559         on i386, x86_64, ia64.
19560         * tests/test-vasprintf-posix.c: Include float.h.
19561         (LDBL80_WORDS): New macro.
19562         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19563         on i386, x86_64, ia64.
19564         * tests/test-snprintf-posix.c: Include float.h.
19565         * tests/test-sprintf-posix.c: Likewise.
19566         * tests/test-vsnprintf-posix.c: Likewise.
19567         * tests/test-vsprintf-posix.c: Likewise.
19568
19569 2007-06-05  Bruno Haible  <bruno@clisp.org>
19570
19571         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19572         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19573         non-IEEE numbers on i386, x86_64, ia64.
19574         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19575         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19576         * tests/test-isnanl.h: Include float.h.
19577         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19578
19579 2007-06-05  Bruno Haible  <bruno@clisp.org>
19580
19581         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19582         also the %a / %A. Handle the %a / %A code before this extra handling.
19583
19584 2007-06-05  Bruno Haible  <bruno@clisp.org>
19585
19586         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19587         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19588
19589 2007-06-05  Bruno Haible  <bruno@clisp.org>
19590
19591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19592         typo in variable name.
19593
19594 2007-06-05  Eric Blake  <ebb9@byu.net>
19595
19596         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19597         Reported by Simon Josefsson.
19598
19599 2007-06-04  Bruno Haible  <bruno@clisp.org>
19600
19601         Avoid test failures on some PowerPC platforms.
19602         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19603         Define differently for PowerPC.
19604         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19605         Reported by Gary V. Vaughan <gary@gnu.org>.
19606
19607 2007-06-02  Bruno Haible  <bruno@clisp.org>
19608
19609         Fix test-stdint failure on FreeBSD/ia64.
19610         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19611         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19612         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19613         * doc/headers/stdint.texi: Update.
19614
19615 2007-06-01  Bruno Haible  <bruno@clisp.org>
19616
19617         * tests/test-binary-io.c (main): Pass a third argument to open().
19618         Reported by Gary V. Vaughan <gary@gnu.org>.
19619
19620 2007-06-01  Bruno Haible  <bruno@clisp.org>
19621
19622         * doc/functions/frexpl.texi: Update for mingw.
19623
19624 2007-06-01  Bruno Haible  <bruno@clisp.org>
19625
19626         * tests/test-lseek.c (main): Disable test of errno for invalid third
19627         argument.
19628         * doc/functions/lseek.texi: Update.
19629         Reported by Gary V. Vaughan <gary@gnu.org>.
19630
19631 2007-05-28  Bruno Haible  <bruno@clisp.org>
19632
19633         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19634
19635 2007-05-31  Eric Blake  <ebb9@byu.net>
19636
19637         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19638         cross compiling.
19639
19640 2007-05-30  Eric Blake  <ebb9@byu.net>
19641         and Bruno Haible  <bruno@clisp.org>
19642
19643         Work around mingw test failures exposed by m4-1.4.9b.
19644         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19645         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19646         moment.
19647
19648 2007-05-30  Bruno Haible  <bruno@clisp.org>
19649
19650         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19651         assuming that they are closed. Needed on HP-UX 11.
19652
19653 2007-05-29  Bruno Haible  <bruno@clisp.org>
19654
19655         Fix a problem with #include_next.
19656         * lib/dirent_.h: Split the double-inclusion guard.
19657         * lib/fcntl_.h: Likewise.
19658         * lib/float_.h: Likewise.
19659         * lib/iconv_.h: Likewise.
19660         * lib/inttypes_.h: Likewise.
19661         * lib/locale_.h: Likewise.
19662         * lib/math_.h: Likewise.
19663         * lib/netinet_in_.h: Likewise.
19664         * lib/search_.h: Likewise.
19665         * lib/signal_.h: Likewise.
19666         * lib/stdint_.h: Likewise.
19667         * lib/stdio_.h: Likewise.
19668         * lib/stdlib_.h: Likewise.
19669         * lib/string_.h: Likewise.
19670         * lib/sys_select_.h: Likewise.
19671         * lib/sys_socket_.h: Likewise.
19672         * lib/sys_stat_.h: Likewise.
19673         * lib/sys_time_.h: Likewise.
19674         * lib/sysexits_.h: Likewise.
19675         * lib/time_.h: Likewise.
19676         * lib/unistd_.h: Likewise.
19677         * lib/wchar_.h: Likewise.
19678         * lib/wctype_.h: Likewise.
19679
19680 2007-05-29  Bruno Haible  <bruno@clisp.org>
19681
19682         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19683         for the moment.
19684
19685 2007-05-29  Bruno Haible  <bruno@clisp.org>
19686
19687         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19688         invocation.
19689         Reported by Eric Blake.
19690
19691 2007-05-29  Bruno Haible  <bruno@clisp.org>
19692
19693         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19694         compiling case.
19695
19696 2007-05-29  Eric Blake  <ebb9@byu.net>
19697             Bruno Haible  <bruno@clisp.org>
19698
19699         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19700         cross compiles.
19701
19702 2007-05-28  Eric Blake  <ebb9@byu.net>
19703
19704         * modules/closein-tests (test_closein_LDADD): Support test on
19705         cygwin with libtool.
19706
19707 2007-05-28  Bruno Haible  <bruno@clisp.org>
19708
19709         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19710         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19711         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19712         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19713         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19714         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19715         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19716         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19717         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19718
19719 2007-05-28  Eric Blake  <ebb9@byu.net>
19720
19721         Unconditionally include <config.h> in unit tests.
19722         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19723         * tests/test-allocsa.c, tests/test-arcfour.c,
19724         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19725         tests/test-array_list.c, tests/test-array_oset.c,
19726         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19727         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19728         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19729         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19730         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19731         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19732         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19733         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19734         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19735         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19736         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19737         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19738         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19739         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19740         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19741         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19742         test-md5.c, test-memmem.c, test-printf-posix.c,
19743         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19744         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19745         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19746         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19747         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19748         test-vasnprintf-posix2.c, test-vasnprintf.c,
19749         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19750         test-vfprintf-posix.c, test-vprintf-posix.c,
19751         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19752         test-xvasprintf.c: Likewise.
19753
19754 2007-05-28  Bruno Haible  <bruno@clisp.org>
19755
19756         * gnulib-tool (func_import): Remember the --with-tests command-line
19757         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19758         Reported by Eric Blake.
19759
19760 2007-05-28  Bruno Haible  <bruno@clisp.org>
19761
19762         * modules/ftell-tests: New file.
19763         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19764         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19765
19766         * lib/ftell.c: New file.
19767         * modules/ftell: New file.
19768         * m4/ftell.m4: New file.
19769         * doc/functions/ftell.texi: Update.
19770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19771         REPLACE_FTELL.
19772         * lib/stdio_.h (rpl_ftell): New declaration.
19773         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19774         REPLACE_FTELL.
19775
19776 2007-05-28  Eric Blake  <ebb9@byu.net>
19777
19778         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19779
19780 2007-05-28  Bruno Haible  <bruno@clisp.org>
19781
19782         * modules/fseek-tests: New file.
19783         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19784         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19785
19786         * lib/fseek.c: New file.
19787         * modules/fseek: New file.
19788         * m4/fseek.m4: New file.
19789         * doc/functions/fseek.texi: Update.
19790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19791         REPLACE_FSEEK.
19792         * lib/stdio_.h (rpl_fseek): New declaration.
19793         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19794         REPLACE_FSEEK.
19795
19796 2007-05-28  Bruno Haible  <bruno@clisp.org>
19797
19798         * lib/stdio_.h (fflush): More comments.
19799
19800 2007-05-28  Bruno Haible  <bruno@clisp.org>
19801
19802         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19803         runtime test.
19804
19805 2007-05-28  Eric Blake  <ebb9@byu.net>
19806
19807         Improve lseek module.
19808         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19809         * lib/unistd_.h (lseek): Scale back link warning message.
19810         * tests/test-lseek.c: Beef up test.
19811         * tests/test-lseek.sh: Exercise more facets of lseek.
19812         Reported by Bruno Haible.
19813
19814 2007-05-28  Bruno Haible  <bruno@clisp.org>
19815
19816         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19817         to define.
19818
19819 2007-05-27  Bruno Haible  <bruno@clisp.org>
19820
19821         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19822
19823 2007-05-27  Bruno Haible  <bruno@clisp.org>
19824
19825         * modules/openmp: New file.
19826         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19827         Noah Misch.
19828
19829 2007-05-26  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/chdir-long (Depends-on): Add fchdir.
19832         * modules/chdir-safer (Depends-on): Likewise.
19833         * modules/fts (Depends-on): Likewise.
19834         * modules/fts-lgpl (Depends-on): Likewise.
19835         * modules/openat (Depends-on): Likewise.
19836         * modules/savewd (Depends-on): Likewise.
19837
19838 2007-05-24  Eric Blake  <ebb9@byu.net>
19839
19840         Fix lseek on mingw.
19841         * modules/lseek: New module.
19842         * m4/lseek.m4: New file.
19843         * lib/lseek.c: New file.
19844         * modules/lseek-tests: New file.
19845         * tests/test-lseek.c: New file.
19846         * tests/test-lseek.sh: New file.
19847         * MODULES.html.sh: Document lseek module.
19848         * modules/fflush (Depends-on): Add lseek, fseeko.
19849         * modules/fseeko (Depends-on): Likewise.
19850         * modules/ftello (Depends-on): Likewise.
19851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19852         broken.
19853         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19854         broken.
19855         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19856         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19857         * lib/ftello.c (rpl_ftello): Likewise.
19858         * tests/test-fseeko.c (main): Test this.
19859         * tests/test-fseeko.sh: Likewise.
19860         * tests/test-ftello.c (main): Likewise.
19861         * tests/test-ftello.sh: Likewise.
19862         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19863         implies replacing fseek.
19864         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19865         HAVE_FTELLO.
19866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19867         * modules/unistd (Makefile.am): Likewise.
19868         * lib/unistd_.h (lseek): Declare a replacement.
19869         * doc/functions/lseek.texi (lseek): Document this fix.
19870         * doc/functions/fseek.texi (fseek): Likewise.
19871         * doc/functions/ftell.texi (ftell): Likewise.
19872
19873 2007-05-24  Bruno Haible  <bruno@clisp.org>
19874
19875         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19876         in the printed representation of a NaN.
19877         * tests/test-vasprintf-posix.c (test_function): Likewise.
19878         * tests/test-snprintf-posix.h (test_function): Likewise.
19879         * tests/test-sprintf-posix.h (test_function): Likewise.
19880         Reported by Eric Blake.
19881
19882 2007-05-23  Eric Blake  <ebb9@byu.net>
19883
19884         Fix fseeko/ftello on cygwin 1.5.24.
19885         * doc/functions/fseeko.texi (fseeko): Document the fix.
19886         * doc/functions/ftello.texi (ftello): Document the fix.
19887         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19888         * doc/functions/stdout.text (stdout): New file.
19889         * doc/functions/stderr.text (stderr): New file.
19890         * doc/gnulib.texi (Function Substitutes): Use new files.
19891         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19892         prior to 1.7.0.
19893         * tests/test-ftello.c (main): Likewise for ftello.
19894         * tests/test-fseeko.sh: New file.
19895         * tests/test-ftello.sh: New file.
19896         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19897         with seekable stdin.
19898         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19899         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19900         (gl_REPLACE_FSEEKO): New macro.
19901         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19902         * modules/fseeko (Files): Distribute fseeko.c.
19903         * modules/ftello (Files): Distribute ftello.c.
19904         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19905         mode.
19906         * lib/ftello.c (rpl_ftello): New file.
19907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19908         fseeko, ftello.
19909         (gl_STDIN_LARGE_OFFSET): New macro.
19910         * modules/stdio (Makefile.am): Perform the replacement.
19911         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19912
19913 2007-05-23  Bruno Haible  <bruno@clisp.org>
19914
19915         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19916         GNULIB_POSIXCHECK is defined.
19917
19918 2007-05-21  Bruno Haible  <bruno@clisp.org>
19919
19920         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19921         Check also the output for NaN arguments. When cross-compiling, guess
19922         no on IRIX.
19923         * lib/vasnprintf.c: Update comments.
19924         * tests/test-vasnprintf-posix.c (strisnan): New function.
19925         (test_function): Use it.
19926         * tests/test-vasprintf-posix.c (strisnan): New function.
19927         (test_function): Use it.
19928         * tests/test-snprintf-posix.h (strisnan): New function.
19929         (test_function): Use it.
19930         * tests/test-sprintf-posix.h (strisnan): New function.
19931         (test_function): Use it.
19932         Reported by Eric Blake.
19933
19934 2007-05-20  Bruno Haible  <bruno@clisp.org>
19935
19936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19937         numbers that fails on BeOS.
19938         * doc/functions/frexpl.texi: Update.
19939
19940 2007-05-20  Jim Meyering  <jim@meyering.net>
19941
19942         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19943         forced upon us by glibc-2.6.
19944
19945 2007-05-20  Bruno Haible  <bruno@clisp.org>
19946
19947         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19948         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19949         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19950         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19951         NEED_PRINTF_INFINITE.
19952         (is_infinitel): New function.
19953         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19955         gl_PREREQ_VASNPRINTF_INFINITE.
19956         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19957         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19958         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19959         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19960         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19961         gl_PREREQ_VASNPRINTF_INFINITE.
19962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19963         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19965         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19966         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19969         * doc/functions/fprintf.texi: Update.
19970         * doc/functions/printf.texi: Update.
19971         * doc/functions/snprintf.texi: Update.
19972         * doc/functions/sprintf.texi: Update.
19973         * doc/functions/vfprintf.texi: Update.
19974         * doc/functions/vprintf.texi: Update.
19975         * doc/functions/vsnprintf.texi: Update.
19976         * doc/functions/vsprintf.texi: Update.
19977
19978 2007-05-20  Bruno Haible  <bruno@clisp.org>
19979
19980         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19981         was not found in libc.
19982         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19983
19984 2007-05-20  Bruno Haible  <bruno@clisp.org>
19985
19986         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19987         printed as "-nan" instead of "nan".
19988         * tests/test-vasprintf-posix.c (test_function): Likewise.
19989         * tests/test-snprintf-posix.h (test_function): Likewise.
19990         * tests/test-sprintf-posix.h (test_function): Likewise.
19991         Needed for HP-UX 11.
19992
19993 2007-05-20  Jim Meyering  <jim@meyering.net>
19994
19995         Fix buggy test for the fchownat-deref bug.
19996         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19997         symlink required for the run-test.  Without it, this test would
19998         always declare that fchownat doesn't work, and client code would
19999         unnecessarily use the replacement function with fixed libc.
20000         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
20001         Reported by Greg Schafer.
20002
20003 2007-05-19  Bruno Haible  <bruno@clisp.org>
20004
20005         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
20006         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
20007         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
20008         Needed for IRIX 6.5 and Solaris 2.5.1.
20009
20010 2007-05-19  Bruno Haible  <bruno@clisp.org>
20011
20012         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
20013         (test_function): Skip tests involving -0.0 on platforms where
20014         -0.0 = 0.0.
20015         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
20016         (test_function): Skip tests involving -0.0 on platforms where
20017         -0.0 = 0.0.
20018         * tests/test-snprintf-posix.h (have_minus_zero): New function.
20019         (test_function): Skip tests involving -0.0 on platforms where
20020         -0.0 = 0.0.
20021         * tests/test-sprintf-posix.h (have_minus_zero): New function.
20022         (test_function): Skip tests involving -0.0 on platforms where
20023         -0.0 = 0.0.
20024         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
20025         tests.
20026         * tests/test-printf-posix.h (test_function): Likewise.
20027         * tests/test-printf-posix.output: Remove all -0.0 related results.
20028         Needed for IRIX 6.5.
20029
20030 2007-05-19  Bruno Haible  <bruno@clisp.org>
20031
20032         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20033         printed as "nan0x7fffffff" instead of "nan".
20034         * tests/test-vasprintf-posix.c (test_function): Likewise.
20035         * tests/test-snprintf-posix.h (test_function): Likewise.
20036         * tests/test-sprintf-posix.h (test_function): Likewise.
20037         * tests/test-fprintf-posix.h (NaN): Remove macro.
20038         (test_function): Remove all NaN related tests.
20039         * tests/test-printf-posix.h (NaN): Remove macro.
20040         (test_function): Remove all NaN related tests.
20041         * tests/test-printf-posix.output: Remove all NaN related results.
20042         Needed for IRIX 6.5.
20043
20044 2007-05-19  Bruno Haible  <bruno@clisp.org>
20045
20046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
20047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20048
20049 2007-05-19  Bruno Haible  <bruno@clisp.org>
20050
20051         * lib/float_.h: New file.
20052         * m4/float_h.m4: New file.
20053         * modules/float: New file.
20054         * modules/isnanl (Dependencies): Add float.
20055         * modules/isnanl-nolibm (Dependencies): Likewise.
20056         * modules/mathl (Dependencies): Likewise.
20057         * modules/printf-frexpl (Dependencies): Likewise.
20058         * modules/signbit (Dependencies): Likewise.
20059         * modules/vasnprintf (Dependencies): Likewise.
20060         * doc/headers/float.texi: Update.
20061
20062 2007-05-19  Jim Meyering  <jim@meyering.net>
20063
20064         * lib/utimens.c (gl_futimens): Rename from futimens,
20065         now that glibc-2.6 declares futimens.
20066         * lib/utimens.h: Likewise.
20067
20068 2007-05-19  Bruno Haible  <bruno@clisp.org>
20069
20070         Avoid test failures on mingw.
20071         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
20072         * tests/test-printf-posix.sh: Likewise.
20073         * tests/test-vfprintf-posix.sh: Likewise.
20074         * tests/test-vprintf-posix.sh: Likewise.
20075
20076 2007-05-19  Bruno Haible  <bruno@clisp.org>
20077
20078         Fix *printf result for NaN, Inf, -0.0 on mingw.
20079         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
20080         * lib/vasnprintf.c: Include math.h and isnan.h.
20081         (is_infinite_or_zero): New function.
20082         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
20083         values in the %f, %F, %e, %E, %g, %G directives.
20084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
20085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20086         gl_PRINTF_INFINITE and test its result. Invoke
20087         gl_PREREQ_VASNPRINTF_INFINITE.
20088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20095         * doc/functions/fprintf.texi: Update.
20096         * doc/functions/printf.texi: Update.
20097         * doc/functions/snprintf.texi: Update.
20098         * doc/functions/sprintf.texi: Update.
20099         * doc/functions/vfprintf.texi: Update.
20100         * doc/functions/vprintf.texi: Update.
20101         * doc/functions/vsnprintf.texi: Update.
20102         * doc/functions/vsprintf.texi: Update.
20103
20104 2007-05-19  Bruno Haible  <bruno@clisp.org>
20105
20106         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
20107         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
20108         Instead of multiplying with 10^k, set extra_zeroes to k.
20109         (scale10_round_long_double): Remove function.
20110
20111 2007-05-18  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
20114         introduced on 2007-05-06.
20115
20116 2007-05-18  Bruno Haible  <bruno@clisp.org>
20117
20118         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
20119         %g directives.
20120         * tests/test-vasprintf-posix.c (test_function): Likewise.
20121         * tests/test-snprintf-posix.h (test_function): Likewise.
20122         * tests/test-sprintf-posix.h (test_function): Likewise.
20123
20124 2007-05-18  Bruno Haible  <bruno@clisp.org>
20125
20126         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
20127         (strmatch): New function.
20128         (test_function): Test the %f directive on numbers of various exponents.
20129         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
20130         (strmatch): New function.
20131         (test_function): Test the %f directive on numbers of various exponents.
20132         * tests/test-snprintf-posix.h (strmatch): New function.
20133         (test_function): Test the %f directive on numbers of various exponents.
20134         * tests/test-sprintf-posix.h (strmatch): New function.
20135         (test_function): Test the %f directive on numbers of various exponents.
20136         * tests/test-snprintf-posix.c (SIZEOF): New macro.
20137         * tests/test-sprintf-posix.c (SIZEOF): New macro.
20138         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
20139         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
20140
20141 2007-05-18  Bruno Haible  <bruno@clisp.org>
20142
20143         Add support for 'long double' number output.
20144         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
20145         * lib/vasnprintf.c: Include math.h and float+.h.
20146         (mp_limb_t): New type.
20147         (GMP_LIMB_BITS): New macro.
20148         (mp_twolimb_t): New type.
20149         (GMP_TWOLIMB_BITS): New macro.
20150         (mpn_t): New type.
20151         (multiply, divide, convert_to_decimal, decode_long_double,
20152         scale10_round_long_double, scale10_round_decimal_long_double,
20153         floorlog10l): New functions.
20154         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20155         for the %f, %F, %e, %E, %g, %G directives.
20156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20158         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20159         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20167         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20168         * modules/snprintf-posix (Depends-on): Likewise.
20169         * modules/sprintf-posix (Depends-on): Likewise.
20170         * modules/vasnprintf-posix (Depends-on): Likewise.
20171         * modules/vasprintf-posix (Depends-on): Likewise.
20172         * modules/vfprintf-posix (Depends-on): Likewise.
20173         * modules/vsnprintf-posix (Depends-on): Likewise.
20174         * modules/vsprintf-posix (Depends-on): Likewise.
20175         * modules/vasnprintf (Files): Add lib/float+.h.
20176         * doc/functions/fprintf.texi: Update.
20177         * doc/functions/printf.texi: Update.
20178         * doc/functions/snprintf.texi: Update.
20179         * doc/functions/sprintf.texi: Update.
20180         * doc/functions/vfprintf.texi: Update.
20181         * doc/functions/vprintf.texi: Update.
20182         * doc/functions/vsnprintf.texi: Update.
20183         * doc/functions/vsprintf.texi: Update.
20184
20185 2007-05-18  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20188
20189 2007-05-18  Bruno Haible  <bruno@clisp.org>
20190
20191         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20192         for printing 64-bit integers. Needed for mingw.
20193
20194 2007-05-18  Bruno Haible  <bruno@clisp.org>
20195
20196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20197         gl_FUNC_FREXPL_WORKS.
20198         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20199
20200 2007-05-18  Bruno Haible  <bruno@clisp.org>
20201
20202         * modules/frexpl-nolibm-tests: New file.
20203
20204         * modules/frexpl-nolibm: New file.
20205         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20206
20207 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20210         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20211         GCC 4.2, which otherwise issues a lot of warnings.
20212         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20213         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20214         Likewise.
20215         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20216         * modules/iconv_open (iconv.h): Likewise.
20217         * modules/locale (locale.h): Likewise.
20218         * modules/netinet_in (netinet/in.h): Likewise.
20219         * modules/sys_select (sys_select.h): Likewise.
20220         * modules/sys_socket (sys/socket.h): Likewise.
20221         * modules/sys_stat (sys/stat.h): Likewise.
20222         * modules/sysexits (sysexits.h): Likewise.
20223         * modules/unistd (unistd.h): Likewise.
20224
20225 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20226
20227         * modules/closein-tests (Makefile.am): Distribute
20228         `test-closein.sh'.
20229
20230 2007-05-17  Bruno Haible  <bruno@clisp.org>
20231
20232         * tests/test-printf-posix.output: Renamed from
20233         tests/test-fprintf-posix.out.
20234         * modules/fprintf-posix-tests: Update.
20235         * modules/printf-posix-tests: Update.
20236         * modules/vfprintf-posix-tests: Update.
20237         * modules/vprintf-posix-tests: Update.
20238         * tests/test-fprintf-posix.sh: Update.
20239         * tests/test-printf-posix.sh: Update.
20240         * tests/test-vfprintf-posix.sh: Update.
20241         * tests/test-vprintf-posix.sh: Update.
20242         Reported by Ralf Wildenhues.
20243
20244 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20245
20246         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20247         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20248         GCC 4.2, which otherwise issues a lot of warnings.
20249         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20250         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20251         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20252         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20253         it should no longer be needed.
20254         * lib/string_.h: Likewise.
20255         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20256         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20257         * modules/inttypes (inttypes.h): Likewise.
20258         * modules/math (math.h): Likewise.
20259         * modules/search (search.h): Likewise.
20260         * modules/signal (signal.h): Likewise.
20261         * modules/stdint (stdint.h): Likewise.
20262         * modules/stdio (stdio.h): Likewise.
20263         * modules/stdlib (stdlib.h): Likewise.
20264         * modules/string (string.h): Likewise.
20265         * modules/sys_time (sys/time.h): Likewise.
20266         * modules/time (time.h): Likewise.
20267         * modules/wchar (wchar.h): Likewise.
20268         * modules/wctype (wtype.h): Likewise.
20269
20270 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20271
20272         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20273
20274 2007-05-13  Bruno Haible  <bruno@clisp.org>
20275
20276         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20277         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20278         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20279         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20280         (gl_PREREQ_STRTOK_R): Don't require it here.
20281
20282 2007-05-13  Bruno Haible  <bruno@clisp.org>
20283
20284         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20285         when used in C++ mode.
20286
20287 2007-05-12  Bruno Haible  <bruno@clisp.org>
20288
20289         * lib/linebuffer.h: Tweak doc.
20290         * lib/linebuffer.c: Likewise.
20291
20292 2007-05-12  James Youngman  <jay@gnu.org>
20293
20294         * lib/linebuffer.c (readlinebuffer_delim): New function,
20295         like readlinebuffer, but use a caller-specified delimiter.
20296         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20297         as the delimiter.
20298         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20299
20300 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20301
20302         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20303         * modules/openat (Files): Remove openat-die.c.
20304         (Depends-on): Add openat-die.
20305         * modules/openat-die: New module.
20306
20307 2007-05-06  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20310         Update with info about Cygwin.
20311         * doc/functions/fprintf.texi: Update.
20312         * doc/functions/printf.texi: Update.
20313         * doc/functions/snprintf.texi: Update.
20314         * doc/functions/sprintf.texi: Update.
20315         * doc/functions/vfprintf.texi: Update.
20316         * doc/functions/vprintf.texi: Update.
20317         * doc/functions/vsnprintf.texi: Update.
20318         * doc/functions/vsprintf.texi: Update.
20319         Reported by Eric Blake.
20320
20321 2007-05-06  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20324         padding ourselves for the floating-point directives.
20325         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20328         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20329         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20337         * tests/test-snprintf-posix.h (test_function): Also check the width
20338         and some flags in the %f directive.
20339         * tests/test-sprintf-posix.h (test_function): Likewise.
20340         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20341         * tests/test-vasprintf-posix.c (test_function): Likewise.
20342         * doc/functions/fprintf.texi: Update.
20343         * doc/functions/printf.texi: Update.
20344         * doc/functions/snprintf.texi: Update.
20345         * doc/functions/sprintf.texi: Update.
20346         * doc/functions/vfprintf.texi: Update.
20347         * doc/functions/vprintf.texi: Update.
20348         * doc/functions/vsnprintf.texi: Update.
20349         * doc/functions/vsprintf.texi: Update.
20350
20351 2007-05-06  Bruno Haible  <bruno@clisp.org>
20352
20353         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20354         pass the ' flag character to sprintf or snprintf.
20355         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20358         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20359         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20363         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20367         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20368         flag.
20369         * tests/test-sprintf-posix.h (test_function): Likewise.
20370         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20371         * tests/test-vasprintf-posix.c (test_function): Likewise.
20372         * doc/functions/fprintf.texi: Update.
20373         * doc/functions/printf.texi: Update.
20374         * doc/functions/snprintf.texi: Update.
20375         * doc/functions/sprintf.texi: Update.
20376         * doc/functions/vfprintf.texi: Update.
20377         * doc/functions/vprintf.texi: Update.
20378         * doc/functions/vsnprintf.texi: Update.
20379         * doc/functions/vsprintf.texi: Update.
20380
20381 2007-05-01  Bruno Haible  <bruno@clisp.org>
20382
20383         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20384
20385 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20386
20387         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20388         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20389
20390 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20391
20392         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20393         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20395
20396 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20397
20398         * lib/argp-help.c (struct hol_entry): New member `ord'.
20399         (HOL_ENTRY_PTRCMP): Use ord for comparison
20400         (hol_sort): Initialize ord.
20401
20402 2007-05-01  Bruno Haible  <bruno@clisp.org>
20403
20404         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20405         Reported by Eric Blake.
20406         * doc/gnulib.texi (Function Substitutes): Update.
20407
20408 2007-05-01  Bruno Haible  <bruno@clisp.org>
20409
20410         * doc/functions.texi: Remove file, now redundant through
20411         doc/functions/*.texi.
20412
20413 2007-05-01  Bruno Haible  <bruno@clisp.org>
20414
20415         * modules/argp (Depends-on): Add sleep.
20416
20417 2007-05-01  Bruno Haible  <bruno@clisp.org>
20418
20419         * modules/sleep-tests: New file.
20420         * tests/test-sleep.c: New file.
20421
20422         * modules/sleep: New file.
20423         * lib/sleep.c: New file.
20424         * m4/sleep.m4: New file.
20425         * lib/unistd_.h (sleep): New declaration.
20426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20427         HAVE_SLEEP.
20428         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20429         * doc/functions/sleep.texi: Document the sleep module.
20430
20431 2007-05-01  Bruno Haible  <bruno@clisp.org>
20432
20433         * lib/sigprocmask.h: Remove file.
20434         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20435         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20436         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20437         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20438         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20439         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20440         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20441         HAVE_SIGSET_T as a shell variable.
20442         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20443         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20444         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20445         (Depends-on): Add signal. Remove verify.
20446         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20447         (Include): Mention <signal.h> instead of sigprocmask.h.
20448         * NEWS: Mention the change.
20449         * lib/fatal-signal.c: Don't include sigprocmask.h.
20450
20451 2007-05-01  Bruno Haible  <bruno@clisp.org>
20452
20453         * modules/signal: New file.
20454         * lib/signal_.h: New file.
20455         * m4/signal_h.m4: New file.
20456
20457 2007-05-01  Bruno Haible  <bruno@clisp.org>
20458
20459         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20460         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20461         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20462         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20463
20464 2007-05-01  Bruno Haible  <bruno@clisp.org>
20465
20466         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20467         configure time.
20468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20469         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20470         * modules/sys_stat (Makefile.am): Substitute their values into
20471         sys/stat.h.
20472
20473 2007-05-01  Bruno Haible  <bruno@clisp.org>
20474
20475         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20476         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20477         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20478
20479 2007-05-01  Bruno Haible  <bruno@clisp.org>
20480
20481         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20482         'assert' module here.
20483
20484 2007-05-01  Bruno Haible  <bruno@clisp.org>
20485
20486         * doc/functions/*.texi: New files.
20487         * doc/functions/google-ranking.txt: New file.
20488         * doc/gnulib.texi (Function Substitutes): New chapter.
20489         (ctime, inet_ntoa): Remove sections.
20490         * doc/ctime.texi: Remove file.
20491         * doc/inet_ntoa.texi: Remove file.
20492         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20493         dependencies.
20494         (%.info): New rule, specifying a --reference-limit.
20495
20496 2007-05-01  Bruno Haible  <bruno@clisp.org>
20497
20498         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20499
20500 2007-05-01  Bruno Haible  <bruno@clisp.org>
20501
20502         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20503         the portability of 'mkdir' to mingw systems.
20504
20505 2007-05-01  Bruno Haible  <bruno@clisp.org>
20506
20507         * doc/headers/google-ranking.txt: New file.
20508
20509 2007-04-30  Eric Blake  <ebb9@byu.net>
20510
20511         Prefer fseeko to fseek.
20512         * modules/getpass (Depends-on): Add fseeko.
20513         * lib/getpass.c (getpass): Use fseeko, not fseek.
20514
20515 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20516
20517         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20518         assumes the sorting is stable, while most qsort implementations
20519         are not.  Use argument addresses to ensure they never compare as
20520         equal.
20521
20522         * tests/test-argp-2.sh (usage-indent test): Fix output
20523         (func_compare): Restore diff options
20524         * tests/test-argp.c: Restore #include "progname.h"
20525
20526 2007-04-29  Bruno Haible  <bruno@clisp.org>
20527
20528         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20530         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20532         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20533         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20534         (TESTS, check_PROGRAMS): Add test-snprintf.
20535         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20536         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20537         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20538         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20539         assertions that fail on HP-UX, OSF/1, or IRIX.
20540         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20541
20542 2007-04-29  Bruno Haible  <bruno@clisp.org>
20543
20544         * MODULES.html.sh (posix_functions): Remove 'contents'.
20545
20546 2007-04-29  Karl Berry  <karl@gnu.org>
20547
20548         * config/srclist.txt (gendocs_template_min): new entry.
20549
20550 2007-04-29  Bruno Haible  <bruno@clisp.org>
20551
20552         Work around fpurge bug on BSD systems.
20553         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20555         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20556         fpurge to rpl_fpurge if the system already has this function.
20557         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20558         the case where the system already has this function. Correct invariants
20559         on BSD systems.
20560         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20561         BSD systems.
20562
20563 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20564
20565         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20566         proposed by Sven Verdoolaege.
20567
20568         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20569         options.
20570         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20571         (usage and help tests): Update
20572
20573 2007-04-29  Bruno Haible  <bruno@clisp.org>
20574
20575         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20576         Print more information in case of failure. Disable a test on BeOS.
20577
20578 2007-04-29  Bruno Haible  <bruno@clisp.org>
20579
20580         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20581         This helps debugging on systems on which no gdb is available.
20582
20583 2007-04-29  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/freading.h: Improve comments.
20586         * lib/fwriting.h: Likewise.
20587         * tests/test-freading.c (main): Don't check freading immediately after
20588         repositioning. Needed for glibc.
20589
20590 2007-04-29  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/freading.c (freading): Trivial simplification.
20593
20594 2007-04-28  Bruno Haible  <bruno@clisp.org>
20595
20596         * tests/test-fwriting.c (main): Also test the interaction between
20597         fflush and fwriting.
20598         * modules/fwriting-tests (Depends-on): Add fflush.
20599
20600         * tests/test-freading.c (main): Also test the interaction between
20601         fflush and freading.
20602         * modules/freading-tests (Depends-on): Add fflush.
20603
20604 2007-04-28  Bruno Haible  <bruno@clisp.org>
20605
20606         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20607         fseeko and ftello.
20608         Suggested by Eric Blake.
20609
20610 2007-04-28  Jim Meyering  <jim@meyering.net>
20611
20612         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20613         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20614         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20615
20616 2007-04-27  Eric Blake  <ebb9@byu.net>
20617
20618         * doc/headers/assert.texi (assert.h): Document assert module use.
20619
20620 2007-04-27  Bruno Haible  <bruno@clisp.org>
20621
20622         * doc/headers/*.texi: New files.
20623         * doc/gnulib.texi (Header File Substitutes): New chapter.
20624         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20625         dependencies.
20626         (standards.info ,standards.html, standards.dvi): Update dependencies.
20627         (mostlyclean, clean): New targets.
20628
20629 2007-04-27  Bruno Haible  <bruno@clisp.org>
20630
20631         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20632         * modules/sysexits (Files, Makefile.am): Update.
20633
20634         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20635         * modules/sys_socket (Files, Makefile.am): Update.
20636
20637         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20638         * modules/sys_stat (Files, Makefile.am): Update.
20639
20640 2007-04-27  Eric Blake  <ebb9@byu.net>
20641
20642         * lib/freading.h: Improve comments.
20643         * lib/fwriting.h: Likewise.
20644         * lib/fflush.c: Likewise.
20645
20646         Fix closein for mingw.
20647         * modules/closein-tests: Add tests for closein.
20648         * tests/test-closein.c: New file.
20649         * tests/test-closein.sh: Likewise.
20650         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20651         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20652
20653 2007-04-27  Bruno Haible  <bruno@clisp.org>
20654
20655         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20656         version is < 6.
20657         * lib/math_.h [__DECC]: Likewise.
20658         * lib/stdio_.h [__DECC]: Likewise.
20659         * lib/stdlib_.h [__DECC]: Likewise.
20660         * lib/string_.h [__DECC]: Likewise.
20661         * lib/time_.h [__DECC]: Likewise.
20662         * lib/wchar_.h [__DECC]: Likewise.
20663         * lib/wctype_.h [__DECC]: Likewise.
20664
20665 2007-04-27  Bruno Haible  <bruno@clisp.org>
20666
20667         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20668
20669 2007-04-27  Bruno Haible  <bruno@clisp.org>
20670
20671         * lib/fflush.c: Add comments.
20672         * modules/fpurge-tests (Depends-on): Add fflush.
20673         * modules/freadable-tests (Depends-on): Likewise.
20674         * modules/fwritable-tests (Depends-on): Likewise.
20675
20676 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20677
20678         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20679         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20680         Report by Bruno Haible <bruno@clisp.org>.
20681
20682 2007-04-26  Eric Blake  <ebb9@byu.net>
20683
20684         Fix fflush on mingw.
20685         * modules/fflush (Depends-on): Add freading.
20686         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20687         but unread data.
20688
20689 2007-04-26  Eric Blake  <ebb9@byu.net>
20690         and Bruno Haible  <bruno@clisp.org>
20691
20692         Implement freading and fwriting.
20693         * lib/freading.c: New file.
20694         * lib/freading.h: Likewise.
20695         * m4/freading.m4: Likewise.
20696         * modules/freading: Likewise.
20697         * modules/freading-tests: Likewise.
20698         * tests/test-freading.c: Likewise.
20699         * lib/fwriting.c: New file.
20700         * lib/fwriting.h: Likewise.
20701         * m4/fwriting.m4: Likewise.
20702         * modules/fwriting: Likewise.
20703         * modules/fwriting-tests: Likewise.
20704         * tests/test-fwriting.c: Likewise.
20705         * MODULES.html.sh (File stream based Input/Output): Mention them.
20706
20707 2007-04-26  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20710         'long' when we assume it.
20711         Suggested by Eric Blake.
20712
20713 2007-04-26  Bruno Haible  <bruno@clisp.org>
20714
20715         Ensure fseeko, ftello are declared on glibc systems.
20716         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20717         * modules/fseeko (configure.ac-early): Likewise.
20718         * modules/ftello (configure.ac-early): Likewise.
20719         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20720         AC_FUNC_FSEEKO for this.
20721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20722         (gl_CHECK_FSEEKO): Remove macro.
20723
20724 2007-04-26  Bruno Haible  <bruno@clisp.org>
20725
20726         * tests/test-fflush.c (main): Also check the ftell result after
20727         fflush and fseek/fseeko.
20728         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20729         file descriptor position cache in the stream.
20730         * lib/fseeko.c (rpl_fseeko): Likewise.
20731
20732 2007-04-26  Bruno Haible  <bruno@clisp.org>
20733
20734         * modules/fflush-tests (Depends-on): Add fseeko.
20735
20736 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20737             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738
20739         * lib/argz_.h: ensure error_t definition is obtained in same
20740         mechanism system argz.h would have.
20741         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20742         argz facilities are known bad.  Err on the side of caution if
20743         cross-compiling.
20744
20745 2007-04-25  Eric Blake  <ebb9@byu.net>
20746
20747         * lib/fpurge.c (includes): Use stdlib.h for free.
20748         * tests/test-fflush.c (main): Also test fflush-fseeko.
20749
20750 2007-04-25  Bruno Haible  <bruno@clisp.org>
20751
20752         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20753         * lib/fseeko.c: New file.
20754         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20755         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20756         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20757         gl_FUNC_FSEEKO.
20758         (gl_FUNC_FSEEKO): Invoke it.
20759         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20760         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20761         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20762
20763 2007-04-25  Bruno Haible  <bruno@clisp.org>
20764
20765         * modules/fflush (Depends-on): Add ftello.
20766
20767 2007-04-25  Bruno Haible  <bruno@clisp.org>
20768
20769         * modules/ftello-tests: New file.
20770         * tests/test-ftello.c: New file.
20771
20772         * modules/ftello: New file.
20773         * m4/ftello.m4: New file.
20774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20775         HAVE_FTELLO.
20776         * lib/stdio_.h (ftello): New declaration.
20777         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20778         HAVE_FTELLO.
20779
20780 2007-04-25  Bruno Haible  <bruno@clisp.org>
20781
20782         * modules/fseeko-tests: New file.
20783         * tests/test-fseeko.c: New file.
20784
20785         * modules/fseeko: New file.
20786         * m4/fseeko.m4: New file.
20787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20788         HAVE_FSEEKO.
20789         * lib/stdio_.h (fseeko): New declaration.
20790         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20791         HAVE_FSEEKO.
20792
20793 2007-04-25  Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20796
20797 2007-04-25  Bruno Haible  <bruno@clisp.org>
20798
20799         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20800         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20801         * tests/test-unistd.c: Likewise.
20802         * tests/test-fcntl.c: Likewise.
20803
20804 2007-04-23  Eric Blake  <ebb9@byu.net>
20805
20806         * lib/fflush.c: Fix missing include.
20807         Reported by Bruno Haible.
20808
20809 2007-04-23  Bruno Haible  <bruno@clisp.org>
20810
20811         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20812         Reported by Eric Blake.
20813
20814 2007-04-23  Bruno Haible  <bruno@clisp.org>
20815
20816         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20817
20818 2007-04-23  Bruno Haible  <bruno@clisp.org>
20819
20820         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20821
20822 2007-04-23  Bruno Haible  <bruno@clisp.org>
20823
20824         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20825         Needed on HP-UX 11.
20826
20827 2007-04-16  Eric Blake  <ebb9@byu.net>
20828
20829         Make fflush rely on fpurge.
20830         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20831         open coding all variants.
20832         * modules/fflush (Depends-on): Add fpurge and unistd.
20833         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20834         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20835
20836         Fix --with-tests compilation on cygwin.
20837         * modules/argmatch-tests (Makefile.am): List gnulib library first
20838         in LDADD.
20839         * modules/argp-tests (Makefile.am): Likewise.
20840         * modules/array-list-tests (Makefile.am): Likewise.
20841         * modules/array-oset-tests (Makefile.am): Likewise.
20842         * modules/avltree-list-tests (Makefile.am): Likewise.
20843         * modules/avltree-oset-tests (Makefile.am): Likewise.
20844         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20845         * modules/carray-list-tests (Makefile.am): Likewise.
20846         * modules/dirname-tests (Makefile.am): Likewise.
20847         * modules/frexp-tests (Makefile.am): Likewise.
20848         * modules/isnanl-tests (Makefile.am): Likewise.
20849         * modules/linked-list-tests (Makefile.am): Likewise.
20850         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20851         * modules/lock-tests (Makefile.am): Likewise.
20852         * modules/rbtree-list-tests (Makefile.am): Likewise.
20853         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20854         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20855         * modules/tls-tests (Makefile.am): Likewise.
20856         * modules/tsearch-tests (Makefile.am): Likewise.
20857         * modules/xvasprintf-tests (Makefile.am): Likewise.
20858
20859         Fix fpurge for cygwin.
20860         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20861         value.
20862         * modules/fpurge-tests (Depends-on): Clean up trash.
20863
20864 2007-04-16  Simon Josefsson  <simon@josefsson.org>
20865
20866         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20867
20868         * m4/autobuild.m4: Re-indent.
20869
20870 2007-04-13  Bruno Haible  <bruno@clisp.org>
20871
20872         * modules/fpurge-tests: New file.
20873         * tests/test-fpurge.c: New file.
20874
20875         * modules/fpurge: New file.
20876         * lib/fpurge.h: New file.
20877         * lib/fpurge.c: New file.
20878         * m4/fpurge.m4: New file.
20879
20880 2007-04-13  Bruno Haible  <bruno@clisp.org>
20881
20882         * modules/fbufmode-tests: New file.
20883         * tests/test-fbufmode.c: New file.
20884
20885         * modules/fbufmode: New file.
20886         * lib/fbufmode.h: New file.
20887         * lib/fbufmode.c: New file.
20888         * m4/fbufmode.m4: New file.
20889
20890 2007-04-13  Bruno Haible  <bruno@clisp.org>
20891
20892         * modules/fwritable-tests: New file.
20893         * tests/test-fwritable.c: New file.
20894
20895         * modules/fwritable: New file.
20896         * lib/fwritable.h: New file.
20897         * lib/fwritable.c: New file.
20898         * m4/fwritable.m4: New file.
20899
20900 2007-04-13  Bruno Haible  <bruno@clisp.org>
20901
20902         * modules/freadable-tests: New file.
20903         * tests/test-freadable.c: New file.
20904
20905         * modules/freadable: New file.
20906         * lib/freadable.h: New file.
20907         * lib/freadable.c: New file.
20908         * m4/freadable.m4: New file.
20909
20910 2007-04-13  Bruno Haible  <bruno@clisp.org>
20911
20912         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20913         MOSTLYCLEANFILES.
20914
20915 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20916
20917         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20918         gzip bootstrap.conf to avoid dragging in i18n machinery.
20919         (gnulib_tool_option): Use it.
20920
20921 2007-04-13  Bruno Haible  <bruno@clisp.org>
20922
20923         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20924         %F directives.
20925         * tests/test-vasprintf-posix.c (test_function): Likewise.
20926         * tests/test-snprintf-posix.h (test_function): Likewise.
20927         * tests/test-sprintf-posix.h (test_function): Likewise.
20928         * tests/test-fprintf-posix.h (test_function): Likewise.
20929         * tests/test-printf-posix.h (test_function): Likewise.
20930         * tests/test-fprintf-posix.out: Likewise.
20931
20932 2007-04-13  Bruno Haible  <bruno@clisp.org>
20933
20934         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20935         * modules/tls-tests (configure.ac): Likewise.
20936         Reported by Arto C. Nirkko <anirkko@insel.ch>.
20937
20938 2007-04-13  Bruno Haible  <bruno@clisp.org>
20939
20940         * lib/tls.c (glthread_tls_get): Fix return type.
20941         Patch by Arto C. Nirkko <anirkko@insel.ch>.
20942
20943 2007-04-12  Eric Blake  <ebb9@byu.net>
20944
20945         * modules/gettime (Depends-on): Remove gettime.
20946         Reported by Dmitry V. Levin.
20947
20948 2007-04-12  Bruno Haible  <bruno@clisp.org>
20949
20950         * modules/fflush (Include): Mention <stdio.h>.
20951         * modules/strtoimax (Include): Mention <inttypes.h>.
20952         * modules/strtoumax (Include): Likewise.
20953
20954 2007-04-12  Eric Blake  <ebb9@byu.net>
20955
20956         * .cvsignore: New file.
20957         * .gitignore: Likewise.
20958
20959 2007-04-12  Bruno Haible  <bruno@clisp.org>
20960
20961         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20962         not before, since $(LDADD) often contains libgnu.a.
20963         * modules/striconv-tests (test_striconv_LDADD): Likewise.
20964         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20965         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20966         Needed on Cygwin.
20967
20968 2007-04-12  Eric Blake  <ebb9@byu.net>
20969
20970         Work around glibc's failure to flush stdin on fclose.
20971         * lib/closein.c (close_stdin): Flush stdin before closing.
20972
20973         Work around glibc's failure to reset seekable stdin on exit.
20974         * modules/closein: New module.
20975         * lib/closein.c: New file.
20976         * lib/closein.h: Likewise.
20977         * m4/closein.m4: Likewise.
20978         * MODULES.html.sh (File stream based Input/Output): Document it.
20979
20980 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20981
20982         * gnulib-tool: Rename generated 'autobuild' script to
20983         'do-autobuild' in --create-megatestdir output.
20984
20985         * doc/gnulib.texi (Build robot for gnulib): Fix.
20986
20987 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20988
20989         * modules/sysexits (Depends-on): Add absolute-header.
20990
20991 2007-04-12  Eric Blake  <ebb9@byu.net>
20992
20993         No need to preserve errno on success.
20994         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20995         Reported by Bruno Haible.
20996
20997 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20998
20999         * MODULES.html.sh (Support for maintaining and releasing
21000         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
21001
21002 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21003
21004         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
21005
21006 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21007
21008         * modules/autobuild: New module.
21009
21010         * m4/autobuild.m4: New file.
21011
21012 2007-04-11  Bruno Haible  <bruno@clisp.org>
21013
21014         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
21015         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
21016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
21017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
21018         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21019         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21020         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21022         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21023         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
21025         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21026         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
21028         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21029         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
21031         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21032         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
21034         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21035         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
21037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
21040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21042         Reported by Eric Blake.
21043
21044 2007-04-11  Bruno Haible  <bruno@clisp.org>
21045
21046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
21047
21048 2007-04-10  Bruno Haible  <bruno@clisp.org>
21049
21050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
21051         for NaN and Infinity. Needed on FreeBSD 6.1.
21052         * tests/test-vasnprintf-posix.c (test_function): Undo last change
21053         regarding results for "%010a" of Infinity and NaN.
21054         * tests/test-vasprintf-posix.c (test_function): Likewise.
21055         * tests/test-snprintf-posix.h (test_function): Likewise.
21056         * tests/test-sprintf-posix.h (test_function): Likewise.
21057         * tests/test-fprintf-posix.h (test_function): Likewise.
21058         * tests/test-printf-posix.h (test_function): Likewise.
21059         * tests/test-fprintf-posix.out: Likewise.
21060
21061 2007-04-10  Bruno Haible  <bruno@clisp.org>
21062
21063         * modules/locale-tests: New file.
21064         * tests/test-locale.c: New file.
21065
21066         * modules/locale: New file.
21067         * lib/locale_.h: New file.
21068         * m4/locale_h.m4: New file.
21069
21070 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
21071             Bruno Haible  <bruno@clisp.org>
21072
21073         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
21074         be determined, test for availability of the copysignf, copysign,
21075         copysignl functions.
21076         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
21077         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
21078         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
21079
21080 2007-04-09  Eric Blake  <ebb9@byu.net>
21081
21082         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
21083         * modules/stdio (Makefile.am): Support fflush.
21084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21085         * modules/fflush: New file.
21086         * lib/fflush.c: Likewise.
21087         * m4/fflush.m4: Likewise.
21088         * modules/fflush-tests: New test.
21089         * tests/test-fflush.c: Likewise.
21090         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
21091
21092 2007-04-06  Bruno Haible  <bruno@clisp.org>
21093
21094         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
21095         (VASNPRINTF): Use signbit for faster determination whether to print a
21096         minus sign.
21097         * modules/vasnprintf (Files): Remove lib/float+.h.
21098         * modules/fprintf-posix (Depends-on): Add signbit.
21099         * modules/snprintf-posix (Depends-on): Likewise.
21100         * modules/sprintf-posix (Depends-on): Likewise.
21101         * modules/vasnprintf-posix (Depends-on): Likewise.
21102         * modules/vasprintf-posix (Depends-on): Likewise.
21103         * modules/vfprintf-posix (Depends-on): Likewise.
21104         * modules/vsnprintf-posix (Depends-on): Likewise.
21105         * modules/vsprintf-posix (Depends-on): Likewise.
21106
21107 2007-04-06  Bruno Haible  <bruno@clisp.org>
21108
21109         * tests/test-frexp.c (main): Test also the sign bit of zero results.
21110         * tests/test-frexpl.c (main): Likewise.
21111         * tests/test-ldexpl.c (main): Likewise.
21112         * modules/frexp-tests (Depends-on): Add signbit.
21113         * modules/frexpl-tests (Depdends-on): Likewise.
21114         * modules/ldexpl-tests (Depdends-on): Likewise.
21115
21116 2007-04-06  Bruno Haible  <bruno@clisp.org>
21117
21118         * modules/signbit-tests: New file.
21119         * tests/test-signbit.c: New file.
21120
21121         * modules/signbit: New file.
21122         * lib/signbitf.c: New file.
21123         * lib/signbitd.c: New file.
21124         * lib/signbitl.c: New file.
21125         * m4/signbit.m4: New file.
21126         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
21127         (signbit): New macro.
21128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
21129         REPLACE_SIGNBIT.
21130         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
21131         REPLACE_FREXPL into math.h.
21132
21133 2007-04-06  Bruno Haible  <bruno@clisp.org>
21134
21135         * modules/isnanf-nolibm-tests: New file.
21136         * tests/test-isnanf.c: New file.
21137
21138         * modules/isnanf-nolibm: New file.
21139         * lib/isnanf.h: New file.
21140         * lib/isnanf.c: New file.
21141         * lib/isnan.c: Consider the USE_FLOAT macro.
21142         * m4/isnanf.m4: New file.
21143
21144 2007-04-06  Bruno Haible  <bruno@clisp.org>
21145
21146         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
21147         (Link): New section.
21148
21149         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21150
21151 2007-04-06  Bruno Haible  <bruno@clisp.org>
21152
21153         Assume the 'long double' type.
21154         * m4/longdouble.m4: Remove file.
21155         * config/srclist.txt: Don't mention longdouble.m4.
21156         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21157         * lib/float+.h: Likewise.
21158         * lib/frexp.c: Likewise.
21159         * lib/printf-args.h: Likewise.
21160         * lib/printf-args.c: Likewise.
21161         * lib/printf-frexp.c: Likewise.
21162         * lib/printf-parse.c: Likewise.
21163         * lib/vasnprintf.c: Likewise.
21164         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21165         * m4/intl.m4: Likewise.
21166         * m4/isnanl.m4: Likewise.
21167         * m4/printf.m4: Likewise.
21168         * m4/printf-frexpl.m4: Likewise.
21169         * m4/vasnprintf.m4: Likewise.
21170         * modules/allocsa (Files): Remove m4/longdouble.m4.
21171         * modules/gettext (Files): Likewise.
21172         * modules/relocatable-prog-wrapper (Files): Likewise.
21173         * modules/vasnprintf (Files): Likewise.
21174         * modules/isnanl (Files): Likewise.
21175         (Include): Simplify.
21176         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21177         (Include): Simplify.
21178         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21179         (Include): Simplify.
21180         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21181         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21182         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21183         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21184         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21185         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21186         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21187         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21188         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21189         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21190         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21191         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21192         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21193         * tests/test-isnanl.c: Likewise.
21194         * tests/test-snprintf-posix.h: Likewise.
21195         * tests/test-sprintf-posix.h: Likewise.
21196         * tests/test-vasnprintf-posix.c: Likewise.
21197         * tests/test-vasnprintf-posix2.c: Likewise.
21198         * tests/test-vasprintf-posix.c: Likewise.
21199
21200 2007-04-06  Bruno Haible  <bruno@clisp.org>
21201
21202         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21203         * lib/math_.h [__DECC]: Include the overridden include file through
21204         #include_next, outside the double-inclusion guard.
21205         * lib/stdio_.h [__DECC]: Likewise.
21206         * lib/stdlib_.h [__DECC]: Likewise.
21207         * lib/string_.h [__DECC]: Likewise.
21208         * lib/time_.h [__DECC]: Likewise.
21209         * lib/wchar_.h [__DECC]: Likewise.
21210         * lib/wctype_.h [__DECC]: Likewise.
21211         * lib/inttypes_.h [__DECC]: Likewise.
21212         Reported by Albert Chin <china@thewrittenword.com> in
21213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21214
21215 2007-04-04  Eric Blake  <ebb9@byu.net>
21216
21217         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21218         1.5.x.
21219
21220 2007-04-04  Bruno Haible  <bruno@clisp.org>
21221
21222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21223         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21224
21225 2007-04-04  Bruno Haible  <bruno@clisp.org>
21226
21227         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21228         results for "%010a" of Infinity and NaN.
21229         * tests/test-vasprintf-posix.c (test_function): Likewise.
21230         * tests/test-snprintf-posix.h (test_function): Likewise.
21231         * tests/test-sprintf-posix.h (test_function): Likewise.
21232         * tests/test-fprintf-posix.h (test_function): Remove these tests.
21233         * tests/test-printf-posix.h (test_function): Likewise.
21234         * tests/test-fprintf-posix.out: Update.
21235         Needed for FreeBSD 6.1.
21236
21237 2007-04-04  Bruno Haible  <bruno@clisp.org>
21238
21239         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21240         directly used by the gnulib modules nor by gnulib-tool.
21241
21242 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21243
21244         * DEPENDENCIES: Give overall description of version dependency
21245         desirability.  Use more-typical names for apps.
21246         Add shell, coreutils, diffutils, grep, tar, gzip.
21247
21248 2007-04-04  Simon Josefsson  <simon@josefsson.org>
21249
21250         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
21251
21252 2007-04-04  Karl Berry  <karl@gnu.org>
21253
21254         * MODULES.html.sh (func_module): missing '.
21255
21256 2007-04-03  Bruno Haible  <bruno@clisp.org>
21257
21258         * modules/argmatch-tests (Makefile.am): New variable
21259         test_argmatch_LDADD.
21260         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21261         * modules/array-list-tests (Makefile.am): New variable
21262         test_array_list_LDADD.
21263         * modules/array-oset-tests (Makefile.am): New variable
21264         test_array_oset_LDADD.
21265         * modules/avltree-list-tests (Makefile.am): New variable
21266         test_avltree_list_LDADD.
21267         * modules/avltree-oset-tests (Makefile.am): New variable
21268         test_avltree_oset_LDADD.
21269         * modules/avltreehash-list-tests (Makefile.am): New variable
21270         test_avltreehash_list_LDADD.
21271         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21272         test_canonicalize_lgpl_LDADD.
21273         * modules/carray-list-tests (Makefile.am): New variable
21274         test_carray_list_LDADD.
21275         * modules/dirname-tests (Makefile.am): New variable
21276         test_dirname_LDADD.
21277         * modules/linked-list-tests (Makefile.am): New variable
21278         test_linked_list_LDADD.
21279         * modules/linkedhash-list-tests (Makefile.am): New variable
21280         test_linkedhash_list_LDADD.
21281         * modules/rbtree-list-tests (Makefile.am): New variable
21282         test_rbtree_list_LDADD.
21283         * modules/rbtree-oset-tests (Makefile.am): New variable
21284         test_rbtree_oset_LDADD.
21285         * modules/rbtreehash-list-tests (Makefile.am): New variable
21286         test_rbtreehash_list_LDADD.
21287         * modules/xvasprintf-tests (Makefile.am): New variable
21288         test_xvasprintf_LDADD.
21289         Reported by Eric Blake.
21290
21291 2007-04-03  Eric Blake  <ebb9@byu.net>
21292
21293         * DEPENDENCIES: Weaken m4 requirements.
21294
21295 2007-04-03  Bruno Haible  <bruno@clisp.org>
21296
21297         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21298         * modules/isnanl-tests (configure.ac): Likewise.
21299
21300 2007-04-03  Ben Pfaff  <blp@gnu.org>
21301
21302         * modules/iconv_open: Add $(srcdir)/ to source directory
21303         references in Makefile fragments that call gperf, to fix VPATH
21304         builds.
21305
21306 2007-04-03  Bruno Haible  <bruno@clisp.org>
21307
21308         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21309         * lib/ldexpl.c: Undo last change.
21310
21311 2007-04-03  Bruno Haible  <bruno@clisp.org>
21312
21313         * modules/printf-frexpl (Depends-on): Undo last change.
21314         (Files): Add m4/ldexpl.m4.
21315
21316 2007-04-03  Bruno Haible  <bruno@clisp.org>
21317
21318         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21319         * modules/isnanl (Link): New section.
21320
21321         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21322         * modules/frexp (Link): New section.
21323
21324         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21325         * modules/frexpl (Link): New section.
21326
21327         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21328         * modules/ldexpl (Link): New section.
21329
21330 2007-04-03  Bruno Haible  <bruno@clisp.org>
21331
21332         * modules/TEMPLATE-EXTENDED: New file.
21333         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21334
21335 2007-04-03  Bruno Haible  <bruno@clisp.org>
21336
21337         * DEPENDENCIES: New file.
21338         Suggested by Simon Josefsson.
21339
21340 2007-04-03  Bruno Haible  <bruno@clisp.org>
21341
21342         * doc/gnulib.texi: Escape @.
21343
21344 2007-04-03  James Youngman  <jay@gnu.org>
21345         and Paul Eggert  <eggert@cs.ucla.edu>
21346
21347         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21348         birthtime on all systems that have birthtime, not just those which
21349         use st_birthtimensec rather than st_birthtim.  Putting zero in
21350         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21351         that the birth time is not available for files on an NFS mount.
21352
21353 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21354
21355         * modules/memxor: Move back from crypto/, suggested by Bruno.
21356         * modules/crypto/hmac-sha1: Fix memxor dependency.
21357
21358         * modules/crypto/gc: Moved from ../.
21359
21360 2007-04-02  Eric Blake  <ebb9@byu.net>
21361
21362         * lib/ldexpl.c (includes): Avoid libm.
21363
21364         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21365
21366 2007-04-02  Bruno Haible  <bruno@clisp.org>
21367
21368         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21369         on IRIX.
21370
21371 2007-04-02  Bruno Haible  <bruno@clisp.org>
21372
21373         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21374         x86 or x86_64 platforms running MacOS X.
21375         Reported by Ryan Schmidt <@ryandesign.com>.
21376
21377 2007-04-02  Bruno Haible  <bruno@clisp.org>
21378
21379         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21380         i386.
21381
21382 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21383
21384         * modules/crypto/arcfour: Moved from ../.
21385         * modules/crypto/arcfour-tests: Moved from ../.
21386         * modules/crypto/arctwo: Moved from ../.
21387         * modules/crypto/arctwo-tests: Moved from ../.
21388         * modules/crypto/des: Moved from ../.
21389         * modules/crypto/des-tests: Moved from ../.
21390         * modules/crypto/gc-arcfour: Moved from ../.
21391         * modules/crypto/gc-arcfour-tests: Moved from ../.
21392         * modules/crypto/gc-arctwo: Moved from ../.
21393         * modules/crypto/gc-arctwo-tests: Moved from ../.
21394         * modules/crypto/gc-des: Moved from ../.
21395         * modules/crypto/gc-des-tests: Moved from ../.
21396         * modules/crypto/gc-hmac-md5: Moved from ../.
21397         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21398         * modules/crypto/gc-hmac-sha1: Moved from ../.
21399         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21400         * modules/crypto/gc-md2: Moved from ../.
21401         * modules/crypto/gc-md2-tests: Moved from ../.
21402         * modules/crypto/gc-md4: Moved from ../.
21403         * modules/crypto/gc-md4-tests: Moved from ../.
21404         * modules/crypto/gc-md5: Moved from ../.
21405         * modules/crypto/gc-md5-tests: Moved from ../.
21406         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21407         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21408         * modules/crypto/gc-random: Moved from ../.
21409         * modules/crypto/gc-rijndael: Moved from ../.
21410         * modules/crypto/gc-rijndael-tests: Moved from ../.
21411         * modules/crypto/gc-sha1: Moved from ../.
21412         * modules/crypto/gc-sha1-tests: Moved from ../.
21413         * modules/crypto/gc-tests: Moved from ../.
21414         * modules/crypto/hmac-md5: Moved from ../.
21415         * modules/crypto/hmac-md5-tests: Moved from ../.
21416         * modules/crypto/hmac-sha1: Moved from ../.
21417         * modules/crypto/hmac-sha1-tests: Moved from ../.
21418         * modules/crypto/md2: Moved from ../.
21419         * modules/crypto/md2-tests: Moved from ../.
21420         * modules/crypto/md4: Moved from ../.
21421         * modules/crypto/md4-tests: Moved from ../.
21422         * modules/crypto/md5: Moved from ../.
21423         * modules/crypto/md5-tests: Moved from ../.
21424         * modules/crypto/memxor: Moved from ../.
21425         * modules/crypto/rijndael: Moved from ../.
21426         * modules/crypto/rijndael-tests: Moved from ../.
21427         * modules/crypto/sha1: Moved from ../.
21428
21429 2007-03-30  James Youngman  <jay@gnu.org>
21430
21431         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21432         rename() to change the ctime of a file (because ctime is unaffected
21433         by rename on jfs2 on AIX 5.1).
21434         (main): Start by doing cleanup, in case a previous run failed leaving
21435         test files behind.
21436
21437 2007-03-31  Bruno Haible  <bruno@clisp.org>
21438
21439         Support old proprietary implementations of iconv.
21440         * modules/iconv_open: New file.
21441         * lib/iconv_.h: New file.
21442         * m4/iconv_h.m4: New file.
21443         * lib/iconv_open.c: New file.
21444         * lib/iconv_open-aix.gperf: New file.
21445         * lib/iconv_open-hpux.gperf: New file.
21446         * lib/iconv_open-irix.gperf: New file.
21447         * lib/iconv_open-osf.gperf: New file.
21448         * m4/iconv_open.m4: New file.
21449         * modules/linebreak (Depends-on): Add iconv_open.
21450         * modules/striconv (Depends-on): Likewise.
21451         * modules/striconveh (Depends-on): Likewise.
21452         * modules/unicodeio (Depends-on): Likewise.
21453         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21454         (iconv_t)(-1).
21455         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21456         conversion if cd is (iconv_t)(-1).
21457         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21458         is not possible.
21459
21460 2007-03-31  Bruno Haible  <bruno@clisp.org>
21461
21462         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21463         work on Solaris either. Protect also second use of "autodetect_jp".
21464
21465 2007-03-31  Bruno Haible  <bruno@clisp.org>
21466
21467         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21468         the function is not present.
21469
21470 2007-03-31  Bruno Haible  <bruno@clisp.org>
21471
21472         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21473         the function is not present.
21474
21475 2007-03-31  Bruno Haible  <bruno@clisp.org>
21476
21477         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21478         a bug in HP-UX iconv_open().
21479
21480 2007-03-31  Bruno Haible  <bruno@clisp.org>
21481
21482         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21483         (Mathematics <math.h>): New section, add fpieee.
21484         (Input/output <stdio.h>): Add fseterr.
21485         (Mathematics <math.h>): New section, add printf-frexp.
21486         (Container data structures): Add sublist.
21487         (Core language properties): Add fpucw, inline.
21488         (Functions for greatest-width integer types <inttypes.h>): Add
21489         imaxabs, imaxdiv, inttypes.
21490         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21491         isnanl-nolibm, ldexp.
21492         (Mathematics <math.h>): New section, add printf-frexpl.
21493         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21494         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21495         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21496         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21497         (Unicode string functions): Add unistr/u*-mbtoucr.
21498         (Java): Add javacomp-script, javaexec-script.
21499         (C#): Add csharpcomp-script, csharpexec-script.
21500         (Support for building libraries and executables): Add havelib,
21501         relocatable-*.
21502         (Support for maintaining and releasing projects): Renamed from
21503         'Support for maintaining and release projects'. Add announce-gen.
21504
21505 2007-03-31  Bruno Haible  <bruno@clisp.org>
21506
21507         * README: Talk primarily about git.
21508         (git and CVS): Renamed from CVS.
21509         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21510         gnulib is available through git.
21511         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21512
21513 2007-03-30  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21516         * lib/poll_.h: Likewise.
21517         * lib/stat_.h: Likewise.
21518         * lib/sys_time_.h: Likewise.
21519         * lib/sysexit_.h: Likewise.
21520         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21521         * lib/stdbool_.h: Likewise.
21522         * lib/byteswap_.h: Add double-inclusion guard.
21523
21524 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21525
21526         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21527
21528 2007-03-30  Karl Berry  <karl@gnu.org>
21529
21530         * config/srclist-update: double space after USA in the license
21531         substitution, since that's how it's usually (?) written.
21532
21533 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21534
21535         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21536         reported by Bruno Haible.
21537
21538 2007-03-29  Bruno Haible  <bruno@clisp.org>
21539
21540         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21541         a bug in AIX iconv().
21542
21543 2007-03-29  Bruno Haible  <bruno@clisp.org>
21544
21545         * modules/ldexpl-tests: New file.
21546         * tests/test-ldexpl.c: New file.
21547
21548 2007-03-29  Bruno Haible  <bruno@clisp.org>
21549
21550         * lib/ldexpl.c: Include fpucw.h.
21551         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21552         multiplication.
21553         * modules/ldexpl (Depends-on): Add fpucw.
21554
21555 2007-03-29  Bruno Haible  <bruno@clisp.org>
21556
21557         * modules/ldexpl: New file.
21558         * m4/ldexpl.m4: New file.
21559         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21560         set.
21561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21562         REPLACE_LDEXPL.
21563         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21564         REPLACE_LDEXPL.
21565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21566         gl_FUNC_LDEXPL_WORKS.
21567         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21568         * modules/mathl (Files): Remove lib/ldexpl.c.
21569         (Depends-on): Add ldexpl.
21570
21571 2007-03-29  Bruno Haible  <bruno@clisp.org>
21572
21573         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21574
21575 2007-03-29  Bruno Haible  <bruno@clisp.org>
21576
21577         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21578         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21579         and possibly also HP-UX.
21580         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21581         work on AIX, IRIX, HP-UX, OSF/1.
21582         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21583         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21584         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21585         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21586         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21587         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21588
21589 2007-03-29  Bruno Haible  <bruno@clisp.org>
21590
21591         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21592
21593 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21596         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21597
21598 2007-03-29  Eric Blake  <ebb9@byu.net>
21599
21600         * lib/acl-internal.h: Remove redundant include.
21601         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21602         Cygwin when a file is locked.
21603
21604 2007-03-29  Bruno Haible  <bruno@clisp.org>
21605
21606         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21607         file.
21608         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21609
21610 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21611
21612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21613         try to remove a parent directory if the child couldn't be removed
21614         (except for the first rmdir, which could fail because the child
21615         doesn't exist).  Problem reported by Jeff Blaine in
21616         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21617
21618 2007-03-28  Bruno Haible  <bruno@clisp.org>
21619
21620         * lib/striconveh.c (utf8conv_carefully): New function.
21621         (mem_cd_iconveh_internal): Invoke it.
21622
21623 2007-03-28  Bruno Haible  <bruno@clisp.org>
21624
21625         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21626         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21627         input.
21628         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21629         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21630         unistr/u8-uctomb.
21631
21632 2007-03-28  Bruno Haible  <bruno@clisp.org>
21633
21634         * modules/unistr/u8-mbtoucr: New file.
21635         * lib/unistr/u8-mbtoucr.c: New file.
21636         * modules/unistr/u16-mbtoucr: New file.
21637         * lib/unistr/u16-mbtoucr.c: New file.
21638         * modules/unistr/u16-mbtoucr: New file.
21639         * lib/unistr/u16-mbtoucr.c: New file.
21640         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21641
21642 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21643             Bruno Haible  <bruno@clisp.org>
21644
21645         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21646         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21647         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21648
21649         * m4/stdio_h.m4: Add stubs for vasprintf too.
21650
21651         * modules/stdio: Support vasprintf in sed command.
21652
21653         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21654         vasprintf.h.  Add stdio module indicator.
21655
21656         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21657         vasprintf.h.
21658
21659         * lib/vasprintf.h: File removed.
21660
21661         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21662         * lib/vasprintf.c: Ditto.
21663         * lib/xvasprintf.c: Ditto.
21664         * tests/test-vasprintf-posix.c: Ditto.
21665         * tests/test-vasprintf.c: Ditto.
21666
21667 2007-03-27  Bruno Haible  <bruno@clisp.org>
21668
21669         Make vasnprintf multithread-safe.
21670         * lib/vasnprintf.c (decimal_point_char): New function.
21671         (VASNPRINTF): Use it.
21672         Suggested by Simon Josefsson.
21673
21674 2007-03-27  Eric Blake  <ebb9@byu.net>
21675
21676         Support sub-second birthtime on cygwin.
21677         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21678         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21679         (get_stat_birthtime): Also work with st_birthtim.
21680
21681 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21682
21683         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21684         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21685         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21686         (get_stat_birthtime_ns): Simplify compile-time tests.
21687         (get_stat_birthtime): Change the API to look like
21688         get_stat_mtime etc., except return a negative tv_nsec on error.
21689         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21690         Don't check for "spare" fields.
21691         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21692         or for struct stat.st_birthtime, as these tests aren't used.
21693         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21694
21695 2007-03-27  Bruno Haible  <bruno@clisp.org>
21696
21697         * lib/stat-time.h: Include <sys/stat.h>.
21698
21699 2007-03-27  James Youngman  <jay@gnu.org>
21700
21701         * lib/stat-time.h (get_stat_birthtime): New function for
21702           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21703         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21704           and its variants.
21705         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21706         * modules/stat-time-test: New file.
21707         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21708
21709 2007-03-26  Bruno Haible  <bruno@clisp.org>
21710
21711         Better support of signalling NaNs.
21712         * lib/atanl.c: Include isnanl.h.
21713         (atanl): Perform test for NaN at the beginning of the function and
21714         through a call to isnanl.
21715         * lib/cosl.c: Include isnanl.h.
21716         (cosl): Perform test for NaN at the beginning of the function and
21717         through a call to isnanl.
21718         * lib/ldexpl.c: Include isnanl.h.
21719         (ldexpl): Perform test for NaN through a call to isnanl.
21720         * lib/logl.c: Include isnanl.h.
21721         (logl): Perform test for NaN at the beginning of the function and
21722         through a call to isnanl.
21723         * lib/sinl.c: Include isnanl.h.
21724         (sinl): Perform test for NaN at the beginning of the function and
21725         through a call to isnanl.
21726         * lib/sqrtl.c: Include isnanl.h.
21727         (sqrtl): Perform test for NaN at the beginning of the function and
21728         through a call to isnanl.
21729         * lib/tanl.c: Include isnanl.h.
21730         (tanl): Perform test for NaN at the beginning of the function and
21731         through a call to isnanl.
21732         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21733         * modules/mathl (Depends-on): Add isnanl.
21734
21735 2007-03-26  Eric Blake  <ebb9@byu.net>
21736
21737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21738         regression in logic sense of previous patch.
21739
21740 2007-03-26  Bruno Haible  <bruno@clisp.org>
21741
21742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21743         unportable shell command "if ! ...".
21744         Reported by Ralf Wildenhues.
21745
21746 2007-03-25  Bruno Haible  <bruno@clisp.org>
21747
21748         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21749         <sysexits.h> file, and only add EX_CONFIG.
21750         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21751         absolute file name and whether it is sufficient. Substitute also
21752         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21753         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21754         ABSOLUTE_SYSEXITS_H into sysexits.h.
21755
21756 2007-03-25  Bruno Haible  <bruno@clisp.org>
21757
21758         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21759         hints is NULL.
21760
21761 2007-03-25  Bruno Haible  <bruno@clisp.org>
21762
21763         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21764         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21765
21766 2007-03-25  Bruno Haible  <bruno@clisp.org>
21767
21768         * lib/vasnprintf.c: Include langinfo.h.
21769         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21770         multithread-safe.
21771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21780         Reported by Simon Josefsson.
21781
21782 2007-03-25  Bruno Haible  <bruno@clisp.org>
21783
21784         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21785         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21786         * modules/vasnprintf (Depends-on): Add stdint.
21787
21788 2007-03-25  Bruno Haible  <bruno@clisp.org>
21789
21790         * modules/fpieee: New file.
21791         * m4/fpieee.m4: New file.
21792         * modules/isnan-nolibm (Depends-on): Add fpieee.
21793         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21794         * modules/isnanl (Depends-on): Add fpieee.
21795
21796 2007-03-25  Bruno Haible  <bruno@clisp.org>
21797
21798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21799
21800 2007-03-25  Bruno Haible  <bruno@clisp.org>
21801
21802         Avoid test failures on IRIX 6.5.
21803         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21804         (main): Use it.
21805         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21806         macros.
21807         (main): Use them.
21808
21809 2007-03-25  Bruno Haible  <bruno@clisp.org>
21810
21811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21812         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21813         exists but doesn't work.
21814         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21815         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21817         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21818
21819 2007-03-25  Bruno Haible  <bruno@clisp.org>
21820
21821         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21822         returns inf. Needed on IRIX 6.5.
21823
21824 2007-03-25  Bruno Haible  <bruno@clisp.org>
21825
21826         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21827         (main): Use isnanl instead of x != x idiom.
21828         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21829
21830         * tests/test-frexp.c: Include isnan.h.
21831         (main): Use isnan instead of x != x idiom.
21832         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21833
21834 2007-03-25  Bruno Haible  <bruno@clisp.org>
21835
21836         * tests/test-frexp.c (NaN): New function/macro.
21837         (main): Use it instead of 0.0 / 0.0.
21838         * tests/test-isnan.c (NaN): New function/macro.
21839         (main): Use it instead of 0.0 / 0.0.
21840         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21841         (test_function): Use it instead of 0.0 / 0.0.
21842         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21843         (test_function): Use it instead of 0.0 / 0.0.
21844         * tests/test-snprintf-posix.h (NaN): New function/macro.
21845         (test_function): Use it instead of 0.0 / 0.0.
21846         * tests/test-sprintf-posix.h (NaN): New function/macro.
21847         (test_function): Use it instead of 0.0 / 0.0.
21848         * tests/test-fprintf-posix.h (NaN): New function/macro.
21849         (test_function): Use it instead of 0.0 / 0.0.
21850         * tests/test-printf-posix.h (NaN): New function/macro.
21851         (test_function): Use it instead of 0.0 / 0.0.
21852
21853         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21854
21855 2007-03-25  Bruno Haible  <bruno@clisp.org>
21856
21857         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21858
21859 2007-03-25  Bruno Haible  <bruno@clisp.org>
21860
21861         * lib/regexec.c (merge_state_with_log): Make static.
21862
21863 2007-03-25  Bruno Haible  <bruno@clisp.org>
21864
21865         * lib/trigl.c (kernel_rem_pio2): Make static.
21866
21867 2007-03-25  Bruno Haible  <bruno@clisp.org>
21868
21869         * lib/sincosl.c (sincosl_table): Make static.
21870
21871 2007-03-25  Bruno Haible  <bruno@clisp.org>
21872
21873         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21874         if the compiler does not support C99.
21875
21876 2007-03-25  Bruno Haible  <bruno@clisp.org>
21877
21878         * modules/time (Makefile.am): Ensure all rule action lines start with a
21879         tab.
21880
21881 2007-03-24  Bruno Haible  <bruno@clisp.org>
21882
21883         * modules/tsearch-tests: New file.
21884         * tests/test-tsearch.sh: New file.
21885         * tests/test-tsearch.c: New file, mostly copied from glibc.
21886
21887         * modules/search-tests: New file.
21888         * tests/test-search.c: New file.
21889
21890         * modules/search: New file.
21891         * lib/search_.h: New file, incorporating lib/tsearch.h.
21892         * m4/search_h.m4: New file.
21893         * lib/tsearch.h: Remove file.
21894         * lib/tsearch.c: Include search.h instead of tsearch.h.
21895         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21896         HAVE_TSEARCH.
21897         * modules/tsearch (Files): Remove lib/tsearch.h.
21898         (Depends-on): Add search.
21899         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21900         (Include): Change tsearch.h into search.h.
21901
21902 2007-03-24  Bruno Haible  <bruno@clisp.org>
21903
21904         * modules/fpucw: New file.
21905         * lib/fpucw.h: New file.
21906         * lib/frexp.c: Include fpucw.h.
21907         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21908         (FUNC): Use them.
21909         * lib/printf-frexp.c: Include fpucw.h.
21910         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21911         (FUNC): Use them.
21912         * lib/vasnprintf.c: Include fpucw.h.
21913         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21914         'long double' calculations.
21915         * tests/test-frexpl.c: Include fpucw.h.
21916         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21917         * tests/test-printf-frexpl.c: Include fpucw.h.
21918         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21919         * modules/frexpl (Depends-on): Add fpucw.
21920         * modules/printf-frexpl (Depends-on): Likewise.
21921         * modules/fprintf-posix (Depends-on): Likewise.
21922         * modules/snprintf-posix (Depends-on): Likewise.
21923         * modules/sprintf-posix (Depends-on): Likewise.
21924         * modules/vasnprintf-posix (Depends-on): Likewise.
21925         * modules/vasprintf-posix (Depends-on): Likewise.
21926         * modules/vfprintf-posix (Depends-on): Likewise.
21927         * modules/vsnprintf-posix (Depends-on): Likewise.
21928         * modules/vsprintf-posix (Depends-on): Likewise.
21929         * modules/frexpl-tests (Depends-on): Likewise.
21930         * modules/printf-frexpl-tests (Depends-on): Likewise.
21931
21932 2007-03-24  Bruno Haible  <bruno@clisp.org>
21933
21934         * lib/float+.h: New file.
21935         * lib/isnan.c: Include float+.h.
21936         (SIZE): New macro.
21937         (FUNC): Compare only SIZE bytes of the value.
21938         * lib/vasnprintf.c: Include float+.h.
21939         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21940         SIZEOF_LDBL or SIZEOF_DBL bytes.
21941         * modules/isnan-nolibm (Files): Add lib/float+.h.
21942         * modules/isnanl-nolibm (Files): Add lib/float+.h.
21943         * modules/isnanl (Files): Add lib/float+.h.
21944         * modules/vasnprintf (Files): Add lib/float+.h.
21945
21946 2007-03-24  Bruno Haible  <bruno@clisp.org>
21947
21948         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21949         include isnanl-nolibm.h.
21950
21951 2007-03-24  Bruno Haible  <bruno@clisp.org>
21952
21953         * tests/test-read-file.c (main): Don't produce spurious output for
21954         expected situations. Make the test fail if it encountered unexpected
21955         results.
21956
21957 2007-03-24  Bruno Haible  <bruno@clisp.org>
21958
21959         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21960         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21961
21962 2007-03-24  Bruno Haible  <bruno@clisp.org>
21963
21964         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21965
21966 2007-03-24  Bruno Haible  <bruno@clisp.org>
21967
21968         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21969         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21970
21971         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21972         * modules/utf8-ucs4: Turn into a symbolic link to module
21973         unistr/u8-mbtouc.
21974
21975         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21976         utf8-ucs4-unsafe.
21977         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21978         unistr/u8-mbtouc-unsafe.
21979
21980         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21981         * modules/utf16-ucs4: Turn into a symbolic link to module
21982         unistr/u16-mbtouc.
21983
21984         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21985         utf16-ucs4-unsafe.
21986         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21987         unistr/u16-mbtouc-unsafe.
21988
21989         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21990         * modules/ucs4-utf8: Turn into a symbolic link to module
21991         unistr/u8-ubtomb.
21992
21993         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21994         * modules/ucs4-utf16: Turn into a symbolic link to module
21995         unistr/u16-ubtomb.
21996
21997 2007-03-24  Bruno Haible  <bruno@clisp.org>
21998
21999         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
22000         Enable the function only if HAVE_INLINE.
22001         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
22002         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22003         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
22004         Enable the function only if HAVE_INLINE.
22005         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
22006         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22007         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
22008         Enable the function only if HAVE_INLINE.
22009         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
22010         Enable the function only if HAVE_INLINE.
22011         * modules/utf8-ucs4: Update.
22012         * modules/utf8-ucs4-unsafe: Update.
22013         * modules/utf16-ucs4: Update.
22014         * modules/utf16-ucs4-unsafe: Update.
22015         * modules/ucs4-utf8: Update.
22016         * modules/ucs4-utf16: Update.
22017
22018 2007-03-24  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/utf8-ucs4.h: Remove file.
22021         * lib/utf8-ucs4-unsafe.h: Remove file.
22022         * lib/utf16-ucs4.h: Remove file.
22023         * lib/utf16-ucs4-unsafe.h: Remove file.
22024         * lib/ucs4-utf8.h: Remove file.
22025         * lib/ucs4-utf16.h: Remove file.
22026         * lib/unistr.h: Include their previous contents.
22027         * m4/utf-ucs4.m4: Remove file.
22028         * m4/ucs4-utf.m4: Remove file.
22029         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
22030         (Depends-on): Add unistr/base.
22031         (configure.ac): Remove gl_UTF_UCS4.
22032         (Makefile.am): Update.
22033         (Include): Change to unistr.h.
22034         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
22035         (Depends-on): Add unistr/base.
22036         (configure.ac): Remove gl_UTF_UCS4.
22037         (Makefile.am): Update.
22038         (Include): Change to unistr.h.
22039         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
22040         (Depends-on): Add unistr/base.
22041         (configure.ac): Remove gl_UTF_UCS4.
22042         (Makefile.am): Update.
22043         (Include): Change to unistr.h.
22044         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
22045         (Depends-on): Add unistr/base.
22046         (configure.ac): Remove gl_UTF_UCS4.
22047         (Makefile.am): Update.
22048         (Include): Change to unistr.h.
22049         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
22050         (Depends-on): Add unistr/base.
22051         (configure.ac): Remove gl_UCS4_UTF.
22052         (Makefile.am): Update.
22053         (Include): Change to unistr.h.
22054         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
22055         (Depends-on): Add unistr/base.
22056         (configure.ac): Remove gl_UCS4_UTF.
22057         (Makefile.am): Update.
22058         (Include): Change to unistr.h.
22059         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
22060         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
22061         utf8-ucs4-unsafe.h.
22062         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
22063         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
22064         utf16-ucs4-unsafe.h.
22065         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
22066         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
22067         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
22068         * lib/unistr/u8-strchr.c: Likewise.
22069         * lib/unistr/u8-strrchr.c: Likewise.
22070         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
22071         * lib/unistr/u16-strchr.c: Likewise.
22072         * lib/unistr/u16-strrchr.c: Likewise.
22073         * lib/striconveh.c: Update.
22074         * lib/linebreak.c: Update.
22075
22076 2007-03-24  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
22079         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
22080
22081 2007-03-22  Bruno Haible  <bruno@clisp.org>
22082
22083         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
22084
22085 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22086
22087         * MODULES.html.sh (File system functions): New module write-any-file.
22088         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
22089         * m4/write-any-file.m4: New files.
22090
22091 2007-03-23  Eric Blake  <ebb9@byu.net>
22092
22093         * gnulib-tool: Rearrange space-tab sequences, since some editors
22094         like to eat them.
22095
22096 2007-03-23  Eric Blake  <ebb9@byu.net>
22097
22098         * lib/version-etc.c (version_etc_va): Update license wording to
22099         be more concise.  Recommended by Richard Stallman.
22100
22101 2007-03-22  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/poll.c (MSG_PEEK): New fallback definition.
22104
22105 2007-03-22  Bruno Haible  <bruno@clisp.org>
22106
22107         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
22108         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
22109         (main): Update.
22110         Fixes a compilation error on BeOS.
22111
22112 2007-03-22  Bruno Haible  <bruno@clisp.org>
22113
22114         * modules/frexpl-tests: New file.
22115         * tests/test-frexpl.c: New file.
22116
22117         * modules/frexpl: New file.
22118         * m4/frexpl.m4: New file.
22119         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
22120         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
22121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
22122         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
22123         (Depends-on): Add frexpl. Remove isnanl-nolibm.
22124         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
22125
22126 2007-03-22  Bruno Haible  <bruno@clisp.org>
22127
22128         * lib/frexpl.c: Share code with lib/frexp.c.
22129         * modules/mathl (Files): Add lib/frexp.c.
22130         (Depends-on): Add isnanl-nolibm.
22131
22132 2007-03-22  Bruno Haible  <bruno@clisp.org>
22133
22134         * modules/printf-frexp (Files): Add m4/frexp.m4.
22135         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
22136         only if the found frexp function actually works.
22137
22138 2007-03-22  Bruno Haible  <bruno@clisp.org>
22139
22140         * lib/frexp.c: Remove older implementation that uses divisions.
22141
22142 2007-03-21  Bruno Haible  <bruno@clisp.org>
22143
22144         * modules/frexp-tests: New file.
22145         * tests/test-frexp.c: New file.
22146
22147         * modules/frexp: New file.
22148         * lib/frexp.c: New file.
22149         * m4/frexp.m4: New file.
22150         * lib/math_.h (frexp): New declaration.
22151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22152         REPLACE_FREXP.
22153         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22154
22155 2007-03-21  Bruno Haible  <bruno@clisp.org>
22156
22157         * modules/isnanl-tests: New file.
22158         * tests/test-isnanl.c: New file.
22159
22160         * modules/isnanl: New file.
22161         * lib/isnanl.h: New file.
22162         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22163         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22164         gl_FUNC_ISNANL_WORKS.
22165         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22166         New macros.
22167
22168 2007-03-21  Bruno Haible  <bruno@clisp.org>
22169
22170         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22171         lib/isnanl.h.
22172         (Include): Update.
22173         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22174         * lib/vasnprintf.c: Update.
22175         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22176         tests/test-isnanl.h, remove tests/test-isnanl.c.
22177         (Makefile.am): Update.
22178         * tests/test-isnanl-nolibm.c: New file.
22179         * tests/test-isnanl.h: New file.
22180         * tests/test-isnanl.c: Remove file.
22181
22182 2007-03-21  Jim Meyering  <jim@meyering.net>
22183
22184         When trying to open ".", treat ESTALE like EACCES.
22185         * lib/savewd.c (savewd_save): Resort to forking not just upon
22186         failure with EACCES, but also when errno is ESTALE.
22187
22188 2007-03-20  Bruno Haible  <bruno@clisp.org>
22189
22190         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22191         Needed on AIX 5.1. Reported by Matthew Woehlke.
22192
22193 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22194
22195         Suggestions by Bruno Haible:
22196         * lib/acl-internal.h: Include "gettext.h" rather than rolling
22197         our own.
22198         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22199         * modules/acl (Depends-on): Add gettext.
22200
22201 2007-03-19  Bruno Haible  <bruno@clisp.org>
22202
22203         * modules/iconvme: Remove file.
22204         * lib/iconvme.h: Remove file.
22205         * lib/iconvme.c: Remove file.
22206         * m4/iconvme.m4: Remove file.
22207
22208 2007-03-19  Bruno Haible  <bruno@clisp.org>
22209
22210         * doc/relocatable-maint.texi: Break long shell script line.
22211         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22212
22213 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22214
22215         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22216         handle file_has_acl.
22217         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22218         * lib/acl.c: Move header inclusions and related macro defns into
22219         lib/acl-internal.h.
22220         (S_ISLNK): Remove defn, since that's now done for us.
22221         (file_has_acl): Move to lib/file-has-acl.c.
22222         Call acl_trivial if available.  This is the crucial part of the fix.
22223         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22224         shared within the library.  Rewrite a bit, partly to make it compatible
22225         with the GNU coding style.
22226         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22227         Remove unnecessary double-quotes.
22228         Don't test for acl_to_text; the build will catch that.
22229         Replace acl_entries if it doesn't exist and it is needed.
22230         Check for -lsec and acl_trivial (as used on Solaris 10).
22231         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22232         lib/file-has-acl.c.
22233         (Depends-on): Add sys_stat, for S_ISLNK.
22234
22235 2007-03-19  Ben Pfaff  <blp@gnu.org>
22236
22237         * doc/gnulib.texi: Fix typos.
22238         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22239
22240 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22241
22242         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22243         If size is zero here, buf must be zero.
22244
22245 2007-03-19  Simon Josefsson  <simon@josefsson.org>
22246
22247         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
22248         <bruno@clisp.org>.
22249
22250 2007-03-18  Bruno Haible  <bruno@clisp.org>
22251
22252         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22253         Suggested by Eric Blake.
22254
22255 2007-03-18  Ben Pfaff  <blp@gnu.org>
22256
22257         * doc/relocatable.texi: Recommend using as prefix a directory
22258         that does not exist and will never be created.  Based on
22259         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22260         and others.
22261
22262 2007-03-17  Bruno Haible  <bruno@clisp.org>
22263
22264         * lib/fchownat.c: Include lchown.h.
22265
22266 2007-03-17  Bruno Haible  <bruno@clisp.org>
22267
22268         Fix endless loop when the given allocated size was > INT_MAX.
22269         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22270         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22271         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22272         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22273         * lib/sprintf.c (sprintf): Likewise.
22274
22275 2007-03-17  Bruno Haible  <bruno@clisp.org>
22276
22277         * tests/test-argp-2.sh (func_compare): Output a context diff.
22278
22279 2007-03-17  Bruno Haible  <bruno@clisp.org>
22280
22281         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22282         locale's decimal-point character.
22283
22284 2007-03-17  Bruno Haible  <bruno@clisp.org>
22285
22286         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22287         before comparing it. Needed because on some platforms (e.g. x86) a
22288         'long double' occupies less bytes than sizeof (long double).
22289
22290 2007-03-17  Bruno Haible  <bruno@clisp.org>
22291
22292         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22293         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22294         * tests/test-getaddrinfo.c (simple): Likewise.
22295         * tests/test-read-file.c (main): Likewise.
22296
22297 2007-03-17  Bruno Haible  <bruno@clisp.org>
22298
22299         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22300
22301 2007-03-17  Bruno Haible  <bruno@clisp.org>
22302
22303         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22304         unused variable.
22305
22306 2007-03-17  Bruno Haible  <bruno@clisp.org>
22307
22308         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22309         * tests/test-c-strncasecmp.c: Likewise.
22310
22311 2007-03-17  Bruno Haible  <bruno@clisp.org>
22312
22313         * modules/stdlib (Depends-on): Add unistd.
22314         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22315         Needed for MacOS X 10.3.
22316
22317 2007-03-17  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22320
22321 2007-03-17  Bruno Haible  <bruno@clisp.org>
22322
22323         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22324
22325 2007-03-17  Bruno Haible  <bruno@clisp.org>
22326
22327         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22328         to reflect files copied from gnulib (with or without modifications).
22329         Suggested by Jim Meyering.
22330
22331 2007-03-17  Eric Blake  <ebb9@byu.net>
22332
22333         * NEWS: Document stdlib change from 2007-02-18.
22334
22335 2007-03-17  Jim Meyering  <jim@meyering.net>
22336
22337         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22338         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22339         someone uses a name containing shell meta-characters.
22340         Reported by Alfred M. Szmidt.
22341
22342         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22343
22344 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22345
22346         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22347         and copy gettext configuration files only if configure.ac contains
22348         a use of AM_GNU_GETTEXT_VERSION.
22349
22350 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22351
22352         * build-aux/bootstrap (gnulib_name): New variable.
22353         (gnulib_tool_options): Use it.
22354
22355 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22356
22357         * tests/test-des.c: Use new namespace.
22358
22359 2007-03-15  Bruno Haible  <bruno@clisp.org>
22360
22361         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22362         Reported by James Youngman <jay@gnu.org>.
22363
22364 2007-03-15  Bruno Haible  <bruno@clisp.org>
22365
22366         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22367         declared prototype. Needed with cc on OSF/1 5.1.
22368
22369 2007-03-15  Bruno Haible  <bruno@clisp.org>
22370
22371         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22372         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22373         (struct gl_list_implementation): Add dispose_fn argument to the
22374         'create_empty', 'create' methods.
22375         (struct gl_list_impl_base): Add field 'dispose_fn'.
22376         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22377         argument.
22378         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22379         dispose_fn argument.
22380         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22381         dispose_fn on the dropped values.
22382         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22383         dispose_fn argument.
22384         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22385         dropped values.
22386         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22387         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22388         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22389         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22390         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22391         argument.
22392         (gl_tree_list_free): Call dispose_fn on the dropped values.
22393         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22394         the dropped values.
22395         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22396         Add dispose_fn argument.
22397         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22398         Call dispose_fn on the dropped values.
22399         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22400         Add dispose_fn argument.
22401         (gl_sublist_create): Initialize the 'dispose_fn' field.
22402         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22403         * tests/test-array_list.c (main): Update.
22404         * tests/test-carray_list.c (main): Update.
22405         * tests/test-avltree_list.c (main): Update.
22406         * tests/test-rbtree_list.c (main): Update.
22407         * tests/test-avltreehash_list.c (main): Update.
22408         * tests/test-rbtreehash_list.c (main): Update.
22409         * tests/test-linked_list.c (main): Update.
22410         * tests/test-linkedhash_list.c (main): Update.
22411         * tests/test-array_oset.c (main): Update.
22412
22413 2007-03-15  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22416         (gl_oset_create_empty): Add dispose_fn argument.
22417         (struct gl_oset_implementation): Add dispose_fn argument to
22418         'create_empty' method.
22419         (struct gl_oset_impl_base): Add dispose_fn field.
22420         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22421         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22422         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22423         values.
22424         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22425         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22426         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22427         dropped value.
22428         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22429         dropped value.
22430         * tests/test-array_oset.c (main): Update.
22431         * tests/test-avltree_oset.c (main): Update.
22432         * tests/test-rbtree_oset.c (main): Update.
22433         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22434
22435 2007-03-13  Bruno Haible  <bruno@clisp.org>
22436
22437         * tests/test-stdbool.c (i): Update after last patch.
22438
22439 2007-03-12  Bruno Haible  <bruno@clisp.org>
22440
22441         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22442         the iswprint macro. Needed on Solaris 2.5.1.
22443
22444 2007-03-12  Bruno Haible  <bruno@clisp.org>
22445
22446         * tests/test-printf-frexp.c (main): Declare x as volatile.
22447
22448 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22449
22450         * doc/gnulib.texi (Build robot for gnulib): New section.
22451
22452 2007-03-12  Jim Meyering  <jim@meyering.net>
22453
22454         * build-aux/bootstrap: New file.
22455         * build-aux/bootstrap.conf: New file, from coreutils.
22456
22457 2007-03-11  Bruno Haible  <bruno@clisp.org>
22458
22459         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22460
22461 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22462
22463         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22464         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22465         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22466
22467 2007-03-11  Bruno Haible  <bruno@clisp.org>
22468
22469         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22470         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22471
22472 2007-03-11  Bruno Haible  <bruno@clisp.org>
22473
22474         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22475         formula. Needed for SunPRO C 5.0.
22476
22477 2007-03-11  Bruno Haible  <bruno@clisp.org>
22478
22479         * modules/long-options (Depends-on): Add getopt.
22480
22481 2007-03-11  Bruno Haible  <bruno@clisp.org>
22482
22483         * modules/modechange (Depends-on): Add stdbool.
22484
22485 2007-03-11  Bruno Haible  <bruno@clisp.org>
22486
22487         * modules/i-ring (Depends-on): Add stdbool.
22488
22489 2007-03-11  Bruno Haible  <bruno@clisp.org>
22490
22491         * modules/gc-des (Depends-on): Add stdbool.
22492
22493 2007-03-11  Bruno Haible  <bruno@clisp.org>
22494
22495         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22496
22497 2007-03-11  Bruno Haible  <bruno@clisp.org>
22498
22499         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22500
22501 2007-03-11  Bruno Haible  <bruno@clisp.org>
22502
22503         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22504
22505 2007-03-11  Bruno Haible  <bruno@clisp.org>
22506
22507         * lib/vasnprintf.c (sprintf): Undefine.
22508
22509 2007-03-11  Bruno Haible  <bruno@clisp.org>
22510
22511         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22512         initializers in SunPRO C and Compaq C compilers.
22513
22514 2007-03-11  Bruno Haible  <bruno@clisp.org>
22515
22516         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22517         decrementing code ANSI C compliant.
22518
22519 2007-03-11  Bruno Haible  <bruno@clisp.org>
22520
22521         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22522         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22523
22524 2007-03-11  Bruno Haible  <bruno@clisp.org>
22525
22526         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22527         <stdbool.h> substitute doesn't pass.
22528
22529 2007-03-11  Bruno Haible  <bruno@clisp.org>
22530
22531         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22532
22533 2007-03-11  Bruno Haible  <bruno@clisp.org>
22534
22535         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22536         script, for submission to autobuild.josefsson.org.
22537
22538 2007-03-10  Bruno Haible  <bruno@clisp.org>
22539
22540         * modules/canonicalize-lgpl-tests: New file.
22541         * tests/test-canonicalize-lgpl.sh: New file.
22542         * tests/test-canonicalize-lgpl.c: New file.
22543
22544         * modules/c-strcase-tests: New file.
22545         * tests/test-c-strcase.sh: New file.
22546         * tests/test-c-strcasecmp.c: New file.
22547         * tests/test-c-strncasecmp.c: New file.
22548
22549         * modules/atexit-tests: New file.
22550         * tests/test-atexit.sh: New file.
22551         * tests/test-atexit.c: New file.
22552
22553 2007-03-10  Bruno Haible  <bruno@clisp.org>
22554
22555         * tests/test-binary-io.sh: Use temporary filenames that are not so
22556         likely to clash with those of other tests (in a parallel make).
22557         * tests/test-binary-io.c: Likewise.
22558
22559 2007-03-10  Bruno Haible  <bruno@clisp.org>
22560
22561         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22562         fallback; use #error instead.
22563         Suggested by Simon Josefsson.
22564
22565 2007-03-10  Bruno Haible  <bruno@clisp.org>
22566
22567         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22568         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22569         first and the last.
22570
22571 2007-03-10  Bruno Haible  <bruno@clisp.org>
22572
22573         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22574
22575 2007-03-10  Bruno Haible  <bruno@clisp.org>
22576
22577         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22578         "make distcheck".
22579         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22580         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22581         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22582
22583 2007-03-10  Bruno Haible  <bruno@clisp.org>
22584
22585         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22586         variable.
22587         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22588         variable.
22589
22590 2007-03-09  Eric Blake  <ebb9@byu.net>
22591         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22592
22593         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22594         types are not being provided by gnulib.
22595         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22596         types are supported.
22597
22598 2007-03-10  Bruno Haible  <bruno@clisp.org>
22599
22600         * lib/stdio_.h (__attribute__): New macro.
22601         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22602         vsprintf): Specify __attribute__ __format__ for GCC.
22603         Suggested by Eric Blake.
22604
22605 2007-03-09  Bruno Haible  <bruno@clisp.org>
22606
22607         * modules/printf-posix-tests: New file.
22608         * tests/test-printf-posix.sh: New file.
22609         * tests/test-printf-posix.c: New file.
22610
22611         * modules/printf-posix: New file.
22612         * lib/printf.c: New file.
22613         * m4/printf-posix-rpl.m4: New file.
22614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22615         REPLACE_PRINTF.
22616         * lib/stdio_.h (printf): New declaration.
22617         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22618         ____strfmon____): New macros.
22619         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22620         REPLACE_PRINTF.
22621
22622 2007-03-09  Bruno Haible  <bruno@clisp.org>
22623
22624         * tests/test-vasnprintf-posix2.sh: New file.
22625         * tests/test-vasnprintf-posix2.c: New file.
22626         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22627         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22628         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22629
22630         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22631         a locale dependent decimal point, rather than always '.'.
22632
22633 2007-03-09  Eric Blake  <ebb9@byu.net>
22634
22635         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22636         spite of platforms like Tandem/NSK that define it to -1.
22637
22638 2007-03-08  Bruno Haible  <bruno@clisp.org>
22639
22640         * modules/vprintf-posix-tests: New file.
22641         * tests/test-vprintf-posix.sh: New file.
22642         * tests/test-vprintf-posix.c: New file.
22643         * tests/test-printf-posix.h: New file.
22644
22645         * modules/vprintf-posix: New file.
22646         * lib/vprintf.c: New file.
22647         * m4/vprintf-posix.m4: New file.
22648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22649         REPLACE_VPRINTF.
22650         * lib/stdio_.h (vprintf): New declaration.
22651         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22652         REPLACE_VPRINTF.
22653
22654 2007-03-08  Bruno Haible  <bruno@clisp.org>
22655
22656         * modules/fprintf-posix-tests: New file.
22657         * tests/test-fprintf-posix.sh: New file.
22658         * tests/test-fprintf-posix.c: New file.
22659
22660         * modules/fprintf-posix: New file.
22661         * lib/fprintf.c: New file.
22662         * m4/fprintf-posix.m4: New file.
22663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22664         REPLACE_FPRINTF.
22665         * lib/stdio_.h (fprintf): New declaration.
22666         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22667         REPLACE_FPRINTF.
22668
22669 2007-03-08  Bruno Haible  <bruno@clisp.org>
22670
22671         * modules/vfprintf-posix-tests: New file.
22672         * tests/test-vfprintf-posix.sh: New file.
22673         * tests/test-vfprintf-posix.c: New file.
22674         * tests/test-fprintf-posix.h: New file.
22675         * tests/test-fprintf-posix.out: New file.
22676
22677         * modules/vfprintf-posix: New file.
22678         * lib/vfprintf.c: New file.
22679         * m4/vfprintf-posix.m4: New file.
22680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22681         REPLACE_VFPRINTF.
22682         * lib/stdio_.h (vfprintf): New declaration.
22683         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22684         REPLACE_VFPRINTF.
22685
22686 2007-03-08  Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22689
22690 2007-03-08  Bruno Haible  <bruno@clisp.org>
22691
22692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22693         instead of 'expr' invocations.
22694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22699         Suggested by Paul Eggert.
22700
22701 2007-03-08  Bruno Haible  <bruno@clisp.org>
22702
22703         * modules/fseterr-tests: New file.
22704         * tests/test-fseterr.c: New file.
22705
22706         * modules/fseterr: New file.
22707         * lib/fseterr.h: New file.
22708         * lib/fseterr.c: New file.
22709
22710 2007-03-08  Bruno Haible  <bruno@clisp.org>
22711
22712         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22713         * lib/getopt_.h: Likewise.
22714         * lib/mbswidth.h: Likewise.
22715         * lib/setenv.h: Likewise.
22716         * lib/vasnprintf.h: Likewise.
22717         * lib/vasprintf.h: Likewise.
22718         * lib/verror.h: Likewise.
22719         * lib/xsetenv.h: Likewise.
22720         * lib/xvasprintf.h: Likewise.
22721
22722 2007-03-08  Jim Meyering  <jim@meyering.net>
22723
22724         * users.txt: Add parted.
22725
22726         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22727
22728 2007-03-07  Bruno Haible  <bruno@clisp.org>
22729
22730         * m4/printf.m4: Make the shell script snippets copy&pastable.
22731
22732 2007-03-02  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/netinet_in_.h: New file.
22735         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22736         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22737         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22738         (Depends-on): Add absolute-header.
22739         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22740         into netinet/in.h.
22741
22742 2007-03-03  Bruno Haible  <bruno@clisp.org>
22743
22744         * lib/sys_select_.h: New file.
22745         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22746         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22747         * modules/sys_select (Files): Add lib/sys_select_.h.
22748         (Depends-on): Add absolute-header.
22749         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22750         into sys/select.h.
22751
22752 2007-03-02  Bruno Haible  <bruno@clisp.org>
22753
22754         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22755         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22756         values.
22757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22758         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22759         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22760         * modules/sys_socket (Depends-on): Add absolute-header.
22761         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22762         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22763         (Include): Remove requirement of inclusion of <sys/types.h>.
22764
22765 2007-03-02  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/byteswap_.h (bswap_32): Fix formula.
22768
22769 2007-03-06  Bruno Haible  <bruno@clisp.org>
22770
22771         * modules/sprintf-posix-tests: New file.
22772         * tests/test-sprintf-posix.c: New file.
22773
22774         * modules/sprintf-posix: New file.
22775         * lib/sprintf.c: New file.
22776         * m4/sprintf-posix.m4: New file.
22777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22778         REPLACE_SPRINTF.
22779         * lib/stdio_.h (sprintf): New declaration.
22780         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22781         REPLACE_SPRINTF.
22782
22783 2007-03-06  Bruno Haible  <bruno@clisp.org>
22784
22785         * modules/vsprintf-posix-tests: New file.
22786         * tests/test-vsprintf-posix.c: New file.
22787         * tests/test-sprintf-posix.h: New file.
22788
22789         * modules/vsprintf-posix: New file.
22790         * lib/vsprintf.c: New file.
22791         * m4/vsprintf-posix.m4: New file.
22792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22793         REPLACE_VSPRINTF.
22794         * lib/stdio_.h (vsprintf): New declaration.
22795         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22796         REPLACE_VSPRINTF.
22797
22798 2007-03-06  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/vsnprintf (Depend-on): Remove minmax.
22801
22802 2007-03-06  Bruno Haible  <bruno@clisp.org>
22803
22804         * modules/snprintf-posix-tests: New file.
22805         * tests/test-snprintf-posix.c: New file.
22806
22807         * modules/snprintf-posix: New file.
22808         * m4/snprintf-posix.m4: New file.
22809         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22810         gl_FUNC_SNPRINTF.
22811         (gl_FUNC_SNPRINTF): Invoke it.
22812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22813         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22814         is set.
22815         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22816
22817 2007-03-06  Bruno Haible  <bruno@clisp.org>
22818
22819         * modules/vsnprintf-posix-tests: New file.
22820         * tests/test-vsnprintf-posix.c: New file.
22821         * tests/test-snprintf-posix.h: New file.
22822
22823         * modules/vsnprintf-posix: New file.
22824         * m4/vsnprintf-posix.m4: New file.
22825         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22826         gl_FUNC_VSNPRINTF.
22827         (gl_FUNC_VSNPRINTF): Invoke it.
22828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22829         * lib/stdio_.h (vsnprintf): Define as a replacement if
22830         REPLACE_VSNPRINTF is set.
22831         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22832
22833 2007-03-06  Bruno Haible  <bruno@clisp.org>
22834
22835         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22837
22838 2007-03-06  Bruno Haible  <bruno@clisp.org>
22839
22840         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22841         (asinl): Declare also if HAVE_DECL_ASINL is set.
22842         (atanl): Declare also if HAVE_DECL_ATANL is set.
22843         (ceill): Declare also if HAVE_DECL_CEILL is set.
22844         (cosl): Declare also if HAVE_DECL_COSL is set.
22845         (expl): Declare also if HAVE_DECL_EXPL is set.
22846         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22847         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22848         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22849         (logl): Declare also if HAVE_DECL_LOGL is set.
22850         (sinl): Declare also if HAVE_DECL_SINL is set.
22851         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22852         (tanl): Declare also if HAVE_DECL_TANL is set.
22853         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22856         declaration of frexpl, ldexpl.
22857         * modules/printf-frexpl (Depends-on): Add math.
22858         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22859
22860 2007-03-05  Bruno Haible  <bruno@clisp.org>
22861
22862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22863         frexpl and ldexpl are declared.
22864         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22865
22866 2007-03-05  Bruno Haible  <bruno@clisp.org>
22867
22868         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22869         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22870
22871 2007-03-05  Bruno Haible  <bruno@clisp.org>
22872
22873         * lib/stdio_.h: Include <stddef.h>.
22874
22875 2007-03-05  Bruno Haible  <bruno@clisp.org>
22876
22877         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22878
22879 2007-03-05  Bruno Haible  <bruno@clisp.org>
22880
22881         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22882         NetBSD 4, from Ralf Wildenhues.
22883
22884 2007-03-04  Bruno Haible  <bruno@clisp.org>
22885
22886         * lib/vasprintf.h: Update #if logic for the case when the functions
22887         exist but are overridden.
22888
22889 2007-03-04  Bruno Haible  <bruno@clisp.org>
22890
22891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22892         implementations: glibc-2.4 and MacOS X 10.3.
22893         * tests/test-vasnprintf-posix.c (test_function): Test also the case
22894         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22895         * tests/test-vasprintf-posix.c (test_function): Likewise.
22896
22897 2007-03-04  Bruno Haible  <bruno@clisp.org>
22898
22899         * modules/vasprintf-posix-tests: New file.
22900         * tests/test-vasprintf-posix.c: New file.
22901
22902         * modules/vasprintf-posix: New file.
22903         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22904         defined.
22905         * m4/vasprintf-posix.m4: New file.
22906         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22907         gl_FUNC_VASPRINTF.
22908         (gl_FUNC_VASPRINTF): Invoke it.
22909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22910         here.
22911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22912
22913 2007-03-04  Bruno Haible  <bruno@clisp.org>
22914
22915         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22916         REPLACE_GETTIMEOFDAY.
22917         * modules/sys_time (Makefile.am): Likewise.
22918         * m4/sys_time_h.m4: Likewise.
22919         * m4/gettimeofday.m4: Likewise.
22920
22921 2007-03-04  Bruno Haible  <bruno@clisp.org>
22922
22923         * modules/vasnprintf-posix-tests: New file.
22924         * tests/test-vasnprintf-posix.c: New file.
22925
22926         * modules/vasnprintf-posix: New file.
22927         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22928         printf-frexpl.h.
22929         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22930         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22931         REPLACE_VASNPRINTF is defined.
22932         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22933         gl_FUNC_VASNPRINTF.
22934         (gl_FUNC_VASNPRINTF): Invoke it.
22935         * m4/vasnprintf-posix.m4: New file.
22936         * m4/printf.m4: New file.
22937
22938 2007-03-04  Bruno Haible  <bruno@clisp.org>
22939
22940         Compile progreloc.c only if --enable-relocatable is specified.
22941         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22942         if --enable-relocatable was specified.
22943         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22944         lib_SOURCES.
22945
22946 2007-03-04  Jim Meyering  <jim@meyering.net>
22947
22948         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22949         Use it consistently, rather than enumerating errno constants.
22950
22951 2007-03-04  Bruno Haible  <bruno@clisp.org>
22952
22953         * modules/xvasprintf-tests: New file.
22954         * tests/test-xvasprintf.c: New file.
22955
22956         * modules/vasprintf-tests: New file.
22957         * tests/test-vasprintf.c: New file.
22958
22959         * modules/vasnprintf-tests: New file.
22960         * tests/test-vasnprintf.c: New file.
22961
22962         * modules/vsnprintf-tests: New file.
22963         * tests/test-vsnprintf.c: New file.
22964
22965         * modules/snprintf-tests: New file.
22966         * tests/test-snprintf.c: New file.
22967
22968 2007-03-04  Bruno Haible  <bruno@clisp.org>
22969
22970         Compile relocatable.c only if --enable-relocatable is specified.
22971         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22972         gl_RELOCATABLE_LIBRARY.
22973         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22974         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22975         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22976         gl_RELOCATABLE_LIBRARY.
22977         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22978         (Makefile.am): Remove lib_SOURCES.
22979         * modules/relocatable-lib-lgpl (configure.ac): Invoke
22980         gl_RELOCATABLE_LIBRARY.
22981         (Makefile.am): Remove lib_SOURCES.
22982         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22983         always.
22984         * modules/relocatable-prog-wrapper (configure.ac): Invoke
22985         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22986
22987 2007-03-04  Bruno Haible  <bruno@clisp.org>
22988
22989         * modules/argmatch-tests: New file.
22990         * tests/test-argmatch.c: New file.
22991
22992         * tests/test-allocsa.c (main): Halve the number of loop runs.
22993
22994         * modules/alloca-opt-tests: New file.
22995         * tests/test-alloca-opt.c: New file.
22996
22997 2007-03-04  Jim Meyering  <jim@meyering.net>
22998
22999         Work around difference between Linux ACLs and Solaris 10 ZFS.
23000         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
23001         for EINVAL.
23002
23003 2007-03-03  Bruno Haible  <bruno@clisp.org>
23004
23005         * modules/relocatable-prog (Depends-on): Add back progreloc's
23006         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
23007
23008 2007-03-03  Bruno Haible  <bruno@clisp.org>
23009
23010         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
23011         * modules/relocatable-lib: New file.
23012
23013 2007-03-03  Bruno Haible  <bruno@clisp.org>
23014
23015         * modules/relocatable-prog: Renamed from modules/relocatable.
23016         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
23017
23018 2007-03-03  Bruno Haible  <bruno@clisp.org>
23019
23020         * modules/relocatable-script (Files): Add doc/relocatable.texi,
23021         m4/relocatable-lib.m4.
23022         (Depends-on): Remove 'relocatable'.
23023         (configure.ac): Add gl_RELOCATABLE_NOP.
23024
23025 2007-03-03  Bruno Haible  <bruno@clisp.org>
23026
23027         * modules/relocatable-prog-wrapper: New file.
23028         * modules/relocatable (Depends-on): Add it. Remove all other
23029         dependencies except progname.
23030         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
23031
23032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
23033         (gl_FUNC_STRERROR): Nop.
23034         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
23035
23036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
23037         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
23038
23039         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
23040         (gl_FUNC_READLINK): Update.
23041
23042         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
23043
23044 2007-03-03  Bruno Haible  <bruno@clisp.org>
23045
23046         * lib/xreadlink.c: Include <unistd.h> unconditionally.
23047         * modules/xreadlink (Depends-on): Add unistd.
23048         * modules/xreadlink-with-size (Depends-on): Likewise.
23049
23050 2007-03-03  Bruno Haible  <bruno@clisp.org>
23051
23052         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
23053         extracted from gt_FUNC_SETENV.
23054         (gt_FUNC_SETENV): Remove macro.
23055         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
23056         remove gt_FUNC_SETENV.
23057
23058 2007-03-03  Bruno Haible  <bruno@clisp.org>
23059
23060         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
23061         ENABLE_RELOCATABLE here.
23062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
23063
23064 2007-03-03  Bruno Haible  <bruno@clisp.org>
23065
23066         * modules/rbtreehash-list-tests (Depends-on): Add progname.
23067         * tests/test-rbtreehash_list.c: Include progname.h.
23068         (main): Call set_program_name.
23069
23070         * modules/rbtree-oset-tests (Depends-on): Add progname.
23071         * tests/test-rbtree_oset.c: Include progname.h.
23072         (main): Call set_program_name.
23073
23074         * modules/rbtree-list-tests (Depends-on): Add progname.
23075         * tests/test-rbtree_list.c: Include progname.h.
23076         (main): Call set_program_name.
23077
23078         * modules/linked-list-tests (Depends-on): Add progname.
23079         * tests/test-linked_list.c: Include progname.h.
23080         (main): Call set_program_name.
23081
23082 2007-03-03  Bruno Haible  <bruno@clisp.org>
23083
23084         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
23085         All uses of __restrict changed to _Restrict_.
23086         * lib/glob_.h (__restrict): Remove macro.
23087
23088 2007-03-02  Bruno Haible  <bruno@clisp.org>
23089
23090         * modules/gettext (configure.ac): Require gettext infrastructure
23091         from version 0.16.1.
23092
23093 2007-03-02  Bruno Haible  <bruno@clisp.org>
23094
23095         * modules/linkedhash-list-tests (Depends-on): Add progname.
23096         * tests/test-linkedhash_list.c: Include progname.h.
23097         (main): Call set_program_name.
23098
23099         * modules/carray-list-tests (Depends-on): Add progname.
23100         * tests/test-carray_list.c: Include progname.h.
23101         (main): Call set_program_name.
23102
23103         * modules/avltreehash-list-tests (Depends-on): Add progname.
23104         * tests/test-avltreehash_list.c: Include progname.h.
23105         (main): Call set_program_name.
23106
23107         * modules/avltree-oset-tests (Depends-on): Add progname.
23108         * tests/test-avltree_oset.c: Include progname.h.
23109         (main): Call set_program_name.
23110
23111         * modules/avltree-list-tests (Depends-on): Add progname.
23112         * tests/test-avltree_list.c: Include progname.h.
23113         (main): Call set_program_name.
23114
23115         * modules/array-oset-tests (Depends-on): Add progname.
23116         * tests/test-array_oset.c: Include progname.h.
23117         (main): Call set_program_name.
23118
23119         * modules/array-list-tests (Depends-on): Add progname.
23120         * tests/test-array_list.c: Include progname.h.
23121         (main): Call set_program_name.
23122
23123         * modules/argp-tests (Depends-on): Add progname.
23124         * tests/test-argp.c: Include argp.h first. Include progname.h.
23125         (main): Call set_program_name.
23126
23127 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
23128
23129         * doc/gnulib-tool.texi (Initial import): Reword description of
23130         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
23131         limited effect even if defined after the first system include.
23132
23133 2007-03-01  Bruno Haible  <bruno@clisp.org>
23134
23135         * build-aux/config.libpath: Update to libtool-1.5.22.
23136         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23137
23138 2007-03-01  Bruno Haible  <bruno@clisp.org>
23139
23140         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
23141         foo_CFLAGS.
23142         Reported by Ralf Wildenhues.
23143
23144 2007-03-01  Bruno Haible  <bruno@clisp.org>
23145
23146         * build-aux/install-reloc: Remove object files left over by some
23147         compilers.
23148         Reported by Ralf Wildenhues.
23149
23150 2007-03-01  Bruno Haible  <bruno@clisp.org>
23151
23152         * build-aux/install-reloc: Break long lines.
23153
23154 2007-03-01  Bruno Haible  <bruno@clisp.org>
23155
23156         * doc/relocatable.texi: Document that it may not work on OpenBSD.
23157         Reported by Ralf Wildenhues.
23158
23159 2007-03-01  Bruno Haible  <bruno@clisp.org>
23160
23161         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23162         include ordering constraints.
23163
23164 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23165
23166         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23168         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23169         as another example.
23170         * lib/time_.h: Fix misspelling.
23171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23172         Require gl_HEADER_TIME_H_DEFAULTS.
23173         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23174         * m4/time_r.m4 (gl_TIME_R): Likewise.
23175         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23176
23177 2007-03-01  Bruno Haible  <bruno@clisp.org>
23178
23179         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23180         * m4/utimens.m4 (gl_UTIMENS): Likewise.
23181
23182 2007-03-01  Jim Meyering  <jim@meyering.net>
23183
23184         * modules/xreadlink (Maintainer): Add my name.
23185         * modules/xreadlink-with-size (Depends-on): Alphabetize.
23186
23187 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
23188             Bruno Haible  <bruno@clisp.org>
23189
23190         * build-aux/install-reloc: Compile also c-ctype.c.
23191         * build-aux/relocatable.sh.in: New file.
23192         * doc/relocatable.texi: New file.
23193         * doc/relocatable-maint.texi: New file.
23194         * doc/gnulib.texi: Include relocatable-maint.texi.
23195         * lib/progreloc.c: Include unistd.h unconditionally.
23196         * lib/relocwrapper.c: Include unistd.h unconditionally.
23197         Include c-ctype.h.
23198         (add_dotbin): Use c_tolower.
23199         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23200         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23201         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23202         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23203         to m4/relocatable-lib.m4.
23204         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23205         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23206         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23207         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23208         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23209         * modules/relocatable: New file.
23210         * modules/relocatable-lib: New file.
23211         * modules/relocatable-script: New file.
23212
23213 2007-02-28  Bruno Haible  <bruno@clisp.org>
23214
23215         Import --enable-relocatable infrastructure.
23216         * build-aux/config.libpath: New file, from GNU gettext.
23217         * build-aux/install-reloc: New file, from GNU gettext.
23218         * build-aux/reloc-ldflags: New file, from GNU gettext.
23219         * lib/relocatable.h: New file, from GNU gettext.
23220         * lib/relocatable.c: New file, from GNU gettext.
23221         * lib/relocwrapper.c: New file, from GNU gettext.
23222         * m4/relocatable.m4: New file, from GNU gettext.
23223
23224 2007-02-28  Bruno Haible  <bruno@clisp.org>
23225
23226         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23227
23228         * modules/xreadlink: New file, from GNU gettext with modifications.
23229         * lib/xreadlink.c: New file, from GNU gettext.
23230         * lib/xreadlink.h: Add comments.
23231         (xreadlink): New declaration.
23232
23233         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23234         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23235         lib/xreadlink-with-size.c.
23236         (configure.ac): Remove gl_XREADLINK invocation.
23237         (Makefile.am): Augment lib_SOURCES.
23238         * m4/xreadlink.m4: Remove file.
23239         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23240         (xreadlink_with_size): Renamed from xreadink.
23241         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23242         * modules/canonicalize (Depends-on): Replace xreadlink with
23243         xreadlink-with-size.
23244         * lib/canonicalize.c (canonicalize_filename_mode): Update.
23245
23246 2007-02-25  Jim Meyering  <jim@meyering.net>
23247
23248         * build-aux/announce-gen: When complaining about excess arguments,
23249         list them.
23250
23251 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23252
23253         * README: Document signed integer overflow situation more
23254         accurately.
23255
23256 2007-02-25  Bruno Haible  <bruno@clisp.org>
23257
23258         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23259         'a' or 'A' conversion.
23260
23261 2007-02-25  Bruno Haible  <bruno@clisp.org>
23262
23263         * modules/filename: Renamed from modules/pathname.
23264         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23265         lib/concatpath.c with lib/concat-filename.c.
23266         (Makefile.am): Update.
23267         (Include): Replace pathname.h with filename.h.
23268         * lib/filename.h: Renamed from lib/pathname.h.
23269         (concatenated_filename): Renamed from concatenated_pathname.
23270         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23271         (concatenated_filename): Renamed from concatenated_pathname.
23272         * lib/findprog.c: Include filename.h instead of pathname.h.
23273         (find_in_path): Update.
23274         * lib/javacomp.c: Include filename.h instead of pathname.h.
23275         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23276         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23277         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23278         is_oldgcj_14_13_usable, is_javac_usable): Update.
23279         * lib/javaexec.c: Include filename.h instead of pathname.h.
23280         (execute_java_class): Update.
23281         * modules/findprog: Update.
23282         * modules/javacomp: Update.
23283         * modules/javaexec: Update.
23284         * MODULES.html.sh (File system functions): Add 'filename', remove
23285         'pathname'.
23286
23287 2007-02-25  Bruno Haible  <bruno@clisp.org>
23288
23289         * modules/printf-frexpl-tests: New file.
23290         * tests/test-printf-frexpl.c: New file.
23291
23292         * modules/printf-frexpl: New file.
23293         * lib/printf-frexpl.h: New file.
23294         * lib/printf-frexpl.c: New file.
23295         * m4/printf-frexpl.m4: New file.
23296
23297 2007-02-25  Bruno Haible  <bruno@clisp.org>
23298
23299         * modules/printf-frexp-tests: New file.
23300         * tests/test-printf-frexp.c: New file.
23301
23302         * modules/printf-frexp: New file.
23303         * lib/printf-frexp.h: New file.
23304         * lib/printf-frexp.c: New file.
23305         * m4/printf-frexp.m4: New file.
23306
23307 2007-02-25  Bruno Haible  <bruno@clisp.org>
23308
23309         Assume automake >= 1.10 for the tests.
23310         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23311         * modules/arctwo-tests: Likewise.
23312         * modules/argp-tests: Likewise.
23313         * modules/avltree-list-tests: Likewise.
23314         * modules/avltree-oset-tests: Likewise.
23315         * modules/avltreehash-list-tests: Likewise.
23316         * modules/carray-list-tests: Likewise.
23317         * modules/crc-tests: Likewise.
23318         * modules/des-tests: Likewise.
23319         * modules/gc-arcfour-tests: Likewise.
23320         * modules/gc-arctwo-tests: Likewise.
23321         * modules/gc-des-tests: Likewise.
23322         * modules/gc-hmac-md5-tests: Likewise.
23323         * modules/gc-hmac-sha1-tests: Likewise.
23324         * modules/gc-md2-tests: Likewise.
23325         * modules/gc-md4-tests: Likewise.
23326         * modules/gc-md5-tests: Likewise.
23327         * modules/gc-pbkdf2-sha1-tests: Likewise.
23328         * modules/gc-rijndael-tests: Likewise.
23329         * modules/gc-sha1-tests: Likewise.
23330         * modules/gc-tests: Likewise.
23331         * modules/getaddrinfo-tests: Likewise.
23332         * modules/hmac-md5-tests: Likewise.
23333         * modules/hmac-sha1-tests: Likewise.
23334         * modules/linked-list-tests: Likewise.
23335         * modules/linkedhash-list-tests: Likewise.
23336         * modules/lock-tests: Likewise.
23337         * modules/md2-tests: Likewise.
23338         * modules/md4-tests: Likewise.
23339         * modules/md5-tests: Likewise.
23340         * modules/rbtree-list-tests: Likewise.
23341         * modules/rbtree-oset-tests: Likewise.
23342         * modules/rbtreehash-list-tests: Likewise.
23343         * modules/read-file-tests: Likewise.
23344         * modules/rijndael-tests: Likewise.
23345         * modules/stdint-tests: Likewise.
23346         * modules/tls-tests: Likewise.
23347
23348 2007-02-24  Bruno Haible  <bruno@clisp.org>
23349
23350         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23351         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23352         function; instead check whether isnan with a double argument links.
23353         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23354         function; instead check whether isnan with a 'long double' argument
23355         links.
23356         Reported by Eric Blake <ebb9@byu.net>.
23357
23358 2007-02-24  Bruno Haible  <bruno@clisp.org>
23359
23360         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23361         defined.
23362         * lib/isnanl.c: Remove all code. Just include isnan.c.
23363         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23364
23365 2007-02-25  Jim Meyering  <jim@meyering.net>
23366
23367         Avoid conflicting types for 'unsetenv' on FreeBSD.
23368         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23369         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23370         in stdlib.h.
23371
23372 2007-02-24  Bruno Haible  <bruno@clisp.org>
23373
23374         * modules/isnanl-nolibm-tests: New file.
23375         * tests/test-isnanl.c: New file.
23376
23377         * modules/isnanl-nolibm: New file.
23378         * lib/isnanl.h: New file.
23379         * lib/isnanl.c: New file.
23380         * m4/isnanl.m4: New file.
23381
23382 2007-02-24  Bruno Haible  <bruno@clisp.org>
23383
23384         * modules/isnan-nolibm-tests: New file.
23385         * tests/test-isnan.c: New file.
23386
23387         * modules/isnan-nolibm: New file.
23388         * lib/isnan.h: New file.
23389         * lib/isnan.c: New file.
23390         * m4/isnan.m4: New file.
23391
23392 2007-02-24  Bruno Haible  <bruno@clisp.org>
23393
23394         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23395         assume that an exponent fits in 20 bits.
23396
23397 2007-02-24  Jim Meyering  <jim@meyering.net>
23398
23399         * m4/regex.m4: Update the description of the configure-time option,
23400         --without-included-regex, to state accurately what the defaults are,
23401         and perhaps to give people an idea why using this option is risky.
23402
23403 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23404
23405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23406         loops on small arguments.  This attempts to avoid the problem
23407         Bruno Haible reported for AIX 4.3.2 in
23408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23409
23410 2007-02-23  Bruno Haible  <bruno@clisp.org>
23411
23412         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23413         Needed for help2man.
23414
23415 2007-02-23  Karl Berry  <karl@gnu.org>
23416
23417         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23418         exists, foo.h should be cvs-ignored, not committed.
23419
23420 2007-02-23  Eric Blake  <ebb9@byu.net>
23421
23422         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23423         * lib/stat-time.h (includes): Likewise.
23424         * lib/utimecmp.c (includes): Likewise.
23425         * lib/utimens.h (includes): Likewise.
23426         * lib/getdate.y (includes): Also include "timespec.h" for use
23427         internal to the module.
23428         * modules/utimens (Depends-on): Revert yesterday's patch.
23429         * modules/nanosleep (Depends-on): Add missing dependency.
23430
23431 2007-02-22  Bruno Haible  <bruno@clisp.org>
23432
23433         * lib/glob.c: Don't include getlogin_r.h.
23434
23435 2007-02-22  Jim Meyering  <jim@meyering.net>
23436
23437         * modules/utimens (Depends-on): Add timespec, required for
23438         utimens.h's inclusion of timespec.h.
23439
23440 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23441
23442         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23443         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23444         Schwab in
23445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23446         I'll try to think of a better way to fix the Solaris problem.
23447
23448         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23449         like glibc; on Solaris 10, it fails with errno == EINVAL.
23450         POSIX says the behavior is unspecified if the first argument is NULL,
23451         so play it safe and never pass NULL to the system getcwd.
23452
23453 2007-02-21  Jim Meyering  <jim@meyering.net>
23454
23455         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23456         of gettimeofday.  It would conflict with the one now always
23457         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23458         an IRIX 6.5 build failure.
23459
23460 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23461
23462         Minor fixups to port to Solaris 10 with Sun C 5.8.
23463         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23464         * modules/getcwd (Depends-on): Add dirfd.
23465         * lib/putenv.c (putenv): #undef it.
23466         (rpl_putenv): New decl.
23467         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23468
23469 2007-02-20  Bruno Haible  <bruno@clisp.org>
23470
23471         * modules/stdio-tests: New file.
23472         * tests/test-stdio.c: New file.
23473
23474         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23475         (Depends-on): Add stdio.
23476         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23477         (Include): Use <stdio.h> instead of vsnprintf.h.
23478         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23479         HAVE_DECL_VSNPRINTF.
23480         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23481
23482         * modules/snprintf (Files): Remove lib/snprintf.h.
23483         (Depends-on): Add stdio.
23484         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23485         (Include): Use <stdio.h> instead of snprintf.h.
23486         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23487         HAVE_DECL_SNPRINTF.
23488         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23489         * lib/getaddrinfo.c: Likewise.
23490
23491         * modules/stdio: New file.
23492         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23493         * lib/snprintf.h: Remove file.
23494         * lib/vsnprintf.h: Remove file.
23495         * lib/.cppi-disable: Remove snprintf.h.
23496         * m4/stdio_h.m4: New file.
23497         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23498
23499 2007-02-20  Jim Meyering  <jim@meyering.net>
23500
23501         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23502         used by e.g., mingw.  From Bruno Haible.
23503
23504 2007-02-19  Bruno Haible  <bruno@clisp.org>
23505
23506         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23507         warnings.
23508         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23509
23510 2007-02-19  Bruno Haible  <bruno@clisp.org>
23511
23512         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23513         from mingw users.
23514
23515 2007-02-19  Bruno Haible  <bruno@clisp.org>
23516
23517         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23518         warnings.
23519         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23520
23521 2007-02-19  Jim Meyering  <jim@meyering.net>
23522
23523         Don't use FD after a successful "fdopendir (fd)".
23524         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23525         Reset it by calling dirfd on the just-obtained DIR*.
23526
23527         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23528         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23529
23530 2007-02-18  Bruno Haible  <bruno@clisp.org>
23531
23532         * lib/readlink.c: Include <unistd.h>.
23533         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23534         HAVE_READLINK.
23535         * modules/readlink (Depends-on): Add unistd.
23536         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23537         (Include): Add <unistd.h>.
23538
23539         * lib/getlogin_r.h: Remove file.
23540         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23541         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23542         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23543         HAVE_DECL_GETLOGIN_R.
23544         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23546         (Include): Use <unistd.h> instead of getlogin_r.h.
23547
23548         * lib/getcwd.h: Remove file.
23549         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23550         * lib/xgetcwd.c: Likewise.
23551         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23552         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23553         * modules/getcwd (Files): Remove lib/getcwd.h.
23554         (Depends-on): Add unistd.
23555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23556         (Include): Use <unistd.h> instad of getcwd.h.
23557
23558         * lib/ftruncate.c: Include <unistd.h> first.
23559         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23560         Set HAVE_FTRUNCATE.
23561         * modules/ftruncate (Depends-on): Add unistd.
23562         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23563
23564         * lib/fchdir.c: Include <unistd.h> first.
23565         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23567         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23568         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23569         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23570
23571         * lib/dup2.c: Include <unistd.h> first.
23572         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23573         HAVE_DUP2.
23574         * modules/dup2 (Depends-on): Add unistd.
23575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23576
23577         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23578         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23579         REPLACE_CHOWN. Don't define chown as a macro here.
23580         * modules/chown (Depends-on): Add unistd.
23581         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23582
23583         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23584         Add definition for GL_LINK_WARNING.
23585         (chown, dup2): New declarations.
23586         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23587         link warning.
23588         (ftruncate): New declaration.
23589         (getcwd): New declaration, taken from old getcwd.h.
23590         (getlogin_r): New declaration, taken from old getlogin_r.h.
23591         (readlink): New declaration.
23592         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23593         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23594         (gl_PREREQ_UNISTD): Remove macro.
23595         (gl_UNISTD_MODULE_INDICATOR): New macro.
23596         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23597         many new variables. Don't set UNISTD_H.
23598         * modules/unistd (Description): Change.
23599         (Depends-on): Add link-warning.
23600         (configure.ac): Update.
23601         (Makefile.am): Create unistd.h always. Substitute many new variables
23602         into it.
23603
23604 2007-02-18  Bruno Haible  <bruno@clisp.org>
23605
23606         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23607         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23608         HAVE_GETSUBOPT.
23609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23610         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23611         * lib/getsubopt.h: Remove file.
23612         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23613         (Depends-on): Add stdlib.
23614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23615         (Includes): Use <stdlib.h> instead of getsubopt.h.
23616         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23617         Set HAVE_GETSUBOPT.
23618         * lib/getsubopt.c: Don't include getsubopt.h.
23619
23620 2007-02-18  Bruno Haible  <bruno@clisp.org>
23621
23622         * modules/fchdir (Depends-on): Add dup2.
23623
23624 2007-02-18  Bruno Haible  <bruno@clisp.org>
23625
23626         * lib/stdlib_.h: Handle glibc's special invocation convention
23627         specially.
23628
23629 2007-02-18  Bruno Haible  <bruno@clisp.org>
23630
23631         * modules/stdlib-tests: New file.
23632         * tests/test-stdlib.c: New file.
23633
23634         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23635         (Depends-on): Add stdlib.
23636         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23637         (Includes): Use <stdlib.h> instead of mkstemp.h.
23638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23639         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23640         * lib/mkstemp.c: Don't include mkstemp.h.
23641         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23642         * lib/stdlib--.h: Don't include mkstemp.h.
23643
23644         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23645         (Depends-on): Add stdlib.
23646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23647         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23648         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23649         HAVE_MKDTEMP.
23650         * lib/mkdtemp.c: Don't include mkdtemp.h.
23651         * lib/clean-temp.c: Don't include mkdtemp.h.
23652
23653         * modules/exit (Files): Remove lib/exit.h.
23654         (Depends-on): Add stdlib.
23655         (Makefile.am): Remove lib_SOURCES.
23656         (Include): Use <stdlib.h> instead of exit.h.
23657         * lib/argmatch.c: Don't include exit.h.
23658         * lib/execute.c: Likewise.
23659         * lib/pagealign_alloc.c: Likewise.
23660         * lib/pipe.c: Likewise.
23661         * lib/wait-process.c: Likewise.
23662         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23663         * lib/exitfail.c: Likewise.
23664         * lib/savewd.c: Likewise.
23665         * lib/xsetenv.c: Likewise.
23666
23667         * modules/stdlib: New file.
23668         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23669         and extra comments about mkstemp().
23670         * lib/exit.h: Remove file.
23671         * lib/mkdtemp.h: Remove file.
23672         * lib/mkstemp.h: Remove file.
23673         * m4/stdlib_h.m4: New file.
23674         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23675
23676 2007-02-18  Bruno Haible  <bruno@clisp.org>
23677
23678         * modules/math-tests: New file.
23679         * tests/test-math.c: New file.
23680
23681         * modules/math: New file.
23682         * modules/mathl (Files): Remove lib/mathl.h.
23683         (Depends-on): Add math.
23684         (Makefile.am): Don't mention mathl.h.
23685         (Include): Use <math.h> instead of mathl.h.
23686         * lib/math_.h: New file.
23687         * lib/mathl.h: Remove file.
23688         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23689         mathl.h.
23690         * lib/asinl.c: Likewise.
23691         * lib/atanl.c: Likewise.
23692         * lib/ceill.c: Likewise.
23693         * lib/cosl.c: Likewise.
23694         * lib/expl.c: Likewise.
23695         * lib/floorl.c: Likewise.
23696         * lib/frexpl.c: Likewise.
23697         * lib/ldexpl.c: Likewise.
23698         * lib/logl.c: Likewise.
23699         * lib/sincosl.c: Likewise.
23700         * lib/sinl.c: Likewise.
23701         * lib/sqrtl.c: Likewise.
23702         * lib/tanl.c: Likewise.
23703         * lib/trigl.c: Likewise.
23704         * m4/math_h.m4: New file.
23705         * MODULES.html.sh (Mathematics): Add math.
23706
23707 2007-02-17  Bruno Haible  <bruno@clisp.org>
23708
23709         * modules/wctype-tests: New file.
23710         * tests/test-wctype.c: New file.
23711
23712         * modules/wchar-tests: New file.
23713         * tests/test-wchar.c: New file.
23714
23715         * modules/unistd-tests: New file.
23716         * tests/test-unistd.c: New file.
23717
23718         * modules/time-tests: New file.
23719         * tests/test-time.c: New file.
23720
23721         * modules/sysexits-tests: New file.
23722         * tests/test-sysexits.c: New file.
23723
23724         * modules/sys_time-tests: New file.
23725         * tests/test-sys_time.c: New file.
23726
23727         * modules/sys_stat-tests: New file.
23728         * tests/test-sys_stat.c: New file.
23729
23730         * modules/sys_socket-tests: New file.
23731         * tests/test-sys_socket.c: New file.
23732
23733         * modules/sys_select-tests: New file.
23734         * tests/test-sys_select.c: New file.
23735
23736         * modules/string-tests: New file.
23737         * tests/test-string.c: New file.
23738
23739         * modules/stdbool-tests: New file.
23740         * tests/test-stdbool.c: New file.
23741
23742         * modules/netinet_in-tests: New file.
23743         * tests/test-netinet_in.c: New file.
23744
23745         * modules/inttypes-tests: New file.
23746         * tests/test-inttypes.c: New file.
23747
23748         * modules/fcntl-tests: New file.
23749         * tests/test-fcntl.c: New file.
23750
23751         * modules/byteswap-tests: New file.
23752         * tests/test-byteswap.c: New file.
23753
23754         * modules/arpa_inet-tests: New file.
23755         * tests/test-arpa_inet.c: New file.
23756
23757 2007-02-17  Bruno Haible  <bruno@clisp.org>
23758
23759         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23760         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23761         if the corresponding module is not enabled. Emit link warnings if
23762         the function is used nevertheless.
23763         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23764         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23765         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23766         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23767         * modules/inttypes (Depends-on): Add link-warning.
23768         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23769         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23770         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23771         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23772         * modules/imaxdiv (configure.ac): Likewise.
23773         * modules/strtoimax (configure.ac): Likewise.
23774         * modules/strtoumax (configure.ac): Likewise.
23775
23776 2007-02-17  Bruno Haible  <bruno@clisp.org>
23777
23778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23779         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23780         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23781         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23782
23783 2007-02-17  Bruno Haible  <bruno@clisp.org>
23784
23785         * modules/link-warning: New file.
23786         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23787         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23788         * modules/string (Depends-on): Add link-warning.
23789         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23790         string.h.
23791         * MODULES.html.sh (Support for building libraries and executables): Add
23792         link-warning.
23793
23794 2007-02-17  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23797         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23798         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23799         long lines.
23800
23801 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23802             Bruno Haible  <bruno@clisp.org>
23803
23804         * modules/tmpfile: New file.
23805         * lib/tmpfile.c: New file.
23806         * m4/tmpfile.m4: New file.
23807         * MODULES.html.sh (func_all_modules): New section "Input/output".
23808
23809 2007-02-15  Bruno Haible  <bruno@clisp.org>
23810
23811         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23812         (supports_delete_on_close): New function.
23813         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23814
23815 2007-02-14  Bruno Haible  <bruno@clisp.org>
23816
23817         * modules/mbspcasecmp-tests: New file.
23818         * tests/test-mbspcasecmp.sh: New file.
23819         * tests/test-mbspcasecmp.c: New file.
23820
23821         New module mbspcasecmp.
23822         * modules/mbspcasecmp: New file.
23823         * lib/mbspcasecmp.c: New file.
23824         * lib/string_.h (strncasecmp): Change warning message.
23825         (mbspcasecmp): New declaration.
23826         * m4/mbspcasecmp.m4: New file.
23827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23828         GNULIB_MBSPCASECMP.
23829         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23830         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23831
23832 2007-02-14  Bruno Haible  <bruno@clisp.org>
23833
23834         * modules/mbsncasecmp-tests: New file.
23835         * tests/test-mbsncasecmp.sh: New file.
23836         * tests/test-mbsncasecmp.c: New file.
23837
23838         New module mbsncasecmp.
23839         * modules/mbsncasecmp: New file.
23840         * lib/mbsncasecmp.c: New file.
23841         * lib/string_.h (mbsncasecmp): New declaration.
23842         * m4/mbsncasecmp.m4: New file.
23843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23844         GNULIB_MBSNCASECMP.
23845         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23846         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23847
23848 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23849
23850         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23851         Verify that it doesn't overlap with our flags.
23852         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23853         do not have the desired effect in multibyte locales; instead, use
23854         mbscasecmp.
23855         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23856         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23857         we don't require GNU fnmatch ourselves (if our users require it, they
23858         should do so explicitly).
23859
23860         Fix regex code so it doesn't rely on strcasecmp.
23861         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23862         Otherwise, include gnulib's langinfo.h.
23863         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23864         undesirable behavior in non-C locales.  Instead, rely on localecharset.
23865         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23866         * modules/regex (FILES): Remove m4/codeset.m4.
23867         (Depends-on): Add localcharset.  Remove strcase.
23868
23869 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23870
23871         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23872         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23873
23874 2007-02-13  Bruno Haible  <bruno@clisp.org>
23875
23876         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23878
23879 2007-02-12  Bruno Haible  <bruno@clisp.org>
23880
23881         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23882         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23883         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23884         time warning rather than a link error.
23885
23886 2007-02-12  Bruno Haible  <bruno@clisp.org>
23887
23888         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23889         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23891
23892 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23893
23894         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23895         args, not 2.
23896
23897 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23898
23899         New module 'time', so that apps can include <time.h> as per
23900         POSIX and GNU instead of separate include files like time_r.h
23901         and timegm.h.  This implementation tries out a simpler approach
23902         for replacing decls in standard include files (as compared to
23903         the string module), somewhat as an experiment.
23904
23905         * config/srclist.txt: Comment out mktime.c for now.
23906         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23907         since it doesn't apply any more.  Use generic wording instead.
23908         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23909         'time'.
23910         * lib/time_.h, m4/time_h.m4, modules/time: New files.
23911         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23912         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23913         Don't include <sys/types.h>; no longer needed since we assume C89.
23914         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23915         * lib/strftime.c: Likewise.
23916         * lib/time_r.c: Likewise.
23917         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23918         * lib/nanosleep.c: Include <time.h> first, to check interface.
23919         * lib/strptime.c: Likewise.
23920         * lib/time_r.c: Likewise.
23921         * lib/timegm.c: Likewise.
23922         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23923         needed.
23924         * lib/timegm.c: Don't include timegm.h; no longer needed.
23925         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23926         time.h now handles any problems in that area.
23927         (struct timespec, nanosleep): Remove; time.h now arranges for these.
23928         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23929         that time.h defines struct timespec.
23930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23931         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
23932         handles that.
23933         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23934         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23935         needed.  Set REPLACE_LOCALTIME.
23936         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23937         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23938         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23939         nanosleep; time_h.m4 now does that.  Don't require
23940         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23941         module handles this now.
23942         * modules/getdate (Depends-on): Remove timespec.  Add time.
23943         * modules/nanosleep (Depends-on): Likewise.
23944         * modules/stat-time (Depends-on): Likewise.
23945         * modules/nanosleep (Include): Include time.h, not timespec.h.
23946         * modules/strptime (Files): Remove lib/strptime.h.
23947         (Depends-on): Add extensions, time.
23948         (Include): Include time.h, not strptime.h.
23949         * modules/time_r (Files): Remove lib/time_r.h.
23950         (Depends-on): Add time.
23951         (Include): Include time.h, not time_r.h.
23952         * modules/timegm: Likewise.
23953         * modules/timespec (Description): Now does timespec-related decls
23954         of our own, instead of struct timespec itself.
23955         (Depends-on): Add time; remove extensions.
23956         (Maintainer): Add self.
23957         * modules/utimecmp (Depends-on): Add time; remove timespec.
23958         * modules/utimens (Depends-on): Likewise.
23959         * modules/xnanosleep (Depends-on): Likewise.
23960
23961 2007-02-11  Bruno Haible  <bruno@clisp.org>
23962
23963         * lib/c-strstr.c: Include allocsa.h.
23964         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23965         * lib/c-strcasestr.c: Include allocsa.h.
23966         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23967         * lib/strcasestr.c: Include allocsa.h.
23968         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23969         * lib/mbsstr.c: Include allocsa.h.
23970         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23971         allocsa/freesa instead of malloc/free.
23972         * lib/mbscasestr.c: Include allocsa.h.
23973         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23974         allocsa/freesa instead of malloc/free.
23975         * modules/c-strstr (Depends-on): Add allocsa.
23976         * modules/c-strcasestr (Depends-on): Likewise.
23977         * modules/strcasestr (Depends-on): Likewise.
23978         * modules/mbsstr (Depends-on): Likewise.
23979         * modules/mbscasestr (Depends-on): Likewise.
23980
23981 2007-02-11  Bruno Haible  <bruno@clisp.org>
23982
23983         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23984
23985         * modules/mbsspn-tests: New file.
23986         * tests/test-mbsspn.sh: New file.
23987         * tests/test-mbsspn.c: New file.
23988
23989 2007-02-11  Bruno Haible  <bruno@clisp.org>
23990
23991         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23992
23993         * modules/mbspbrk-tests: New file.
23994         * tests/test-mbspbrk.sh: New file.
23995         * tests/test-mbspbrk.c: New file.
23996
23997 2007-02-11  Bruno Haible  <bruno@clisp.org>
23998
23999         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
24000         unneeded cast.
24001
24002         * modules/mbscspn-tests: New file.
24003         * tests/test-mbscspn.sh: New file.
24004         * tests/test-mbscspn.c: New file.
24005
24006 2007-02-11  Bruno Haible  <bruno@clisp.org>
24007
24008         * modules/mbscasecmp-tests: New file.
24009         * tests/test-mbscasecmp.sh: New file.
24010         * tests/test-mbscasecmp.c: New file.
24011
24012 2007-02-11  Bruno Haible  <bruno@clisp.org>
24013
24014         Ensure O(n) worst-case complexity of mbscasestr.
24015         * lib/mbscasestr.c: Include stdbool.h.
24016         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24017         functions.
24018         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
24019         the bookkeeping indicates that it's worth it.
24020         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
24021
24022         * modules/mbscasestr-tests: New file.
24023         * tests/test-mbscasestr1.c: New file.
24024         * tests/test-mbscasestr2.sh: New file.
24025         * tests/test-mbscasestr2.c: New file.
24026         * tests/test-mbscasestr3.sh: New file.
24027         * tests/test-mbscasestr3.c: New file.
24028         * tests/test-mbscasestr4.sh: New file.
24029         * tests/test-mbscasestr4.c: New file.
24030         * m4/locale-tr.m4: New file.
24031
24032 2007-02-11  Bruno Haible  <bruno@clisp.org>
24033
24034         Ensure O(n) worst-case complexity of mbsstr.
24035         * lib/mbsstr.c: Include stdbool.h.
24036         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24037         functions.
24038         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
24039         bookkeeping indicates that it's worth it.
24040         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
24041
24042         * modules/mbsstr-tests: New file.
24043         * tests/test-mbsstr1.c: New file.
24044         * tests/test-mbsstr2.sh: New file.
24045         * tests/test-mbsstr2.c: New file.
24046         * tests/test-mbsstr3.sh: New file.
24047         * tests/test-mbsstr3.c: New file.
24048         * m4/locale-fr.m4: New file.
24049
24050 2007-02-11  Bruno Haible  <bruno@clisp.org>
24051
24052         * lib/mbsrchr.c (mbsrchr): Fix bug.
24053
24054         * modules/mbsrchr-tests: New file.
24055         * tests/test-mbsrchr.sh: New file.
24056         * tests/test-mbsrchr.c: New file.
24057
24058 2007-02-11  Bruno Haible  <bruno@clisp.org>
24059
24060         * lib/mbschr.c (mbschr): Fix bug.
24061
24062         * modules/mbschr-tests: New file.
24063         * tests/test-mbschr.sh: New file.
24064         * tests/test-mbschr.c: New file.
24065         * m4/locale-zh.m4: New file.
24066
24067 2007-02-11  Bruno Haible  <bruno@clisp.org>
24068
24069         Support for copying multibyte string iterators.
24070         * lib/mbiter.h: Include <string.h>.
24071         (mbiter_multi_copy): New function.
24072         (mbi_copy): New macro.
24073         * lib/mbuiter.h: Include <string.h>.
24074         (mbuiter_multi_copy): New function.
24075         (mbui_copy): New macro.
24076
24077 2007-02-11  Bruno Haible  <bruno@clisp.org>
24078
24079         New module mbslen.
24080         * modules/mbslen: New file.
24081         * lib/mbslen.c: New file.
24082         * lib/string_.h (mbslen): New declaration.
24083         * m4/mbslen.m4: New file.
24084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24085         GNULIB_MBSLEN.
24086         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
24087         * MODULES.html.sh (Internationalization functions): Add mbslen.
24088
24089 2007-02-11  Bruno Haible  <bruno@clisp.org>
24090
24091         Ensure O(n) worst-case complexity of strcasestr substitute.
24092         * lib/strcasestr.c: Include stdbool.h.
24093         (knuth_morris_pratt): New function.
24094         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24095         bookkeeping indicates that it's worth it.
24096         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
24097
24098         * modules/strcasestr-tests: New file.
24099         * tests/test-strcasestr.c: New file.
24100
24101 2007-02-11  Bruno Haible  <bruno@clisp.org>
24102
24103         Ensure O(n) worst-case complexity of c_strcasestr.
24104         * lib/c-strcasestr.c: Include stdbool.h, string.h.
24105         (knuth_morris_pratt): New function.
24106         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
24107         the bookkeeping indicates that it's worth it.
24108         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
24109
24110         * modules/c-strcasestr-tests: New file.
24111         * tests/test-c-strcasestr.c: New file.
24112
24113 2007-02-11  Bruno Haible  <bruno@clisp.org>
24114
24115         Ensure O(n) worst-case complexity of c_strstr.
24116         * lib/c-strstr.c: Include stdbool.h, string.h.
24117         (knuth_morris_pratt): New function.
24118         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24119         bookkeeping indicates that it's worth it.
24120         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
24121
24122         * lib/c-strstr.c: Complete rewrite for maintainability.
24123
24124         * modules/c-strstr-tests: New file.
24125         * tests/test-c-strstr.c: New file.
24126
24127 2007-02-11  Bruno Haible  <bruno@clisp.org>
24128
24129         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
24130         5.2.1 and earlier, whereby \055 was treated just like the range
24131         delimiter '-'.
24132         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24133
24134 2007-02-08  Bruno Haible  <bruno@clisp.org>
24135
24136         * modules/regex (Depends-on): Add stdbool.
24137         Reported by Dalibor Topic <robilad@kaffe.org>.
24138
24139 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
24142         Prefer returning from main to exiting from it.
24143         Remove unnecessary parens after sizeof.
24144
24145 2007-02-05  Bruno Haible  <bruno@clisp.org>
24146
24147         New module mbssep.
24148         * modules/mbssep: New file.
24149         * lib/mbssep.c: New file.
24150         * lib/string_.h (strsep): Add a conditional link warning.
24151         (mbssep): New declaration.
24152         * m4/mbssep.m4: New file.
24153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24154         GNULIB_MBSSEP.
24155         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24156         * MODULES.html.sh (Internationalization functions): Add mbssep.
24157
24158 2007-02-05  Bruno Haible  <bruno@clisp.org>
24159
24160         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24161         Optimize search in case of 1 delimiter.
24162
24163 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24164
24165         * lib/acl.h: Include sys/types.h before sys/acl.h.
24166
24167 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24168
24169         Merge upstream fix for glibc bugzilla #3957:
24170
24171         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
24172
24173         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24174         bit for RE_HAT_LISTS_NOT_NEWLINE.
24175         (build_charclass_op): Remove bogus comment.
24176
24177 2007-02-05  Simon Josefsson  <simon@josefsson.org>
24178
24179         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24180
24181 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24182
24183         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24184         * lib/memmem.c [!defined _LIBC]: Include config.h.
24185
24186 2007-02-04  Bruno Haible  <bruno@clisp.org>
24187
24188         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24189         warning message.
24190
24191 2007-02-04  Bruno Haible  <bruno@clisp.org>
24192
24193         New module mbstok_r.
24194         * modules/mbstok_r: New file.
24195         * lib/mbstok_r.c: New file.
24196         * lib/string_.h (strtok_r): Change argument names to match the
24197         comments. Add a conditional link warning.
24198         (mbstok_r): New declaration.
24199         * m4/mbstok_r.m4: New file.
24200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24201         GNULIB_MBSTOK_R.
24202         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24203         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24204
24205 2007-02-04  Bruno Haible  <bruno@clisp.org>
24206
24207         New module mbsspn.
24208         * modules/mbsspn: New file.
24209         * lib/mbsspn.c: New file.
24210         * lib/string_.h (strspn): Add a conditional link warning.
24211         (mbsspn): New declaration.
24212         * m4/mbsspn.m4: New file.
24213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24214         GNULIB_MBSSPN.
24215         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24216         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24217
24218 2007-02-04  Bruno Haible  <bruno@clisp.org>
24219
24220         New module mbspbrk.
24221         * modules/mbspbrk: New file.
24222         * lib/mbspbrk.c: New file.
24223         * lib/string_.h (strpbrk): Add a conditional link warning.
24224         (mbspbrk): New declaration.
24225         * m4/mbspbrk.m4: New file.
24226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24227         GNULIB_MBSPBRK.
24228         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24229         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24230
24231 2007-02-04  Bruno Haible  <bruno@clisp.org>
24232
24233         New module mbscspn.
24234         * modules/mbscspn: New file.
24235         * lib/mbscspn.c: New file.
24236         * lib/string_.h (strcspn): Add a conditional link warning.
24237         (mbscspn): New declaration.
24238         * m4/mbscspn.m4: New file.
24239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24240         GNULIB_MBSCSPN.
24241         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24242         * MODULES.html.sh (Internationalization functions): Add mbscspn.
24243
24244 2007-02-04  Bruno Haible  <bruno@clisp.org>
24245
24246         New module mbscasestr, reduced goal of strcasestr.
24247         * modules/mbscasestr: New file.
24248         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24249         (mbscasestr): Renamed from strcasestr.
24250         * lib/strcasestr.c: Don't include mbuiter.h.
24251         (strcasestr): Remove support for multibyte locales.
24252         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24253         Change the conditional link warning.
24254         (mbscasestr): New declaration.
24255         * m4/mbscasestr.m4: New file.
24256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24257         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24258         REPLACE_STRCASESTR.
24259         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24261         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24262         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24263         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24264         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24265         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24266         (Depends-on): Remove mbuiter.
24267         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24268
24269 2007-02-04  Bruno Haible  <bruno@clisp.org>
24270
24271         Simplify handling of strncasecmp.
24272         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24273         the conditional link warning.
24274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24275         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24276         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24277         * modules/strcase (configure.ac): Don't invoke
24278         gl_STRING_MODULE_INDICATOR.
24279         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24280
24281 2007-02-04  Bruno Haible  <bruno@clisp.org>
24282
24283         New module mbscasecmp, reduced goal of strcasecmp.
24284         * modules/mbscasecmp: New file.
24285         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24286         (mbscasecmp): Renamed from strcasecmp.
24287         * lib/strcasecmp.c: Don't include mbuiter.h.
24288         (strcasecmp): Remove support for multibyte locales.
24289         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24290         Change the conditional link warning.
24291         (mbscasecmp): New declaration.
24292         * m4/mbscasecmp.m4: New file.
24293         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24294         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24295         REPLACE_STRCASECMP.
24296         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24298         GNULIB_MBSCASECMP.
24299         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24300         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24301         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24302         (Depends-on): Remove mbuiter.
24303         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24304
24305 2007-02-04  Bruno Haible  <bruno@clisp.org>
24306
24307         New module mbsstr. Remove module strstr.
24308         * modules/mbsstr: New file.
24309         * modules/strstr: Remove file.
24310         * lib/mbsstr.c: Renamed from lib/strstr.c.
24311         (mbsstr): Renamed from strstr.
24312         * lib/string_.h (strstr): Remove declaration. Change the conditional
24313         link warning.
24314         (mbsstr): New declaration.
24315         * m4/mbsstr.m4: New file.
24316         * m4/strstr.m4: Remove file.
24317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24318         REPLACE_STRSTR.
24319         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24320         Don't initialize GNULIB_STRSTR.
24321         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24322         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24323         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24324         (Support for systems lacking ANSI C 89): Remove strstr.
24325
24326 2007-02-04  Bruno Haible  <bruno@clisp.org>
24327
24328         New module mbsrchr.
24329         * modules/mbsrchr: New file.
24330         * lib/mbsrchr.c: New file.
24331         * lib/string_.h (strrchr): Add a conditional link warning.
24332         (mbsrchr): New declaration.
24333         * m4/mbsrchr.m4: New file.
24334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24335         GNULIB_MBSRCHR.
24336         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24337         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24338
24339 2007-02-04  Bruno Haible  <bruno@clisp.org>
24340
24341         New module mbschr.
24342         * modules/mbschr: New file.
24343         * lib/mbschr.c: New file.
24344         * lib/string_.h (strchr): Add a conditional link warning.
24345         (mbschr): New declaration.
24346         * m4/mbschr.m4: New file.
24347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24348         GNULIB_MBSCHR.
24349         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24350         * MODULES.html.sh (Internationalization functions): Add mbschr.
24351
24352 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24353
24354         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24355
24356         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24357
24358 2007-02-04  Bruno Haible  <bruno@clisp.org>
24359
24360         New module description section 'configure.ac-early'.
24361         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24362         (func_get_autoconf_early_snippet): New function.
24363         (func_import, func_create_testdir): Use it. Remove special cases for
24364         modules 'extensions' and 'lock'.
24365         * modules/extensions (configure.ac-early): Require
24366         gl_USE_SYSTEM_EXTENSIONS.
24367         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24368
24369 2007-02-04  Bruno Haible  <bruno@clisp.org>
24370
24371         Make use of gcj-4.3's -fsource and -ftarget option.
24372         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24373         and if so try the options -fsource and -ftarget.
24374         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24375         source_version, ftarget_option, target_version arguments.
24376         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24377         (is_envjavac_oldgcj_14_14_usable): Renamed from
24378         is_envjavac_gcj_14_14_usable.
24379         (is_envjavac_oldgcj_14_13_usable): Renamed from
24380         is_envjavac_gcj_14_13_usable.
24381         (is_gcj_present): Update.
24382         (is_gcj_43, is_gcj43_usable): New functions.
24383         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24384         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24385         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24386         try the options -fsource and -ftarget.
24387
24388 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24391         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24392         larger value.
24393
24394 2007-02-03  Jim Meyering  <jim@meyering.net>
24395
24396         Give tools a better chance to allocate space for very large buffers.
24397         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24398
24399         Make pwd and readlink work also when run with an unreadable parent dir
24400         on systems with openat support.
24401         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24402         provided getcwd function, even when we have openat support.
24403         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24404
24405 2007-02-02  Bruno Haible  <bruno@clisp.org>
24406
24407         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24408         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24409         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24410         portability problems if one of these functions is only used on specific
24411         platforms.
24412         Reported by Paul Eggert.
24413
24414 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24415
24416         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24417         is causing more trouble than it's curing.
24418         * lib/regex_internal.h (__mempcpy): Remove.
24419         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24420         (and make the code a tad smaller to boot).
24421         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24422
24423 2007-02-02  Jim Meyering  <jim@meyering.net>
24424
24425         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24426         section, not in the Makefile.am: one.
24427
24428 2007-02-02  Eric Blake  <ebb9@byu.net>
24429
24430         * lib/strchrnul.c: Always include config.h first.
24431
24432         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24433         gnulib strstr is not necessary here.
24434
24435 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24436
24437         * m4/socklen.m4: Fix typo.
24438
24439 2007-02-02  Eric Blake  <ebb9@byu.net>
24440
24441         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24442         * modules/netinet_in (Makefile.am): Likewise.
24443
24444 2007-02-01  Bruno Haible  <bruno@clisp.org>
24445
24446         * lib/string_.h (GL_LINK_WARNING): New macro.
24447         (strcasecmp, strstr, strcasestr): If provided by the system,
24448         conditionally define as a macro that leads to a warning instead of to
24449         an error.
24450         (strncasecmp): Conditionally define as a macro that leads to a warning.
24451
24452 2007-02-01  Karl Berry  <karl@gnu.org>
24453
24454         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24455
24456 2007-02-01  Bruno Haible  <bruno@clisp.org>
24457
24458         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24459         renamings.
24460
24461 2007-02-01  Eric Blake  <ebb9@byu.net>
24462
24463         * modules/regex (Depends-on): Revert dependence on mempcpy.
24464         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24465         module's definition of mempcpy.
24466         Reported by Paul Eggert.
24467
24468 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24469
24470         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24471         the symbol XYZ before redefining it.  This fixes a problem with
24472         programs that don't use XYZ, when compiled on systems that define
24473         XYZ to something else.
24474
24475 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24476
24477         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24478         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24479         writeable to group or other and (2) is intended to have a special
24480         mode bit that is set or cleared.  In such a case, the directory
24481         should be neither group- nor other-writeable until the special
24482         mode bits are right.
24483
24484 2007-01-31  Eric Blake  <ebb9@byu.net>
24485
24486         * modules/mountlist (Depends-on): Add strstr.
24487
24488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24489         bug.
24490         * modules/string (Makefile.am): Remove redundant replacement.
24491         * modules/regex (Depends-on): Add mempcpy.
24492
24493 2007-01-31  Bruno Haible  <bruno@clisp.org>
24494
24495         New module description field 'Link'.
24496         * gnulib-tool (func_usage): Document --extract-link-directive.
24497         (sed_extract_prog): Recognize 'Link' directive.
24498         (func_get_link_directive): New function.
24499         (func_import): Show summary of link directives.
24500         Handle --extract-link-directive option.
24501         * modules/acl (Link): New section.
24502         * modules/clock-time (Link): New section.
24503         * modules/euidaccess (Link): New section.
24504         * modules/gettext (Link): New section.
24505         * modules/iconv (Link): New section.
24506         * modules/lock (Link): New section.
24507         * modules/nanosleep (Link): New section.
24508         * modules/readline (Link): New section.
24509
24510 2007-01-27  Bruno Haible  <bruno@clisp.org>
24511
24512         Enforce the use of gnulib modules for unportable <string.h> functions.
24513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24514         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24515         (gl_HEADER_STRING_H_BODY): Require it.
24516         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24517         the symbol XYZ to one that gives a link error.
24518         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24519         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24520         * modules/mempcpy (configure.ac): Likewise.
24521         * modules/memrchr (configure.ac): Likewise.
24522         * modules/stpcpy (configure.ac): Likewise.
24523         * modules/stpncpy (configure.ac): Likewise.
24524         * modules/strcase (configure.ac): Likewise.
24525         * modules/strcasestr (configure.ac): Likewise.
24526         * modules/strchrnul (configure.ac): Likewise.
24527         * modules/strdup (configure.ac): Likewise.
24528         * modules/strndup (configure.ac): Likewise.
24529         * modules/strnlen (configure.ac): Likewise.
24530         * modules/strpbrk (configure.ac): Likewise.
24531         * modules/strsep (configure.ac): Likewise.
24532         * modules/strstr (configure.ac): Likewise.
24533         * modules/strtok_r (configure.ac): Likewise.
24534
24535 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24536
24537         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24538
24539 2007-01-30  Jim Meyering  <jim@meyering.net>
24540
24541         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24542
24543 2007-01-29  Bruno Haible  <bruno@clisp.org>
24544
24545         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24546         * lib/execute.c: Likewise.
24547         * lib/pipe.c: Likewise.
24548         * lib/printf-args.h: Likewise.
24549         * lib/printf-args.c: Likewise.
24550         * lib/printf-parse.c: Likewise.
24551         * lib/vasnprintf.c: Likewise.
24552
24553 2007-01-29  Eric Blake  <ebb9@byu.net>
24554
24555         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24556         declaration.
24557
24558 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24559
24560         * lib/strptime.h (strptime): Use 'restrict' for args where
24561         POSIX requires this.
24562         * lib/strptime.c (strptime): Likewise.
24563         Change license notice from LGPL to GPL, since gnulib-tool will
24564         change this as needed.
24565         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24566         defined.
24567         Include "strptime.h" first, to check interface.
24568         Do not #undef _LIBC and _NL_CURRENT.
24569         Do not include <stdlib.h>; no longer needed.
24570         Include "time_r.h" and declare ptime_locale_status
24571         only if _LIBC is not defined.
24572         (__P): Remove unused macro.
24573         (match_string): Bring back glibc version, but use it only if _LIBC
24574         is defined.
24575         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24576         Remove unnecessary assertion and abort() call.
24577         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24578         * m4/strptime.m4: Fix serial number comment.
24579         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24580         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24581         (Depends-on): Add time_r.
24582
24583 2007-01-29  Bruno Haible  <bruno@clisp.org>
24584
24585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24586         strptime.
24587         * modules/strptime (Depends-on): Add stdbool.
24588         * lib/strptime.h: Include <time.h> always. Add comments.
24589
24590 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24591
24592         * modules/strptime: New file.
24593         * lib/strptime.h: New file.
24594         * lib/strptime.c: New file.
24595         * m4/strptime.m4: New file.
24596
24597 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         * MODULES.html.sh: New module mpsort.
24600         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24601
24602         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24603         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24605         All uses changed.
24606         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24607         All uses changed.
24608         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24609         to _Restrict_.
24610         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24611         the parameter matches the prototype.
24612
24613 2007-01-28  Jim Meyering  <jim@meyering.net>
24614
24615         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24616         sys/time.h here, reverting that part of the previous patch:
24617         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24618
24619 2007-01-28  Bruno Haible  <bruno@clisp.org>
24620
24621         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24622         value of $(SYS_TIME_H).
24623         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24624         remove it conditionally, too. [added by Jim Meyering]
24625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24627         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24628         GETTIMEOFDAY_REPLACEMENT to 1.
24629
24630 2007-01-28  Bruno Haible  <bruno@clisp.org>
24631
24632         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24633         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24635         Set UNISTD_H instead of UNISTD_H2.
24636         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24637
24638 2007-01-28  Bruno Haible  <bruno@clisp.org>
24639
24640         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24641         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24642
24643 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24644
24645         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24646         (func_create_testdir): Ensure C locale for `grep' and `tr'
24647         character ranges.
24648         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24649         ACLOCAL_AMFLAGS parsing state machine.
24650
24651 2007-01-27  Bruno Haible  <bruno@clisp.org>
24652
24653         * modules/unistr/base: Update.
24654
24655 2007-01-27  Bruno Haible  <bruno@clisp.org>
24656
24657         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24658         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24659         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24660         modules/unistr/u32-mbtouc.
24661         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24662         * lib/unistr.h: Update.
24663         * lib/linebreak.c: Update.
24664         * modules/unistr/u32-mbtouc: Renamed from
24665         modules/unistr/u32-mbtouc-safe.
24666         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24667         * lib/unistr.h: Update.
24668         * lib/unistr/u32-to-u8.c: Update.
24669         * lib/unistr/u32-to-u16.c: Update.
24670
24671 2007-01-27  Bruno Haible  <bruno@clisp.org>
24672
24673         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24674         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24675         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24676         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24677         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24678         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24679         modules/unistr/u16-mbtouc.
24680         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24681         * lib/unistr.h: Update.
24682         * lib/linebreak.c: Update.
24683         * modules/linebreak: Update.
24684         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24685         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24686         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24687         * modules/unistr/u16-mbtouc: Renamed from
24688         modules/unistr/u16-mbtouc-safe.
24689         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24690         * lib/unistr.h: Update.
24691         * lib/unistr/u16-to-u8.c: Update.
24692         * modules/unistr/u16-to-u8: Update.
24693         * lib/unistr/u16-to-u32.c: Update.
24694         * modules/unistr/u16-to-u32: Update.
24695
24696 2007-01-27  Bruno Haible  <bruno@clisp.org>
24697
24698         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24699         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24700         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24701         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24702         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24703         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24704         modules/unistr/u8-mbtouc.
24705         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24706         * lib/unistr.h: Update.
24707         * lib/striconveh.c: Update.
24708         * modules/striconveh: Update.
24709         * lib/linebreak.c: Update.
24710         * modules/linebreak: Update.
24711         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24712         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24713         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24714         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24715         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24716         * lib/unistr.h: Update.
24717         * lib/striconveh.c: Update.
24718         * modules/striconveh: Update.
24719         * lib/unistr/u8-to-u16.c: Update.
24720         * modules/unistr/u8-to-u16: Update.
24721         * lib/unistr/u8-to-u32.c: Update.
24722         * modules/unistr/u8-to-u32: Update.
24723
24724 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24725
24726         Sync from Libtool.
24727         * lib/argz.c: Do not include strings.h nor memory.h, include
24728         string.h unconditionally.  Patch by Simon Josefsson.
24729
24730 2007-01-27  Bruno Haible  <bruno@clisp.org>
24731
24732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24733         from gl_HEADER_STRING_H_BODY.
24734         (gl_HEADER_STRING_H_BODY): Require it.
24735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24736         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24738         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24740         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24742         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24743         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24744         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24746         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24747         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24748         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24750
24751 2007-01-27  Bruno Haible  <bruno@clisp.org>
24752
24753         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24754         check_PROGRAMS into noinst_PROGRAMS.
24755         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24756         check_PROGRAMS in this case.
24757         (func_import): Set for_test to false.
24758         (func_create_testdir): Set for_test to true.
24759
24760 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24761             Bruno Haible  <bruno@clisp.org>
24762
24763         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24764         (Depends-on): Add string.
24765         (Includes): Use <string.h> instead of strcasestr.h.
24766         * modules/string (Makefile.am): Also substitute the value of
24767         REPLACE_STRCASESTR.
24768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24769         assume strcasestr is declared in <string.h> not <strings.h>. Also
24770         set REPLACE_STRCASESTR.
24771         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24772         REPLACE_STRCASESTR.
24773         * lib/strcasestr.h: Remove file.
24774         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24775         * lib/string_.h (strcasestr): New declaration.
24776
24777 2007-01-27  Bruno Haible  <bruno@clisp.org>
24778
24779         * lib/string_.h: Use 'extern'.
24780
24781 2007-01-27  Jim Meyering  <jim@meyering.net>
24782
24783         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24784         of set-but-not-used local, "q".
24785
24786         * lib/mempcpy.c: Include <config.h> before <string.h>.
24787         This fixes a compilation error on HP-UX, due to the system's
24788         "restrict"-using mempcpy prototype.
24789
24790 2007-01-26  Bruno Haible  <bruno@clisp.org>
24791
24792         Small optimization.
24793         * lib/javacomp.c: Include c-strstr.h.
24794          (is_envjavac_gcj): Use c_strstr instead of strstr.
24795         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24796
24797 2007-01-26  Bruno Haible  <bruno@clisp.org>
24798
24799         * MODULES.html.sh (Unicode string functions): Add the new modules.
24800
24801         * modules/uniconv/u32-strconv-to-locale: New file.
24802         * lib/uniconv/u32-strconv-to-locale.c: New file.
24803
24804         * modules/uniconv/u16-strconv-to-locale: New file.
24805         * lib/uniconv/u16-strconv-to-locale.c: New file.
24806
24807         * modules/uniconv/u8-strconv-to-locale: New file.
24808         * lib/uniconv/u8-strconv-to-locale.c: New file.
24809
24810         * modules/uniconv/u32-strconv-from-locale: New file.
24811         * lib/uniconv/u32-strconv-from-locale.c: New file.
24812
24813         * modules/uniconv/u16-strconv-from-locale: New file.
24814         * lib/uniconv/u16-strconv-from-locale.c: New file.
24815
24816         * modules/uniconv/u8-strconv-from-locale: New file.
24817         * lib/uniconv/u8-strconv-from-locale.c: New file.
24818
24819         * modules/uniconv/u32-strconv-to-enc: New file.
24820         * lib/uniconv/u32-strconv-to-enc.c: New file.
24821         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24822         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24823
24824         * modules/uniconv/u16-strconv-to-enc: New file.
24825         * lib/uniconv/u16-strconv-to-enc.c: New file.
24826         * lib/uniconv/u-strconv-to-enc.h: New file.
24827         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24828         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24829
24830         * modules/uniconv/u8-strconv-to-enc: New file.
24831         * lib/uniconv/u8-strconv-to-enc.c: New file.
24832         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24833         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24834
24835         * modules/uniconv/u32-strconv-from-enc: New file.
24836         * lib/uniconv/u32-strconv-from-enc.c: New file.
24837         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24838         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24839
24840         * modules/uniconv/u16-strconv-from-enc: New file.
24841         * lib/uniconv/u16-strconv-from-enc.c: New file.
24842         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24843         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24844
24845         * modules/uniconv/u8-strconv-from-enc: New file.
24846         * lib/uniconv/u8-strconv-from-enc.c: New file.
24847         * lib/uniconv/u-strconv-from-enc.h: New file.
24848         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24849         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24850
24851         * modules/uniconv/u32-conv-from-enc: New file.
24852         * lib/uniconv/u32-conv-from-enc.c: New file.
24853         * modules/uniconv/u32-conv-from-enc-tests: New file.
24854         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24855
24856         * modules/uniconv/u16-conv-from-enc: New file.
24857         * lib/uniconv/u16-conv-from-enc.c: New file.
24858         * lib/uniconv/u-conv-from-enc.h: New file.
24859         * modules/uniconv/u16-conv-from-enc-tests: New file.
24860         * tests/uniconv/test-u16-conv-from-enc.c: New file.
24861
24862         * modules/uniconv/u8-conv-from-enc: New file.
24863         * lib/uniconv/u8-conv-from-enc.c: New file.
24864         * modules/uniconv/u8-conv-from-enc-tests: New file.
24865         * tests/uniconv/test-u8-conv-from-enc.c: New file.
24866
24867         * modules/uniconv/base: New file.
24868         * lib/uniconv.h: New file.
24869
24870 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24871
24872         * doc/gnulib-tool.texi (Initial import): Update to match current
24873         behavior with strdup module.
24874         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24875         * lib/memmem.h: Remove; all uses removed.  This is now done
24876         by <string.h>.
24877         * lib/mempcpy.h: Likewise.
24878         * lib/memrchr.h: Likewise.
24879         * lib/stpcpy.h: Likewise.
24880         * lib/stpncpy.h: Likewise.
24881         * lib/strcase.h: Likewise.
24882         * lib/strchrnul.h: Likewise.
24883         * lib/strdup.h: Likewise.
24884         * lib/strndup.h: Likewise.
24885         * lib/strnlen.h: Likewise.
24886         * lib/strpbrk.h: Likewise.
24887         * lib/strsep.h: Likewise.
24888         * lib/strstr.h: Likewise.
24889         * lib/strtok_r.h: Likewise.
24890         * lib/string_.h: New file.
24891         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24892         Rely on <string.h> instead.
24893         * lib/canon-host.c: Likewise.
24894         * lib/chdir-long.c: Likewise.
24895         * lib/concatpath.c: Likewise.
24896         * lib/exclude.c: Likewise.
24897         * lib/fchdir.c: Likewise.
24898         * lib/getaddrinfo.c: Likewise.
24899         * lib/getcwd.c: Likewise.
24900         * lib/getsubopt.c: Likewise.
24901         * lib/glob.c: Likewise.
24902         * lib/hard-locale.c: Likewise.
24903         * lib/iconvme.c: Likewise.
24904         * lib/javacomp.c: Likewise.
24905         * lib/mempcpy.c: Likewise.
24906         * lib/memrchr.c: Likewise.
24907         * lib/regex_internal.h: Likewise.
24908         * lib/stpncpy.c: Likewise.
24909         * lib/strcasecmp.c: Likewise.
24910         * lib/strchrnul.c: Likewise.
24911         * lib/strdup.c: Likewise.
24912         * lib/striconv.c: Likewise.
24913         * lib/striconveh.c: Likewise.
24914         * lib/striconveha.c: Likewise.
24915         * lib/strncasecmp.c: Likewise.
24916         * lib/strndup.c: Likewise.
24917         * lib/strnlen.c: Likewise.
24918         * lib/strsep.c: Likewise.
24919         * lib/strstr.c: Likewise.
24920         * lib/strtok_r.c: Likewise.
24921         * lib/userspec.c: Likewise.
24922         * lib/w32spawn.h: Likewise.
24923         * lib/xstrndup.c: Likewise.
24924         * lib/mountlist.c (strstr): Remove decl.
24925         * m4/string_h.m4: New file.
24926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24927         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24928         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24929         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24930         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24931         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24932         Set REPLACE_STRCASECMP if necessary.
24933         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24934         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24935         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24937         HAVE_DECL_STRDUP if necessary.
24938         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24939         since gl_FUNC_STRNDUP does that now.
24940         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24941         Check for decl here...
24942         (gl_PREREQ_STRNLEN): ... not here.
24943         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24944         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24945         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24946         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24947         necessary.
24948         * modules/string: New file.
24949         * modules/memmem (Files): Remove special-purpose include file.
24950         (Depends-on): Add string.
24951         (Include): Include <string.h>, not the removed file.
24952         * modules/mempcpy: Likewise.
24953         * modules/memrchr: Likewise.
24954         * modules/stpcpy: Likewise.
24955         * modules/stpncpy: Likewise.
24956         * modules/strcase: Likewise.
24957         * modules/strchrnul: Likewise.
24958         * modules/strdup: Likewise.
24959         * modules/strndup: Likewise.
24960         * modules/strnlen: Likewise.
24961         * modules/strpbrk: Likewise.
24962         * modules/strsep: Likewise.
24963         * modules/strstr: Likewise.
24964         * modules/strtok_r: Likewise.
24965         * tests/test-dirname.c: Don't include "strdup.h", since
24966         <string.h> now suffices.
24967         * tests/test-memmem.c: Don't include "memmem.h", since
24968         <string.h> now suffices.
24969
24970 2007-01-25  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24973         *resultp is 0.
24974
24975         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24976         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24977         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24978         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24979
24980         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24981         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24982         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24983         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24984         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24985         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24986
24987 2007-01-24  Bruno Haible  <bruno@clisp.org>
24988
24989         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24991         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24992         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24993         gl_FUNC_FTS_CORE.
24994         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24995         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24997         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24998         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24999         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
25000         gl_FUNC_FCHOWNAT.
25001         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
25002         gl_FUNC_STRFTIME.
25003         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
25004         Reported by Ralf Wildenhues.
25005
25006 2007-01-24  Bruno Haible  <bruno@clisp.org>
25007
25008         Drop AC_REQUIRE calls that are redundant with the module dependencies.
25009         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
25010         gl_GETADDRINFO.
25011         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
25012         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
25013         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
25014
25015 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
25018         Don't use 'exit'; just return from 'main'.
25019         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
25020
25021         * lib/fnmatch_.h: Readjust white space and comments to match
25022         glibc, to avoid spurious diffs.
25023
25024 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25025
25026         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
25027         2004-12-01 change by Jakub Jelinek, since this code won't compile
25028         if !LIBC.  Problem reported by Bob Proulx.
25029
25030 2007-01-23  Bruno Haible  <bruno@clisp.org>
25031
25032         * lib/striconveh.c: Include c-strcaseeq.h.
25033         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
25034         * modules/striconveh (Depends-on): Add c-strcaseeq.
25035
25036 2007-01-23  Bruno Haible  <bruno@clisp.org>
25037
25038         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
25039
25040         * modules/c-strcaseeq: New file.
25041         * lib/c-strcaseeq.h: New file.
25042
25043         * modules/streq: New file.
25044         * lib/streq.h: New file.
25045
25046 2007-01-23  Bruno Haible  <bruno@clisp.org>
25047
25048         * modules/striconveha-tests: New file.
25049         * tests/test-striconveha.c: New file.
25050
25051         * lib/striconveha.h: Include <stdbool.h>.
25052         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
25053         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
25054         (mem_iconveha_notranslit): Renamed from mem_iconveha.
25055         (mem_iconveha): New function.
25056         (str_iconveha_notranslit): Renamed from str_iconveha.
25057         (str_iconveha): New function.
25058         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
25059         c-strcase.
25060
25061 2007-01-23  Bruno Haible  <bruno@clisp.org>
25062
25063         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
25064         encodings without forgiving before trying any encoding with handler.
25065         (str_iconveha): Try all encodings without forgiving before trying any
25066         encoding with handler.
25067
25068 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25069
25070         Import the following changes from libc.
25071
25072         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25073
25074         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
25075
25076         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25077
25078         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
25079         normal_bracket label.
25080
25081         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
25082
25083         [BZ #361]
25084         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
25085         to normal_bracket after fetching the next character.
25086
25087 2007-01-22  Bruno Haible  <bruno@clisp.org>
25088
25089         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
25090         argument.
25091         * lib/striconveh.c (iconv_carefully_1): New function.
25092         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
25093         argument.
25094         (str_cd_iconveh): Update.
25095         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
25096         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
25097         * tests/test-striconveh.c (MAGIC): New macro.
25098         (new_offsets): New function.
25099         (main): Test call with and without offsets.
25100
25101 2007-01-22  Bruno Haible  <bruno@clisp.org>
25102
25103         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
25104         * modules/sys_select (Makefile.am): Likewise.
25105         * modules/sys_socket (Makefile.am): Likewise.
25106         * modules/sys_time (Makefile.am): Likewise.
25107
25108 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25109
25110         * modules/gettimeofday (License): Change from GPL to LGPL, since
25111         gettimeofday is a library function.
25112
25113 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25114
25115         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
25116
25117 2007-01-21  Bruno Haible  <bruno@clisp.org>
25118
25119         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
25120
25121 2007-01-21  Bruno Haible  <bruno@clisp.org>
25122
25123         * modules/striconveha: New file.
25124         * lib/striconveha.h: New file.
25125         * lib/striconveha.c: New file.
25126         * MODULES.html.sh (Internationalization functions): Add striconveha.
25127         * lib/striconv.c (str_iconv): Optimize the case of an empty input
25128         string.
25129         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
25130
25131 2007-01-21  Bruno Haible  <bruno@clisp.org>
25132
25133         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
25134         * lib/striconveh.c (str_iconveh): Likewise.
25135
25136 2007-01-21  Bruno Haible  <bruno@clisp.org>
25137
25138         * lib/striconveh.h (mem_iconveh): New declaration.
25139         * lib/striconveh.c (mem_iconveh): New function.
25140         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
25141
25142 2007-01-21  Bruno Haible  <bruno@clisp.org>
25143
25144         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
25145
25146         * lib/striconveh.h (mem_cd_iconveh): Change specification.
25147         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
25148         original result buffer.
25149         (str_cd_iconveh): Update.
25150         * tests/test-striconveh.c (main): Update.
25151
25152         * lib/striconv.h (mem_cd_iconv): Change specification.
25153         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25154         result buffer.
25155         (str_cd_iconv): Update.
25156         * tests/test-striconv.c (main): Update.
25157
25158 2007-01-21  Bruno Haible  <bruno@clisp.org>
25159
25160         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25161
25162 2007-01-20  Jim Meyering  <jim@meyering.net>
25163
25164         * lib/userspec.c (parse_with_separator): If a user or group string
25165         starts with "+", skip the corresponding name-to-ID look-up, since
25166         such a look-up must fail: user and group names may not include "+".
25167
25168 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25169
25170         * lib/poll.c: Include sys/time.h and time.h unconditionally,
25171         since we now assume the sys_time module.
25172         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25173         check for sys/time.h; no longer needed.
25174         * modules/poll (Depends-on): Depend on sys_time.
25175
25176 2007-01-18  Bruno Haible  <bruno@clisp.org>
25177
25178         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25179         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25180
25181         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25182         gettimeofday.
25183
25184         * tests/test-gettimeofday.c: Include <time.h>.
25185         (dummy): Remove variable.
25186
25187         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25188         gl_HEADER_SYS_TIME_H.
25189         (gl_HEADER_SYS_TIME_H): New macro.
25190
25191         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25192         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25194         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25195         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25197         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25198         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25199         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25200         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25201         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25202
25203         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25204         last change; it caused a compilation error when cross-compiling to
25205         Cygwin.
25206
25207 2007-01-18  Jim Meyering  <jim@meyering.net>
25208
25209         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25210         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25211         than the race-prone "test -d sys || mkdir sys".
25212         (configure.ac): Use AC_PROG_MKDIR_P.
25213         * modules/sys_select: Likewise.
25214         * modules/sys_socket: Likewise.
25215         * modules/sys_time: Likewise.
25216
25217 2007-01-18  Eric Blake  <ebb9@byu.net>
25218
25219         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25220         replace gettimeofday.
25221         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25222         name, to avoid infinite recursion.
25223
25224 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25225
25226         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25227         module sys_time.
25228         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25229         assume timespec.h defines struct timeval.
25230         * lib/settime.c: Likewise.
25231         * lib/utimens.c: Likewise.
25232         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25233         since we now assume the gettimeofday module.
25234         * lib/tempname.c (__gen_tempname): Likewise.
25235         * lib/gettimeofday.h: Remove.
25236         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25237         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25238         Include <time.h>, for 'time()'.
25239         (localtime_buffer_addr): Also use this workaround if
25240         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
25241         to simplify the uses.  All uses changed.
25242         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25243         that #undef is inside {}, and 'const' follows type name consistently.
25244         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25245         (gettimeofday): Do not use the maximum possible value for
25246         tv->tv_usec, since that might break usages other than ls.c.
25247         Instead, we'll leave ls.c alone.  This undoes today's patch
25248         by Bruno.  Add a compile-time warning for 1s-clock resolution;
25249         we've never observed the problem but might as well keep the
25250         canary.
25251         * lib/nanosleep.c: Include timespec.h first, for interface check.
25252         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25253         now assume the sys_time module.
25254         * lib/tempname.c: Likewise.
25255         * lib/timespec.h: Likewise.
25256         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25257         needed.
25258         * lib/strftime.c: Likewise.
25259         * lib/timespec.h: Likewise.
25260         * lib/posixtm.c: Include posixtm.h first, for interface check.
25261         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25262         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25263         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25264         * lib/sys_time_.h: New file.
25265         * lib/timespec.h (struct timespec): Use long int, not long.
25266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25267         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25268         Remove obsolescent call to AC_HEADER_TIME.
25269         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25272         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25273         Likewise.
25274         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25275         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25277         into the sys_time module.  Check for gettimeofday just once.
25278         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25279         for gettimeofday signature to just check the signature.  Merely
25280         compile it, since linking doesn't test signature.  Improve test for
25281         whether gettimeofday.o is actually needed.
25282         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25283         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25284         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25285         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25286         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25287         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25288         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25289         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25290         than worrying about sys/time.h.
25291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25292         Don't bother worrying about TIME_WITH_SYS_TIME.
25293         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25294         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25295         * m4/sys_time_h.m4: New file.
25296         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25297         Don't include sys/time.h.  Return from main rather than exiting.
25298         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25299         all uses changed.
25300         * modules/gethrxtime (Depends-on): Add sys_time.
25301         * modules/gettime (Depends-on): Likewise.
25302         * modules/gettimeofday (Depends-on): Likewise.
25303         * modules/nanosleep (Depends-on): Likewise.
25304         * modules/settime (Depends-on): Likewise.
25305         * modules/tempname (Depends-on): Likewise.
25306         * modules/utimens (Depends-on): Likewise.
25307         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25308         (Include:) Change back to <sys/time.h>.
25309         (Maintainer:) Add self.
25310         * modules/sys_time: New file.
25311         * modules/tempname (Depends-on): Add gettimeofday.
25312         * tests/test-gettimeofday.c: Include <sys/time.h>
25313         rather than gettimeofday.h.
25314
25315 2007-01-17  Bruno Haible  <bruno@clisp.org>
25316
25317         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25318         the license default to GPL.
25319         (func_create_testdir): Don't complain if a module is LGPL and its
25320         tests module depends on GPLed modules.
25321
25322 2007-01-17  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/gettimeofday.c (gettimeofday): Add code for the case
25325         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25326         maximum possible value for tv->tv_usec, rather than the minimum one.
25327
25328 2005-10-08  Martin Lambers  <marlam@marlam.de>
25329 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25330 2007-01-16  Bruno Haible  <bruno@clisp.org>
25331
25332         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25333         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25334         gl_FUNC_GETTIMEOFDAY.
25335         (Include): Add gettimeofday.h.
25336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25337         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25338         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25339         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25340         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25341         * lib/gettimeofday.h: New file.
25342         * lib/gettimeofday.c: Include <sys/timeb.h>.
25343         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25344         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25345         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25346         fall back on time().
25347
25348         * tests/test-gettimeofday.c: New file.
25349         * modules/gettimeofday-tests: New file.
25350
25351 2007-01-16  Eric Blake  <ebb9@byu.net>
25352
25353         * modules/fnmatch (Depends-on): Depend on wchar.
25354         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25355         * m4/fnmatch.m4: Likewise.
25356         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25357         * m4/mbchar.m4: Likewise.
25358         * modules/mbswidth (Depends-on): Depend on wchar.
25359         * lib/mbswidth.c: Assume <wchar.h>.
25360         * m4/mbswidth.m4: Likewise.
25361         * modules/quotearg (Depends-on): Depend on wchar.
25362         * lib/quotearg.c: Assume <wchar.h>.
25363         * m4/quotearg.m4: Likewise.
25364         * modules/regex (Depends-on): Depend on wchar.
25365         * lib/regex_internal.h: Assume <wchar.h>.
25366         * m4/regex.m4: Likewise.
25367         * modules/stdint (Depends-on): Depend on wchar.
25368         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25369         * m4/stdint.m4: Likewise.
25370         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25371         * modules/strftime (Depends-on): Depend on wchar.
25372         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25373         * modules/strtol (Depends-on): Depend on wchar.
25374         * lib/strtol.c: Assume <wchar.h>.
25375         * modules/wcwidth (Depends-on): Depend on wchar.
25376         * lib/wcwidth.h: Assume <wchar.h>.
25377         * m4/wcwidth.m4: Likewise.
25378
25379 2007-01-16  Bruno Haible  <bruno@clisp.org>
25380
25381         * modules/csharpexec-script: New, created from...
25382         * modules/csharpexec: ... this.
25383
25384 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25385
25386         * modules/javaexec-script: New, created from...
25387         * modules/javaexec: ... this.
25388
25389 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25390
25391         * modules/poll (Dependencies): Add sys_select.
25392
25393 2007-01-15  Jim Meyering  <jim@meyering.net>
25394
25395         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25396         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25397         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25398         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25399
25400 2007-01-15  Bruno Haible  <bruno@clisp.org>
25401
25402         * modules/striconveh: New file.
25403         * lib/striconveh.h: New file.
25404         * lib/striconveh.c: New file.
25405         * MODULES.html.sh (Internationalization functions): Add striconveh.
25406
25407         * modules/striconveh-tests: New file.
25408         * tests/test-striconveh.c: New file.
25409
25410 2007-01-15  Bruno Haible  <bruno@clisp.org>
25411
25412         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25413         not from GNU libiconv or GNU libc.
25414
25415 2007-01-15  Bruno Haible  <bruno@clisp.org>
25416
25417         * doc/gnulib-intro.texi (Copyright): Explain the different license
25418         terms for module descriptions, autoconf macros, tests, documentation.
25419
25420 2007-01-14  Bruno Haible  <bruno@clisp.org>
25421
25422         * modules/striconv-tests: New file.
25423         * tests/test-striconv.c: New file.
25424
25425 2007-01-14  Bruno Haible  <bruno@clisp.org>
25426
25427         * modules/iconv-tests: New file.
25428         * tests/test-iconv.c: New file.
25429
25430 2007-01-14  Bruno Haible  <bruno@clisp.org>
25431
25432         * gnulib-tool (func_get_license): For test modules, use the license of
25433         the main module.
25434
25435 2007-01-14  Bruno Haible  <bruno@clisp.org>
25436
25437         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25438         if iconv is found to exist.
25439
25440 2007-01-14  Bruno Haible  <bruno@clisp.org>
25441
25442         * modules/c-ctype-tests: New file.
25443         * tests/test-c-ctype.c: New file.
25444
25445 2007-01-14  Bruno Haible  <bruno@clisp.org>
25446
25447         * modules/binary-io-tests: New file.
25448         * tests/test-binary-io.sh: New file.
25449         * tests/test-binary-io.c: New file.
25450
25451 2007-01-14  Bruno Haible  <bruno@clisp.org>
25452
25453         * modules/array-oset-tests: New file.
25454         * tests/test-array_oset.c: New file.
25455
25456 2007-01-14  Bruno Haible  <bruno@clisp.org>
25457
25458         * modules/array-list-tests: New file.
25459         * tests/test-array_list.c: New file.
25460
25461 2007-01-14  Bruno Haible  <bruno@clisp.org>
25462
25463         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25464         and make.
25465         Reported by Simon Josefsson in
25466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25467
25468 2007-01-14  Bruno Haible  <bruno@clisp.org>
25469
25470         * modules/allocsa-tests: New file.
25471         * tests/test-allocsa.c: New file.
25472
25473 2007-01-14  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/fchdir (Depends-on): Add absolute-header.
25476         * modules/unistd (Depends-on): Likewise.
25477
25478 2006-12-30  Bruno Haible  <bruno@clisp.org>
25479
25480         * modules/fchdir: New file.
25481         * modules/unistd (Files): Add lib/unistd_.h.
25482         (Makefile.am): Generate unistd.h from unistd_.h.
25483         * lib/fchdir.c: New file.
25484         * lib/dirent_.h: New file.
25485         * lib/unistd_.h: New file.
25486         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25487         * m4/fchdir.m4: New file.
25488         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25489         (gl_HEADER_UNISTD): Invoke it.
25490         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25491         function.
25492         * lib/backupfile.c (opendir, closedir): Undefine.
25493         * lib/chown.c (open, close): Undefine.
25494         * lib/clean-temp.c (open, close): Undefine.
25495         * lib/copy-file.c (open, close): Undefine.
25496         * lib/execute.c (open, close): Undefine.
25497         * lib/fsusage.c (open, close): Undefine.
25498         * lib/gc-gnulib.c (open, close): Undefine.
25499         * lib/getcwd.c (opendir, closedir): Undefine.
25500         * lib/glob.c (opendir, closedir): Undefine.
25501         * lib/javacomp.c (open, close): Undefine.
25502         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25503         * lib/openat-proc.c (open, close): Undefine.
25504         * lib/pagealign_alloc.c (open, close): Undefine.
25505         * lib/pipe.c (open, close): Undefine.
25506         * lib/progreloc.c (open, close): Undefine.
25507         * lib/savedir.c (opendir, closedir): Undefine.
25508         * lib/utime.c (open, close): Undefine.
25509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25510
25511 2007-01-10  Bruno Haible  <bruno@clisp.org>
25512
25513         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25514
25515 2007-01-12  Eric Blake  <ebb9@byu.net>
25516
25517         Provide a robust <wchar.h>.  Further simplifications are now
25518         possible in other modules, but not included here.
25519         * modules/wchar: New module.
25520         * m4/wchar.m4: New file.
25521         * lib/wchar_.h: Likewise.
25522         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25523         of the new module.
25524         * MODULES.html.sh (Extended multibyte and wide character utilities):
25525         New section.
25526
25527 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25528
25529         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25530         to a reasonable default for memory allocation.
25531         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25532         file system that reports garbage st_size values for symlinks.
25533         Problem reported by Liyang Hu.
25534
25535 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25536
25537         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25538         Emacs .#* auto-save files).
25539
25540 2007-01-11  Bruno Haible  <bruno@clisp.org>
25541
25542         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25543         directory.
25544
25545 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         Use @...@ consistently in lib/wctype_.h.
25548         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25549         on it being set to 1 or 0.
25550         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25551         go back to AC_SUBSTing it.
25552         * modules/wctype (Makefile.am): Undo previous change.
25553
25554 2007-01-10  Eric Blake  <ebb9@byu.net>
25555
25556         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25557         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25558         * modules/wctype (Makefile.am): Likewise.
25559         Reported by Chris McGuire.
25560
25561 2007-01-10  Jim Meyering  <jim@meyering.net>
25562
25563         fts.c: a small readability/maintainability improvement
25564         * lib/fts.c (fts_read): Make this code slightly more readable and
25565         maintainable by hoisting the "sp->fts_cur = p" assignments to
25566         immediately follow the statements that set P.  Derived from
25567         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25568
25569 2007-01-10  Eric Blake  <ebb9@byu.net>
25570
25571         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25572         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25574         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25575         Reported by Chris McGuire.
25576
25577 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25578
25579         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25580         in sed script.
25581
25582 2007-01-09  Bruno Haible  <bruno@clisp.org>
25583
25584         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25585         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25586         variables.
25587         (func_module): Use them.
25588
25589 2007-01-09  Bruno Haible  <bruno@clisp.org>
25590
25591         * modules/unistr/base: New file.
25592         * lib/unistr.h: New file.
25593
25594         * modules/unistr/u8-to-u16: New file.
25595         * lib/unistr/u8-to-u16.c: New file.
25596
25597         * modules/unistr/u8-to-u32: New file.
25598         * lib/unistr/u8-to-u32.c: New file.
25599
25600         * modules/unistr/u16-to-u8: New file.
25601         * lib/unistr/u16-to-u8.c: New file.
25602
25603         * modules/unistr/u16-to-u32: New file.
25604         * lib/unistr/u16-to-u32.c: New file.
25605
25606         * modules/unistr/u32-to-u8: New file.
25607         * lib/unistr/u32-to-u8.c: New file.
25608
25609         * modules/unistr/u32-to-u16: New file.
25610         * lib/unistr/u32-to-u16.c: New file.
25611
25612         * modules/unistr/u8-check: New file.
25613         * modules/unistr/u16-check: New file.
25614         * modules/unistr/u32-check: New file.
25615         * lib/unistr/u8-check.c: New file.
25616         * lib/unistr/u16-check.c: New file.
25617         * lib/unistr/u32-check.c: New file.
25618
25619         * modules/unistr/u8-chr: New file.
25620         * modules/unistr/u16-chr: New file.
25621         * modules/unistr/u32-chr: New file.
25622         * lib/unistr/u8-chr.c: New file.
25623         * lib/unistr/u16-chr.c: New file.
25624         * lib/unistr/u32-chr.c: New file.
25625
25626         * modules/unistr/u8-cmp: New file.
25627         * modules/unistr/u16-cmp: New file.
25628         * modules/unistr/u32-cmp: New file.
25629         * lib/unistr/u8-cmp.c: New file.
25630         * lib/unistr/u16-cmp.c: New file.
25631         * lib/unistr/u32-cmp.c: New file.
25632
25633         * modules/unistr/u8-cpy: New file.
25634         * modules/unistr/u16-cpy: New file.
25635         * modules/unistr/u32-cpy: New file.
25636         * lib/unistr/u8-cpy.c: New file.
25637         * lib/unistr/u16-cpy.c: New file.
25638         * lib/unistr/u32-cpy.c: New file.
25639         * lib/unistr/u-cpy.h: New file.
25640
25641         * modules/unistr/u8-cpy-alloc: New file.
25642         * modules/unistr/u16-cpy-alloc: New file.
25643         * modules/unistr/u32-cpy-alloc: New file.
25644         * lib/unistr/u8-cpy-alloc.c: New file.
25645         * lib/unistr/u16-cpy-alloc.c: New file.
25646         * lib/unistr/u32-cpy-alloc.c: New file.
25647         * lib/unistr/u-cpy-alloc.h: New file.
25648
25649         * modules/unistr/u8-endswith: New file.
25650         * modules/unistr/u16-endswith: New file.
25651         * modules/unistr/u32-endswith: New file.
25652         * lib/unistr/u8-endswith.c: New file.
25653         * lib/unistr/u16-endswith.c: New file.
25654         * lib/unistr/u32-endswith.c: New file.
25655         * lib/unistr/u-endswith.h: New file.
25656
25657         * modules/unistr/u8-mblen: New file.
25658         * modules/unistr/u16-mblen: New file.
25659         * modules/unistr/u32-mblen: New file.
25660         * lib/unistr/u8-mblen.c: New file.
25661         * lib/unistr/u16-mblen.c: New file.
25662         * lib/unistr/u32-mblen.c: New file.
25663
25664         * modules/unistr/u8-mbtouc: New file.
25665         * modules/unistr/u16-mbtouc: New file.
25666         * modules/unistr/u32-mbtouc: New file.
25667         * lib/unistr/u8-mbtouc.c: New file.
25668         * lib/unistr/u16-mbtouc.c: New file.
25669         * lib/unistr/u32-mbtouc.c: New file.
25670
25671         * modules/unistr/u8-mbtouc-safe: New file.
25672         * modules/unistr/u16-mbtouc-safe: New file.
25673         * modules/unistr/u32-mbtouc-safe: New file.
25674         * lib/unistr/u8-mbtouc-safe.c: New file.
25675         * lib/unistr/u16-mbtouc-safe.c: New file.
25676         * lib/unistr/u32-mbtouc-safe.c: New file.
25677
25678         * modules/unistr/u8-move: New file.
25679         * modules/unistr/u16-move: New file.
25680         * modules/unistr/u32-move: New file.
25681         * lib/unistr/u8-move.c: New file.
25682         * lib/unistr/u16-move.c: New file.
25683         * lib/unistr/u32-move.c: New file.
25684         * lib/unistr/u-move.h: New file.
25685
25686         * modules/unistr/u8-next: New file.
25687         * modules/unistr/u16-next: New file.
25688         * modules/unistr/u32-next: New file.
25689         * lib/unistr/u8-next.c: New file.
25690         * lib/unistr/u16-next.c: New file.
25691         * lib/unistr/u32-next.c: New file.
25692
25693         * modules/unistr/u8-prev: New file.
25694         * modules/unistr/u16-prev: New file.
25695         * modules/unistr/u32-prev: New file.
25696         * lib/unistr/u8-prev.c: New file.
25697         * lib/unistr/u16-prev.c: New file.
25698         * lib/unistr/u32-prev.c: New file.
25699
25700         * modules/unistr/u8-set: New file.
25701         * modules/unistr/u16-set: New file.
25702         * modules/unistr/u32-set: New file.
25703         * lib/unistr/u8-set.c: New file.
25704         * lib/unistr/u16-set.c: New file.
25705         * lib/unistr/u32-set.c: New file.
25706         * lib/unistr/u-set.h: New file.
25707
25708         * modules/unistr/u8-startswith: New file.
25709         * modules/unistr/u16-startswith: New file.
25710         * modules/unistr/u32-startswith: New file.
25711         * lib/unistr/u8-startswith.c: New file.
25712         * lib/unistr/u16-startswith.c: New file.
25713         * lib/unistr/u32-startswith.c: New file.
25714         * lib/unistr/u-startswith.h: New file.
25715
25716         * modules/unistr/u8-stpcpy: New file.
25717         * modules/unistr/u16-stpcpy: New file.
25718         * modules/unistr/u32-stpcpy: New file.
25719         * lib/unistr/u8-stpcpy.c: New file.
25720         * lib/unistr/u16-stpcpy.c: New file.
25721         * lib/unistr/u32-stpcpy.c: New file.
25722         * lib/unistr/u-stpcpy.h: New file.
25723
25724         * modules/unistr/u8-stpncpy: New file.
25725         * modules/unistr/u16-stpncpy: New file.
25726         * modules/unistr/u32-stpncpy: New file.
25727         * lib/unistr/u8-stpncpy.c: New file.
25728         * lib/unistr/u16-stpncpy.c: New file.
25729         * lib/unistr/u32-stpncpy.c: New file.
25730         * lib/unistr/u-stpncpy.h: New file.
25731
25732         * modules/unistr/u8-strcat: New file.
25733         * modules/unistr/u16-strcat: New file.
25734         * modules/unistr/u32-strcat: New file.
25735         * lib/unistr/u8-strcat.c: New file.
25736         * lib/unistr/u16-strcat.c: New file.
25737         * lib/unistr/u32-strcat.c: New file.
25738         * lib/unistr/u-strcat.h: New file.
25739
25740         * modules/unistr/u8-strchr: New file.
25741         * modules/unistr/u16-strchr: New file.
25742         * modules/unistr/u32-strchr: New file.
25743         * lib/unistr/u8-strchr.c: New file.
25744         * lib/unistr/u16-strchr.c: New file.
25745         * lib/unistr/u32-strchr.c: New file.
25746
25747         * modules/unistr/u8-strcmp: New file.
25748         * modules/unistr/u16-strcmp: New file.
25749         * modules/unistr/u32-strcmp: New file.
25750         * lib/unistr/u8-strcmp.c: New file.
25751         * lib/unistr/u16-strcmp.c: New file.
25752         * lib/unistr/u32-strcmp.c: New file.
25753
25754         * modules/unistr/u8-strcpy: New file.
25755         * modules/unistr/u16-strcpy: New file.
25756         * modules/unistr/u32-strcpy: New file.
25757         * lib/unistr/u8-strcpy.c: New file.
25758         * lib/unistr/u16-strcpy.c: New file.
25759         * lib/unistr/u32-strcpy.c: New file.
25760         * lib/unistr/u-strcpy.h: New file.
25761
25762         * modules/unistr/u8-strcspn: New file.
25763         * modules/unistr/u16-strcspn: New file.
25764         * modules/unistr/u32-strcspn: New file.
25765         * lib/unistr/u8-strcspn.c: New file.
25766         * lib/unistr/u16-strcspn.c: New file.
25767         * lib/unistr/u32-strcspn.c: New file.
25768         * lib/unistr/u-strcspn.h: New file.
25769
25770         * modules/unistr/u8-strdup: New file.
25771         * modules/unistr/u16-strdup: New file.
25772         * modules/unistr/u32-strdup: New file.
25773         * lib/unistr/u8-strdup.c: New file.
25774         * lib/unistr/u16-strdup.c: New file.
25775         * lib/unistr/u32-strdup.c: New file.
25776         * lib/unistr/u-strdup.h: New file.
25777
25778         * modules/unistr/u8-strlen: New file.
25779         * modules/unistr/u16-strlen: New file.
25780         * modules/unistr/u32-strlen: New file.
25781         * lib/unistr/u8-strlen.c: New file.
25782         * lib/unistr/u16-strlen.c: New file.
25783         * lib/unistr/u32-strlen.c: New file.
25784         * lib/unistr/u-strlen.h: New file.
25785
25786         * modules/unistr/u8-strmblen: New file.
25787         * modules/unistr/u16-strmblen: New file.
25788         * modules/unistr/u32-strmblen: New file.
25789         * lib/unistr/u8-strmblen.c: New file.
25790         * lib/unistr/u16-strmblen.c: New file.
25791         * lib/unistr/u32-strmblen.c: New file.
25792
25793         * modules/unistr/u8-strmbtouc: New file.
25794         * modules/unistr/u16-strmbtouc: New file.
25795         * modules/unistr/u32-strmbtouc: New file.
25796         * lib/unistr/u8-strmbtouc.c: New file.
25797         * lib/unistr/u16-strmbtouc.c: New file.
25798         * lib/unistr/u32-strmbtouc.c: New file.
25799
25800         * modules/unistr/u8-strncat: New file.
25801         * modules/unistr/u16-strncat: New file.
25802         * modules/unistr/u32-strncat: New file.
25803         * lib/unistr/u8-strncat.c: New file.
25804         * lib/unistr/u16-strncat.c: New file.
25805         * lib/unistr/u32-strncat.c: New file.
25806         * lib/unistr/u-strncat.h: New file.
25807
25808         * modules/unistr/u8-strncmp: New file.
25809         * modules/unistr/u16-strncmp: New file.
25810         * modules/unistr/u32-strncmp: New file.
25811         * lib/unistr/u8-strncmp.c: New file.
25812         * lib/unistr/u16-strncmp.c: New file.
25813         * lib/unistr/u32-strncmp.c: New file.
25814
25815         * modules/unistr/u8-strncpy: New file.
25816         * modules/unistr/u16-strncpy: New file.
25817         * modules/unistr/u32-strncpy: New file.
25818         * lib/unistr/u8-strncpy.c: New file.
25819         * lib/unistr/u16-strncpy.c: New file.
25820         * lib/unistr/u32-strncpy.c: New file.
25821         * lib/unistr/u-strncpy.h: New file.
25822
25823         * modules/unistr/u8-strnlen: New file.
25824         * modules/unistr/u16-strnlen: New file.
25825         * modules/unistr/u32-strnlen: New file.
25826         * lib/unistr/u8-strnlen.c: New file.
25827         * lib/unistr/u16-strnlen.c: New file.
25828         * lib/unistr/u32-strnlen.c: New file.
25829         * lib/unistr/u-strnlen.h: New file.
25830
25831         * modules/unistr/u8-strpbrk: New file.
25832         * modules/unistr/u16-strpbrk: New file.
25833         * modules/unistr/u32-strpbrk: New file.
25834         * lib/unistr/u8-strpbrk.c: New file.
25835         * lib/unistr/u16-strpbrk.c: New file.
25836         * lib/unistr/u32-strpbrk.c: New file.
25837         * lib/unistr/u-strpbrk.h: New file.
25838
25839         * modules/unistr/u8-strrchr: New file.
25840         * modules/unistr/u16-strrchr: New file.
25841         * modules/unistr/u32-strrchr: New file.
25842         * lib/unistr/u8-strrchr.c: New file.
25843         * lib/unistr/u16-strrchr.c: New file.
25844         * lib/unistr/u32-strrchr.c: New file.
25845
25846         * modules/unistr/u8-strspn: New file.
25847         * modules/unistr/u16-strspn: New file.
25848         * modules/unistr/u32-strspn: New file.
25849         * lib/unistr/u8-strspn.c: New file.
25850         * lib/unistr/u16-strspn.c: New file.
25851         * lib/unistr/u32-strspn.c: New file.
25852         * lib/unistr/u-strspn.h: New file.
25853
25854         * modules/unistr/u8-strstr: New file.
25855         * modules/unistr/u16-strstr: New file.
25856         * modules/unistr/u32-strstr: New file.
25857         * lib/unistr/u8-strstr.c: New file.
25858         * lib/unistr/u16-strstr.c: New file.
25859         * lib/unistr/u32-strstr.c: New file.
25860         * lib/unistr/u-strstr.h: New file.
25861
25862         * modules/unistr/u8-strtok: New file.
25863         * modules/unistr/u16-strtok: New file.
25864         * modules/unistr/u32-strtok: New file.
25865         * lib/unistr/u8-strtok.c: New file.
25866         * lib/unistr/u16-strtok.c: New file.
25867         * lib/unistr/u32-strtok.c: New file.
25868         * lib/unistr/u-strtok.h: New file.
25869
25870         * modules/unistr/u8-uctomb: New file.
25871         * modules/unistr/u16-uctomb: New file.
25872         * modules/unistr/u32-uctomb: New file.
25873         * lib/unistr/u8-uctomb.c: New file.
25874         * lib/unistr/u16-uctomb.c: New file.
25875         * lib/unistr/u32-uctomb.c: New file.
25876
25877         * MODULES.html.sh (Unicode string functions): Add the new modules.
25878
25879 2007-01-08  Bruno Haible  <bruno@clisp.org>
25880
25881         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25882         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25883         subdirectories.
25884
25885 2007-01-08  Karl Berry  <karl@gnu.org>
25886
25887         * doc/error.texi: mention that main() fns must set program_name
25888         when progname is used.
25889
25890 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25893         WCTYPE_H is empty, for the benefit of builds from non-distclean
25894         directories.  Problem reported by Eric Blake in
25895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25896
25897 2007-01-08  Bruno Haible  <bruno@clisp.org>
25898
25899         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25900         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25901         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25902         PROVIDE_CANONICALIZE_FILENAME_MODE.
25903         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25904
25905 2007-01-08  Bruno Haible  <bruno@clisp.org>
25906
25907         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25908         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25909         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25910         * lib/fts.c: Likewise.
25911         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25912
25913 2006-12-25  Bruno Haible  <bruno@clisp.org>
25914
25915         * modules/utf8-ucs4-safe: New file.
25916         * lib/utf8-ucs4-safe.h: New file.
25917         * lib/unistr/utf8-ucs4-safe.c: New file.
25918
25919         * modules/utf16-ucs4-safe: New file.
25920         * lib/utf16-ucs4-safe.h: New file.
25921         * lib/unistr/utf16-ucs4-safe.c: New file.
25922
25923         * MODULES.html.sh (Unicode string functions): Add the new modules.
25924
25925 2007-01-08  Bruno Haible  <bruno@clisp.org>
25926
25927         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25928         (Depends-on): Add unitypes.
25929         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25930         (u8_mbtouc_aux): Move out to separate file.
25931         (u8_mbtouc): Use ucs4_t, uint8_t types.
25932         * lib/unistr/utf8-ucs4.c: New file.
25933
25934         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25935         (Depends-on): Add unitypes.
25936         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25937         (u16_mbtouc_aux): Move out to separate file.
25938         (u16_mbtouc): Use ucs4_t, uint16_t types.
25939         * lib/unistr/utf16-ucs4.c: New file.
25940
25941         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25942         (Depends-on): Add unitypes.
25943         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25944         (u8_uctomb_aux): Move out to separate file.
25945         (u8_uctomb): Use ucs4_t, uint8_t types.
25946         * lib/unistr/ucs4-utf8.c: New file.
25947
25948         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25949         (Depends-on): Add unitypes.
25950         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25951         (u16_uctomb_aux): Move out to separate file.
25952         (u16_uctomb): Use ucs4_t, uint16_t types.
25953         * lib/unistr/ucs4-utf16.c: New file.
25954
25955 2006-12-25  Bruno Haible  <bruno@clisp.org>
25956
25957         * modules/unitypes: New file.
25958         * lib/unitypes.h: New file.
25959         * MODULES.html.sh (func_all_modules): New section "Unicode string
25960         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25961         this section. Add unitypes.
25962
25963 2007-01-08  Bruno Haible  <bruno@clisp.org>
25964
25965         Avoid variable names that conflict with those from libtool.
25966         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25967         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25968         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25969         library_names_spec to acl_library_names_spec, hardcode_* to
25970         acl_hardcode_*.
25971         Reported by Ralf Wildenhues.
25972
25973 2007-01-08  Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25976         definition.
25977         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25978         definition.
25979         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25980         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25981         definition.
25982         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25983         definition.
25984         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25985         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25986         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25987         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25988         definition.
25989         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25990         definition.
25991         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25992         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25993         GC_USE_<algorithm>.
25994         * lib/gc-libgcrypt.c: Likewise.
25995         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25996         * modules/gc-arctwo (configure.ac): Likewise.
25997         * modules/gc-des (configure.ac): Likewise.
25998         * modules/gc-hmac-md5 (configure.ac): Likewise.
25999         * modules/gc-hmac-sha1 (configure.ac): Likewise.
26000         * modules/gc-md2 (configure.ac): Likewise.
26001         * modules/gc-md4 (configure.ac): Likewise.
26002         * modules/gc-md5 (configure.ac): Likewise.
26003         * modules/gc-random (configure.ac): Likewise.
26004         * modules/gc-rijndael (configure.ac): Likewise.
26005         * modules/gc-sha1 (configure.ac): Likewise.
26006
26007 2007-01-08  Bruno Haible  <bruno@clisp.org>
26008
26009         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
26010         macro definition.
26011         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
26012         definition.
26013         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
26014         definition.
26015         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
26016         * modules/fcntl-safer (configure.ac): Likewise.
26017         * modules/fopen-safer (configure.ac): Likewise.
26018         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
26019         GNULIB_FWRITEERROR macro definition.
26020
26021 2007-01-08  Bruno Haible  <bruno@clisp.org>
26022
26023         * m4/gnulib-common.m4: New file.
26024         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
26025         (func_get_filelist): Add m4/gnulib-common.m4.
26026
26027 2007-01-08  Bruno Haible  <bruno@clisp.org>
26028
26029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
26030         command.
26031
26032 2007-01-08  Jim Meyering  <jim@meyering.net>
26033
26034         Use a more robust test for a "can't happen" condition.
26035         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
26036         narrowed the st_size value.  Presuming the "can't happen" condition
26037         is true, that narrowing could conceivably convert an invalid st_size
26038         value into a valid one.  Instead, use a change based on Matthew
26039         Woehlke's original patch.
26040
26041         Slight readability improvement: use an assert-like macro
26042         in place of literal "abort ()" uses.
26043         * lib/fts.c (fts_assert): Define.
26044         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
26045         Use this macro instead of a bare 'abort'.
26046
26047 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26048
26049         Don't worry about using IRIX 5.3's wctype.h broken definitions;
26050         simply work around them.
26051         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
26052         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
26053         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
26054         declaring.
26055         Don't bother to define as macros, since the standard doesn't require it.
26056         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
26057         longer worry about IRIX 5.3.
26058         (HAVE_WCTYPE_CTMP_BUG): Remove.
26059
26060 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26061
26062         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
26063         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
26064         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26065         Problems reported by Georg Schwarz for IRIX 5.3.
26066
26067         * gnulib-tool (autoconf_minversion): Take the maximum version number
26068         found, not the minimum.  Problem reported by James Youngman.
26069
26070 2007-01-03  Karl Berry  <karl@gnu.org>
26071
26072         * doc/error.texi: new file, explaining interaction with progname.
26073         * doc/gnulib.texi: include it.  Update copyright.
26074
26075 2007-01-03  Simon Josefsson  <simon@josefsson.org>
26076
26077         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
26078         AC_CANONICAL_HOST, to improve autobuild outputs.
26079
26080 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
26081             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26082
26083         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
26084         sockets, server sockets, and other file descriptors.  Count errors
26085         to compute the return value.  Reorder the code a bit to be easier
26086         to follow.  Don't set event bits that were not requested (except
26087         POLLERR and POLLHUP).
26088
26089 2007-01-01  Bruno Haible  <bruno@clisp.org>
26090
26091         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
26092
26093 2007-01-03  Jim Meyering  <jim@meyering.net>
26094
26095         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
26096
26097 2007-01-02  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/settime (Include): Require timespec.h.
26100         * modules/nanosleep (Include): Likewise.
26101
26102 2007-01-01  Bruno Haible  <bruno@clisp.org>
26103
26104         * gnulib-tool (func_emit_copyright_notice): Bump year.
26105         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
26106
26107 2007-01-01  Bruno Haible  <bruno@clisp.org>
26108
26109         Improve support for OpenBSD.
26110         * build-aux/config.rpath (libname_spec): Export.
26111         (library_names_spec): New variable. Export.
26112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
26113         library_names_spec from the config.rpath output. Locate shared library
26114         through the name pattern in library_names_spec.
26115
26116 2007-01-01  Eric Blake  <ebb9@byu.net>
26117
26118         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
26119
26120 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26121
26122         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
26123         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
26124         assume the C locale, and avoid an "eval" that could cause trouble.
26125         Problem with SORT reported by Bob Proulx.
26126
26127         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
26128         Define.  Trivial patch from Henning Nielsen Lund, originally
26129         sent to bug-grep@gnu.org today.
26130
26131 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26132
26133         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
26134         struct stat.  Problem reported by Henning Nielsen Lund.
26135         * lib/acl.c: Include acl.h first, to check interface.  Don't
26136         bother to include sys/types.h and sys/stat.h again.
26137
26138 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         Import the following change from libc; problem reported by
26141         Sven Verdoolaege.
26142
26143         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
26144
26145         [BZ #1373]
26146         * lib/argp.h: Remove __NTH for __argp_usage inline function.
26147
26148 2006-12-28  Jim Meyering  <jim@meyering.net>
26149
26150         * build-aux/announce-gen: Do not assume that the package
26151         builds any of tar.gz, tar.bz2, and .xdelta files.
26152         Suggestion from Simon Josefsson.
26153
26154 2006-12-28  Simon Josefsson  <simon@josefsson.org>
26155
26156         * modules/announce-gen: New file.
26157
26158 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26159
26160         * lib/mbchar.h: Just include <wctype.h>; the wctype module
26161         handles its gotchas now.
26162         * lib/mbswidth.c: Likewise.
26163         * lib/wcwidth.h: Likewise.
26164         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26165         and iswcntrl; the wctype module does this stuff now.
26166         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26168         * modules/mbchar (Depends-on): Add wctype.
26169         * modules/mbswidth (Depends-on): Likewise.
26170         * modules/wcwidth (Depends-on): Likewise.
26171
26172 2006-12-27  Eric Blake  <ebb9@byu.net>
26173
26174         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26175         module uses more than what <wctype.h> is required to provide.
26176
26177 2006-12-26  Eric Blake  <ebb9@byu.net>
26178
26179         * gnulib-tool (sed_extract_prog): Avoid space-tab.
26180
26181 2006-12-26  Eric Blake  <ebb9@byu.net>
26182
26183         * modules/absolute-header: New module.
26184         * modules/fcntl (Depends-on): Depend on it.
26185         * modules/inttypes (Depends-on): Likewise.
26186         * modules/stdint (Depends-on): Likewise.
26187         * modules/sys_stat (Depends-on): Likewise.
26188         * modules/wctype (Depends-on): Likewise.
26189         * MODULES.html.sh (Support for building libraries and
26190         executables): Document it.
26191
26192 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26193
26194         * gnulib-tool (SED): Remove, undoing previous change.
26195         The problem was that it broke coreutils on Solaris, because
26196         "sed --posix" leaked into a makefile.
26197         (sed): New alias, if 'alias' and GNU sed.
26198
26199 2006-12-24  Jim Meyering  <jim@meyering.net>
26200
26201         Work around an fchownat bug in glibc-2.4:
26202         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26203         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26204         in spite of the -P option.
26205         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26206         New macros.
26207         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26208         * modules/openat (Files): Add lib/fchownat.c.
26209         * lib/openat.c (fchownat): Don't define here.  Move to...
26210         * lib/fchownat.c: ...this new file.
26211
26212 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26213
26214         Fix bug reported by Bruno Haible in
26215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26216         where quotearg.c didn't compile on Mac OS X 10.2 because it
26217         lacks <wchar.h> and wint_t.
26218         * lib/wctype_.h (__wctype_wint_t): New type.
26219         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26220         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26221         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26222         Arg is now of type __wctype_wint_t, not wint_t.
26223         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26224         substitute HAVE_WINT_T.
26225         * modules/wctype (Files): Add m4/wint_t.m4.
26226         (wctype.h): Substitute HAVE_WINT_T.
26227
26228 2006-12-23  Bruno Haible  <bruno@clisp.org>
26229
26230         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26231
26232 2006-12-23  Bruno Haible  <bruno@clisp.org>
26233
26234         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26235         S_ISLNK.
26236         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26237         mingw.
26238
26239 2006-12-22  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/copy-file.c: Include acl.h.
26242         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26243         Close the file descriptors only after being done with copy_acl.
26244         * modules/copy-file (Depends-on): Add acl.
26245
26246 2006-12-22  Bruno Haible  <bruno@clisp.org>
26247
26248         * gnulib-tool (SED): New variable.
26249         Use $SED instead of sed everywhere.
26250
26251 2006-12-22  Bruno Haible  <bruno@clisp.org>
26252
26253         * modules/no-c++: New file.
26254         * m4/no-c++.m4: New file.
26255         * MODULES.html.sh (Support for building libraries and executables):
26256         Add no-c++.
26257
26258 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26259
26260         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26261         Include <limits.h>, and use its INT_MAX to rewrite the
26262         j loop so that it does not overflow 'int'.  Problem reported by
26263         Ralf Wildenhues in
26264         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26265         Play it safe by shifting left by 1 rather than multiplying by 2,
26266         as GCC is less likely to optimize this away when the value
26267         is signed (when it assumes overflow leads to undefined behavior).
26268         Also, don't assume time_t uses two's complement.
26269
26270 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26271
26272         * MODULES.html.sh: New module wctype.
26273         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26274         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26275         <wctype.h>, since the new wctype module should fix this.
26276         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26277         the wctype module should arrange for it.
26278         * lib/regex_internal.h: Likewise.
26279         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26280         since the wctype module should handle this now.
26281         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26282         * modules/fnmatch (Depends-on): Add wctype.
26283         * modules/quotearg (Depends-on): Likewise.
26284         * modules/regex (Depends-on): Likewise.
26285
26286 2006-12-19  Bruno Haible  <bruno@clisp.org>
26287
26288         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26289         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26290
26291 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26292
26293         * modules/savewd (Depends-on): Fix dependency on fcntl.
26294
26295 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26296
26297         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26298         conforms to C99, rather than relying on the user's environment
26299         setting of STDINT_H.
26300
26301 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26302         and Eric Blake  <ebb9@byu.net>
26303
26304         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26305         This is more consistent with the other defines here.
26306         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26307         Port to z/OS.  Problem reported by Paul Gilmartin.
26308         Change local vars to use gl_ prefix rather than ac_.
26309         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26310         with other defines.
26311         * modules/double-slash-root: New module.
26312         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26313         (Depends-on): Add double-slash-root.
26314         * MODULES.html.sh (File system functions): Mention new module.
26315
26316 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26317
26318         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26319         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26320         This is for the benefit of gzip, which doesn't do i18n.
26321
26322 2006-12-12  Jim Meyering  <jim@meyering.net>
26323
26324         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26325         Reported by Andreas Schwab <schwab@suse.de>.
26326
26327 2006-12-12  Bruno Haible  <bruno@clisp.org>
26328
26329         Merge these changes.
26330         2006-09-05  Bruno Haible  <bruno@clisp.org>
26331         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26332         iconv_alloc succeeded.
26333         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26334         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26335         test for " && dest " at the end - dest is always != NULL there. Call
26336         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26337         with 2xNULL arguments, also to flush the state storage. Handle the
26338         IRIX iconv behaviour. Realloc the final result, to throw away unused
26339         memory.
26340
26341 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26342
26343         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26344         and fchmodat unconditionally, since glibc 2.4 has them.
26345         Problem reported by Arkadiusz Miskiewicz.
26346
26347 2006-12-10  Bruno Haible  <bruno@clisp.org>
26348
26349         * gnulib-tool (func_import): Show the include files only for those
26350         modules that are copied and specified.
26351         Reported by Karl Berry.
26352
26353 2006-12-08  Jim Meyering  <jim@meyering.net>
26354
26355         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26356         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26357
26358         * build-aux/announce-gen: Add two new options, both optional:
26359         --bootstrap-tools=TOOL_LIST
26360               a comma-separated list of tools, e.g.,
26361               autoconf,automake,bison,gnulib
26362         --gnulib-snapshot-date=DATE
26363               if gnulib is in the bootstrap tool list,
26364               then report this as the snapshot date.
26365               If not specified, use the current date/time.
26366               If you specify a date here, be sure it's UTC.
26367
26368 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26369
26370         * tests/test-argp-2.sh: Fix test to match actual output.
26371         (func_compare): Fix sed script to be portable.
26372
26373 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26374
26375         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26376         workaround for this case.  It is not autoconfigured now; offhand
26377         it's hard to see how to autoconfigure it.
26378
26379 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26380
26381         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26382         a directory that is about to be chowned.  Such a directory's
26383         initial file permissions should permit the owner only and this
26384         should not be changed until after the chown, since the group and
26385         other bits would be incorrect if they granted permission before
26386         the chown.
26387
26388         Fix porting problem for iswctype reported by Georg Schwarz in:
26389         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26390         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26391         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26392         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26393         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26394
26395 2006-12-03  Jim Meyering  <jim@meyering.net>
26396
26397         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26398         p->fts_statp may not yet be defined.
26399         (fts_read): Instead, set it in the caller, once p->fts_statp is
26400         sure to be defined, and corresponds to a top-level directory.
26401         This bug made du -x fail.  Here's the coreutils test case:
26402         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26403         Reported by Mike Frysinger.
26404
26405 2006-12-01  Jim Meyering  <jim@meyering.net>
26406
26407         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26408         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26409         Reported by Simon Josefsson.
26410
26411 2006-11-30  Jim Meyering  <jim@meyering.net>
26412
26413         * m4/warning.m4: Use the all-permissive copyright notice
26414         recommended by RMS (rather than LGPL).
26415         * m4/vararrays.m4: Likewise.
26416         * m4/flexmember.m4: Likewise.
26417
26418 2006-11-29  Bruno Haible  <bruno@clisp.org>
26419
26420         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26421         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26422         using +=.
26423         Reported by Simon Josefsson <simon@josefsson.org>.
26424
26425 2006-11-28  James Youngman <jay@gnu.org>
26426
26427         * README: Advise users that they might find the bug-gnulib@gnu.org
26428         and autotools-announce@gnu.org mailing lists useful.
26429
26430 2006-11-28  Bruno Haible  <bruno@clisp.org>
26431
26432         * m4/ptrdiff_max.m4: Remove file.
26433
26434 2006-11-21  Bruno Haible  <bruno@clisp.org>
26435
26436         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26437         _AC_COMPUTE_INT.
26438         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26439         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26440         _AC_COMPUTE_INT.
26441         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26442         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26443         _AC_COMPUTE_INT.
26444         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26445
26446 2006-11-28  Jim Meyering  <jim@meyering.net>
26447
26448         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26449         warning from "gcc -Wshadow" about shadowing the builtin.
26450
26451 2006-11-27  Bruno Haible  <bruno@clisp.org>
26452
26453         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26454         _AC_COMPUTE_INT.
26455         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26456
26457 2006-11-27  Bruno Haible  <bruno@clisp.org>
26458             Paul Eggert  <eggert@cs.ucla.edu>
26459
26460         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26461
26462 2006-11-26  Bruno Haible  <bruno@clisp.org>
26463
26464         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26465         noinst_LTLIBRARIES.
26466
26467 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26468             Bruno Haible  <bruno@clisp.org>
26469
26470         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26471         if compiling with "gcc -ansi".
26472
26473 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26474
26475         Fix some incompatibilities with gcc -ansi -pedantic.
26476         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26477         if compiling pedantically with GCC, unless it's C99 or later.
26478         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26479         it mishandles gcc -ansi -pedantic as well.
26480         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26481         if gcc -pedantic.
26482         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26483         initializers for struct if -pedantic, unless it's C99 or later.
26484
26485 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26486
26487         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26488         Don't close an fd more than once. Identical atimes indicate
26489         success, not failure.
26490
26491 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26492
26493         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26494
26495 2006-11-23  Jim Meyering  <jim@meyering.net>
26496
26497         * build-aux/announce-gen: New file.  From coreutils.
26498
26499 2006-11-22  Jim Meyering  <jim@meyering.net>
26500
26501         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26502         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26503         (fts_read): Use a temporary to narrow the overused st_size member
26504         before using it in a switch statement.  Reported by Matthew Woehlke.
26505
26506         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26507         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26508
26509 2006-11-20  Bruno Haible  <bruno@clisp.org>
26510
26511         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26512         changequote instead of pairs of brackets.
26513         Reported by Andreas Schwab <schwab@suse.de>.
26514
26515 2006-11-21  Jim Meyering  <jim@meyering.net>
26516
26517         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26518         so as to remain compatible with older compilers.
26519         Patch from Michael Deutschmann.
26520
26521 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * MODULES.html.sh (File system functions): Add openat.
26524
26525         * lib/openat.h (rpl_fstatat): New macro, if
26526         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26527         (fstatat): Define to rpl_fstatat under the same conditions,
26528         unless COMPILING_FSTATAT.
26529         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26530         seems to have the bug.
26531         * lib/fstatat.c: New file.
26532         * modules/openat (Files): Add it.
26533
26534 2006-11-20  Bruno Haible  <bruno@clisp.org>
26535
26536         * Makefile: New file.
26537
26538 2006-11-20  Jim Meyering  <jim@meyering.net>
26539
26540         The beginnings of syntax-related checks for gnulib.
26541         * lib/Makefile: New file.
26542         * lib/t-idcache: New script.  Ensure that the two halves of
26543         idcache.c stay in sync.
26544
26545         * lib/idcache.c: Adjust comments in user- and group- portions to
26546         be more accurate, and to be consistent with one another.
26547
26548 2006-11-20  Jim Meyering  <jim@meyering.net>
26549
26550         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26551         continue using the flexible array member (thus, this module performs
26552         half as many malloc calls), with the addition that...
26553         (getgroup, getuser): Consistently record a non-match via an empty
26554         "name" string, and map an empty string match to a NULL return value.
26555         * modules/idcache (Depends-on): Re-add flexmember.
26556
26557         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26558         (getuidbyname, getgroup, getgidbyname): Likewise.
26559
26560         Use cleaner syntax: NULL rather than 0.
26561         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26562
26563 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26564
26565         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26566         It mishandled the case where the group was missing.
26567         Problem reported by Greg Schafer.
26568         * modules/idcache: Likewise.
26569
26570 2006-11-18  Jim Meyering  <jim@meyering.net>
26571
26572         * check-module (%exempt_header): Add exception for some
26573         conditionally-included headers.
26574
26575         * modules/i-ring (Depends-on): Add verify.
26576         (License): Change to LGPL.
26577
26578 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26579
26580         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26581         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26582         and inttostr.h.  Use snprintf rather than uinttostr, so that
26583         LGPLed code doesn't depend on GPLed.
26584
26585 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         * modules/inline (License): Change from GPL to LGPL.
26588
26589 2006-11-17  Jim Meyering  <jim@meyering.net>
26590
26591         * modules/d-type (License): Switch to LGPL.
26592
26593 2006-11-15  Bruno Haible  <bruno@clisp.org>
26594
26595         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26596
26597 2006-11-15  Eric Blake  <ebb9@byu.net>
26598
26599         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26600         the module dependency.
26601
26602 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26603             Bruno Haible  <bruno@clisp.org>
26604
26605         * gnulib-tool (func_create_testdir): Add license consistency check.
26606
26607 2006-11-15  Eric Blake  <ebb9@byu.net>
26608
26609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26610         random "(cached)" in configure output.
26611
26612 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26613
26614         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26615         test for conforming inttypes.h is both announced and cached.
26616
26617         * MODULES.html.sh (seen_modules, seen_files): New variables.
26618         (func_module): Rewrite to use a few less gnulib-tool and sed
26619         invocations.  Avoid a couple of quadratic algorithms for ...
26620         (missed_modules, missed_files): ... these, with ...
26621         (func_append, func_tmpdir): ... these new functions, from
26622         gnulib-tool.  Analogously, install traps for cleanup.
26623
26624         * tests/test-gc.c (main): Remove unused variables.
26625         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26626
26627 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26628
26629         * modules/inttostr (License): Change to LGPL.
26630
26631 2006-11-14  Eric Blake  <ebb9@byu.net>
26632
26633         * modules/tempname (License): Change to LGPL.
26634
26635 2006-11-14  Eric Blake  <ebb9@byu.net>
26636
26637         * doc/functions.texi (Function Portability): *printf functions on
26638         Cygwin now understand all POSIX size specifiers.
26639
26640 2006-11-14  Bruno Haible  <bruno@clisp.org>
26641
26642         * modules/c-ctype (License): Change to LGPL.
26643
26644 2006-11-12  Bruno Haible  <bruno@clisp.org>
26645
26646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26647         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26648         for GNOME libraries, for which the include files are installed in
26649         subdirectories of $prefix/include.
26650
26651 2006-11-12  Bruno Haible  <bruno@clisp.org>
26652
26653         * m4/lib-link.m4: Require at least autoconf-2.54.
26654         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26655         name to underscores for the --with option.
26656
26657 2006-11-13  Bruno Haible  <bruno@clisp.org>
26658
26659         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26660         the tests directory.
26661         Reported by Ralf Wildenhues.
26662
26663 2006-11-13  Bruno Haible  <bruno@clisp.org>
26664
26665         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26666         (func_emit_initmacro_end): Undo the override here.
26667         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26668         Works around the famous automake error in coreutils.
26669
26670 2006-11-13  Eric Blake  <ebb9@byu.net>
26671
26672         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26673         element, not its node.
26674
26675 2006-11-12  Bruno Haible  <bruno@clisp.org>
26676
26677         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26678         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26679
26680 2006-11-12  Bruno Haible  <bruno@clisp.org>
26681
26682         * gnulib-tool: New option --local-symlink.
26683         (func_usage): Document it.
26684         (lsymbolic): New variable.
26685         (func_import, func_create_testdir): If --symlink was not specified,
26686         test whether --local-symlink was specified and the file comes from
26687         the local_gnulib_dir.
26688
26689 2006-11-12  Bruno Haible  <bruno@clisp.org>
26690
26691         * gnulib-tool (func_ln): New function.
26692         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26693
26694 2006-11-12  Bruno Haible  <bruno@clisp.org>
26695
26696         Finish support for source files in subdirectories.
26697         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26698         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26699         AUTOMAKE_OPTIONS.
26700         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26701
26702 2006-11-12  Bruno Haible  <bruno@clisp.org>
26703
26704         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26705         EXTRA_lib_SOURCES augmentation.
26706         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26707
26708 2006-11-12  Jim Meyering  <jim@meyering.net>
26709
26710         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26711         file descriptors.  This also averts a failure on systems with
26712         native openat support when a traversed directory lacks "x" access.
26713         * lib/fts_.h: Include "i-ring.h"
26714         (struct FTS) [fts_fd_ring]: New member.
26715         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26716         (FCHDIR): Add parentheses.
26717         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26718         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26719         When descending, rather than simply closing the previous
26720         fts_cwd_fd value, push that file descriptor onto the ring.
26721         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26722         (fts_open): Initialize the new fd_ring member.
26723         (fts_close): Clear the ring.
26724         (fts_safe_changedir): When possible, use our new fd_ring to skip
26725         the diropen and fstat and dev/ino comparison that would normally
26726         accompany a virtual `chdir ("..")'.
26727
26728         * modules/fts (Depends-on): Add i-ring.
26729         * modules/i-ring: New module.
26730         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26731         * m4/i-ring.m4: New file.
26732
26733 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26734
26735         * gnulib-tool (func_create_testdir): Fix replacement of
26736         `build-aux' in configure.ac.  Run autotools in gltests
26737         subdirectory.
26738         (func_create_testdir, func_create_megatestdir, test): There is
26739         no need for '--force' in most autotool invocations in a new
26740         tree.  Actually fail the whole test if any of the tools, or the
26741         configure or make stages fail.
26742
26743         Sync from Automake.
26744         * build-aux/gnupload: Revert last change.  Add pointer to upload
26745         instructions of the GNU Maintenance Instructions.
26746         Suggestion by Karl Berry.
26747
26748 2006-11-10  Jim Meyering  <jim@meyering.net>
26749
26750         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26751
26752 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26753
26754         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26755         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26756         (bind_textdomain_codeset) [! ENABLE_NLS]:
26757         Evaluate all the arguments.  That way, callers get compatible behavior
26758         if the arguments have side effects.  Also, it avoids some GCC
26759         diagnostics in some cases; Joel E. Denny reported problems when Bison
26760         was configured with --enable-gcc-warnigs.
26761
26762 2006-11-10  Jim Meyering  <jim@meyering.net>
26763
26764         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26765         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26766         account.
26767
26768 2006-11-10  Jim Meyering  <jim@meyering.net>
26769
26770         * modules/inline: New file/module.
26771         * modules/xalloc (Files): Remove m4/inline.m4.
26772         (Depends-on): Add inline, instead.
26773         * modules/oset: Likewise.
26774         * modules/list: Likewise.
26775
26776 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26777
26778         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26779         Problem reported by Matthew Woehlke.
26780
26781 2006-11-09  Bruno Haible  <bruno@clisp.org>
26782
26783         * lib/tempname.c (gen_tempname): Remove variant that invokes
26784         __gen_tempname.
26785         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26786         __gen_tempname.
26787
26788 2006-11-08  Bruno Haible  <bruno@clisp.org>
26789
26790         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26791         to 'yes' instead of 'cross-compiling'.
26792
26793 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26794
26795         * lib/quotearg.h (quotearg_free): New decl.
26796         * lib/quotearg.c (quotearg_free): New function.
26797         (slot0, nslots, slotvec0, slotvec):
26798         Now file-scope so that quotearg_free can get at them.
26799
26800 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26801
26802         Sync from Automake.
26803         * build-aux/gnupload: Add missing 'gnu' to example URL.
26804         Report by Karl Berry.
26805
26806 2006-11-08  Bruno Haible  <bruno@clisp.org>
26807
26808         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26809         Suggested by Paul Eggert.
26810
26811 2006-11-08  Jim Meyering  <jim@meyering.net>
26812
26813         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26814         It's already included if !_LIBC.
26815         (fts_safe_changedir): Add a comment.
26816
26817 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26818
26819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26820         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26821         Matthew Woehlke.
26822
26823         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26824         definitions up, to avoid colliding with change below.
26825         (static_inline) [HAVE_INLINE]: New macro.
26826         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26827         Provide extern decls when !HAVE_INLINE.  Do not define unless
26828         static_inline is defined, either by us or by xmalloc.c.  Use
26829         static_inline rather than static inline.
26830         (XCALLOC): Optimize sizeof(T) = 1 case.
26831         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26832
26833 2006-11-07  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26836         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26837         AC_C_INLINE.
26838         * modules/xalloc (Files): Add m4/inline.m4.
26839
26840 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26841
26842         * README: Fix typo.
26843         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26844         (Miscellanous Notes): ...from this.
26845
26846 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26847
26848         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26849         Mention that offsetof should be used instead of sizeof.
26850         From Bruno Haible.
26851
26852 2006-11-07  Bruno Haible  <bruno@clisp.org>
26853
26854         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26855
26856 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26857
26858         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26859         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26860         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26861         (gl_tree_add_before, gl_tree_add_after):
26862         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26863         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26864         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26865         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26866         (gl_linked_add_after, gl_linked_add_at): Likewise.
26867         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26868         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26869         (gl_tree_add_before, gl_tree_add_after): Likewise.
26870         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26871         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26872         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26873
26874 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26875
26876         * lib/gl_oset.h: Use C comment style, not C++ comment style.
26877
26878 2006-11-06  Bruno Haible  <bruno@clisp.org>
26879
26880         * m4/inline.m4: New file.
26881         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26882         * modules/list (Files): Add m4/inline.m4.
26883         * modules/oset (Files): Likewise.
26884
26885 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26886
26887         * lib/idcache.c: Include <stddef.h>, for offsetof.
26888         (struct userid.name): Change from char * to a flexible array member.
26889         All uses changed.
26890         * modules/idcache (Depends-on): Add flexmember.
26891
26892         * MODULES.html.sh (Core language properties): New module flexmember.
26893         * modules/flexmember, m4/flexmember.m4: New files.
26894
26895         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26896         inline functions that are identical with the old xnmalloc_inline,
26897         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
26898         that we can avoid some unnecessary integer multiplications and
26899         divisions in the common case where the element size is known at
26900         compile time.
26901         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26902         needed.
26903         (xnboundedmalloc): Remove.
26904         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26905         arguments, for consistency with rest of this header.
26906         (xcharalloc): Rewrite using XNMALLOC.
26907         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26908         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
26909         versions have been moved to lib/xalloc.h and renamed to be the
26910         non-*_inline versions.
26911         (xmalloc, xrealloc): Implement without reference to the xnmalloc
26912         and xnrealloc functions, since those functions are now inline and
26913         now call us.
26914         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26915         renaming described above.
26916         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26917         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
26918         captures the dependency in AC_C_INLINE.
26919
26920         New module canonicalize-lgpl, proposed by Charles Wilson in
26921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26922         with a few small changes afterwards.
26923         * MODULES.html.sh (File system functions): New module
26924         canonicalize-lgpl.
26925         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26926         and canonicalize_file_name.
26927         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26928         * modules/canonicalize-lgpl: New files.
26929
26930 2006-11-05  Bruno Haible  <bruno@clisp.org>
26931
26932         * gnulib-tool (func_import, func_create_testdir): Create directories
26933         also for files in subdirectories of lib/.
26934
26935 2006-11-05  Bruno Haible  <bruno@clisp.org>
26936
26937         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26938         ANSI C compliant.
26939
26940 2006-11-03  Bruno Haible  <bruno@clisp.org>
26941
26942         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26943         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26944         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26945         (xnboundedmalloc): New inline function.
26946         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26947         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26948         xmalloc.
26949         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26950         xmalloc.
26951         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26952         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26953         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26954         xmalloc.
26955         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26956         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26957         xmalloc.
26958         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26959         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26960         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26961         xmalloc.
26962         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26963         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26964         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26965         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26966         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26967         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26968         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26969
26970 2006-11-03  Bruno Haible  <bruno@clisp.org>
26971
26972         * lib/c-ctype.h [C++]: Define functions without name mangling.
26973         * lib/fwriteerror.h [C++]: Likewise.
26974         * lib/gcd.h [C++]: Likewise.
26975         * lib/linebreak.h [C++]: Likewise.
26976
26977 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26978
26979         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26980         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26981         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26983         Check for functions and headers just once.
26984         Check for declaration of canonicalize_file_name.
26985         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26986
26987 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26988
26989         * gnulib-tool (func_import): Fix typo in actioncmd.
26990
26991 2006-11-02  Bruno Haible  <bruno@clisp.org>
26992
26993         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26994         newline sequence in the Makefile.am snippet as a space, like "make"
26995         does.
26996         Reported by Roger Persson <perrog@gmail.com>.
26997
26998 2006-11-01  Bruno Haible  <bruno@clisp.org>
26999
27000         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
27001         already declared in <string.h>.
27002         * lib/strcase.h (strncasecmp): Don't declare it if yes.
27003
27004 2006-11-01  Bruno Haible  <bruno@clisp.org>
27005
27006         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
27007         * lib/strcase.h: Include <string.h>.
27008         (strcasecmp): Define to rpl_strcasecmp here.
27009
27010 2006-11-01  Bruno Haible  <bruno@clisp.org>
27011
27012         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
27013
27014 2006-11-01  Eric Blake  <ebb9@byu.net>
27015
27016         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
27017
27018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
27019
27020 2006-10-29  Bruno Haible  <bruno@clisp.org>
27021
27022         Make it compile in C++ mode.
27023         * lib/full-write.c (full_rw): Add a cast.
27024
27025 2006-11-01  Bruno Haible  <bruno@clisp.org>
27026
27027         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
27028         be POSIX compliant.
27029         Reported by Roger Persson <perrog@gmail.com>.
27030
27031 2006-11-01  Eric Blake  <ebb9@byu.net>
27032
27033         * lib/getopt_.h: Fix comments.
27034
27035 2006-10-31  Eric Blake  <ebb9@byu.net>
27036
27037         * modules/tmpdir (Depends-on): Add sys_stat.
27038         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
27039         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27040         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
27041         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
27042         tempname.
27043
27044 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27045
27046         Avoid some C++ diagnostics reported by Bruno Haible.
27047         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
27048         xmalloc.
27049         (quotearg_alloc): Use xcharalloc rather than xmalloc.
27050         (struct slotvec): Move to top level.
27051         (quotearg_n_options): Rewrite to avoid xmalloc.
27052         * lib/xalloc.h (xcharalloc): New function.
27053         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
27054         [defined __cplusplus]: Add function template that provides result
27055         type propagation.  This part of the change is from Bruno Haible.
27056
27057 2006-10-29  Bruno Haible  <bruno@clisp.org>
27058
27059         Make it compile in C++ mode.
27060         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
27061         * lib/strnlen1.c (strnlen1): Cast memchr result.
27062         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
27063         * lib/clean-temp.c (string_equals, string_hash): Add casts.
27064         (create_temp_dir): Rename local variable 'template'.
27065         (compile_csharp_using_sscli): Add cast.
27066         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
27067         * lib/findprog.c (find_in_path): Likewise.
27068         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
27069         * lib/wait-process.c (register_slave_subprocess): Likewise.
27070
27071 2006-10-22  Bruno Haible  <bruno@clisp.org>
27072
27073         * modules/tsearch: New file.
27074         * lib/tsearch.h: New file.
27075         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
27076         * m4/tsearch.m4: New file.
27077         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
27078
27079 2006-10-29  Eric Blake  <ebb9@byu.net>
27080
27081         * lib/arcfour.c: Assume config.h.
27082         * lib/arctwo.c: Likewise.
27083         * lib/base64.c: Likewise.
27084         * lib/check-version.c: Likewise.
27085         * lib/crc.c: Likewise.
27086         * lib/des.c: Likewise.
27087         * lib/gc-gnulib.c: Likewise.
27088         * lib/gc-libgcrypt.c: Likewise.
27089         * lib/gc-pbkdf2-sha1.c: Likewise.
27090         * lib/getaddrinfo.c: Likewise.
27091         * lib/getdelim.c: Likewise.
27092         * lib/getline.c: Likewise.
27093         * lib/hmac-md5.c: Likewise.
27094         * lib/hmac-sha1.c: Likewise.
27095         * lib/iconvme.c: Likewise.
27096         * lib/md2.c: Likewise.
27097         * lib/md4.c: Likewise.
27098         * lib/memxor.c: Likewise.
27099         * lib/read-file.c: Likewise.
27100         * lib/readline.c: Likewise.
27101         * lib/rijndael-alg-fst.c: Likewise.
27102         * lib/rijndael-api-fst.c: Likewise.
27103         * lib/xgetdomainname.c: Likewise.
27104
27105 2006-10-28  Eric Blake  <ebb9@byu.net>
27106
27107         * lib/xstrndup.c: Assume config.h.
27108
27109 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27110
27111         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
27112         stat-macros.h is now for our own macros, whereas stat_h is for
27113         macros in the <sys/stat.h> name space.
27114         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
27115         (STAT_MACROS_H): Remove.
27116         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
27117         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
27118         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
27119         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
27120         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
27121         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
27122         Move these macros to ...
27123         * lib/stat_.h: here.  Don't include stat-macros.h.
27124         * lib/canonicalize.c: Don't include stat-macros.h.
27125         * lib/chown.c: Likewise.
27126         * lib/euidaccess.c: Likewise.
27127         * lib/file-type.c: Likewise.
27128         * lib/filemode.c: Likewise.
27129         * lib/glob.c: Likewise.
27130         * lib/isapipe.c: Likewise.
27131         * lib/lchown.c: Likewise.
27132         * lib/lstat.c: Likewise.
27133         * lib/mkdir-p.c: Likewise.
27134         * lib/rmdir.c: Likewise.
27135         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
27136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
27137         unless mkdir isn't declared, to speed up 'configure'.
27138         Always create sys/stat.h, since it's unlikely any real sys/stat.h
27139         would define all the S_* symbols.
27140         * modules/canonicalize (Depends-on):
27141         Depend on sys_stat, not stat-macros.
27142         * modules/chown: Likewise.
27143         * modules/euidaccess: Likewise.
27144         * modules/filemode: Likewise.
27145         * modules/file-type: Likewise.
27146         * modules/glob: Likewise.
27147         * modules/isapipe: Likewise.
27148         * modules/lchown: Likewise.
27149         * modules/lstat: Likewise.
27150         * modules/mkancesdirs: Likewise.
27151         * modules/rmdir: Likewise.
27152         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27153         * modules/modechange: Likewise.
27154         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27155         (configure.ac): Remove gl_STAT_MACROS.
27156         * modules/sys_stat (Depends-on): Remove stat-macros.
27157
27158 2006-10-27  Bruno Haible  <bruno@clisp.org>
27159
27160         * m4/signed.m4: Remove file.
27161         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27162         invocation.
27163         * modules/vasnprintf (Files): Remove m4/signed.m4.
27164
27165 2006-10-27  Bruno Haible  <bruno@clisp.org>
27166
27167         Update to GNU gettext 0.16.
27168         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27169         m4/inttypes-h.m4, m4/signed.m4.
27170         * m4/gettext.m4: Update to GNU gettext 0.16.
27171         * m4/intl.m4: New file, from GNU gettext.
27172         * m4/intldir.m4: New file, from GNU gettext.
27173         * config/srclist.txt: Update
27174
27175 2006-10-27  Eric Blake  <ebb9@byu.net>
27176
27177         * MODULES.html.sh: Document tempname.
27178         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27179         dependencies.
27180         (Files): Move lib/tempname.c...
27181         * modules/tempname: ...to this new module.
27182         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27183         (gl_PREREQ_TEMPNAME): Move...
27184         * m4/tempname.m4: ...to this new file.
27185         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27186         * modules/sys_stat (Depends-on): Add stat-macros.
27187         * lib/stat_.h (includes): Pick up stat macros.
27188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27189         if stat macros are broken.
27190         * lib/tempname.c (includes): No need to include "stat-macros.h".
27191         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27192         (direxists, __path_search) [!_LIBC]: Don't compile these in
27193         gnulib; the tmpdir module covers that.
27194         * lib/tempname.h: New file.
27195
27196 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27197
27198         * COPYING: Explain how gnulib-tool converts licence headers.
27199         Almost all wording by Eric Blake.
27200
27201 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27202
27203         * lib/mbchar.h (is_basic_table): Make read-only.
27204         * lib/mbchar.c (is_basic_table): Likewise.
27205         Reported by John Darrington.
27206
27207 2006-10-25  Bruno Haible  <bruno@clisp.org>
27208
27209         * lib/progname.h (set_program_name): Undefine before defining.
27210
27211 2006-10-25  Bruno Haible  <bruno@clisp.org>
27212
27213         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27214         false for non-gcc C++ compilers.
27215         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27216
27217 2006-10-24  Bruno Haible  <bruno@clisp.org>
27218
27219         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27220         iconv implementations like Irix iconv.
27221
27222 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27223
27224         * modules/vararrays: New file.
27225         * m4/vararrays.m4: New file, taken from diffutils.
27226         * MODULES.html.sh: New module vararrays.
27227
27228 2006-10-24  Karl Berry  <karl@gnu.org>
27229
27230         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27231         Don't call GNU Unix.
27232
27233 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27234
27235         * users.txt: Add Libtool.
27236
27237         Sync from Libtool:
27238
27239         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27240
27241         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27242         to gnulib's policy of including config.h unconditionally.
27243
27244 2006-10-24  Bruno Haible  <bruno@clisp.org>
27245
27246         * modules/wcwidth (Files): Add m4/wint_t.m4.
27247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27248         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27249
27250 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27251
27252         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27253         to pacify GCC with some -W flags enabled.  Problem reported by
27254         Bruno Haible.
27255
27256 2006-10-24  Jim Meyering  <jim@meyering.net>
27257
27258         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27259         Reported by Karl Berry.
27260
27261 2006-10-23  Bruno Haible  <bruno@clisp.org>
27262
27263         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27264
27265 2006-10-24  Bruno Haible  <bruno@clisp.org>
27266
27267         * lib/gl_list.h: Use C comment style, not C++ comment style.
27268
27269 2006-10-23  Eric Blake  <ebb9@byu.net>
27270
27271         * lib/getaddrinfo.c (includes): Add missing include.
27272
27273 2006-10-23  Bruno Haible  <bruno@clisp.org>
27274             Paul Eggert  <eggert@cs.ucla.edu>
27275
27276         Ability to rename obstack_free.
27277         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27278         obstack_free.
27279         (obstack_free): Invoke the __obstack_free macro.
27280         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27281
27282 2006-10-23  Bruno Haible  <bruno@clisp.org>
27283             Paul Eggert  <eggert@cs.ucla.edu>
27284
27285         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27286         __argc, __argv from the declaration. (They are defined as macros on
27287         mingw.)
27288
27289 2006-10-22  Bruno Haible  <bruno@clisp.org>
27290
27291         * doc/gnulib-intro.texi: New file.
27292         * doc/gnulib.texi: Include it.
27293
27294 2006-10-21  Bruno Haible  <bruno@clisp.org>
27295
27296         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27297         "Introduction", "Miscellanous Notes", "Particular Modules".
27298
27299 2006-10-21  Bruno Haible  <bruno@clisp.org>
27300
27301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27302         Change mostlyclean-local rule to avoid sh syntax error from bash
27303         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27304
27305 2006-10-23  Jim Meyering  <jim@meyering.net>
27306
27307         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27308         in place of snprintf.
27309
27310         * modules/inttostr (Files): Add lib/uinttostr.c.
27311         * lib/uinttostr.c (inttostr): New file/function.
27312         * lib/inttostr.h (uinttostr): Declare.
27313         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27314         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27315         Add uinttostr.
27316         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27317
27318 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27319
27320         * lib/canonicalize.c (ELOOP): Define if not already defined.
27321         Problem reported by Bruno Haible in
27322         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27323
27324 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27327         Problem reported by Perry Smith and Ville Laurikari.
27328
27329         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27330         uses.
27331
27332 2006-10-19  Bruno Haible  <bruno@clisp.org>
27333
27334         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27335         for mingw.
27336
27337 2006-10-19  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27340         Needed for mingw.
27341
27342 2006-10-19  Bruno Haible  <bruno@clisp.org>
27343
27344         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27345
27346 2006-10-19  Bruno Haible  <bruno@clisp.org>
27347
27348         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27349         it.
27350
27351 2006-10-19  Bruno Haible  <bruno@clisp.org>
27352
27353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27354         invocation.
27355
27356 2006-10-19  Bruno Haible  <bruno@clisp.org>
27357
27358         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27359         mountlist by default.
27360
27361 2006-10-16  Bruno Haible  <bruno@clisp.org>
27362
27363         * lib/c-strstr.c: Include c-strstr.h.
27364
27365 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27366
27367         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27368         in a slash.
27369
27370 2006-10-18  Bruno Haible  <bruno@clisp.org>
27371
27372         * lib/lock.h [C++]: Wrap definitions in extern "C".
27373
27374 2006-10-18  Bruno Haible  <bruno@clisp.org>
27375
27376         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27377         gl_LIBOBJS list.
27378
27379 2006-10-18  Bruno Haible  <bruno@clisp.org>
27380
27381         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27382
27383 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         * lib/xstrtol.h: Include gettext.h.
27386         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27387         Problem reported by Eric Blake.
27388         * modules/xstrtol (Depends-on): Add gettext-h.
27389
27390 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27391
27392         * lib/strftime.c (advance): New macro.
27393         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27394         incomplete type, so you can't add 0 to it.  Problem and patch
27395         reported by Eelco Dolstra for dietlibc.
27396
27397 2006-10-18  Jim Meyering  <jim@meyering.net>
27398
27399         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27400         type for a local, and rename it: s/up/user_proc/.
27401
27402 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27403
27404         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27405         READ_UTMP_USER_PROCESS.
27406         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27407
27408 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27409
27410         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27411         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27412
27413 2006-10-17  Eric Blake  <ebb9@byu.net>
27414
27415         * lib/sigprocmask.c (sigprocmask): Fix typo.
27416
27417         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27418
27419         * modules/clean-temp (Makefile.am): Don't add to make output...
27420         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27421         config.h.
27422
27423 2006-10-17  Bruno Haible  <bruno@clisp.org>
27424
27425         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27426         differently if DEFAULT_TEXT_DOMAIN is set.
27427
27428 2006-10-16  Bruno Haible  <bruno@clisp.org>
27429
27430         * lib/clean-temp.c: Include fwriteerror.h.
27431
27432 2006-10-16  Bruno Haible  <bruno@clisp.org>
27433
27434         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27435
27436 2006-10-16  Bruno Haible  <bruno@clisp.org>
27437
27438         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27439         * lib/sigprocmask.h: Include <sys/types.h>.
27440         (sigset_t): Use the system's definition if present.
27441
27442 2006-10-17  Eric Blake  <ebb9@byu.net>
27443
27444         * lib/xvasprintf.c (includes): Assume config.h.
27445         * lib/xasprintf.c (includes): Likewise.
27446
27447 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27450         at least as wide as intmax_t.
27451
27452 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27453
27454         (Imported from Automake.)
27455         * build-aux/gnupload: Update to version 1.1 of directive file.
27456
27457 2006-10-16  Eric Blake  <ebb9@byu.net>
27458
27459         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27460         match Automake 1.10a.
27461
27462 2006-10-14  Bruno Haible  <bruno@clisp.org>
27463
27464         * modules/sigprocmask: New file.
27465         * lib/sigprocmask.h: New file.
27466         * lib/sigprocmask.c: New file.
27467         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27468         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27469         request sigprocmask.o.
27470         (gl_PREREQ_SIGPROCMASK): New macro.
27471         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27472         (Depends-on): Add sigprocmask.
27473         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27474         gt_SIGNALBLOCKING. Test for 'raise' only once.
27475         * lib/fatal-signal.c: Include sigprocmask.h.
27476         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27477         unblock_fatal_signals): Define always.
27478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27479         sigprocmask.
27480
27481 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27482
27483         Sync from Automake.
27484         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27485         which incorrectly sets the mode of an existing destination
27486         directory.  In some cases the unpatched install-sh could do the
27487         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27488         system.  We hope this is rare in practice, but it's clearly worth
27489         fixing.  Problem reported by Alex Unleashed in
27490         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27491         Also, don't bother to check for -m bugs unless we're using -m;
27492         suggested by Stepan Kasal.
27493
27494 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27495
27496         Sync from Automake.
27497         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27498         `-c' flag, so they appear at the same position as in %FASTDEP%
27499         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27500         which ignores unknown options only after the first non-option.
27501         Bug report against M4 by Nelson H. F. Beebe.
27502
27503 2006-10-13  Jim Meyering  <jim@meyering.net>
27504
27505         Fix a bug in yesterday's change.
27506         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27507         p->fts_statp->st_dev would be used uninitialized.
27508         Ensures that we always call fts_stat on the very first entry.
27509         Miklos Szeredi reported that find -xdev stopped working.
27510
27511 2006-10-12  Bruno Haible  <bruno@clisp.org>
27512
27513         * gnulib-tool (func_get_automake_snippet): Append an automatically
27514         computed EXTRA_DIST augmentation.
27515         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27516         * modules/alloca-opt (Makefile.am): Likewise.
27517         * modules/allocsa (Makefile.am): Likewise.
27518         * modules/arcfour (Makefile.am): Likewise.
27519         * modules/arctwo (Makefile.am): Likewise.
27520         * modules/argmatch (Makefile.am): Likewise.
27521         * modules/argz (Makefile.am): Likewise.
27522         * modules/atexit (Makefile.am): Likewise.
27523         * modules/backupfile (Makefile.am): Likewise.
27524         * modules/byteswap (Makefile.am): Likewise.
27525         * modules/c-strtod (Makefile.am): Likewise.
27526         * modules/c-strtold (Makefile.am): Likewise.
27527         * modules/calloc (Makefile.am): Likewise.
27528         * modules/canon-host (Makefile.am): Likewise.
27529         * modules/canonicalize (Makefile.am): Likewise.
27530         * modules/chdir-long (Makefile.am): Likewise.
27531         * modules/chdir-safer (Makefile.am): Likewise.
27532         * modules/check-version (Makefile.am): Likewise.
27533         * modules/chown (Makefile.am): Likewise.
27534         * modules/cloexec (Makefile.am): Likewise.
27535         * modules/close-stream (Makefile.am): Likewise.
27536         * modules/closeout (Makefile.am): Likewise.
27537         * modules/crc (Makefile.am): Likewise.
27538         * modules/csharpexec (Makefile.am): Likewise.
27539         * modules/cycle-check (Makefile.am): Likewise.
27540         * modules/des (Makefile.am): Likewise.
27541         * modules/dev-ino (Makefile.am): Likewise.
27542         * modules/dirfd (Makefile.am): Likewise.
27543         * modules/dirname (Makefile.am): Likewise.
27544         * modules/dup2 (Makefile.am): Likewise.
27545         * modules/eealloc (Makefile.am): Likewise.
27546         * modules/error (Makefile.am): Likewise.
27547         * modules/euidaccess (Makefile.am): Likewise.
27548         * modules/exclude (Makefile.am): Likewise.
27549         * modules/exitfail (Makefile.am): Likewise.
27550         * modules/fcntl-safer (Makefile.am): Likewise.
27551         * modules/fcntl (Makefile.am): Likewise.
27552         * modules/file-type (Makefile.am): Likewise.
27553         * modules/fileblocks (Makefile.am): Likewise.
27554         * modules/filemode (Makefile.am): Likewise.
27555         * modules/filenamecat (Makefile.am): Likewise.
27556         * modules/fnmatch (Makefile.am): Likewise.
27557         * modules/fopen-safer (Makefile.am): Likewise.
27558         * modules/fpending (Makefile.am): Likewise.
27559         * modules/fprintftime (Makefile.am): Likewise.
27560         * modules/free (Makefile.am): Likewise.
27561         * modules/fsusage (Makefile.am): Likewise.
27562         * modules/ftruncate (Makefile.am): Likewise.
27563         * modules/fts (Makefile.am): Likewise.
27564         * modules/gc-arcfour (Makefile.am): Likewise.
27565         * modules/gc-des (Makefile.am): Likewise.
27566         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27567         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27568         * modules/gc-md4 (Makefile.am): Likewise.
27569         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27570         * modules/gc-sha1 (Makefile.am): Likewise.
27571         * modules/gc (Makefile.am): Likewise.
27572         * modules/getaddrinfo (Makefile.am): Likewise.
27573         * modules/getcwd (Makefile.am): Likewise.
27574         * modules/getdelim (Makefile.am): Likewise.
27575         * modules/getdomainname (Makefile.am): Likewise.
27576         * modules/getgroups (Makefile.am): Likewise.
27577         * modules/gethostname (Makefile.am): Likewise.
27578         * modules/gethrxtime (Makefile.am): Likewise.
27579         * modules/getline (Makefile.am): Likewise.
27580         * modules/getloadavg (Makefile.am): Likewise.
27581         * modules/getlogin_r (Makefile.am): Likewise.
27582         * modules/getndelim2 (Makefile.am): Likewise.
27583         * modules/getopt (Makefile.am): Likewise.
27584         * modules/getpagesize (Makefile.am): Likewise.
27585         * modules/getpass-gnu (Makefile.am): Likewise.
27586         * modules/getpass (Makefile.am): Likewise.
27587         * modules/getsubopt (Makefile.am): Likewise.
27588         * modules/gettime (Makefile.am): Likewise.
27589         * modules/gettimeofday (Makefile.am): Likewise.
27590         * modules/getugroups (Makefile.am): Likewise.
27591         * modules/getusershell (Makefile.am): Likewise.
27592         * modules/glob (Makefile.am): Likewise.
27593         * modules/group-member (Makefile.am): Likewise.
27594         * modules/hard-locale (Makefile.am): Likewise.
27595         * modules/hash (Makefile.am): Likewise.
27596         * modules/hmac-md5 (Makefile.am): Likewise.
27597         * modules/hmac-sha1 (Makefile.am): Likewise.
27598         * modules/human (Makefile.am): Likewise.
27599         * modules/idcache (Makefile.am): Likewise.
27600         * modules/imaxabs (Makefile.am): Likewise.
27601         * modules/imaxdiv (Makefile.am): Likewise.
27602         * modules/inet_ntop (Makefile.am): Likewise.
27603         * modules/inet_pton (Makefile.am): Likewise.
27604         * modules/intprops (Makefile.am): Likewise.
27605         * modules/inttostr (Makefile.am): Likewise.
27606         * modules/inttypes (Makefile.am): Likewise.
27607         * modules/isapipe (Makefile.am): Likewise.
27608         * modules/javaversion (Makefile.am): Likewise.
27609         * modules/lchmod (Makefile.am): Likewise.
27610         * modules/lchown (Makefile.am): Likewise.
27611         * modules/localcharset (Makefile.am): Likewise.
27612         * modules/long-options (Makefile.am): Likewise.
27613         * modules/lstat (Makefile.am): Likewise.
27614         * modules/malloc (Makefile.am): Likewise.
27615         * modules/mathl (Makefile.am): Likewise.
27616         * modules/mbchar (Makefile.am): Likewise.
27617         * modules/md2 (Makefile.am): Likewise.
27618         * modules/md4 (Makefile.am): Likewise.
27619         * modules/md5 (Makefile.am): Likewise.
27620         * modules/memcasecmp (Makefile.am): Likewise.
27621         * modules/memchr (Makefile.am): Likewise.
27622         * modules/memcmp (Makefile.am): Likewise.
27623         * modules/memcoll (Makefile.am): Likewise.
27624         * modules/memcpy (Makefile.am): Likewise.
27625         * modules/memmem (Makefile.am): Likewise.
27626         * modules/memmove (Makefile.am): Likewise.
27627         * modules/mempcpy (Makefile.am): Likewise.
27628         * modules/memrchr (Makefile.am): Likewise.
27629         * modules/memset (Makefile.am): Likewise.
27630         * modules/memxor (Makefile.am): Likewise.
27631         * modules/mkancesdirs (Makefile.am): Likewise.
27632         * modules/mkdir-p (Makefile.am): Likewise.
27633         * modules/mkdir (Makefile.am): Likewise.
27634         * modules/mkdtemp (Makefile.am): Likewise.
27635         * modules/mkstemp (Makefile.am): Likewise.
27636         * modules/mktime (Makefile.am): Likewise.
27637         * modules/modechange (Makefile.am): Likewise.
27638         * modules/mountlist (Makefile.am): Likewise.
27639         * modules/nanosleep (Makefile.am): Likewise.
27640         * modules/obstack (Makefile.am): Likewise.
27641         * modules/openat (Makefile.am): Likewise.
27642         * modules/pagealign_alloc (Makefile.am): Likewise.
27643         * modules/pathmax (Makefile.am): Likewise.
27644         * modules/physmem (Makefile.am): Likewise.
27645         * modules/poll (Makefile.am): Likewise.
27646         * modules/posixtm (Makefile.am): Likewise.
27647         * modules/posixver (Makefile.am): Likewise.
27648         * modules/putenv (Makefile.am): Likewise.
27649         * modules/quote (Makefile.am): Likewise.
27650         * modules/quotearg (Makefile.am): Likewise.
27651         * modules/raise (Makefile.am): Likewise.
27652         * modules/read-file (Makefile.am): Likewise.
27653         * modules/readline (Makefile.am): Likewise.
27654         * modules/readlink (Makefile.am): Likewise.
27655         * modules/readtokens (Makefile.am): Likewise.
27656         * modules/readutmp (Makefile.am): Likewise.
27657         * modules/realloc (Makefile.am): Likewise.
27658         * modules/regex (Makefile.am): Likewise.
27659         * modules/rename-dest-slash (Makefile.am): Likewise.
27660         * modules/rename (Makefile.am): Likewise.
27661         * modules/rijndael (Makefile.am): Likewise.
27662         * modules/rmdir (Makefile.am): Likewise.
27663         * modules/rpmatch (Makefile.am): Likewise.
27664         * modules/safe-read (Makefile.am): Likewise.
27665         * modules/safe-write (Makefile.am): Likewise.
27666         * modules/same-inode (Makefile.am): Likewise.
27667         * modules/same (Makefile.am): Likewise.
27668         * modules/save-cwd (Makefile.am): Likewise.
27669         * modules/savedir (Makefile.am): Likewise.
27670         * modules/setenv (Makefile.am): Likewise.
27671         * modules/settime (Makefile.am): Likewise.
27672         * modules/sha1 (Makefile.am): Likewise.
27673         * modules/sig2str (Makefile.am): Likewise.
27674         * modules/snprintf (Makefile.am): Likewise.
27675         * modules/stat-macros (Makefile.am): Likewise.
27676         * modules/stat-time (Makefile.am): Likewise.
27677         * modules/stdbool (Makefile.am): Likewise.
27678         * modules/stdint (Makefile.am): Likewise.
27679         * modules/stdlib-safer (Makefile.am): Likewise.
27680         * modules/stpcpy (Makefile.am): Likewise.
27681         * modules/stpncpy (Makefile.am): Likewise.
27682         * modules/strcase (Makefile.am): Likewise.
27683         * modules/strcasestr (Makefile.am): Likewise.
27684         * modules/strchrnul (Makefile.am): Likewise.
27685         * modules/strcspn (Makefile.am): Likewise.
27686         * modules/strdup (Makefile.am): Likewise.
27687         * modules/strerror (Makefile.am): Likewise.
27688         * modules/strftime (Makefile.am): Likewise.
27689         * modules/strndup (Makefile.am): Likewise.
27690         * modules/strnlen (Makefile.am): Likewise.
27691         * modules/strpbrk (Makefile.am): Likewise.
27692         * modules/strsep (Makefile.am): Likewise.
27693         * modules/strstr (Makefile.am): Likewise.
27694         * modules/strtod (Makefile.am): Likewise.
27695         * modules/strtoimax (Makefile.am): Likewise.
27696         * modules/strtok_r (Makefile.am): Likewise.
27697         * modules/strtol (Makefile.am): Likewise.
27698         * modules/strtoll (Makefile.am): Likewise.
27699         * modules/strtoul (Makefile.am): Likewise.
27700         * modules/strtoull (Makefile.am): Likewise.
27701         * modules/strtoumax (Makefile.am): Likewise.
27702         * modules/strverscmp (Makefile.am): Likewise.
27703         * modules/sys_socket (Makefile.am): Likewise.
27704         * modules/sys_stat (Makefile.am): Likewise.
27705         * modules/sysexits (Makefile.am): Likewise.
27706         * modules/time_r (Makefile.am): Likewise.
27707         * modules/timegm (Makefile.am): Likewise.
27708         * modules/timespec (Makefile.am): Likewise.
27709         * modules/tmpfile-safer (Makefile.am): Likewise.
27710         * modules/trim (Makefile.am): Likewise.
27711         * modules/unistd-safer (Makefile.am): Likewise.
27712         * modules/unlinkdir (Makefile.am): Likewise.
27713         * modules/unlocked-io (Makefile.am): Likewise.
27714         * modules/userspec (Makefile.am): Likewise.
27715         * modules/utime (Makefile.am): Likewise.
27716         * modules/utimecmp (Makefile.am): Likewise.
27717         * modules/utimens (Makefile.am): Likewise.
27718         * modules/vasnprintf (Makefile.am): Likewise.
27719         * modules/vasprintf (Makefile.am): Likewise.
27720         * modules/vsnprintf (Makefile.am): Likewise.
27721         * modules/xalloc (Makefile.am): Likewise.
27722         * modules/xgetcwd (Makefile.am): Likewise.
27723         * modules/xnanosleep (Makefile.am): Likewise.
27724         * modules/xreadlink (Makefile.am): Likewise.
27725         * modules/xstrtod (Makefile.am): Likewise.
27726         * modules/xstrtol (Makefile.am): Likewise.
27727         * modules/xstrtold (Makefile.am): Likewise.
27728         * modules/yesno (Makefile.am): Likewise.
27729         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27730
27731 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27732
27733         * modules/error (Makefile.am): Distribute files through
27734         EXTRA_DIST, not lib_SOURCES.
27735
27736 2006-10-12  Eric Blake  <ebb9@byu.net>
27737
27738         * modules/error (Makefile.am): Distribute files in /lib.
27739         * modules/obstack (Makefile.am): Likewise.
27740
27741 2006-10-12  Bruno Haible  <bruno@clisp.org>
27742
27743         * modules/acl (Makefile.am): Distribute all files in lib/ through
27744         EXTRA_DIST.
27745         * modules/arcfour (Makefile.am): Likewise.
27746         * modules/arctwo (Makefile.am): Likewise.
27747         * modules/argmatch (Makefile.am): Likewise.
27748         * modules/argz (Makefile.am): Likewise.
27749         * modules/atexit (Makefile.am): Likewise.
27750         * modules/backupfile (Makefile.am): Likewise.
27751         * modules/c-strtod (Makefile.am): Likewise.
27752         * modules/c-strtold (Makefile.am): Likewise.
27753         * modules/calloc (Makefile.am): Likewise.
27754         * modules/canon-host (Makefile.am): Likewise.
27755         * modules/canonicalize (Makefile.am): Likewise.
27756         * modules/chdir-long (Makefile.am): Likewise.
27757         * modules/chdir-safer (Makefile.am): Likewise.
27758         * modules/check-version (Makefile.am): Likewise.
27759         * modules/chown (Makefile.am): Likewise.
27760         * modules/cloexec (Makefile.am): Likewise.
27761         * modules/close-stream (Makefile.am): Likewise.
27762         * modules/closeout (Makefile.am): Likewise.
27763         * modules/crc (Makefile.am): Likewise.
27764         * modules/cycle-check (Makefile.am): Likewise.
27765         * modules/des (Makefile.am): Likewise.
27766         * modules/dirfd (Makefile.am): Likewise.
27767         * modules/dirname (Makefile.am): Likewise.
27768         * modules/dup2 (Makefile.am): Likewise.
27769         * modules/euidaccess (Makefile.am): Likewise.
27770         * modules/exclude (Makefile.am): Likewise.
27771         * modules/exitfail (Makefile.am): Likewise.
27772         * modules/fcntl-safer (Makefile.am): Likewise.
27773         * modules/file-type (Makefile.am): Likewise.
27774         * modules/fileblocks (Makefile.am): Likewise.
27775         * modules/filemode (Makefile.am): Likewise.
27776         * modules/filenamecat (Makefile.am): Likewise.
27777         * modules/fnmatch (Makefile.am): Likewise.
27778         * modules/fopen-safer (Makefile.am): Likewise.
27779         * modules/fpending (Makefile.am): Likewise.
27780         * modules/fprintftime (Makefile.am): Likewise.
27781         * modules/free (Makefile.am): Likewise.
27782         * modules/fsusage (Makefile.am): Likewise.
27783         * modules/ftruncate (Makefile.am): Likewise.
27784         * modules/fts (Makefile.am): Likewise.
27785         * modules/gc (Makefile.am): Likewise.
27786         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27787         * modules/getaddrinfo (Makefile.am): Likewise.
27788         * modules/getcwd (Makefile.am): Likewise.
27789         * modules/getdelim (Makefile.am): Likewise.
27790         * modules/getdomainname (Makefile.am): Likewise.
27791         * modules/getgroups (Makefile.am): Likewise.
27792         * modules/gethostname (Makefile.am): Likewise.
27793         * modules/gethrxtime (Makefile.am): Likewise.
27794         * modules/getline (Makefile.am): Likewise.
27795         * modules/getloadavg (Makefile.am): Likewise.
27796         * modules/getlogin_r (Makefile.am): Likewise.
27797         * modules/getopt (Makefile.am): Likewise.
27798         * modules/getpass (Makefile.am): Likewise.
27799         * modules/getpass-gnu (Makefile.am): Likewise.
27800         * modules/getsubopt (Makefile.am): Likewise.
27801         * modules/gettime (Makefile.am): Likewise.
27802         * modules/gettimeofday (Makefile.am): Likewise.
27803         * modules/getugroups (Makefile.am): Likewise.
27804         * modules/getusershell (Makefile.am): Likewise.
27805         * modules/glob (Makefile.am): Likewise.
27806         * modules/group-member (Makefile.am): Likewise.
27807         * modules/hard-locale (Makefile.am): Likewise.
27808         * modules/hash (Makefile.am): Likewise.
27809         * modules/hmac-md5 (Makefile.am): Likewise.
27810         * modules/hmac-sha1 (Makefile.am): Likewise.
27811         * modules/human (Makefile.am): Likewise.
27812         * modules/idcache (Makefile.am): Likewise.
27813         * modules/imaxabs (Makefile.am): Likewise.
27814         * modules/imaxdiv (Makefile.am): Likewise.
27815         * modules/inet_ntop (Makefile.am): Likewise.
27816         * modules/inet_pton (Makefile.am): Likewise.
27817         * modules/inttostr (Makefile.am): Likewise.
27818         * modules/isapipe (Makefile.am): Likewise.
27819         * modules/lchown (Makefile.am): Likewise.
27820         * modules/long-options (Makefile.am): Likewise.
27821         * modules/lstat (Makefile.am): Likewise.
27822         * modules/malloc (Makefile.am): Likewise.
27823         * modules/mathl (Makefile.am): Likewise.
27824         * modules/mbchar (Makefile.am): Likewise.
27825         * modules/md2 (Makefile.am): Likewise.
27826         * modules/md4 (Makefile.am): Likewise.
27827         * modules/md5 (Makefile.am): Likewise.
27828         * modules/memcasecmp (Makefile.am): Likewise.
27829         * modules/memchr (Makefile.am): Likewise.
27830         * modules/memcmp (Makefile.am): Likewise.
27831         * modules/memcoll (Makefile.am): Likewise.
27832         * modules/memcpy (Makefile.am): Likewise.
27833         * modules/memmem (Makefile.am): Likewise.
27834         * modules/memmove (Makefile.am): Likewise.
27835         * modules/mempcpy (Makefile.am): Likewise.
27836         * modules/memrchr (Makefile.am): Likewise.
27837         * modules/memset (Makefile.am): Likewise.
27838         * modules/memxor (Makefile.am): Likewise.
27839         * modules/mkancesdirs (Makefile.am): Likewise.
27840         * modules/mkdir (Makefile.am): Likewise.
27841         * modules/mkdir-p (Makefile.am): Likewise.
27842         * modules/mkdtemp (Makefile.am): Likewise.
27843         * modules/mkstemp (Makefile.am): Likewise.
27844         * modules/mktime (Makefile.am): Likewise.
27845         * modules/modechange (Makefile.am): Likewise.
27846         * modules/mountlist (Makefile.am): Likewise.
27847         * modules/nanosleep (Makefile.am): Likewise.
27848         * modules/openat (Makefile.am): Likewise.
27849         * modules/pagealign_alloc (Makefile.am): Likewise.
27850         * modules/physmem (Makefile.am): Likewise.
27851         * modules/poll (Makefile.am): Likewise.
27852         * modules/posixtm (Makefile.am): Likewise.
27853         * modules/posixver (Makefile.am): Likewise.
27854         * modules/putenv (Makefile.am): Likewise.
27855         * modules/quote (Makefile.am): Likewise.
27856         * modules/quotearg (Makefile.am): Likewise.
27857         * modules/raise (Makefile.am): Likewise.
27858         * modules/read-file (Makefile.am): Likewise.
27859         * modules/readline (Makefile.am): Likewise.
27860         * modules/readlink (Makefile.am): Likewise.
27861         * modules/readtokens (Makefile.am): Likewise.
27862         * modules/readutmp (Makefile.am): Likewise.
27863         * modules/realloc (Makefile.am): Likewise.
27864         * modules/regex (Makefile.am): Likewise.
27865         * modules/rename (Makefile.am): Likewise.
27866         * modules/rename-dest-slash (Makefile.am): Likewise.
27867         * modules/rijndael (Makefile.am): Likewise.
27868         * modules/rmdir (Makefile.am): Likewise.
27869         * modules/rpmatch (Makefile.am): Likewise.
27870         * modules/safe-read (Makefile.am): Likewise.
27871         * modules/safe-write (Makefile.am): Likewise.
27872         * modules/same (Makefile.am): Likewise.
27873         * modules/save-cwd (Makefile.am): Likewise.
27874         * modules/savedir (Makefile.am): Likewise.
27875         * modules/setenv (Makefile.am): Likewise.
27876         * modules/settime (Makefile.am): Likewise.
27877         * modules/sha1 (Makefile.am): Likewise.
27878         * modules/sig2str (Makefile.am): Likewise.
27879         * modules/snprintf (Makefile.am): Likewise.
27880         * modules/stdlib-safer (Makefile.am): Likewise.
27881         * modules/stpcpy (Makefile.am): Likewise.
27882         * modules/stpncpy (Makefile.am): Likewise.
27883         * modules/strcase (Makefile.am): Likewise.
27884         * modules/strcasestr (Makefile.am): Likewise.
27885         * modules/strchrnul (Makefile.am): Likewise.
27886         * modules/strcspn (Makefile.am): Likewise.
27887         * modules/strdup (Makefile.am): Likewise.
27888         * modules/strerror (Makefile.am): Likewise.
27889         * modules/strftime (Makefile.am): Likewise.
27890         * modules/strndup (Makefile.am): Likewise.
27891         * modules/strnlen (Makefile.am): Likewise.
27892         * modules/strpbrk (Makefile.am): Likewise.
27893         * modules/strsep (Makefile.am): Likewise.
27894         * modules/strstr (Makefile.am): Likewise.
27895         * modules/strtod (Makefile.am): Likewise.
27896         * modules/strtoimax (Makefile.am): Likewise.
27897         * modules/strtok_r (Makefile.am): Likewise.
27898         * modules/strtol (Makefile.am): Likewise.
27899         * modules/strtoll (Makefile.am): Likewise.
27900         * modules/strtoul (Makefile.am): Likewise.
27901         * modules/strtoull (Makefile.am): Likewise.
27902         * modules/strtoumax (Makefile.am): Likewise.
27903         * modules/strverscmp (Makefile.am): Likewise.
27904         * modules/time_r (Makefile.am): Likewise.
27905         * modules/timegm (Makefile.am): Likewise.
27906         * modules/tmpfile-safer (Makefile.am): Likewise.
27907         * modules/unistd-safer (Makefile.am): Likewise.
27908         * modules/unlinkdir (Makefile.am): Likewise.
27909         * modules/userspec (Makefile.am): Likewise.
27910         * modules/utime (Makefile.am): Likewise.
27911         * modules/utimecmp (Makefile.am): Likewise.
27912         * modules/utimens (Makefile.am): Likewise.
27913         * modules/vasnprintf (Makefile.am): Likewise.
27914         * modules/vasprintf (Makefile.am): Likewise.
27915         * modules/vsnprintf (Makefile.am): Likewise.
27916         * modules/xalloc (Makefile.am): Likewise.
27917         * modules/xgetcwd (Makefile.am): Likewise.
27918         * modules/xnanosleep (Makefile.am): Likewise.
27919         * modules/xreadlink (Makefile.am): Likewise.
27920         * modules/xstrtod (Makefile.am): Likewise.
27921         * modules/xstrtol (Makefile.am): Likewise.
27922         * modules/xstrtold (Makefile.am): Likewise.
27923         * modules/yesno (Makefile.am): Likewise.
27924
27925 2006-10-12  Jim Meyering  <jim@meyering.net>
27926
27927         * m4/getloadavg.m4: Revert the change below.
27928
27929         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27930         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
27931         fail with a symlink, which is what coreutils' ./bootstrap now
27932         creates by default.
27933
27934 2006-10-12  Bruno Haible  <bruno@clisp.org>
27935
27936         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27937         mingw.
27938         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27939         MSVC and mingw explicitly.
27940
27941 2006-10-11  Simon Josefsson  <jas@extundo.com>
27942             Bruno Haible  <bruno@clisp.org>
27943
27944         Add support for multiple gnulib-tool invocations in the scope of a
27945         single configure.ac file.
27946         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27947         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27948         with the same contents as the _LIBADD variable.
27949         (func_emit_initmacro_start, func_emit_initmacro_end,
27950         func_emit_initmacro_done): New functions.
27951         (func_import, func_create_testdir): Invoke them. Allow the identifiers
27952         gl_LIBOBJS and gl_LTLIBOBJS.
27953
27954 2006-10-11  Bruno Haible  <bruno@clisp.org>
27955
27956         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27957         (func_create_testdir): Don't create po/Makefile.am, don't invoke
27958         autoreconf. Instead, invoke autopoint explicitly but move back the
27959         *.m4 files from gnulib.
27960
27961 2006-10-11  Bruno Haible  <bruno@clisp.org>
27962
27963         * gnulib-tool (func_usage): Make module names after --create-testdir
27964         optional.
27965         (func_create_testdir): If no module was specified, use nearly all
27966         modules.
27967
27968 2006-10-12  Jim Meyering  <jim@meyering.net>
27969
27970         Big performance improvement for fts-based tools that use FTS_NOSTAT.
27971         Avoid spurious inode-mismatch problems on non-POSIX file systems.
27972         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27973         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27974         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27975         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27976         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27977         (fts_set_stat_required): New function.
27978         (fts_open): Defer the calls to fts_stat, if possible or requested.
27979         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27980         into fts_stat itself.
27981         (fts_read): Perform any required (deferred) fts_stat call.
27982         (fts_build): Likewise, for the directory we're about to open and read.
27983         In the readdir loop, carefully decide whether each entry will require
27984         an eventual call to fts_stat, using dirent.d_type info if available.
27985         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27986         a command line argument into this function.  Update all callers.
27987         Map a return value of FTS_DOT to FTS_D for a command line argument.
27988         * modules/fts (Depends-on): Add d-type.  Alphabetize.
27989         Thanks to Miklos Szeredi for his tenacity and for the initial
27990         bug report about "find" failing on a FUSE-based file system.
27991
27992         * lib/fts.c (fts_open): Use consistent indentation.
27993
27994 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27995
27996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27997         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27998         reported by Jim Meyering.  All uses of cache variables renamed
27999         to match Autoconf's.
28000         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
28001         the other one.
28002
28003         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28004         Fix misspelling in diagnostic.
28005
28006 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28007
28008         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
28009         defined.  Problem reported by Matthew Woehlke.
28010
28011         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
28012         Add support for Tandem NonStop R series.
28013         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
28014         Use new macro.
28015
28016         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
28017         (has_trailing_slash): Omit size arg; all callers changed.
28018         Omit 'inline', since it doesn't help performance and we'd
28019         need to configure it.
28020         Don't count //, ///, etc. as having a trailing slash.
28021         As a side effect, this removes a C99ism reported by Matthew Woehlke.
28022         (rpl_rename_dest_slash): On failure, use rename's errno rather
28023         than (in some cases) an incorrect or junk errno.
28024         Simplify code by removing need to compute length; this does
28025         cause it to make two passes instead of one over the file name,
28026         but it's worth it.
28027
28028         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
28029         change, since Autoconf's version may no longer be appropriate now
28030         that we are using CVS Autoconf's version.  Add support for Tandem.
28031
28032 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28033             Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
28036         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
28037         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
28038         gl_AC_TYPE_LONG_LONG.
28039
28040         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
28041         instead of HAVE_LONG_LONG.
28042         * lib/printf-args.c (printf_fetchargs): Likewise.
28043         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28044         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
28046         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
28047         gl_AC_TYPE_LONG_LONG.
28048
28049 2006-10-11  Bruno Haible  <bruno@clisp.org>
28050
28051         * m4/longlong.m4: Add comments.
28052         * m4/ulonglong.m4: Likewise.
28053
28054 2006-10-10  Bruno Haible  <bruno@clisp.org>
28055
28056         Make it possible to #define stpcpy, strdup to aliases.
28057         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
28058         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
28059
28060 2006-10-10  Bruno Haible  <bruno@clisp.org>
28061
28062         Make it possible to #define gcd to an alias.
28063         * lib/gcd.c: Include config.h.
28064
28065 2006-10-10  Bruno Haible  <bruno@clisp.org>
28066
28067         Make it possible to #define c_isascii to an alias.
28068         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
28069         defined. Undefine the macros before defining them, to avoid gcc
28070         warnings.
28071         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
28072         define NO_C_CTYPE_MACROS early.
28073
28074 2006-10-10  Bruno Haible  <bruno@clisp.org>
28075
28076         Make it possible to #define set_program_name to an alias.
28077         * lib/progname.c: Don't undefine set_program_name; instead, undefine
28078         ENABLE_RELOCATABLE early.
28079
28080 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         Port to Tandem NSK OSS, which has 64-bit signed int but at most
28083         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
28084         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
28085         More generally, don't assume that 64-bit signed int is available
28086         if unsigned int is, and vice versa.
28087         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
28088         unsigned symbols, not on their signed counterparts.
28089         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
28090         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
28091         (UINT64_C, UINTMAX_C):
28092         Likewise.
28093         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
28094         unsigned counterparts.
28095         (Have_long_long, Unsigned): New macros.
28096         (Int): Renamed from INT.
28097         (strtoimax): Use the new macros.
28098         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
28099         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
28100         * modules/inttypes (inttypes.h): Substitute
28101         HAVE_UNSIGNED_LONG_LONG_INT.
28102         * modules/stdint (stdint.h): Likewise.
28103         (Files): Add m4/ulonglong.m4.
28104
28105 2006-10-10  Bruno Haible  <bruno@clisp.org>
28106
28107         Fix a gcc -Wshadow warning.
28108         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
28109         to 'bucket'.
28110         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
28111         gl_linked_indexof_from_to): Likewise.
28112         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
28113         Likewise.
28114         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
28115         Likewise.
28116         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
28117         Reported by Eric Blake.
28118
28119 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28120
28121         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
28122         for NetBSD.  Problem reported by Bruno Haible.
28123
28124 2006-10-09  Jim Meyering  <jim@meyering.net>
28125
28126         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
28127         Patch from Bruno Haible.
28128
28129 2006-10-09  Jim Meyering  <jim@meyering.net>
28130
28131         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28132         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
28133         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
28134
28135 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28136
28137         Don't include <config.h> twice; this doesn't work in some cases,
28138         e.g., when config.h has "#define intmax_t long long int" and
28139         we include <config.h>, <inttypes.h>, <config.h> in that order.
28140         Problem reported by Matthew Woehlke in:
28141         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
28142         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
28143         * lib/fts-cycle.c: Don't include config.h.
28144         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
28145         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28146         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
28147         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
28148         inttypes.h.
28149         * lib/xstrtoumax.c: Likewise.
28150         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28151         __strtol and the like, so that this module is more like its siblings.
28152         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28153         Remove; no longer needed now that we assume gnulib inttypes.h.
28154
28155 2006-10-08  Bruno Haible  <bruno@clisp.org>
28156
28157         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28158         option.
28159
28160 2006-10-07  Jim Meyering  <jim@meyering.net>
28161
28162         * modules/inttypes (inttypes.h): Revert what seems to have been
28163         an inadvertent part of today's change: use "|", not "/" in the
28164         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28165
28166 2006-10-07  Bruno Haible  <bruno@clisp.org>
28167
28168         * modules/sublist: New file.
28169
28170 2006-10-07  Bruno Haible  <bruno@clisp.org>
28171
28172         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28173         * modules/argz (argz.h): Likewise.
28174         * modules/arpa_inet (arpa/inet.h): Likewise.
28175         * modules/byteswap (byteswap.h): Likewise.
28176         * modules/configmake (configmake.h): Likewise.
28177         * modules/fcntl (fcntl.h): Likewise.
28178         * modules/fnmatch (fnmatch.h): Likewise.
28179         * modules/getopt (getopt.h): Likewise.
28180         * modules/glob (glob.h): Likewise.
28181         * modules/inttypes (inttypes.h): Likewise.
28182         * modules/netinet_in (netinet/in.h): Likewise.
28183         * modules/poll (poll.h): Likewise.
28184         * modules/stdbool (stdbool.h): Likewise.
28185         * modules/stdint (stdint.h): Likewise.
28186         * modules/sys_select (sys/select.h): Likewise.
28187         * modules/sys_socket (sys/socket.h): Likewise.
28188         * modules/sys_stat (sys/stat.h): Likewise.
28189         * modules/sysexits (sysexits.h): Likewise.
28190         * modules/unistd (unistd.h): Likewise.
28191         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28192         Add a "DO NOT EDIT" comment to the generated file.
28193         (func_import): Likewise for gnulib-comp.m4.
28194
28195 2006-10-07  Bruno Haible  <bruno@clisp.org>
28196
28197         * lib/gl_sublist.h: New file.
28198         * lib/gl_sublist.c: New file.
28199
28200 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28201
28202         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28203         name (relative to the original working directory) and the file
28204         name component (relative to the temporary working directory).  All
28205         callers changed.
28206         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28207         * lib/mkdir-p.c (make_dir_parents): Likewise.
28208         * lib/mkdir-p.h (make_dir_parents): Likewise.
28209
28210 2006-10-06  Eric Blake  <ebb9@byu.net>
28211
28212         Define several macros for use by the clean-temp module.
28213         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28214         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28215         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28216
28217         * lib/clean-temp.h (close_stream_temp): New declaration.
28218         * lib/clean-temp.c (includes): Pull in headers according to what
28219         other modules are in use.
28220         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28221
28222 2006-10-06  Bruno Haible  <bruno@clisp.org>
28223
28224         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28225         instead of fopen, fwriteerror.
28226
28227 2006-10-06  Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28230         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28231         int.
28232         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28233         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28234         Return an error indicator.
28235         Suggested by Eric Blake.
28236
28237 2006-10-06  Bruno Haible  <bruno@clisp.org>
28238
28239         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28240         Reported by Eric Blake.
28241
28242 2006-10-06  Bruno Haible  <bruno@clisp.org>
28243
28244         * modules/closeout (Description): Mention stderr too.
28245
28246 2006-10-06  Bruno Haible  <bruno@clisp.org>
28247         and Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         * lib/closeout.c (close_stdout): Also close stderr.
28250         * lib/closeout.h: Update comment.
28251
28252 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28253
28254         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28256         * lib/dirchownmod.c: Include lchown.h.
28257         * lib/lchown.c: Don't include files that lchown.h now includes.
28258         Don't declare chown, since lchown.h now does that.
28259         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28260         (lchown): Define to rpl_chown if lchown is declared but
28261         does not exist.  Declare using a prototype if lchown is not
28262         declared.  Add a copyright notice.
28263         * lib/mkstemp.h: Include <unistd.h>.
28264         * lib/openat.c: Include lchown.h.
28265
28266         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28267         we now test for that separately.
28268         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28269         rather than O_NOFOLLOW, when testing whether it's possible to
28270         avoid a race condition reliably.
28271         * lib/savewd.c (savewd_chdir): Likewise.
28272
28273         Remove macros that are no longer needed now that stdint.h is
28274         reliable.
28275         * lib/fsusage.c (UINTMAX_MAX): Remove.
28276         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28277         * lib/utimecmp.c (SIZE_MAX): Remove.
28278
28279         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28280
28281         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28282         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28283         O_NOATIME works.
28284
28285 2006-10-05  Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/gl_list.h (gl_sortedlist_search_from_to,
28288         gl_sortedlist_indexof_from_to): New declarations.
28289         (gl_list_implementation): New fields sortedlist_search_from_to,
28290         sortedlist_indexof_from_to.
28291         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28292         inline functions.
28293         * lib/gl_list.c (gl_sortedlist_search_from_to,
28294         gl_sortedlist_indexof_from_to): New functions.
28295         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28296         function.
28297         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28298         (gl_array_sortedlist_search_from_to): New function.
28299         (gl_array_list_implementation): Update.
28300         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28301         function.
28302         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28303         (gl_carray_sortedlist_search_from_to): New function.
28304         (gl_carray_list_implementation): Update.
28305         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28306         gl_linked_sortedlist_indexof_from_to): New functions.
28307         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28308         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28309         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28310         gl_tree_sortedlist_indexof_from_to): New functions.
28311         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28312         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28313         Update.
28314         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28315         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28316         Update.
28317
28318 2006-10-05  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28321         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28322         (struct gl_list_implementation): Add fields search_from_to,
28323         indexof_from_to. Remove fields search, indexof.
28324         (gl_list_search): Use the search_from_to method.
28325         (gl_list_search_from, gl_list_search_from_to): New functions.
28326         (gl_list_indexof): Use the indexof_from_to method.
28327         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28328         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28329         (gl_list_search_from, gl_list_search_from_to): New functions.
28330         (gl_list_indexof): Use the indexof_from_to method.
28331         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28332         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28333         gl_array_indexof. Add start_index, end_index arguments.
28334         (gl_array_search_from_to): Renamed from gl_array_search. Add
28335         start_index, end_index arguments.
28336         (gl_array_remove, gl_array_list_implementation): Update.
28337         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28338         gl_carray_indexof. Add start_index, end_index arguments.
28339         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28340         start_index, end_index arguments.
28341         (gl_carray_remove, gl_carray_list_implementation): Update.
28342         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28343         gl_linked_search. Add start_index, end_index arguments.
28344         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28345         start_index, end_index arguments.
28346         (gl_linked_remove): Update.
28347         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28348         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28349         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28350         field to 'size_t'.
28351         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28352         gl_tree_search. Add start_index, end_index arguments.
28353         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28354         start_index, end_index arguments.
28355         (gl_tree_remove): Update.
28356         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28357         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28358         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28359         function.
28360         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28361         gl_tree_search. Add start_index, end_index arguments.
28362         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28363         start_index, end_index arguments.
28364         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28365         Update.
28366         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28367
28368 2006-10-05  Bruno Haible  <bruno@clisp.org>
28369
28370         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28371
28372         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28373         fwriteerror_temp): New declarations.
28374         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28375         (descriptors): New variable.
28376         (cleanup): First, close the descriptors.
28377         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28378         fclose_temp, fwriteerror_temp): New functions.
28379
28380 2006-10-04  Jim Meyering  <jim@meyering.net>
28381
28382         * lib/fts.c (fts_open): Tiny comment change.
28383
28384 2006-10-04  Bruno Haible  <bruno@clisp.org>
28385
28386         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28387         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28388         gl_LOCK_BODY.
28389         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28390         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28391         gl_LOCK_EARLY_BODY.
28392         (gl_LOCK): Require gl_LOCK_BODY.
28393
28394 2006-10-04  Bruno Haible  <bruno@clisp.org>
28395
28396         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28397         (gl_oset_search_atleast): New declaration.
28398         (struct gl_oset_implementation): Add field 'search_atleast'.
28399         (gl_oset_search_atleast): New inline function.
28400         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28401         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28402         (gl_array_oset_implementation): Update.
28403         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28404         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28405         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28406
28407 2006-10-04  Bruno Haible  <bruno@clisp.org>
28408
28409         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28410
28411 2006-10-03  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28414         from gl_avltreehash_list_implementation.
28415
28416 2006-10-03  Bruno Haible  <bruno@clisp.org>
28417
28418         * lib/gl_oset.c (gl_oset_add): Fix return type.
28419
28420 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28421
28422         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28423
28424 2006-10-02  Eric Blake  <ebb9@byu.net>
28425
28426         * modules/strnlen (Depends-on): Add extensions.
28427
28428 2006-10-02  Eric Blake  <ebb9@byu.net>
28429
28430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28431         definition in 2.60+.
28432
28433 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28434
28435         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28436         checks.
28437
28438 2006-10-02  Bruno Haible  <bruno@clisp.org>
28439
28440         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28441         to the AUTOMAKE_OPTIONS.
28442         Reported by Jim Meyering.
28443
28444 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         Work around bug in Solaris 10 /proc file system:
28447         /proc/self/fd/NNN/.. isn't the parent directory of
28448         the directory whose file descriptor is NNN.  This needs to
28449         be worked around at run time, not compile time, since a
28450         program might be built on Solaris 8, where things work, and
28451         run on Solaris 10.
28452         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28453         to use the following interface instead:
28454         (OPENAT_BUFFER_SIZE): New macro.
28455         (openat_proc_name): New function.
28456         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28457         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28458         Likewise.
28459         * lib/openat-proc.c: New file.
28460         * modules/openat (Files): Add lib/openat-proc.c.
28461         (Depends-on): Add same-inode, stdbool.
28462         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28463
28464 2006-09-29  Bruno Haible  <bruno@clisp.org>
28465
28466         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28467         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28468         argument. Set stdout_closed before testing for ferror, not after.
28469         (fwriteerror, fwriteerror_no_ebadf): New functions.
28470
28471 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28472
28473         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28474
28475 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28476
28477         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28478         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28479
28480 2006-09-28  Jim Meyering  <jim@meyering.net>
28481
28482         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28483         Include <unistd.h>.
28484
28485 2006-09-28  Bruno Haible  <bruno@clisp.org>
28486
28487         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28488         * modules/linkedhash-list (Depends-on): Likewise.
28489         * modules/rbtreehash-list (Depends-on): Likewise.
28490
28491 2006-09-28  Bruno Haible  <bruno@clisp.org>
28492
28493         * lib/strndup.h: Simplify the redefinition of strndup.
28494         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28495         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28496
28497 2006-09-28  Bruno Haible  <bruno@clisp.org>
28498
28499         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28500         * lib/gl_linkedhash_list.c: Likewise.
28501         * lib/gl_rbtreehash_list.c: Likewise.
28502
28503 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28504
28505         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28506         getaddrinfo.
28507
28508         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28509         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28510         it causes <stdio_ext.h> to cause a compile-time error.
28511         Problem reported by Nelson H. F. Beebe.
28512         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28513         of HAVE_DECL___PENDING.
28514
28515         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28516         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28517         declaration.
28518
28519 2006-09-27  Jim Meyering  <jim@meyering.net>
28520
28521         This file could end up with a definition for a function
28522         named __strndup, rather than rpl_strndup on a system with
28523         incomplete weak_alias support.
28524         * lib/strndup.c (strndup): Rename from __strndup.
28525         Remove #defines that used to map __strndup to strndup.
28526         Don't use K&R prototypes.
28527         Remove LIBC-related code, since this file is not sync'd with glibc.
28528         * lib/strndup.h: Revamp, accordingly.
28529         * m4/strndup.m4: Modernize.
28530
28531 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28532
28533         * modules/savewd (Depends-on): Add 'raise'.
28534         * lib/savewd.c: Include <signal.h>, for 'raise'.
28535
28536 2006-09-26  Jim Meyering  <jim@meyering.net>
28537
28538         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28539         when we detect Darwin 8.7.0's acl_get_file bug.
28540         Rearrange to perform the new (below) run-test while $LIBS
28541         contains any acl-related library.  Set USE_ACL at the end.
28542         (gl_ACL_GET_FILE): New function.
28543
28544 2006-09-26  Eric Blake  <ebb9@byu.net>
28545
28546         * lib/verror.c: Include <config.h> unconditionally.
28547
28548 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28549
28550         * modules/clock-time (Maintainer): Add self.
28551         * modules/getlogin_r (Depends-on): Add extensions.
28552
28553 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28554
28555         * modules/clock-time: New module.
28556         * modules/nanosleep (Depends-on): Add clock-time.
28557         * modules/gethrxtime (Depends-on): Likewise.
28558         * modules/gettime (Depends-on): Likewise.
28559         * modules/settime (Depends-on): Likewise.
28560
28561         * modules/fts-lgpl: Depend on openat.
28562         * modules/mkancesdirs: Depend on savewd.
28563         * modules/mkdir-p: Likewise.
28564
28565 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28566
28567         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28568
28569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28570         `gl_have_arbitrary_file_name_length_limit' to
28571         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28572         actually works between configure runs.
28573
28574 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28575             Bruno Haible  <bruno@clisp.org>
28576
28577         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28578
28579 2006-09-25  Jim Meyering  <jim@meyering.net>
28580
28581         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28582         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28583
28584 2006-09-25  Eric Blake  <ebb9@byu.net>
28585
28586         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28587         exec's in 2006-09-18 patch when shuffling fds.
28588
28589 2006-09-25  Bruno Haible  <bruno@clisp.org>
28590
28591         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28592         Reported by Jim Meyering.
28593
28594 2006-09-24  Jim Meyering  <jim@meyering.net>
28595
28596         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28597         compare a pointer against a literal "0".  That caused failures with
28598         at least HP-UX's hpcc.
28599
28600 2006-09-22  Simon Josefsson  <jas@extundo.com>
28601
28602         * modules/gc-sha1:
28603         * modules/gc-md4:
28604         * modules/gc-hmac-sha1:
28605         * modules/gc-hmac-md5:
28606         * modules/gc-des:
28607         * modules/gc-arcfour: Distribute more files.
28608
28609 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28610
28611         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28612         (gl_linked_iterator_from_to): Initialize struct completely.
28613         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28614         (gl_tree_iterator_from_to): Likewise
28615         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28616         * lib/gl_array_list.c [lint] (gl_array_iterator)
28617         (gl_array_iterator_from_to): Likewise.
28618         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28619         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28620         (gl_carray_iterator_from_to): Likewise.
28621
28622         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28623         * lib/md4.c (md4_process_block): Remove unused variable.
28624         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28625         parentheses for clarity.
28626
28627 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28628
28629         * modules/bison-i18n (Depends-on): Add gettext.
28630
28631 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28632
28633         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28634         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28635         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28636         also add missing comma that caused broken test.
28637         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28638         stdlib.h, for `abort'.
28639         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28640         variables.
28641         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28642         include unistd.h if present, for `rmdir'.
28643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28644         variables.
28645         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28646         in the process include standard headers for prototypes.
28647         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28648         gets declared on GNU/Linux.
28649         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28650         unistd.h, for `rmdir'.
28651         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28652
28653         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28654         always true.
28655         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28656
28657         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28658
28659 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28660
28661         * gnulib-tool (func_version): Create output all at once.  This
28662         may help avoid triggering unnecessary SIGPIPEs, and at any
28663         rate it doesn't hurt.
28664
28665 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28666             Bruno Haible  <bruno@clisp.org>
28667
28668         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28669         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28670         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28671
28672         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28673         (gl_FUNC_VASPRINTF): Invoke it.
28674
28675 2006-09-22  Bruno Haible  <bruno@clisp.org>
28676
28677         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28678         getloadavg.c as first argument.
28679
28680 2006-09-22  Bruno Haible  <bruno@clisp.org>
28681
28682         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28683         at the beginning of the gl_INIT macro.
28684         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28685         gl_GETLOADAVG.
28686
28687 2006-09-22  Bruno Haible  <bruno@clisp.org>
28688
28689         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28690         module.
28691         Suggested by Ralf Wildenhues.
28692
28693 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28694
28695         Import this patch from libc:
28696
28697         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28698
28699         * lib/regex_internal.c (re_string_reconstruct): Handle
28700         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28701         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28702         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28703         re_string_context_at.
28704
28705         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28706         now requires it.
28707         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28708         gl_REGEX now does it for us.
28709         (gl_REGEX): Add test taken from
28710         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28711
28712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28713         Check that large offsets work.  Modernize Autoconf usages.
28714         Prefer "yes" to mean a good thing rather than a bad.
28715         Don't put "#define mkstemp" in config.h, as this might interfere
28716         with standard system headers that "#define mkstemp mkstemp64".
28717
28718         * modules/mkstemp (Depends-on): Add extensions, so that
28719         mkstemp is visible on some platforms.
28720         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28721         (Include): Change to "mkstemp.h" from <stdlib.h>.
28722         (Files): Add mkstemp.h.
28723
28724         * lib/mkstemp.h: New file, since some standard headers
28725         #define mkstemp.
28726         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28727         Include "mkstemp.h".
28728         Make the _LIBC code resemble glibc original more,
28729         e.g., use K&R style.
28730         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28731         (mkstemp): Remove, since mkstemp.h does this for us.
28732         * lib/stdlib--.h: Include mkstemp.h.
28733
28734         Import this patch from libc:
28735
28736         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28737
28738         * lib/tempname.c (__gen_tempname): Change attempts_min
28739         into a macro.  Use preprocessor to decide how to initialize
28740         attempts [Coverity CID 67].
28741
28742 2006-09-20  Bruno Haible  <bruno@clisp.org>
28743
28744         * lib/mkdtemp.c: Import from libc.
28745         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28746                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28747                 attempts_min into a macro.  Use preprocessor to decide how to
28748                 initialize attempts [Coverity CID 67].
28749         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28750                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28751                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28752
28753 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28754
28755         * gnulib-tool (func_exit): New function, to allow to pass the
28756         exit status portably through the trap.  Use everywhere.
28757         (--help, --version): Signal a write error.
28758         (trap): catch SIGPIPE, for write errors.
28759         Exit at the end of the trap, with the correct exit status.
28760
28761 2006-09-19  Karl Berry  <karl@gnu.org>
28762
28763         * doc/gnulib.texi: note about the license texinfo files.
28764
28765 2006-09-19  Eric Blake  <ebb9@byu.net>
28766
28767         * gnulib-tool: Avoid space-tab.
28768
28769 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28770
28771         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28772         that prevented coreutils 6.1 from building.  Problem reported
28773         by Petter Reinholdtsen.
28774
28775 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28776
28777         * gnulib-tool (avoidlist): Fix typo that broke options like
28778         --avoid=lock that are used by coreutils bootstrap.
28779
28780 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28781
28782         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28783         more systematically.
28784
28785 2006-09-18  Jim Meyering  <jim@meyering.net>
28786
28787         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28788
28789 2006-09-18  Bruno Haible  <bruno@clisp.org>
28790
28791         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28792
28793 2006-09-18  Bruno Haible  <bruno@clisp.org>
28794
28795         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28796         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28797         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28798         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28799         * m4/gettext.m4: Require autoconf >= 2.52.
28800         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28801         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28802         of gl_cv_header_inttypes_h.
28803
28804 2006-09-18  Bruno Haible  <bruno@clisp.org>
28805
28806         * lib/javaversion.c: Include configmake.h.
28807
28808 2006-09-18  Bruno Haible  <bruno@clisp.org>
28809
28810         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28811         avoid that the while loops be executed in a subshell.
28812
28813 2006-09-18  Bruno Haible  <bruno@clisp.org>
28814
28815         * MODULES.html.sh (func_module): Break long lines.
28816         Suggested by Bruce Korb <bkorb@gnu.org>.
28817
28818 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28819
28820         Speed up by a factor of 1.12.
28821         * gnulib-tool (nl): New variable.
28822         (func_import): Rewrite include directive extraction to only read each
28823         directive once.
28824
28825 2006-09-17  Bruno Haible  <bruno@clisp.org>
28826
28827         * modules/javaversion (Makefile.am): Remove DEFS setting.
28828         (Depends-on): Add configmake, for PKGDATADIR definition.
28829
28830 2006-09-17  Bruno Haible  <bruno@clisp.org>
28831
28832         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28833
28834 2006-09-17  Bruno Haible  <bruno@clisp.org>
28835
28836         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28837         (func_modules_transitive_closure, func_modules_add_dummy,
28838         func_modules_to_filelist, func_import, func_create_testdir,
28839         func_create_megatestdir, ...): Use it wherever possible.
28840         Suggested by Ralf Wildenhues.
28841
28842 2006-09-16  Karl Berry  <karl@gnu.org>
28843
28844         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28845         to avoid sectioning errors.
28846         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28847         [ifinfo]: blank line after @center-ed titles.
28848         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28849         Spell FSF address consistently with others.
28850         (These changes approved by rms.)
28851
28852 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28853
28854         Speed up by a factor of 1.61.
28855         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28856         already checked module names again.
28857
28858 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28859
28860         Speed up by a factor of 1.13.
28861         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28862         for new_files, and the input to func_add_or_update.
28863
28864 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28865
28866         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28867         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28868
28869 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28870
28871         * modules/mkancesdirs (Depends-on): Add fcntl.
28872         * modules/savewd: New file.
28873         * MODULES.html.sh (File system functions): Add savewd.
28874
28875         * modules/configmake (Makefile.am): Add support for the
28876         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28877
28878 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28879
28880         * m4/savewd.m4: New file.
28881
28882 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28883
28884         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28885         (dirchownmod): New arg FD.  All callers changed.
28886         Use FD rather than opening the directory ourself, as opening is
28887         now the caller's responsibility.
28888         * lib/dirchownmod.h: Likewise.
28889         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28890         hosts that require <sys/types.h> before <sys/stat.h>.  Include
28891         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28892         (test_dir): Remove.
28893         (mkancesdirs): Return length of prefix of FILE that has already
28894         been made, or -2 if there is a child doing the work.  Redo
28895         algorithm so that it is O(N) rather than O(N**2).  Optimize away
28896         ".", and treat ".." specially since it might stray back into
28897         already-created areas.  Use a subprocess if necessary.  New arg
28898         WD; all users changed.  MAKE_DIR function should now return 1
28899         if it creates a directory that is not readable.  Return -2 if
28900         a child process is spun off.
28901         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28902         Adjust signature to match code.
28903         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28904         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
28905         all users changed.
28906         * lib/savewd.c, lib/savewd.h: New files.
28907
28908 2006-09-15  Jim Meyering  <jim@meyering.net>
28909
28910         * modules/rename-dest-slash: New module.
28911         * MODULES.html.sh (posix_compat): Add it here.
28912
28913         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28914
28915 2006-09-15  Jim Meyering  <jim@meyering.net>
28916
28917         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28918         file.
28919
28920         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28921
28922 2006-09-15  Jim Meyering  <jim@meyering.net>
28923
28924         * lib/rename-dest-slash.c (has_trailing_slash): Use
28925         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28926         (rpl_rename_dest_slash): Perform the cheaper trailing slash
28927         test before testing whether SRC is a directory.
28928         Suggestions from Bruno Haible.
28929
28930         Avoid a warning about an unused variable.
28931         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28932         into the #ifdef block where it's used.
28933
28934         * lib/rename-dest-slash.c: New file.
28935
28936 2006-09-14  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/allocsa.c: Include <config.h> unconditionally.
28939         * lib/asnprintf.c: Likewise.
28940         * lib/asprintf.c: Likewise.
28941         * lib/c-strcasecmp.c: Likewise.
28942         * lib/c-strcasestr.c: Likewise.
28943         * lib/c-strncasecmp.c: Likewise.
28944         * lib/c-strstr.c: Likewise.
28945         * lib/classpath.c: Likewise.
28946         * lib/clean-temp.c: Likewise.
28947         * lib/concatpath.c: Likewise.
28948         * lib/copy-file.c: Likewise.
28949         * lib/csharpcomp.c: Likewise.
28950         * lib/csharpexec.c: Likewise.
28951         * lib/execute.c: Likewise.
28952         * lib/fatal-signal.c: Likewise.
28953         * lib/findprog.c: Likewise.
28954         * lib/fwriteerror.c: Likewise.
28955         * lib/gl_array_list.c: Likewise.
28956         * lib/gl_array_oset.c: Likewise.
28957         * lib/gl_avltree_list.c: Likewise.
28958         * lib/gl_avltree_oset.c: Likewise.
28959         * lib/gl_avltreehash_list.c: Likewise.
28960         * lib/gl_carray_list.c: Likewise.
28961         * lib/gl_linked_list.c: Likewise.
28962         * lib/gl_linkedhash_list.c: Likewise.
28963         * lib/gl_list.c: Likewise.
28964         * lib/gl_oset.c: Likewise.
28965         * lib/gl_rbtree_list.c: Likewise.
28966         * lib/gl_rbtree_oset.c: Likewise.
28967         * lib/gl_rbtreehash_list.c: Likewise.
28968         * lib/imaxabs.c: Likewise.
28969         * lib/imaxdiv.c: Likewise.
28970         * lib/javacomp.c: Likewise.
28971         * lib/javaexec.c: Likewise.
28972         * lib/javaversion.c: Likewise.
28973         * lib/linebreak.c: Likewise.
28974         * lib/localcharset.c: Likewise.
28975         * lib/lock.c: Likewise.
28976         * lib/mbchar.c: Likewise.
28977         * lib/mbswidth.c: Likewise.
28978         * lib/mkdtemp.c: Likewise.
28979         * lib/pipe.c: Likewise.
28980         * lib/printf-args.c: Likewise.
28981         * lib/printf-parse.c: Likewise.
28982         * lib/progname.c: Likewise.
28983         * lib/progreloc.c: Likewise.
28984         * lib/readlink.c: Likewise.
28985         * lib/sh-quote.c: Likewise.
28986         * lib/stpcpy.c: Likewise.
28987         * lib/stpncpy.c: Likewise.
28988         * lib/strcasecmp.c: Likewise.
28989         * lib/strcasestr.c: Likewise.
28990         * lib/strcspn.c: Likewise.
28991         * lib/striconv.c: Likewise.
28992         * lib/strncasecmp.c: Likewise.
28993         * lib/strnlen1.c: Likewise.
28994         * lib/strstr.c: Likewise.
28995         * lib/strtok_r.c: Likewise.
28996         * lib/tls.c: Likewise.
28997         * lib/tmpdir.c: Likewise.
28998         * lib/unicodeio.c: Likewise.
28999         * lib/unsetenv.c: Likewise.
29000         * lib/vasnprintf.c: Likewise.
29001         * lib/vasprintf.c: Likewise.
29002         * lib/wait-process.c: Likewise.
29003         * lib/xallocsa.c: Likewise.
29004         * lib/xsetenv.c: Likewise.
29005         * lib/xstriconv.c: Likewise.
29006
29007 2006-09-13  Simon Josefsson  <jas@extundo.com>
29008
29009         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
29010         that internally, suggested by Ralf Wildenhues
29011         <Ralf.Wildenhues@gmx.de>.
29012
29013 2006-09-13  Simon Josefsson  <jas@extundo.com>
29014
29015         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
29016         @LIBOBJS@.
29017         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29018
29019 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29020
29021         * lib/_fpending.c: Include <config.h> unconditionally, since we no
29022         longer worry about uses that don't define HAVE_CONFIG_H.
29023         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
29024         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
29025         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
29026         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
29027         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
29028         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
29029         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
29030         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
29031         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
29032         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
29033         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
29034         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
29035         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
29036         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
29037         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
29038         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
29039         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
29040         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
29041         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
29042         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
29043         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
29044         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
29045         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
29046         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
29047         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
29048         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
29049         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
29050         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
29051         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
29052         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
29053         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
29054         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
29055         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
29056         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
29057         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
29058         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
29059         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
29060         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
29061         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
29062         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
29063         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
29064         Likewise.
29065
29066 2006-09-13  Eric Blake  <ebb9@byu.net>
29067
29068         * lib/getopt.c: Fix typo in last commit.
29069
29070 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29071
29072         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
29073         dgettext.
29074
29075 2006-09-12  Jim Meyering  <jim@meyering.net>
29076
29077         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
29078         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
29079         Reported by Nelson H. F. Beebe.
29080
29081 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29082
29083         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
29084         program_invocation_name and program_invocation_short_name are
29085         initialized.
29086         * lib/argp-namefrob.h: Move declarations of program_invocation_name
29087         and program_invocation_short_name to argp.h, so they are visible
29088         to user programs.
29089         * lib/argp.h: Likewise
29090
29091 2006-09-10  Bruno Haible  <bruno@clisp.org>
29092
29093         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29094         m4/inttypes_h.m4, m4/uintmax_t.m4.
29095
29096 2006-09-10  Bruno Haible  <bruno@clisp.org>
29097
29098         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
29099         gl_AC_TYPE_UINTMAX_T.
29100
29101 2006-09-10  Bruno Haible  <bruno@clisp.org>
29102
29103         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
29104
29105 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29106
29107         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
29108         convention.  Text proposed by Bruno Haible.
29109         (struct argp_option): Document the use of N_() wrappers.
29110
29111         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
29112         '\v', and translate the two parts separately, instead of feeding
29113         the whole string to gettext.  This allows to exclude
29114         '\v' from the strings visible to the translator by writing doc
29115         strings as N_("..") "\v" N_("..").
29116
29117 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
29118
29119         * config/srclist.txt: Undo latest change; the bug was fixed.
29120
29121 2006-09-09  Bruno Haible  <bruno@clisp.org>
29122
29123         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
29124         assignments if building a library without libtool.
29125         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
29126         in func_emit_lib_Makefile_am.
29127         (func_import): When building a static library libfoo.a, arrange to
29128         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
29129         (func_create_testdir): Likewise.
29130         * modules/gc (configure.ac, Makefile.am): If building statically,
29131         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
29132         * modules/iconvme (configure.ac, Makefile.am): Likewise.
29133         * modules/striconv (configure.ac, Makefile.am): Likewise.
29134         Based on a suggestion by Ralf Wildenhues.
29135
29136 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29139         Check for unistd.h too, since Autoconf doesn't assume POSIX.
29140         Also:
29141
29142         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29143         Add year_2050_test to catch glibc bug 2821
29144         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29145
29146         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29147         Prefer #ifdef to #if.
29148
29149         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29150         Return from 'main' instead of calling 'exit'.
29151
29152 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29153
29154         * lib/mktime.c (guess_time_tm): Fix bug where mktime
29155         returned the maximum time_t value rather than (time_t) -1.
29156         Problem originally reported by William Bardwell
29157         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29158
29159         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29160         Moved to here ...
29161         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29162         ... from here.
29163
29164 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29165
29166         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29167         2821 is fixed.
29168
29169 2006-09-08  Jim Meyering  <jim@meyering.net>
29170
29171         Don't make generated files read-only.  That would bother too many
29172         people.  However, do retain the ability to work when targets are
29173         read-only: remove the destination and temporary files before writing
29174         them (when generated via sed or echo), or by using the -f option for
29175         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
29176         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29177         * modules/byteswap, modules/configmake, modules/fcntl:
29178         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29179         * modules/localcharset, modules/netinet_in, modules/poll:
29180         * modules/stdbool, modules/stdint, modules/sys_select:
29181         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29182
29183 2006-09-08  Jim Meyering  <jim@meyering.net>
29184
29185         Avoid new build failure on FreeBSD 6.0.
29186         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29187         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
29188         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29189
29190 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29191
29192         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29193
29194 2006-09-07  Jim Meyering  <jim@meyering.net>
29195
29196         Fix global typo in last change: use chmod u-w, not chmod u-x.
29197         Spotted by Paul Eggert and Bruce Korb.
29198         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29199         * modules/byteswap, modules/configmake, modules/fcntl:
29200         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29201         * modules/localcharset, modules/netinet_in, modules/poll:
29202         * modules/stdbool, modules/stdint, modules/sys_select:
29203         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29204
29205 2006-09-06  Jim Meyering  <jim@meyering.net>
29206
29207         Make generated files be read-only.
29208         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29209         Ensure that each generated file is now read-only.
29210         * modules/argz: Likewise.
29211         * modules/arpa_inet: Likewise.
29212         * modules/byteswap: Likewise.
29213         * modules/configmake: Likewise.
29214         * modules/fcntl: Likewise.
29215         * modules/fnmatch: Likewise.
29216         * modules/getopt: Likewise.
29217         * modules/glob: Likewise.
29218         * modules/inttypes: Likewise.
29219         * modules/netinet_in: Likewise.
29220         * modules/poll: Likewise.
29221         * modules/stdbool: Likewise.
29222         * modules/stdint: Likewise.
29223         * modules/sys_select: Likewise.
29224         * modules/sys_socket: Likewise.
29225         * modules/sys_stat: Likewise.
29226         * modules/sysexits: Likewise.
29227         * modules/localcharset: Same as above, but continue using temporary
29228         file named "t-$@" (why different?) rather than the "$@-t" used
29229         everywhere else.
29230
29231         * modules/sysexits (Makefile.am): Replace literal occurrences
29232         of "sysexit.h" more readable, and more consistent, "$@".
29233
29234 2006-09-06  Bruno Haible  <bruno@clisp.org>
29235
29236         * modules/striconv: New file.
29237         * modules/xstriconv: New file.
29238         * MODULES.html.sh (Internationalization functions): Add striconv,
29239         xstriconv.
29240
29241 2006-09-06  Bruno Haible  <bruno@clisp.org>
29242
29243         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29244         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29245         not using libtool correctly.
29246
29247 2006-09-06  Bruno Haible  <bruno@clisp.org>
29248
29249         * lib/striconv.h: New file.
29250         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29251         iconvstring.c.
29252         * lib/xstriconv.h: New file.
29253         * lib/xstriconv.c: New file.
29254
29255 2006-09-06  Bruno Haible  <bruno@clisp.org>
29256
29257         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29258         lib_..._LDFLAGS.
29259
29260 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29261
29262         * lib/argz_.h: Sync from Libtool.
29263
29264         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29265                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29266
29267         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29268
29269 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29270
29271         * modules/trim: New file.
29272
29273 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29274
29275         * lib/trim.h: New file.
29276         * lib/trim.c: New file.
29277
29278 2006-09-05  Bruno Haible  <bruno@clisp.org>
29279
29280         * MODULES.html.sh (String handling): Add trim.
29281
29282 2006-09-04  Karl Berry  <karl@gnu.org>
29283
29284         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29285         until next release.
29286
29287 2006-09-03  Bruno Haible  <bruno@clisp.org>
29288
29289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29290         correctly.
29291
29292 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29293
29294         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29295         not gl_GETLOADAVG.  Omit unneeded semicolons.
29296         Problems reported by Ralf Wildenhues in
29297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29298         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29299         at the end, which is the usual gnulib style.
29300
29301         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29302         of doing all the work ourselves.
29303         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29304         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29305
29306 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29309         Problem reported by Ralf Wildenhues in
29310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29311
29312         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29313         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29314
29315 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29316
29317         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29318         yesterday's patch by changing test -n to test -z.
29319
29320 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29323         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29324         the former is now obsolescent.
29325
29326         * modules/chdir-long (Depends-on): Add fcntl.
29327
29328 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29329
29330         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29331         obsolescent, and programs should use gnulib instead.
29332         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29333         but with prefixes changed.
29334
29335 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29338         or stdbool.h, because they might not exist while configuring.
29339
29340         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29341         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29342         does that for us.
29343         (O_DIRECTORY): Remove.
29344
29345 2006-08-31  Eric Blake  <ebb9@byu.net>
29346
29347         * gnulib-tool: Don't let emacs change spaces to TAB.
29348
29349 2006-08-31  Bruno Haible  <bruno@clisp.org>
29350
29351         * gnulib-tool: When calling func_import more than once, do it in a
29352         subshell.
29353         Reported by Eric Blake <ebb9@byu.net>.
29354
29355 2006-08-31  Bruno Haible  <bruno@clisp.org>
29356
29357         * gnulib-tool (nl): Remove variable.
29358         (sed_transform_lib_file): Use more robust test for config-h module.
29359         (func_import): Fix typo in 2006-08-25 patch.
29360
29361 2006-08-31  Bruno Haible  <bruno@clisp.org>
29362
29363         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29364         specified, augment Makefile.am variables instead of assigning them.
29365
29366 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         Work around a bug in both the Linux and SunOS 64-bit kernels:
29369         nanosleep mishandles sleeps for longer than 2**31 seconds.
29370         Problem reported by Frank v Waveren in
29371         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29373         Check for nanosleep bug.
29374         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29375
29376 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29377
29378         Work around a bug in both the Linux and SunOS 64-bit kernels:
29379         nanosleep mishandles sleeps for longer than 2**31 seconds.
29380         Problem reported by Frank v Waveren in
29381         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29382         * lib/nanosleep.c (BILLION): New constant.
29383         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29384         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29385         implementation.
29386
29387 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29388
29389         * modules/nanosleep (Depends-on): Add gettime.
29390
29391 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29392         and Simon Josefsson  <jas@extundo.com>
29393         and Oskar Liljeblad  <oskar@osk.mine.nu>
29394
29395         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29396         * gnulib-tool (func_import): New license type 'unmodifiable license
29397         text'.
29398         * modules/fdl: Use it.  Longer description.
29399         * module/gpl, module/lgpl: New files.
29400
29401 2006-08-30  Jim Meyering  <jim@meyering.net>
29402
29403         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29404         shadowing the parameter.
29405
29406 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29407
29408         Sync from Libtool:
29409
29410         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29411
29412         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29413         sharing with gnulib.  Report by Eric Blake.
29414
29415 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29416
29417         * modules/isapipe: New file.
29418         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29419
29420 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         * modules/configmake (Makefile.am): Add a comment, and omit
29423         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29424         by Bruno Haible.
29425
29426 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29427
29428         * m4/isapipe.m4: New file.
29429
29430 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * lib/isapipe.c, lib/isapipe.h: New files.
29433
29434 2006-08-29  Jim Meyering  <jim@meyering.net>
29435
29436         * modules/configmake (Makefile.am): Make configmake.h depend on
29437         Makefile.  Otherwise, a stale configmake.h could hang around.
29438
29439 2006-08-29  Eric Blake  <ebb9@byu.net>
29440
29441         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29442         resolution of upstream bug 3044.
29443
29444 2006-08-29  Bruno Haible  <bruno@clisp.org>
29445
29446         * modules/localcharset (Depends-on): Add configmake.
29447         (Makefile.am): Remove setting of LIBDIR through DEFS.
29448
29449 2006-08-29  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29452         defined.
29453
29454 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29455
29456         * modules/fcntl: New file.
29457         * modules/chdir-safer (Depends-on): Add fcntl.
29458         * modules/fts: Likewise.
29459         * modules/mkdir-p: Likewise.
29460
29461         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29462         This undoes the most recent change, since we're now addressing the
29463         problem in a different way.
29464
29465         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29466         into output, since the output might be called Makefile.am even
29467         if $makefile_name is something different.
29468         (func_import): Use $makefile_am rather than
29469         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29470         empty.
29471
29472         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29473
29474 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29475
29476         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29477         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29478         recent change to stdint.m4, since we're now addressing the problem in a
29479         different way.
29480
29481 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29482
29483         * m4/fcntl_h.m4: New file.
29484
29485 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29486
29487         * lib/fcntl_.h: New file.
29488         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29489         the fcntl module.
29490         * lib/dirchownmod.c: Likewise.
29491         * lib/fts.c: Likewise.
29492
29493         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29494         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29495         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29496         just before including <inttypes.h>, to avoid circular inclusion.
29497
29498 2006-08-28  Jim Meyering  <jim@meyering.net>
29499
29500         * doc/visibility.texi: Actually read and correct the grammar of the
29501         sentence affected by yesterday's change.
29502
29503 2006-08-28  Eric Blake  <ebb9@byu.net>
29504
29505         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29506         needs wrapper.
29507
29508 2006-08-28  Eric Blake  <ebb9@byu.net>
29509
29510         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29511
29512 2006-08-28  Eric Blake  <ebb9@byu.net>
29513
29514         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29515
29516 2006-08-28  Bruno Haible  <bruno@clisp.org>
29517
29518         * modules/c-strstr: New file, from GNU gettext.
29519         * MODULES.html.sh (String handling): Add c-strstr.
29520
29521 2006-08-28  Bruno Haible  <bruno@clisp.org>
29522
29523         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29524         macros.
29525         Reported by Eric Blake.
29526
29527 2006-08-28  Bruno Haible  <bruno@clisp.org>
29528
29529         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29530         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29531         * lib/vasprintf.c: Include errno.h, limits.h.
29532         (EOVERFLOW): New fallback definition.
29533         (vasprintf): Test here whether the string length is > INT_MAX.
29534         * lib/vsnprintf.c: Include errno.h, limits.h.
29535         (EOVERFLOW): New fallback definition.
29536         (vsnprintf): Fix bug when generated string was too long for the buffer.
29537         Test here whether the string length is > INT_MAX.
29538
29539 2006-08-28  Bruno Haible  <bruno@clisp.org>
29540
29541         * lib/inttypes_.h (SCNX*): Remove definitions.
29542         Reported by Eric Blake.
29543
29544 2006-08-28  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/c-strstr.h: New file, from GNU gettext.
29547         * lib/c-strstr.c: New file, from GNU gettext.
29548
29549 2006-08-28  Bruno Haible  <bruno@clisp.org>
29550
29551         * gnulib-tool: Reorder some statements.
29552
29553 2006-08-28  Bruno Haible  <bruno@clisp.org>
29554
29555         * gnulib-tool: New option --makefile-name.
29556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29557         $makefile_name.
29558         (func_import): Write $makefile_name to the cache file, and read it from
29559         there unless explicitly specified. Use $makefile_name as file name
29560         instead of Makefile.am. Adjust the recommendations accordingly.
29561
29562 2006-08-28  Bruno Haible  <bruno@clisp.org>
29563
29564         * gnulib-tool (func_verify_module): Check against misapplying patch.
29565
29566 2006-08-28  Bruno Haible  <bruno@clisp.org>
29567
29568         * gnulib-tool (func_relativize, func_relconcat): New functions.
29569         Give an error if --local-dir is given with --update.
29570         Remove trailing slashes from $local_gnulib_dir.
29571         (func_import): Store the relativized $local_gnulib_dir in
29572         gnulib-cache.m4, and read it from there if not specified explicitly.
29573
29574 2006-08-28  Bruno Haible  <bruno@clisp.org>
29575
29576         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29577         is the current directory. Respect also $local_gnulib_dir.
29578
29579 2006-08-28  Bruno Haible  <bruno@clisp.org>
29580             Simon Josefsson  <jas@extundo.com>
29581
29582         BeOS portability.
29583         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29584
29585 2006-08-27  Jim Meyering  <jim@meyering.net>
29586
29587         * doc/visibility.texi: Remove duplicate word: "pointer".
29588
29589 2006-08-26  Bruno Haible  <bruno@clisp.org>
29590
29591         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29592         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29593         (Makefile.am): Create inttypes.h from inttypes_.h.
29594         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29595
29596         * modules/imaxabs: New file.
29597
29598         * modules/imaxdiv: New file.
29599
29600 2006-08-26  Bruno Haible  <bruno@clisp.org>
29601
29602         * m4/inttypes.m4: New file.
29603         * m4/_inttypes_h.m4: Remove file.
29604         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29605         PRI_MACROS_BROKEN.
29606         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29607
29608         * m4/imaxabs.m4: New file.
29609
29610         * m4/imaxdiv.m4: New file.
29611
29612 2006-08-26  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/inttypes_.h: New file.
29615         * lib/inttypes.h: Remove file.
29616         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29617
29618         * lib/imaxabs.c: New file.
29619
29620         * lib/imaxdiv.c: New file.
29621
29622 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29623
29624         New config-h module, so that "make" output needn't be cluttered
29625         by -DHAVE_CONFIG_H.
29626         * MODULES.html.sh (Support for building libraries and executables):
29627         Add config-h.
29628         * modules/config-h: New file.
29629         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29630         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29631         the config-h module is used.
29632
29633         New configmake module, so that "make" output needn't be cluttered
29634         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29635         * MODULES.html.sh (Support for building libraries and executables):
29636         Add configmake.
29637         * modules/configmake: New file.
29638
29639 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29640
29641         * m4/config-h.m4: New file.
29642
29643 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29644
29645         * config/srclist.txt: Add elisp-comp.
29646
29647 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29648
29649         * MODULES.html.sh (Support for building libraries and executables):
29650         Add elisp-comp.
29651         * build-aux/elisp-comp: New file.
29652         * modules/elisp-comp: New file.
29653
29654 2006-08-24  Bruno Haible  <bruno@clisp.org>
29655
29656         * gnulib-tool (func_create_testdir): Use non-default values of
29657         sourcebase and m4base.
29658
29659 2006-08-24  Bruno Haible  <bruno@clisp.org>
29660
29661         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29662         HTML structure.
29663
29664 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29665
29666         * modules/openat (Depends-on): Add lchown.
29667
29668 2006-08-23  Bruno Haible  <bruno@clisp.org>
29669
29670         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29671         of gl_LOCK_EARLY instead of gl_LOCK.
29672
29673 2006-08-23  Bruno Haible  <bruno@clisp.org>
29674
29675         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29676         on OSF/1 to no.
29677         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29678
29679 2006-08-23  Bruno Haible  <bruno@clisp.org>
29680
29681         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29682         as unusable.
29683
29684         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29685         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29686         (gl_LOCK): New macro.
29687
29688 2006-08-22  Simon Josefsson  <jas@extundo.com>
29689
29690         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29691         to md5 module.
29692
29693 2006-08-22  Simon Josefsson  <jas@extundo.com>
29694
29695         * MODULES.html.sh: Add "Support for maintaining and release
29696         projects".
29697
29698         * build-aux/gnupload: New file, from coreutils.
29699
29700 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29701
29702         Avoid the need for AC_LIBSOURCES in m4 macros.
29703         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29704         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29705         * modules/check-version (EXTRA_DIST): Add check-version.h.
29706         * modules/crc (EXTRA_DIST): Add crc.h.
29707         * modules/des (EXTRA_DIST): Add des.h.
29708         * modules/gc (EXTRA_DIST): Add gc.h.
29709         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29710         * modules/getline (EXTRA_DIST): Add getline.h.
29711         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29712         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29713         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29714         * modules/md2 (EXTRA_DIST): Add md2.h.
29715         * modules/md4 (EXTRA_DIST): Add md4.h.
29716         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29717         * modules/read-file (EXTRA_DIST): Add read-file.h.
29718         * modules/readline (EXTRA_DIST): Add readline.h.
29719         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29720         rijndael-api-fst.h.
29721
29722 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         * m4/rijndael.m4 (gl_ARCFOUR):
29725         * m4/arctwo.m4 (gl_ARCTWO):
29726         * m4/check-version.m4 (gl_CHECK_VERSION):
29727         * m4/crc.m4 (gl_CRC):
29728         * m4/des.m4 (gl_DES):
29729         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29730         * m4/gc.m4 (gl_GC):
29731         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29732         * m4/getline.m4 (gl_FUNC_GETLINE):
29733         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29734         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29735         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29736         * m4/md2.m4 (gl_MD2):
29737         * m4/md4.m4 (gl_MD4):
29738         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29739         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29740         * m4/readline.m4 (gl_FUNC_READLINE):
29741         * m4/rijndael.m4 (gl_RIJNDAEL):
29742         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29743         to get the necessary .h files and whatnot.
29744
29745 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29746
29747         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29748         gnulib rather than the other way around.
29749         * config/srclistvars.sh (COREUTILS): Remove.
29750
29751 2006-08-22  Jim Meyering  <jim@meyering.net>
29752
29753         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29754
29755         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29756
29757 2006-08-22  Eric Blake  <ebb9@byu.net>
29758
29759         * modules/regexprops-generic: New file.
29760         * MODULES.html.sh (Support for building documentation): List it.
29761
29762 2006-08-22  Eric Blake  <ebb9@byu.net>
29763
29764         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29765         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29767         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29768
29769 2006-08-22  Bruno Haible  <bruno@clisp.org>
29770
29771         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29772         and lib_LTLIBRARIES like the other lib_* variables.
29773
29774 2006-08-22  Bruno Haible  <bruno@clisp.org>
29775
29776         * build-aux/x-to-1.in: New file, from GNU gettext.
29777
29778 2006-08-22  Bruno Haible  <bruno@clisp.org>
29779
29780         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29781         <utmpx.h> exists.
29782
29783 2006-08-22  Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29786         <utmpx.h> exists.
29787
29788 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29789
29790         BeOS portability.
29791         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29792         exist.
29793         Problem reported by Bruno Haible.
29794
29795 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29796
29797         Avoid the need for AC_LIBSOURCES in m4 macros.
29798         * modules/acl (EXTRA_DIST): Add acl.h.
29799         * modules/argmatch (Files): Add m4/argmatch.m4.
29800         (configure.ac): Add gl_ARGMATCH.
29801         (EXTRA_DIST): Renamed from lib_SOURCES, for
29802         consistency with the other modules.  Remove argmatch.c.
29803         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29804         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29805         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29806         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29807         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29808         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29809         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29810         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29811         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29812         * modules/closeout (EXTRA_DIST): Add closeout.h.
29813         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29814         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29815         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29816         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29817         dirname.h; remove basename.c and stripslash.c.
29818         * modules/exclude (EXTRA_DIST): Add exclude.h.
29819         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29820         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29821         * modules/file-type (EXTRA_DIST): Add file-type.h.
29822         * modules/filemode (EXTRA_DIST): Add filemode.h.
29823         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29824         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29825         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29826         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29827         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29828         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29829         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29830         * modules/getdate (EXTRA_DIST): Add getdate.c.
29831         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29832         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29833         * modules/getpass (EXTRA_DIST): Add getpass.h.
29834         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29835         * modules/group-member (EXTRA_DIST): Add group-member.h.
29836         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29837         * modules/hash (EXTRA_DIST): Add hash.h.
29838         * modules/human (EXTRA_DIST): Add human.h.
29839         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29840         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29841         * modules/lchown (EXTRA_DIST): Add lchown.h.
29842         * modules/long-options (EXTRA_DIST): Add long-options.h.
29843         * modules/lstat (EXTRA_DIST): Add lstat.h.
29844         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29845         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29846         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29847         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29848         * modules/memxor (EXTRA_DIST): Add memxor.h.
29849         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29850         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29851         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29852         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29853         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29854         * modules/physmem (EXTRA_DIST): Add physmem.h.
29855         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29856         * modules/posixver (EXTRA_DIST): Add posixver.h.
29857         * modules/quote (EXTRA_DIST): Add quote.h.
29858         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29859         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29860         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29861         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29862         regex_internal.h regexec.c.
29863         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29864         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29865         * modules/same (EXTRA_DIST): Add same.h.
29866         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29867         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29868         * modules/savedir (EXTRA_DIST): Add savedir.h.
29869         * modules/sha1 (EXTRA_DIST): Add sha1.h.
29870         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29871         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29872         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29873         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29874         * modules/strdup (EXTRA_DIST): Add strdup.h.
29875         * modules/strftime (EXTRA_DIST): Add strftime.h.
29876         * modules/strndup (EXTRA_DIST): Add strndup.h.
29877         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29878         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29879         * modules/time_r (EXTRA_DIST): Add time_r.h.
29880         * modules/timespec (EXTRA_DIST): Add timespec.h.
29881         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29882         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29883         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29884         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29885         * modules/userspec (EXTRA_DIST): Add userspec.h.
29886         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29887         * modules/utimens (EXTRA_DIST): Add utimens.h.
29888         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29889         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29890         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29891         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29892         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29893         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29894         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29895         * modules/yesno (EXTRA_DIST): Add yesno.h.
29896
29897 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29898
29899         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29900
29901         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29902         * m4/dev-ino.m4, same-inode.m4: Remove.
29903
29904         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29905         * m4/acl.m4 (AC_FUNC_ACL):
29906         * m4/backupfile.m4 (gl_BACKUPFILE):
29907         * m4/c-strtod.m4 (gl_C99_STRTOLD):
29908         * m4/canon-host.m4 (gl_CANON_HOST):
29909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29910         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29911         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29912         * m4/cloexec.m4 (gl_CLOEXEC):
29913         * m4/close-stream.m4 (gl_CLOSE_STREAM):
29914         * m4/closeout.m4 (gl_CLOSEOUT):
29915         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29916         * m4/dirname.m4 (gl_DIRNAME):
29917         * m4/exclude.m4 (gl_EXCLUDE):
29918         * m4/exitfail.m4 (gl_EXITFAIL):
29919         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29920         * m4/file-type.m4 (gl_FILE_TYPE):
29921         * m4/filemode.m4 (gl_FILEMODE):
29922         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29923         * m4/fpending.m4 (gl_FUNC_FPENDING):
29924         * m4/fprintftime.m4 (gl_FPRINTFTIME):
29925         * m4/fts.m4 (gl_FUNC_FTS):
29926         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29927         * m4/getdate.m4 (gl_GETDATE):
29928         * m4/gethrxtime.m4 (gl_GETHRXTIME):
29929         * m4/getpagesize.m4 (gl_GETPAGESIZE):
29930         * m4/getpass.m4 (gl_FUNC_GETPASS):
29931         * m4/gettime.m4 (gl_GETTIME):
29932         * m4/getugroups.m4 (gl_GETUGROUPS):
29933         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29934         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29935         * m4/hard-locale.m4 (gl_HARD_LOCALE):
29936         * m4/hash.m4 (gl_HASH):
29937         * m4/idcache.m4 (gl_IDCACHE):
29938         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29939         * m4/lchown.m4 (gl_FUNC_LCHOWN):
29940         * m4/long-options.m4 (gl_LONG_OPTIONS):
29941         * m4/lstat.m4 (gl_FUNC_LSTAT):
29942         * m4/md5.m4 (gl_MD5):
29943         * m4/memcasecmp.m4 (gl_MEMCASECMP):
29944         * m4/memcoll.m4 (gl_MEMCOLL):
29945         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29946         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29947         * m4/memxor.m4 (gl_MEMXOR):
29948         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29949         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29950         * m4/modechange.m4 (gl_MODECHANGE):
29951         * m4/mountlist.m4 (gl_MOUNTLIST):
29952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29953         * m4/openat.m4 (gl_FUNC_OPENAT):
29954         * m4/pathmax.m4 (gl_PATHMAX):
29955         * m4/physmem.m4 (gl_PHYSMEM):
29956         * m4/posixtm.m4 (gl_POSIXTM):
29957         * m4/posixver.m4 (gl_POSIXVER):
29958         * m4/quote.m4 (gl_QUOTE):
29959         * m4/quotearg.m4 (gl_QUOTEARG):
29960         * m4/readtokens.m4 (gl_READTOKENS):
29961         * m4/readutmp.m4 (gl_READUTMP):
29962         * m4/regex.m4 (gl_REGEX):
29963         * m4/safe-read.m4 (gl_SAFE_READ):
29964         * m4/safe-write.m4 (gl_SAFE_WRITE):
29965         * m4/same.m4 (gl_SAME):
29966         * m4/save-cwd.m4 (gl_SAVE_CWD):
29967         * m4/savedir.m4 (gl_SAVEDIR):
29968         * m4/settime.m4 (gl_SETTIME):
29969         * m4/sha1.m4 (gl_SHA1):
29970         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29971         * m4/stat-macros.m4 (gl_STAT_MACROS):
29972         * m4/stat-time.m4 (gl_STAT_TIME):
29973         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29974         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29975         * m4/strdup.m4 (gl_FUNC_STRDUP):
29976         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29977         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29978         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29979         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29980         * m4/time_r.m4 (gl_TIME_R):
29981         * m4/timespec.m4 (gl_TIMESPEC):
29982         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29983         * m4/unlinkdir.m4 (gl_UNLINKDIR):
29984         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29985         * m4/userspec.m4 (gl_USERSPEC):
29986         * m4/utimecmp.m4 (gl_UTIMECMP):
29987         * m4/utimens.m4 (gl_UTIMENS):
29988         * m4/xalloc.m4 (gl_XALLOC):
29989         * m4/xgetcwd.m4 (gl_XGETCWD):
29990         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29991         * m4/xreadlink.m4 (gl_XREADLINK):
29992         * m4/xstrtod.m4 (gl_XSTRTOD):
29993         * m4/yesno.m4 (gl_YESNO):
29994         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29995         to get the necessary .h files and whatnot.
29996
29997 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
29998             Bruno Haible  <bruno@clisp.org>
29999
30000         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
30001         /bin/sh understanding of '!' conditional negation.
30002
30003 2006-08-21  Jim Meyering  <jim@meyering.net>
30004
30005         * modules/openat (Depends-on): Really alphabetize.
30006
30007         * modules/acl (Depends-on): Add error and quote.
30008
30009         * check-module (find_included_lib_files): Add at-func.c to the
30010         ok-to-include-more-than-once white list.
30011
30012         * modules/openat (Depends-on): Add lstat.  Alphabetize.
30013
30014 2006-08-21  Bruno Haible  <bruno@clisp.org>
30015
30016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30017         Emit a pkgdata_DATA variable only if some snippets add contents to it.
30018         Reported by Martin Lambers <marlam@marlam.de>.
30019
30020 2006-08-21  Bruno Haible  <bruno@clisp.org>
30021
30022         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
30023         specify an installation location, don't emit a noinst_LIBRARIES or
30024         noinst_LTLIBRARIES assignment.
30025
30026 2006-08-21  Bruno Haible  <bruno@clisp.org>
30027
30028         BeOS portability.
30029         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
30030         BeOS has mbrtowc() but no <wctype.h>.
30031
30032 2006-08-21  Bruno Haible  <bruno@clisp.org>
30033
30034         BeOS portability.
30035         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
30036         exist.
30037
30038 2006-08-21  Bruno Haible  <bruno@clisp.org>
30039
30040         BeOS portability.
30041         * lib/mbchar.h: Include <wctype.h> only if it exists.
30042
30043 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30044
30045         Remove files that are no longer needed by their respective modules.
30046         * m4/obstack.m4: Remove.
30047         * m4/strerror_r.m4: Remove.
30048         * m4/uint32_t.m4: Remove.
30049         * m4/uintptr_t.m4: Remove.
30050         * m4/ullong_max.m4: Remove.
30051         * m4/xstrtoimax.m4: Remove.
30052         * m4/xstrtoumax.m4: Remove.
30053
30054         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
30055         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
30056         dependencies now capture this.
30057
30058         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30059         Do not use AC_LIBSOURCES, since gnulib modules now do this.
30060         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
30061         * m4/human.m4 (gl_HUMAN): Likewise.
30062         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
30063         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
30064
30065         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
30066
30067         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
30068         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
30069         stdint.
30070         * m4/human.m4 (gl_HUMAN): Likewise.
30071         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
30072         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
30073         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30074         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30075         * m4/xstrtol (gl_XSTRTOL): Likewise.
30076
30077         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
30078         AC_TYPE_LONG_LONG_INT.
30079         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30080         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
30081         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
30082         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30083
30084         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
30085         on stdbool.
30086
30087         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
30088         (gl_PREREQ_XSTRTOUL): Remove.
30089
30090         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
30091
30092         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
30093         mode.
30094
30095 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30096
30097         Add and change modules to make it easier for coreutils to use
30098         gnulib-tool.
30099         * modules/backupfile (Files): Remove m4/d-ino.m4.
30100         (Depends-on): Add d-ino.
30101         * modules/cycle-check (Depends-on): Add stdint.
30102         (lib_SOURCES): Add cycle-check.h.
30103         * modules/d-ino: New module.
30104         * modules/d-type: New module.
30105         * modules/error (Files): Remove m4/strerror_r.m4.
30106         * modules/filemode (Files): Add m4/st_dm_mode.m4.
30107         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
30108         m4/inttypes_h.m4, m4/uintmax_t.m4.
30109         (Depends-on): Add stdint.
30110         (lib_SOURCES): Add fsusage.h.
30111         * modules/getcwd (Files): Remove d-ino.m4.
30112         (Depends-on): Add d-ino.
30113         * modules/getndelim2 (Depends-on): Add stdint.
30114         * modules/glob (Files): Remove m4/d-type.m4.
30115         (Depends-on): Add d-type.
30116         * modules/host-os: New module.
30117         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
30118         m4/inttypes_h.m4, m4/uintmax_t.m4.
30119         * Depends-on: Add stdint.
30120         (lib_SOURCES): Add human.h.
30121         * modules/inttostr (Files): Remove m4/intmax_t.m4,
30122         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
30123         m4/uintmax_t.m4, m4/ulonglong.m4.
30124         (Depends-on): Add stdint.
30125         (EXTRA_DIST): Add inttostr.h.
30126         * modules/lchmod: New module.
30127         * modules/link-follow: New module.
30128         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
30129         (Depends-on): Add lchmod.
30130         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
30131         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
30132         (Depends-on): Add stdint.
30133         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
30134         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
30135         (Depends-on): Add stdint.
30136         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
30137         * modules/perl: New module.
30138         * modules/regex (Depends-on): Add stdint.
30139         * modules/rmdir-errno: New module.
30140         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30141         m4/intmax_t.m4.
30142         (Depends-on): Add stdint.
30143         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30144         m4/uintmax_t.m4.
30145         (Depends-on): Add stdint.
30146         * modules/unlink-busy: New module.
30147         * modules/utimecmp (Depends-on): Add stdint.
30148         * modules/uptime: New module.
30149         * modules/winsz-ioctl: New module.
30150         * modules/winsz-termios: New module.
30151         * modules/xnanosleep (Depends-on): Add nanosleep.
30152         * modules/ullong_max: Remove.
30153         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30154         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30155         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30156         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30157         (Depends-on): Add inttypes.
30158         (lib_SOURCES): Add xstrtol.h.
30159         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30160         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30161         * MODULES.html.sh: Move 'assert' into the assert section.
30162         Move 'dummy' into the linking section.
30163         Remove ullong_max.
30164         Add section for compatibility checks for POSIX:2001 functions,
30165         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30166         winsz-ioctl, and winsz-termios into it.
30167         Add lchmod.
30168         Add top-level Misc section and put host-os, perl, and uptime
30169         into it.
30170
30171 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30172
30173         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30174         now assume the stdint module.  Do not include inttypes.h.
30175         * lib/fsusage.h: Likewise.
30176         * lib/getndelim2.c: Likewise.
30177         * lib/human.h: Likewise.
30178         * lib/inttostr.h: Likewise.
30179         * lib/obstack.c: Likewise.
30180         * lib/regex_internal.h: Likewise.
30181         * lib/tempname.c: Likewise.
30182         * lib/utimecmp.c: Likewise.
30183         * lib/xstrtol.h: Likewise.
30184
30185         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30186
30187         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30188         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30189         * lib/xtime.h: Likewise.
30190
30191 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30192
30193         * modules/openat (Files): Add lib/fchmodat.c.
30194         Fixes problem reported by Jay Youngman.
30195
30196 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30197
30198         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
30199         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
30200
30201 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30202             Bruno Haible  <bruno@clisp.org>
30203
30204         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30205         and is a script that invokes bison. Tighten the code. Add comments.
30206
30207 2006-08-18  Jim Meyering  <jim@meyering.net>
30208
30209         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30210         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30211         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30212         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30213
30214 2006-08-18  Bruno Haible  <bruno@clisp.org>
30215
30216         * modules/bison-i18n: New file.
30217         * MODULES.html.sh (Internationalization functions): Add it.
30218
30219 2006-08-18  Bruno Haible  <bruno@clisp.org>
30220
30221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30222         sys/statvfs.h. When getmntinfo was found, check its declaration and
30223         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30224
30225 2006-08-18  Bruno Haible  <bruno@clisp.org>
30226
30227         * m4/bison-i18n.m4: New file, from bison.
30228
30229 2006-08-18  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30232         (ME_DUMMY): Treat "kernfs" as a dummy.
30233         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30234
30235 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30236
30237         Update from coreutils.
30238
30239         2006-08-15  Jim Meyering  <jim@meyering.net>
30240
30241         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30242
30243         2006-01-17  Jim Meyering  <jim@meyering.net>
30244
30245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30246
30247         2006-01-11  Jim Meyering  <jim@meyering.net>
30248
30249         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30250         Check for the lchmod function.
30251
30252 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         Update from coreutils.
30255
30256         * lib/__fpending.h: Add copyright notice.
30257         * lib/fprintftime.h: Likewise.
30258         * lib/savedir.c: Use (C) in copyright notice.
30259         * lib/savedir.h: Likewise.
30260
30261         2006-08-15  Jim Meyering  <jim@meyering.net>
30262
30263         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30264         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30265         in support of the EXPECTED_ERRNO macro.
30266         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30267         definitions.  Instead, define the appropriate symbols and include
30268         "at-func.c".
30269         * lib/mkdirat.c (mkdirat): Likewise.
30270         * lib/fchmodat.c (fchmodat): Likewise.
30271         (ENOSYS): Remove definition.
30272         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30273         it.  Don't include "unistd--.h" -- it wasn't ever used.
30274
30275         2006-01-17  Jim Meyering  <jim@meyering.net>
30276
30277         Rewrite fts.c not to change the current working directory,
30278         by using openat, fstatat, fdopendir, etc..
30279
30280         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30281         (HAVE_OPENAT_SUPPORT): Define.
30282         [_LIBC] (fchdir): Don't undef or define; no longer used.
30283         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30284         Now, this `function' always succeeds, and consumes its file descriptor
30285         parameter -- so callers must not close such FDs.  Update callers.
30286         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30287         (diropen): Add parameter, SP.  Adjust all callers.
30288         Implement using diropen_fd, rather than open.
30289         (fts_open): Initialize new member, fts_cwd_fd.
30290         Remove fts_rft-setting code.
30291         (fts_close): Close fts_cwd_fd, if necessary.
30292         (__opendir2): Define in terms of opendir or opendirat,
30293         depending on whether the FST_NOCHDIR flag is set.
30294         (fts_build): Since fts_safe_changedir consumes its FD, and since
30295         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30296         and close the dup'd file descriptor upon failure.
30297         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30298         (fts_safe_changedir): Tweak semantics to reflect that this function
30299         now calls cwd_advance_fd and hence consumes its FD argument.
30300         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30301         [struct FTS] (fts_rft): Remove now-unused member.
30302         [struct FTS] (fts_cycle.state): Improve comment.
30303
30304         * lib/openat.c (openat_needs_fchdir): New function.
30305         * lib/openat.h (openat_needs_fchdir): Declare it.
30306
30307 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30308
30309         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30310         Problem and fix reported by Pádraig Brady in
30311         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30312
30313 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30314
30315         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30316
30317 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30318
30319         * lib/memcoll.c (memcoll): Optimize for the common case where the
30320         arguments are bytewise equal.
30321
30322 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30323
30324         * doc/regexprops-generic.texi: Add a copyright notice.
30325
30326 2006-08-15  Bruno Haible  <bruno@clisp.org>
30327
30328         * modules/tmpdir (License): Change to LGPL.
30329
30330 2006-08-15  Bruno Haible  <bruno@clisp.org>
30331
30332         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30333         module.
30334
30335 2006-08-14  Simon Josefsson  <jas@extundo.com>
30336
30337         * config/srclist.txt: Add gnupload.
30338
30339 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30340
30341         Change copyright notice from LGPL 2 to GPL 2, since that's the
30342         standard form used in the gnulib repository.
30343         * tests/test-lock.c: Likewise.
30344         * tests/test-stdint.c: Likewise.
30345         * tests/test-tls.c: Likewise.
30346
30347         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30348         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30349         Add copyright notice.
30350
30351         * check-module: Add copyright notice.  Output a copyright
30352         notice if "--version" is specified.
30353         * modules/COPYING: New file.
30354         * tests/test-getaddrinfo.c: Add copyright notice.
30355         * tests/test-verify.c: Likewise.
30356
30357 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30358
30359         Change copyright notice from LGPL 2 to GPL 2, since that's the
30360         standard form used in the gnulib repository.
30361         * lib/lock.c: LGPL -> GPL.
30362         * lib/lock.h: Likewise.
30363         * lib/strnlen1.c: Likewise.
30364         * lib/strnlen1.h: Likewise.
30365         * lib/tls.c: Likewise.
30366         * lib/tls.h: Likewise.
30367         * lib/tmpdir.c: Likewise.
30368
30369         * lib/TODO: Remove; this belongs only in coreutils.
30370
30371 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30372
30373         Add copyright notices to long-enough files that lack them, since
30374         otherwise the files aren't clearly free.  Use the same notice that
30375         getdate.texi already uses.
30376         * doc/alloca-opt.texi: Add copyright notice.
30377         * doc/alloca.texi: Likewise.
30378         * doc/ctime.texi: Likewise.
30379         * doc/functions.texi: Likewise.
30380         * doc/gcd.texi: Likewise.
30381         * doc/gnulib-tool.texi: Likewise.
30382         * doc/inet_ntoa.texi: Likewise.
30383         * doc/visibility.texi: Likewise.
30384
30385         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30386         * doc/quote.texi: Add copyright notice.
30387
30388         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30389         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30390         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30391         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30392         is now obsolete, and give a pointer to the Sun list.
30393         Add copyright notice.
30394
30395 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30396
30397         * config/srclistvars.sh: Add copyright notice.
30398
30399 2006-08-14  Eric Blake  <ebb9@byu.net>
30400
30401         Import the following change from libc:
30402
30403         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30404
30405         Upstream bug 2997.
30406         * lib/misc/error.c: Add space between program name and message if file
30407         name is missing.
30408
30409 2006-08-12  Karl Berry  <karl@gnu.org>
30410
30411         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30412         remove, these originate in gnulib now.
30413
30414 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30415
30416         * doc/Makefile (standards.info standards.html standards.dvi):
30417         Also depend on make-stds.texi.
30418
30419 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30420
30421         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30422         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30423
30424         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30425         in wchar_t.  Problem reported by Eric Blake.
30426
30427         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30428         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30429         Also, help the compiler to keep LEN in a register.
30430
30431 2006-08-11  Eric Blake  <ebb9@byu.net>
30432
30433         * users.txt: Sort.  Add tar.
30434
30435 2006-08-11  Bruno Haible  <bruno@clisp.org>
30436
30437         * users.txt: New file.
30438
30439 2006-08-11  Bruno Haible  <bruno@clisp.org>
30440
30441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30442         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30443
30444 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30445
30446         * modules/snprintf (Depends-on): Remove minmax.
30447         (Maintainer): Add self and Bruno.
30448
30449 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30450
30451         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30452         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30453         (EOVERFLOW): Define if the system does not.
30454         Do not include "minmax.h"; it wasn't used.
30455         (snprintf): Don't assume size_t promotes to an unsigned type.
30456         Fix bug when generated string was too long for the buffer: the
30457         buffer's contents are supposed to be the initial prefix of the
30458         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30459         exceeds INT_MAX; do the check ourselves.
30460
30461         Import the following changes from libc:
30462
30463         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30464
30465         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30466         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30467         set wc to the byte which couldn't be converted.
30468         (re_string_reconstruct): Don't clear valid_raw_len before calling
30469         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30470         tip_context using re_string_context_at.
30471
30472         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30473
30474         * lib/posix/regex.h: g++ still cannot handled [restrict].
30475
30476         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30477
30478         * lib/posix/regex.h: Remove special handling for VMS.
30479
30480 2006-08-10  Jim Meyering  <jim@meyering.net>
30481
30482         * modules/same-inode: New module.
30483         * modules/dev-ino: New module.
30484         * modules/cycle-check: Depend on these modules, rather than simply
30485         including their .h files.
30486         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30487         required via m4/cycle-check.m4.
30488         * modules/same: Depend on new same-inode module, rather than
30489         including same-inode.h.
30490         * modules/chdir-safer: New file.
30491
30492         * modules/chown (Depends-on): Add stat-macros.
30493
30494 2006-08-10  Jim Meyering  <jim@meyering.net>
30495
30496         * m4/cycle-check.m4: New file.
30497         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30498         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30499
30500 2006-08-10  Eric Blake  <ebb9@byu.net>
30501
30502         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30503         in from original proposal.
30504
30505 2006-08-10  Eric Blake  <ebb9@byu.net>
30506         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30507
30508         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30509         namespace.
30510
30511 2006-08-10  Bruno Haible  <bruno@clisp.org>
30512
30513         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30514         as well.
30515
30516 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         Sync from coreutils.
30519
30520         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30521
30522         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30523         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30524
30525 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30526
30527         * modules/restrict: Remove; no longer needed now that we assume
30528         Autoconf 2.59 or later.
30529         * MODULES.html.sh: Remove 'restrict'.
30530         * modules/argp (Depends-on): Remove 'restrict'.
30531         * modules/base64 (Depends-on): Likewise.
30532         * modules/gc (Depends-on): Likewise.
30533         * modules/getaddrinfo (Depends-on): Likewise.
30534         * modules/glob (Depends-on): Likewise.
30535         * modules/inet_ntop (Depends-on): Likewise.
30536         * modules/inet_pton (Depends-on): Likewise.
30537         * modules/memxor (Depends-on): Likewise.
30538         * modules/regex (Depends-on): Likewise.
30539         * modules/strtok_r (Depends-on): Likewise.
30540         * modules/time_r (Depends-on): Likewise.
30541
30542 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30543
30544         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30545         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30546         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30547         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30548         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30549         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30550         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30551         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30552
30553         Merge from coreutils.
30554         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30555         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30556         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30557         * m4/time_r.m4 (gl_TIME_R): Likewise.
30558
30559 2006-08-09  Karl Berry  <karl@gnu.org>
30560
30561         * config/srclist.txt: no more gettext-tools, per Bruno.
30562
30563 2006-08-08  Eric Blake  <ebb9@byu.net>
30564
30565         * modules/verror: New module.
30566         * MODULES.html.sh: Document it.
30567
30568 2006-08-08  Eric Blake  <ebb9@byu.net>
30569
30570         * lib/verror.h, lib/verror.c: New files.
30571
30572 2006-08-08  Eric Blake  <ebb9@byu.net>
30573
30574         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30575         verror_at_line output complies with GNU Coding Standards even when
30576         file is NULL.
30577
30578 2006-08-07  Bruno Haible  <bruno@clisp.org>
30579
30580         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30581         versions of AIX.
30582         Reported by Ralf Wildenhues.
30583
30584 2006-08-07  Bruno Haible  <bruno@clisp.org>
30585
30586         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30587         in an AC_DEFUN. Needed so that the autoconf snippets can use
30588         AC_REQUIRE.
30589
30590 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30591
30592         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30593         Initialize pkgdata_DATA.
30594         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30595         overriding it.
30596
30597 2006-08-06  Eric Blake  <ebb9@byu.net>
30598
30599         * lib/error.h: Fold in some upstream changes from glibc.
30600         * lib/error.c: Likewise.
30601
30602 2006-08-04  Bruno Haible  <bruno@clisp.org>
30603
30604         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30605         Make the mostlyclean-local rule depend on mostlyclean-generic.
30606         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30607
30608 2006-07-31  Bruno Haible  <bruno@clisp.org>
30609
30610         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30611         <stdlib.h>, <string.h>.
30612
30613 2006-07-30  Bruno Haible  <bruno@clisp.org>
30614
30615         * modules/readlink (License): Change to LGPL.
30616
30617 2006-07-30  Bruno Haible  <bruno@clisp.org>
30618
30619         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30620         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30621         set PKGDATADIR to point to it.
30622
30623 2006-07-30  Bruno Haible  <bruno@clisp.org>
30624
30625         * modules/csharpexec (configure.ac): Comment out macro invocation.
30626         * modules/javaexec (configure.ac): Likewise.
30627         * modules/javacomp-script (configure.ac): Likewise.
30628
30629         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30630
30631 2006-07-30  Bruno Haible  <bruno@clisp.org>
30632
30633         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30634         linked-list.
30635
30636 2006-07-30  Bruno Haible  <bruno@clisp.org>
30637
30638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30639
30640 2006-07-30  Bruno Haible  <bruno@clisp.org>
30641
30642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30643         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30644         get removed.
30645
30646 2006-07-29  Bruno Haible  <bruno@clisp.org>
30647
30648         Make it possible for gnulib-tool to work with locally modified or
30649         augmented gnulib repositories.
30650         * gnulib-tool (func_usage): Document --local-dir option.
30651         (local_gnulib_dir): New variable.
30652         Handle --local-dir option.
30653         (func_lookup_file): New function.
30654         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30655         (func_get_description, func_get_filelist, func_get_description,
30656         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30657         func_get_automake_snippet, func_get_include_directive,
30658         func_get_license, func_get_maintainer): Use func_lookup_file.
30659         (func_import, func_create_testdir): Use func_lookup_file.
30660
30661 2006-07-29  Bruno Haible  <bruno@clisp.org>
30662
30663         * modules/setenv (Depends-on): Add unistd.
30664
30665 2006-07-29  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30668
30669 2006-07-29  Bruno Haible  <bruno@clisp.org>
30670
30671         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30672
30673 2006-07-29  Bruno Haible  <bruno@clisp.org>
30674
30675         * gnulib-tool (import, update): If there is no Makefile.am, look at
30676         aclocal.m4, instead of bailing out.
30677
30678 2006-07-29  Bruno Haible  <bruno@clisp.org>
30679
30680         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30681         Categorize the options by when they are useful.
30682
30683 2006-07-29  Bruno Haible  <bruno@clisp.org>
30684
30685         * gnulib-tool (func_usage): Document option --no-libtool.
30686         Handle option --no-libtool.
30687         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30688         for changed semantics of $libtool variable.
30689         (func_import): Likewise. If libtool is not used, show this through
30690         an option --no-libtool.
30691         (func_create_testdir): Update.
30692
30693 2006-07-29  Bruno Haible  <bruno@clisp.org>
30694
30695         * gnulib-tool (func_import): Extend error message about missing
30696         --doc-base.
30697
30698 2006-07-29  Bruno Haible  <bruno@clisp.org>
30699
30700         * gnulib-tool (func_import): Don't create the $docbase directory if
30701         there is no file to store there.
30702
30703 2006-07-29  Bruno Haible  <bruno@clisp.org>
30704
30705         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30706         relevant, look for configure.ac there, not in the current directory.
30707         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30708
30709 2006-07-29  Bruno Haible  <bruno@clisp.org>
30710
30711         * gnulib-tool (SORT): New variable.
30712         (func_usage): Undocument --assume-autoconf option.
30713         Remove --assume-autoconf option handling.
30714         (autoconf_minversion): Determine from the contents of configure.ac.
30715         (func_import): Remove autoconf_minversion handling.
30716         Suggested by Eric Blake.
30717
30718 2006-07-29  Bruno Haible  <bruno@clisp.org>
30719
30720         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30721
30722 2006-07-29  Bruno Haible  <bruno@clisp.org>
30723
30724         * config/srclist.txt (*setenv.[ch]): Remove rules.
30725
30726 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30727
30728         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30729
30730 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30731
30732         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30733         arpa/inet.h.
30734
30735 2006-07-28  Simon Josefsson  <jas@extundo.com>
30736
30737         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30738         * modules/inet_pton (Depends-on): Likewise.
30739
30740 2006-07-28  Simon Josefsson  <jas@extundo.com>
30741
30742         * m4/netinet_in_h.m4: New file.
30743
30744 2006-07-28  Simon Josefsson  <jas@extundo.com>
30745
30746         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30747         #include's.
30748
30749 2006-07-28  Simon Josefsson  <jas@extundo.com>
30750
30751         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30752         #include's.
30753
30754 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30755
30756         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30757         setgid on directories only if they set these bits.
30758         * lib/modechange.h: Remove obsolete comment about masks.
30759
30760 2006-07-28  Eric Blake  <ebb9@byu.net>
30761
30762         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30763         macro expansion.
30764
30765 2006-07-28  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30768
30769 2006-07-28  Bruno Haible  <bruno@clisp.org>
30770
30771         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30772
30773 2006-07-28  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30776         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30777         Define fallbacks.
30778         Avoids link error on FreeBSD 4.x.
30779         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30780
30781         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30782         encoding.
30783         * lib/mbswidth.c (iswcntrl): Likewise.
30784
30785 2006-07-27  Bruno Haible  <bruno@clisp.org>
30786
30787         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30788         test.
30789
30790 2006-07-27  Bruno Haible  <bruno@clisp.org>
30791
30792         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30793         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30794         defined.
30795
30796 2006-07-26  Eric Blake  <ebb9@byu.net>
30797
30798         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30799
30800 2006-07-26  Eric Blake  <ebb9@byu.net>
30801
30802         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30803         like mingw that lack mkstemp.
30804         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30805         avoid compilation warning on mingw.
30806
30807 2006-07-26  Bruno Haible  <bruno@clisp.org>
30808
30809         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30810         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30811         INT_FAST*_MIN, INTPTR_MIN.
30812
30813 2006-07-25  Bruno Haible  <bruno@clisp.org>
30814
30815         * modules/version-etc (Depends-on): Add stdarg.
30816
30817 2006-07-25  Bruno Haible  <bruno@clisp.org>
30818
30819         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30820         complex commands.
30821
30822 2006-07-25  Bruno Haible  <bruno@clisp.org>
30823
30824         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30825         defined in <stdarg.h> or config.h.
30826
30827 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30828
30829         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30830         (gl_STDIO_SAFER): Remove.
30831
30832 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30833
30834         * MODULES.html.sh (File stream based Input/Output):
30835         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30836         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30837         * modules/fopen-safer, modules/tmpfile-safer: New files.
30838         * modules/stdio-safer: Remove.
30839
30840 2006-07-24  Bruno Haible  <bruno@clisp.org>
30841
30842         * modules/tmpdir: New file.
30843         * MODULES.html.sh (File system functions): Add it.
30844
30845 2006-07-24  Bruno Haible  <bruno@clisp.org>
30846
30847         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30848         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30849
30850 2006-07-24  Bruno Haible  <bruno@clisp.org>
30851
30852         * modules/clean-temp: New file.
30853
30854 2006-07-24  Bruno Haible  <bruno@clisp.org>
30855
30856         * m4/tmpdir.m4: New file, from GNU gettext.
30857
30858 2006-07-24  Bruno Haible  <bruno@clisp.org>
30859
30860         * lib/tmpdir.h: New file, from GNU gettext.
30861         * lib/tmpdir.c: New file, from GNU gettext.
30862
30863 2006-07-24  Bruno Haible  <bruno@clisp.org>
30864
30865         * lib/clean-temp.h: New file, from GNU gettext.
30866         * lib/clean-temp.c: New file, from GNU gettext.
30867
30868 2006-07-23  Eric Blake  <ebb9@byu.net>
30869
30870         * modules/stdio-safer (Files): Add tmpfile-safer.c.
30871         (Depends-on): Add binary-io.
30872
30873 2006-07-23  Eric Blake  <ebb9@byu.net>
30874
30875         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30876
30877 2006-07-23  Eric Blake  <ebb9@byu.net>
30878
30879         * lib/tmpfile-safer.c: New file.
30880         * lib/stdio-safer.h (fopen_safer): Add prototype.
30881         * lib/stdio--.h (tmpfile): Make safer.
30882
30883 2006-07-23  Bruno Haible  <bruno@clisp.org>
30884
30885         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30886         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30887         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30888         gl_linked_remove_at): Use it.
30889
30890 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30891         and Simon Josefsson <jas@extundo.com>
30892
30893         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30894
30895         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30896
30897 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30898
30899         * modules/close-stream: New file.
30900         * modules/closeout (Description): Make it clear that it exits
30901         with a diagnostic on error.
30902         (Depends-on): Add close-stream.  Remove fpending, stdbool.
30903         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30904
30905 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30906
30907         * m4/close-stream.m4: New file.
30908
30909 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30910
30911         * lib/close-stream.c, lib/close-stream.h: New files.
30912
30913 2006-07-22  Bruno Haible  <bruno@clisp.org>
30914
30915         Merge from GNU gettext 0.15.
30916
30917         2006-05-01  Bruno Haible  <bruno@clisp.org>
30918
30919                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30920
30921         2006-07-22  Bruno Haible  <bruno@clisp.org>
30922
30923                 * modules/javaversion: New file.
30924                 * MODULES.html.sh (Java): Add javaversion.
30925
30926         2006-03-12  Bruno Haible  <bruno@clisp.org>
30927
30928                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30929
30930         2005-12-04  Bruno Haible  <bruno@clisp.org>
30931
30932                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30933                 (untested).
30934
30935         2006-06-21  Bruno Haible  <bruno@clisp.org>
30936
30937                 Avoid warnings from recent versions of mcs.
30938                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30939                 -o, -L, -r any more. Use options documented since mcs-1.0
30940                 instead. Similarly for -g.
30941
30942         2005-12-04  Bruno Haible  <bruno@clisp.org>
30943
30944                 * build-aux/csharpcomp.sh.in: Suffix for resources is
30945                 .resources, not .resource.
30946
30947         2005-07-09  Bruno Haible  <bruno@clisp.org>
30948
30949                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30950                 add a .dll suffix.
30951                 Reported by Mark Junker <mjscod@gmx.de>.
30952
30953         2006-07-22  Bruno Haible  <bruno@clisp.org>
30954
30955                 * modules/gettext: Upgrade to gettext-0.15.
30956                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30957                 m4/visibility.m4.
30958                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30959
30960 2006-07-22  Bruno Haible  <bruno@clisp.org>
30961
30962         Merge from GNU gettext 0.15.
30963
30964         2006-03-25  Bruno Haible  <bruno@clisp.org>
30965
30966                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30967
30968         2006-07-21  Bruno Haible  <bruno@clisp.org>
30969
30970                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30971                 "1.1".
30972
30973         2006-05-09  Bruno Haible  <bruno@clisp.org>
30974
30975                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30976                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30977                 for the conftestver execution.
30978
30979         2006-05-01  Bruno Haible  <bruno@clisp.org>
30980
30981                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30982                 optional target-version argument. Verify that the compiler
30983                 groks source of the specified source-version, or add -source
30984                 option as necessary. Verify that the compiler produces
30985                 bytecode in the specified target-version, or add -target and
30986                 -source options as necessary. Make the result of the test
30987                 available as variable CONF_JAVAC. Also log error output in
30988                 config.log.
30989
30990         2006-03-11  Bruno Haible  <bruno@clisp.org>
30991
30992                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30993
30994         2006-05-09  Bruno Haible  <bruno@clisp.org>
30995
30996                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30997                 CLASSPATH_SEPARATOR to a semicolon.
30998
30999         2006-03-12  Bruno Haible  <bruno@clisp.org>
31000
31001                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
31002                 available as variable CONF_JAVA, for subsequent autoconf
31003                 tests. Also log error output in config.log.
31004
31005         2006-07-19  Bruno Haible  <bruno@clisp.org>
31006
31007                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
31008                 that getline works on glibc2 systems. Needed to avoid trouble
31009                 in relocatable.c.
31010                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
31011
31012         2005-12-04  Bruno Haible  <bruno@clisp.org>
31013
31014                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
31015                 launcher (untested).
31016
31017         2005-12-04  Bruno Haible  <bruno@clisp.org>
31018
31019                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
31020
31021         2006-07-22  Bruno Haible  <bruno@clisp.org>
31022
31023                 * gettext.m4: Update from GNU gettext-0.15.
31024                 * nls.m4: Likewise.
31025                 * po.m4: Likewise.
31026                 * inttypes-pri.m4: Likewise.
31027                 * inttypes-h.m4: Renamed from inttypes.m4.
31028                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
31029
31030 2006-07-22  Bruno Haible  <bruno@clisp.org>
31031
31032         Merge from GNU gettext 0.15.
31033
31034         2005-07-05  Bruno Haible  <bruno@clisp.org>
31035
31036                 * printf-args.c (printf_fetchargs): Work around broken
31037                 definition of wint_t on mingw.
31038
31039         2005-02-12  Bruno Haible  <bruno@clisp.org>
31040
31041                 * xallocsa.h: Add extern "C" for C++.
31042
31043         2006-05-17  Bruno Haible  <bruno@clisp.org>
31044
31045                 Cygwin portability.
31046                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
31047
31048         2006-04-30  Bruno Haible  <bruno@clisp.org>
31049
31050                 * progreloc.c: Include <mach-o/dyld.h> if available.
31051                 (find_executable): Use _NSGetExecutablePath when possible.
31052
31053         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31054
31055                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
31056                 function.
31057
31058         2005-12-29  Bruno Haible  <bruno@clisp.org>
31059
31060                 * progreloc.c (set_program_name_and_installdir): Fix
31061                 compilation error.
31062
31063         2005-12-04  Bruno Haible  <bruno@clisp.org>
31064
31065                 Cygwin portability.
31066                 * progreloc.c: Include <windows.h> also on Cygwin.
31067                 (find_executable): Add support for Cygwin.
31068                 (set_program_name_and_installdir): Handle also platforms with
31069                 nonempty EXEEXT.
31070
31071         2006-07-11  Bruno Haible  <bruno@clisp.org>
31072
31073                 * javacomp.c: Fix a comment.
31074                 Reported by Jim Meyering.
31075
31076         2006-04-30  Bruno Haible  <bruno@clisp.org>
31077
31078                 * javacomp.h (compile_java_class): Add source_version,
31079                 target_version arguments.
31080                 * javacomp.c: Rewritten to choose only a compiler that
31081                 respects the specified source_version and target_version.
31082
31083         2006-06-27  Bruno Haible  <bruno@clisp.org>
31084
31085                 Assume correct S_ISDIR macro.
31086                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
31087
31088         2006-07-22  Bruno Haible  <bruno@clisp.org>
31089
31090                 * javaversion.h: New file, from GNU gettext.
31091                 * javaversion.c: New file, from GNU gettext.
31092                 * javaversion.java: New file, from GNU gettext.
31093                 * javaversion.class: New file, from GNU gettext.
31094
31095         2006-05-17  Bruno Haible  <bruno@clisp.org>
31096
31097                 Cygwin portability.
31098                 * javaexec.c (execute_java_class): Test for jview program
31099                 also on Cygwin.
31100
31101         2006-04-09  Bruno Haible  <bruno@clisp.org>
31102
31103                 * fatal-signal.c: Don't include string.h.
31104                 (at_fatal_signal): Use a copying loop instead of memcpy.
31105
31106         2005-12-04  Bruno Haible  <bruno@clisp.org>
31107
31108                 * csharpexec.c: Add support for 'clix' launcher (untested).
31109                 (execute_csharp_using_sscli): New function.
31110                 (execute_csharp_program): Call it.
31111
31112         2006-06-21  Bruno Haible  <bruno@clisp.org>
31113
31114                 Avoid warnings from recent versions of mcs.
31115                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
31116                 -o, -L, -r any more. Use options documented since mcs-1.0
31117                 instead. Similarly for -g.
31118
31119         2005-07-09  Bruno Haible  <bruno@clisp.org>
31120
31121                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
31122                 add a .dll suffix.
31123                 Reported by Mark Junker <mjscod@gmx.de>.
31124
31125         2006-06-17  Bruno Haible  <bruno@clisp.org>
31126
31127                 * config.charset: Update for NetBSD 3.0.
31128
31129         2006-05-17  Bruno Haible  <bruno@clisp.org>
31130
31131                 Cygwin portability.
31132                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
31133
31134         2006-05-16  Bruno Haible  <bruno@clisp.org>
31135
31136                 * localcharset.c [CYGWIN]: Include <windows.h>.
31137                 (get_charset_aliases): For Cygwin, return the same CPxxx
31138                 aliases list as under WIN32.
31139                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
31140                 the environment variables. Fall back to GetACP().
31141
31142         2006-04-05  Bruno Haible  <bruno@clisp.org>
31143
31144                 * config.charset: Update Juan Manuel Guerrero's address.
31145
31146         2005-02-12  Bruno Haible  <bruno@clisp.org>
31147
31148                 * allocsa.h: Add extern "C" for C++.
31149
31150         2005-02-10  Bruno Haible  <bruno@clisp.org>
31151
31152                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31153                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31154
31155         2006-07-22  Bruno Haible  <bruno@clisp.org>
31156
31157                 * gettext.h: Update to GNU gettext-0.15.
31158
31159 2006-07-22  Bruno Haible  <bruno@clisp.org>
31160
31161         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31162         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31163         lib-prefix.m4, longdouble.m4, ssize_t.m4.
31164
31165 2006-07-21  Eric Blake  <ebb9@byu.net>
31166
31167         * modules/stdlib-safer: New file.
31168         * MODULES.html.sh (File stream based Input/Output): Add
31169         stdlib-safer.
31170
31171 2006-07-21  Eric Blake  <ebb9@byu.net>
31172
31173         * lib/stdlib-safer.h: New file from coreutils, required by
31174         stdlib--.h.
31175
31176 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31177
31178         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31179
31180 2006-07-20  Bruno Haible  <bruno@clisp.org>
31181
31182         * gnulib-tool: Recognize new option --assume-autoconf.
31183         (autoconf_minversion): New variable.
31184         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31185
31186 2006-07-20  Bruno Haible  <bruno@clisp.org>
31187
31188         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31189
31190 2006-07-19  Derek R. Price  <derek@ximbiot.com>
31191
31192         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31193         Reindent and repaginate.
31194
31195 2006-07-19  Derek Price  <derek@ximbiot.com>
31196
31197         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
31198         Correct grammar.
31199
31200 2006-07-17  Bruno Haible  <bruno@clisp.org>
31201
31202         * modules/list: New file.
31203         * modules/array-list: New file.
31204         * modules/carray-list, modules/carray-list-tests: New files.
31205         * modules/linked-list, modules/linked-list-tests: New files.
31206         * modules/avltree-list, modules/avltree-list-tests: New files.
31207         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31208         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31209         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31210         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31211         * modules/oset: New file.
31212         * modules/array-oset: New file.
31213         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31214         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31215         * tests/test-carray_list.c: New file.
31216         * tests/test-linked_list.c: New file.
31217         * tests/test-avltree_list.c: New file.
31218         * tests/test-rbtree_list.c: New file.
31219         * tests/test-linkedhash_list.c: New file.
31220         * tests/test-avltreehash_list.c: New file.
31221         * tests/test-rbtreehash_list.c: New file.
31222         * tests/test-avltree_oset.c: New file.
31223         * tests/test-rbtree_oset.c: New file.
31224         * MODULES.html.sh (Container data structures): New section.
31225
31226 2006-07-17  Bruno Haible  <bruno@clisp.org>
31227
31228         * m4/gl_list.m4: New file.
31229
31230 2006-07-17  Bruno Haible  <bruno@clisp.org>
31231
31232         * lib/gl_list.h: New file.
31233         * lib/gl_list.c: New file.
31234         * lib/gl_array_list.h: New file.
31235         * lib/gl_array_list.c: New file.
31236         * lib/gl_carray_list.h: New file.
31237         * lib/gl_carray_list.c: New file.
31238         * lib/gl_linked_list.h: New file.
31239         * lib/gl_linked_list.c: New file.
31240         * lib/gl_anylinked_list1.h: New file.
31241         * lib/gl_anylinked_list2.h: New file.
31242         * lib/gl_avltree_list.h: New file.
31243         * lib/gl_avltree_list.c: New file.
31244         * lib/gl_anyavltree_list1.h: New file.
31245         * lib/gl_anyavltree_list2.h: New file.
31246         * lib/gl_rbtree_list.h: New file.
31247         * lib/gl_rbtree_list.c: New file.
31248         * lib/gl_anyrbtree_list1.h: New file.
31249         * lib/gl_anyrbtree_list2.h: New file.
31250         * lib/gl_anytree_list1.h: New file.
31251         * lib/gl_anytree_list2.h: New file.
31252         * lib/gl_linkedhash_list.h: New file.
31253         * lib/gl_linkedhash_list.c: New file.
31254         * lib/gl_anyhash_list1.h: New file.
31255         * lib/gl_anyhash_list2.h: New file.
31256         * lib/gl_avltreehash_list.h: New file.
31257         * lib/gl_avltreehash_list.c: New file.
31258         * lib/gl_rbtreehash_list.h: New file.
31259         * lib/gl_rbtreehash_list.c: New file.
31260         * lib/gl_anytreehash_list1.h: New file.
31261         * lib/gl_anytreehash_list2.h: New file.
31262
31263         * lib/gl_oset.h: New file.
31264         * lib/gl_oset.c: New file.
31265         * lib/gl_array_oset.h: New file.
31266         * lib/gl_array_oset.c: New file.
31267         * lib/gl_avltree_oset.h: New file.
31268         * lib/gl_avltree_oset.c: New file.
31269         * lib/gl_rbtree_oset.h: New file.
31270         * lib/gl_rbtree_oset.c: New file.
31271         * lib/gl_anytree_oset.h: New file.
31272
31273 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31274
31275         * m4/mkancesdirs.m4: New file.
31276         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31277         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31278         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31279         it.
31280
31281 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31282
31283         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31284         * lib/mkancesdirs.h: New files.
31285         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31286         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31287         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31288         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31289         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31290         callers changed.  Revamp internals significantly, by not
31291         attempting to create directories that are temporarily more
31292         permissive than the final results.  Do not attempt to use
31293         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31294         This removes some race conditions, fixes some bugs, and simplifies
31295         things.  Use new dirchownmod function to do owner and mode changes.
31296         * lib/mkdir-p.h: Likewise.
31297         * lib/modechange.c (octal_to_mode): New function.
31298         (struct mode_change): New member mentioned.
31299         (make_node_op_equals): New arg mentioned.  All callers changed.
31300         (mode_compile): Keep track of which mode bits the user has explicitly
31301         mentioned.
31302         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31303         New arg PMODE_BITS, to keep track of which mode bits the user
31304         mentioned; it treats S_ISUID and S_ISGID speciall.
31305         All callers changed.
31306         * lib/modechange.h: Likewise.
31307
31308 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31309
31310         * MODULES.html.sh: Add mkancestors.
31311         * modules/mkancesdirs: New module.
31312         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31313         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31314         The chdir-safer and afs files are now orphans; I'll remove them
31315         unless someone speaks up.
31316         Add lib/dirchownmod.c, lib/dirchownmod.h.
31317         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31318         Add lchown, mkancesdirs.
31319         (Maintainer): Add self.
31320
31321 2006-07-15  Karl Berry  <karl@gnu.org>
31322
31323         * gnulib-tool: help message wording/arrangement.
31324
31325 2006-07-14  Simon Josefsson  <jas@extundo.com>
31326
31327         * doc/gnulib.texi (Libtool and Windows): New section.
31328
31329 2006-07-12  Simon Josefsson  <jas@extundo.com>
31330
31331         * modules/gendocs (License): Fix license, approved by Karl.
31332
31333 2006-07-12  Eric Blake  <ebb9@byu.net>
31334
31335         * MODULES.html.sh: Add gendocs.
31336
31337 2006-07-11  Eric Blake  <ebb9@byu.net>
31338
31339         * modules/fdl: New module, to install doc/fdl.texi.
31340         * MODULES.html.sh: Add new section for documentation modules.
31341         * gnulib-tool: Avoid space-tab.
31342         (--doc-base): New option, to manage files from doc.
31343
31344 2006-07-11  Eric Blake  <ebb9@byu.net>
31345
31346         * m4/absolute-header.m4: Fix comments to match recent change.
31347
31348 2006-07-11  Eric Blake  <ebb9@byu.net>
31349
31350         * gnulib-tool: List --doc-base before --tests-base.
31351
31352 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31353
31354         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31355
31356 2006-07-11  Bruno Haible  <bruno@clisp.org>
31357
31358         * README: Mention where to put documentation.
31359
31360 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31361
31362         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31363
31364 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31365
31366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31367         to stdint.m4.
31368
31369 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31370
31371         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31372         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31373         "no/such/file/stdint.h" when there is no such file, so that
31374         the resulting C code can be parsed by dodgy compilers.
31375         Problems reported by Bob Proulx.
31376
31377 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31378
31379         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31380         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31381         macros into the GNU _D_EXACT_NAMLEN.
31382         * lib/savedir.c:  Likewise.
31383         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31384
31385 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31386         and Paul Eggert  <eggert@cs.ucla.edu>
31387
31388         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31389         * m4/savedir.m4:
31390         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31391         macros into the GNU _D_EXACT_NAMLEN.
31392
31393 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31394
31395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31396         around the absolute name, to work around a problem with the HP-UX
31397         11.23 native C compiler, reported by Bob Proulx.
31398
31399 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31400
31401         * doc/maintain.texi, make-stds.texi: Sync from
31402         <http://savannah.gnu.org/projects/gnustandards>.
31403
31404 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31405
31406         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31407
31408 2006-07-09  Jim Meyering  <jim@meyering.net>
31409
31410         * m4/glob.m4: Remove a doubled word in a comment.
31411
31412 2006-07-09  Jim Meyering  <jim@meyering.net>
31413
31414         * lib/argp-pv.c: Remove a doubled word in a comment.
31415         * lib/check-version.c (check_version): Likewise.
31416         * lib/javacomp.c (compile_java_class): Likewise.
31417
31418 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31419
31420         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31421         for the benefit of people using Autoconf 2.60.  If you want to
31422         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31423         (or m4/onceonly.m4, if pre-2.57) manually.
31424
31425 2006-07-08  Jim Meyering  <jim@meyering.net>
31426
31427         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31428         comment.
31429         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31430         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31431         comment.
31432
31433 2006-07-08  Jim Meyering  <jim@meyering.net>
31434
31435         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31436
31437 2006-07-07  Simon Josefsson  <jas@extundo.com>
31438
31439         * tests/test-crc.c: Change expected crc value, the test vector
31440         were probably computed using the old broken crc.c?
31441
31442 2006-07-06  Simon Josefsson  <jas@extundo.com>
31443
31444         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31445         now the canonical place for the M4 file).
31446
31447         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31448         from the sys_socket dependency now.
31449
31450         * modules/inet_pton (Files): Ditto.
31451
31452         * modules/inet_ntop (Files): Ditto.
31453
31454 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31455
31456         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31457         not gl_PREREQ_GETUSERSHELL.
31458
31459 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31460
31461         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31462         with only one argument, for Autoconf 2.60.
31463         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31464         expand to nothing, so add a shell command to avoid syntax error.
31465         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31466
31467 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31468
31469         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31470
31471 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31472
31473         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31474         no longer needed.  Check for isblank decl.
31475         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31476         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31477         of existence.
31478
31479 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31480
31481         * lib/getloadavg.c: Use __VMS, not VMS.
31482         * lib/getopt.c: Likewise.
31483         * lib/getpagesize.h: Likewise.
31484         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31485         and probably does not work.
31486
31487 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         * lib/.cppi-disable: Add wcwidth.
31490         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31491         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31492         (ISGRAPH): Remove.  All uses changed to isgraph.
31493         (FOLD) [!defined _LIBC]: Remove special case.
31494         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31495         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31496         HAVE_ISBLANK.
31497         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31498         case.
31499
31500 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31501
31502         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31503         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31504         brackets.  Other minor changes to suppress some compiler
31505         warnings.
31506
31507 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31508         and Paul Eggert  <eggert@cs.ucla.edu>
31509
31510         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31511         of invoking obsolescent AC_HEADER_DIRENT macro.
31512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31513         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31514         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31516         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31517         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31518         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31519         * m4/readdir.m4: Remove; no longer needed.
31520
31521 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31522         and Paul Eggert  <eggert@cs.ucla.edu>
31523
31524         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31525         Don't worry about this obsolete case any more.
31526         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31527         directories.
31528         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31529         worry about this obsolete case any more.
31530         * lib/fts.c: Likewise.
31531         * lib/getcwd.c: Likewise.
31532         * lib/glob.h: Likewise.
31533         * lib/savedir.c: Likewise.
31534
31535 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31536
31537         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31538         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31539         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31540         needed.
31541         All uses removed.
31542         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31543         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31544         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31545         needed.
31546         * m4/getdate.m4 (gl_GETDATE): Likewise.
31547         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31548         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31549         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31550         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31551         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31552         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31553         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31554         needed.
31555
31556 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31557
31558         * lib/memcasecmp.c: Include <limits.h>.
31559         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31560         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31561         Don't assume isdigit succeeds only on '0' through '9'.
31562
31563 2006-07-05  Eric Blake  <ebb9@byu.net>
31564
31565         * modules/getaddrinfo (Depends-on): Add snprintf.
31566
31567 2006-07-05  Eric Blake  <ebb9@byu.net>
31568
31569         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31570         to avoid 'header present but could not be compiled' on cygwin.
31571
31572 2006-07-05  Eric Blake  <ebb9@byu.net>
31573
31574         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31575         missing from netdb.h.
31576         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31577
31578 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31579
31580         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31581         no longer needed.
31582         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31583         * m4/getdate.m4 (gl_GETDATE): Likewise.
31584         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31585         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31586         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31587         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31589
31590 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31591
31592         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31593         All uses of is_space replaced by isspace.
31594         * lib/exit.h: Don't talk about STDC_HEADERS.
31595         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31596         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31597         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31598         replaced by isprint etc.
31599         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31600         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31601         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31602         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31603         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31604         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31605
31606 2006-07-05  Bruno Haible  <bruno@clisp.org>
31607
31608         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31609         the function exists, before testing against AIX.
31610         Reported by Martin Lambers <marlam@marlam.de>.
31611
31612 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31613
31614         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31615         From Mark D. Baushke.
31616
31617 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31618
31619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31620         to the absolute name, not just one, to bypass Sun C 5.8's
31621         "warning: #include of /usr/include/... may be non-portable".
31622
31623 2006-07-04  Eric Blake  <ebb9@byu.net>
31624
31625         * modules/dirname-tests: New test module.
31626         * tests/test-dirname.c: New file, replacing dirname.c
31627         TEST_DIRNAME section that was recently deleted.
31628
31629 2006-07-04  Bruno Haible  <bruno@clisp.org>
31630
31631         Assume ANSI C header files and <ctype.h> functions.
31632         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31633         (mbsnwidth): Use isprint, iscntrl instead.
31634
31635 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31636
31637         Merge from coreutils.
31638         * MODULES.html.sh: Add xstrtold.
31639         * modules/xstrtold: New file.
31640         * modules/cycle-check (Files): Add lib/same-inode.h.
31641         * modules/dirname (Files): Add m4/double-slash-root.m4.
31642         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31643         * modules/mkdir-p (Files): Add lib/same-inode.h.
31644         * modules/same (Files): Add lib/same-inode.h.
31645
31646 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31647
31648         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31649         This is to keep the terminology clean; POSIX talks about
31650         "absolute pathnames", not "full pathnames", but the GNU
31651         Coding Standards say to use "path" for something else;
31652         so use "absolute" to keep both sides happy.
31653         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31654         Set gl_absolute_header, not gl_full_header_path.
31655         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31656         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31657         All uses changed.
31658
31659         Merge from coreutils.
31660
31661         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31662
31663         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31664         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31665         want to require the building of c-strtod.o.
31666         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31667         needs -lm directly.
31668         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31669
31670         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31671
31672         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31673         --as-needed option if available.  Problem reported by Albert Chin in
31674         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31675         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31676         cc merely issues a bunch of annoying warnings for --as-needed
31677         (this problem was reported by Bob Proulx).  Also, try linking with
31678         -lm to detect a bug in binutils 2.16 (this problem was reported
31679         by Ralf Wildenhues).
31680
31681         2006-06-18  Jim Meyering  <jim@meyering.net>
31682
31683         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31684         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31685         macro.
31686         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31687         also check for glibc-2.4's abort-inducing bug.
31688
31689         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31690         Low-probability clean-up should be to use rmdir to get rid of
31691         the just-created directory, not unlink.
31692
31693         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31694         configure fail, and request a bug report to inform us about it.
31695         Add a comment that, barring reports to the contrary, in 2007 we'll
31696         assume ftruncate is universally available.
31697
31698         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31699
31700         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31701
31702         2006-03-12  Jim Meyering  <jim@meyering.net>
31703
31704         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31705         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31706         * m4/same.m4 (gl_SAME): Likewise.
31707         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31708
31709         2006-03-11  Eric Blake  <ebb9@byu.net>
31710
31711         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31712         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31713         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31714         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31715
31716 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31717
31718         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31719         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31720         reported by Mark D. Baushke, one in
31721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31722
31723         Merge from coreutils.
31724
31725         * lib/.cppi-disable: Add stdint_.h.
31726         * lib/.cvsignore: Add stdint.h.
31727
31728         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31729
31730         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31731         both double and long double versions.
31732         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31733         * lib/xstrtold.c: New file.
31734         * lib/xstrtod.h (xstrtold): New decl.
31735
31736         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         * lib/filemode.c (setst): Remove.
31739         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31740         (arguably) clearer, and the generated code is a bit smaller on my
31741         Debian GNU/Linux stable x86 host.
31742
31743         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31744
31745         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31746         Assume that filemode.h includes sys/types.h and sys/stat.h.
31747         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31748         (ftypelet): Reorder to put common cases first, for efficiency.
31749         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31750         to do 'M'.
31751         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31752         of 10, for compatibility with FreeBSD.  All callers changed.
31753         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31754         types that can't be deduced solely from st_mode.  First arg is now a
31755         const pointer.
31756         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31757         (strmode): Renamed from mode_string.
31758         (filemodestring): New decl.
31759         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31760         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31761         needed.
31762         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31763
31764         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31765
31766         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31767         fsusage.h now does that.  Include fsusage.h first, to test interface.
31768         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31769         at most one method (the old code could have generated decls that
31770         didn't conform to C89, not that this was ever exercised).
31771         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31772
31773         2006-03-19  Jim Meyering  <jim@meyering.net>
31774
31775         Work even in a chroot where d_ino values for entries in "/"
31776         don't match the stat.st_ino values for the same names.
31777         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31778         number, iterate through all entries again, using lstat instead.
31779         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31780         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31781
31782         * lib/getcwd.c (__getcwd): Clarify a comment.
31783         Use memcpy in place of a call to strcpy.
31784
31785         2006-03-12  Jim Meyering  <jim@meyering.net>
31786
31787         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31788         matches that of the current directory (which we're about to chdir ".."
31789         out of), then save the dev-ino of the parent, instead.
31790
31791         * lib/same-inode.h (SAME_INODE): New file/macro.
31792         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31793         Include "same-inode.h", instead.
31794         * lib/same.c: Likewise.
31795         * lib/cycle-check.h: Include "same-inode.h".
31796         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31797         * lib/cycle-check.c (SAME_INODE): Remove definition.
31798         * lib/root-dev-ino.h: Include "same-inode.h".
31799
31800         2006-03-11  Eric Blake  <ebb9@byu.net>
31801
31802         * lib/same.c (same_name): s/base_name/last_component/
31803         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31804         * lib/filenamecat.c (file_name_concat): Likewise.
31805
31806         2006-03-11  Eric Blake  <ebb9@byu.net>,
31807                     Paul Eggert  <eggert@cs.ucla.edu>
31808
31809         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31810         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31811         drive prefix.
31812         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31813         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31814         (last_component): New method.
31815         * lib/dirname.c (dir_len): Determine when drive letters need a
31816         subsequent slash.  Preserve // when it is special.
31817         (dir_name): Don't append dot when drive letter is absolute.
31818         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31819         * lib/basename.c (base_name): New semantics - malloc the result.
31820         Preserve // when it is special.  Preserve relative files that look
31821         like drive letters.
31822         (base_len): Preserve // when it is special.
31823         (last_component): New method, similar to old base_name semantics.
31824         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31825         base_name.  Strip redundant slashes from ///.
31826
31827 2006-07-03  Jim Meyering  <jim@meyering.net>
31828
31829         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31830         macro is used before the first cycle_check call.
31831
31832 2006-07-03  Eric Blake  <ebb9@byu.net>
31833
31834         * modules/dirname (Depends-on): Add xstrndup.
31835
31836 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31837
31838         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31839         test cases, so that config.log is a bit easier to follow.
31840
31841 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31842
31843         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31844         both are 64 bits, since this seems to be the tradition, and this
31845         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31846         we ever run into a host that prefers long long to long in this
31847         case, we'll need another configure-time test.  Problem reported by
31848         Jim Meyering.
31849
31850 2006-07-02  Eric Blake  <ebb9@byu.net>
31851
31852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31853
31854 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31855
31856         * modules/inttypes (Depends-on): No longer depends on stdint.
31857         * modules/stdint (Description): Say more about assumptions.
31858         Say that the fast types might differ.  Say macros are used.
31859         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
31860         (Makefile.am): Revise list of substituted symbols to match
31861         new stdint.m4.
31862         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31863         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31864         * tests/test-stdint.c (verify_same_types)
31865         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31866         the code conforms to C99/C89.
31867         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31868         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31869
31870 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31871
31872         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31873         but fix a bug, by requiring at least 64 bits.
31874         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31875         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31876         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
31877         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31878
31879         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31880         changes.  Make 2.59 a prerequisite.  Check and substitute for
31881         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
31882         inttypes.h.  Do not use special include files; just use the
31883         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
31884         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
31885         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31886         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31887         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31888         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31889         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31890         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31891         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31892         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31893         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31894         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31895         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31896         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31897         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31898         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31899         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31900         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31901         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31902         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31903         WINT_MAX.  Check for C99 conformance more strictly, by detecting
31904         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
31905         not check for things that C99 does not require, e.g., int8_t.  If
31906         a test isn't needed unless <stdint.h> isn't working, and is
31907         unlikely to be needed for any other reason, then don't do it
31908         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
31909         size_t, since we assume C89 freestanding at least.  Do not check
31910         for sig_atomic_t, wchar_t, or wint_t, since the code now does
31911         the right thing even if the types are not defined.  Instead use:
31912         (gl_STDINT_TYPE_PROPERTIES): New macro.
31913         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
31914         testing whether <sys/types.h> clashes, as Autoconf does this for
31915         us now.  All uses removed.
31916         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31917         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31918         (gl_CHECK_TYPE_SAME):
31919         Remove; no longer needed.
31920         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31921         exists, since we'll return 0 anyway in that case.
31922         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31923
31924 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31925
31926         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31927         possible collision with system files.
31928         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31929         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31930         WCHAR_MIN and WCHAR_MAX in this case.
31931         (<stddef.h>): Do not include; no longer needed.
31932         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31933         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31934         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31935         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31936         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31937         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31938         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31939         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31940         !defined(__c99))]: Include in this case too, since it's harmless
31941         now.
31942         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31943         dangerous to do so.
31944         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31945         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31946         (_STDINT_MIN, _STDINT_MAX): New macros.
31947         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31948         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31949         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31950         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31951         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31952         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31953         macros, not typedefs; this simplifies things quite a bit.
31954         Use long int for all types narrower than int64_t.
31955         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31956         Define in terms of long long int or int64_t or long int,
31957         not int64_t or int32_t.  This saves some compile-time testing.
31958         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31959         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31960         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31961         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31962         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31963         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31964         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31965         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31966         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31967         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31968         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31969         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31970         undef any previous version and define our own version, for
31971         simplicity and consistency with the new macros for types.
31972         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31973         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31974         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31975         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
31976         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31977         @WINT_T_SUFFIX@ to keep things simple here.
31978         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31979         Simplify by assuming typical 8/16/32/64 host, since we're
31980         already doing that elsewhere anyway.
31981         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31982         and assume long long int is 64 bits if available.  This
31983         speeds up 'configure'.
31984
31985 2006-07-01  Eric Blake  <ebb9@byu.net>
31986
31987         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31988         Reported by Andreas Buening.
31989
31990 2006-07-01  Eric Blake  <ebb9@byu.net>
31991
31992         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31993
31994 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31995
31996         * lib/getaddrinfo.c: fixed typo
31997
31998 2006-06-29  Jim Meyering  <jim@meyering.net>
31999
32000         * modules/strftime (Maintainer): Add my name, since with the
32001         FPRINTFTIME changes strftime.c has forked from glibc.
32002
32003 2006-06-29  Eric Blake  <ebb9@byu.net>
32004
32005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
32006
32007 2006-06-29  Eric Blake  <ebb9@byu.net>
32008
32009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
32010
32011 2006-06-29  Eric Blake  <ebb9@byu.net>
32012
32013         * lib/stat_.h: New file.
32014
32015 2006-06-29  Eric Blake  <ebb9@byu.net>
32016
32017         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
32018         unused static function.
32019
32020 2006-06-29  Eric Blake  <ebb9@byu.net>
32021
32022         * doc/functions.texi (Function Portability): Document missing lstat
32023         on mingw.
32024
32025 2006-06-29  Eric Blake  <ebb9@byu.net>
32026
32027         * MODULES.html.sh: Add sys_stat.
32028         * modules/sys_stat: New module.
32029         * modules/mkstemp (Depends-on): Add sys_stat.
32030
32031 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32032
32033         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
32034
32035 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32036
32037         * m4/c-bs-a.m4: Removed.
32038
32039 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32040
32041         * lib/strftime.c: Assume strftime() exists.
32042
32043 2006-06-29  Derek Price  <derek@ximbiot.com>
32044
32045         * modules/c-bs-a: Removed - \a is C89.
32046         * MODULES.html.sh: Remove c-bs-a.
32047
32048 2006-06-29  Bruno Haible  <bruno@clisp.org>
32049
32050         * modules/wcwidth (License): Change to LGPL.
32051
32052 2006-06-28  Simon Josefsson  <jas@extundo.com>
32053
32054         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
32055         on _WIN32.
32056
32057         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
32058         getnameinfo.
32059
32060 2006-06-28  Simon Josefsson  <jas@extundo.com>
32061
32062         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
32063
32064 2006-06-28  Simon Josefsson  <jas@extundo.com>
32065
32066         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
32067         functions there.  It will succeed on Windows XP, but on Windows
32068         2000 and (presumably) earlier, it will fail, and use the internal
32069         re-implementation.
32070         (use_win32_p): New function.
32071         (getaddrinfo): Use strtoul on servname, to support numeric ports.
32072         Support AI_NUMERICSERV to disable getservbyname.
32073         (getnameinfo): New function, only supports
32074         NI_NUMERICHOST|NI_NUMERICSERV for now.
32075
32076         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
32077         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
32078         getnameinfo.
32079
32080 2006-06-28  Eric Blake  <ebb9@byu.net>
32081
32082         * modules/wcwidth: New file.
32083         * modules/mbchar (Depends-on): Add wcwidth.
32084         * modules/mbswidth (Depends-on): Add wcwidth.
32085         * MODULES.html.sh: Add wcwidth.
32086
32087 2006-06-28  Eric Blake  <ebb9@byu.net>
32088
32089         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
32090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
32091
32092 2006-06-28  Eric Blake  <ebb9@byu.net>
32093
32094         * lib/xvasprintf.h: Fix comments.
32095
32096 2006-06-28  Eric Blake  <ebb9@byu.net>
32097
32098         * lib/mbchar.h (wcwidth): Include wcwidth.h.
32099         * lib/mbswidth.c (wcwidth): Move from here...
32100         * lib/wcwidth.h: ...to this new file.
32101
32102 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32103
32104         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
32105
32106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
32107         it's obsolete.
32108         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
32109
32110 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32111
32112         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
32113         Autoconf 2.60 says this stuff was obsolete.
32114
32115 2006-06-28  Bruno Haible  <bruno@clisp.org>
32116
32117         * modules/wcwidth (Files): Add m4/wchar_t.m4.
32118
32119 2006-06-28  Bruno Haible  <bruno@clisp.org>
32120
32121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
32122         gt_TYPE_WCHAR_T.
32123
32124 2006-06-28  Bruno Haible  <bruno@clisp.org>
32125
32126         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
32127         declaration for wcwidth.
32128         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
32129
32130 2006-06-28  Bruno Haible  <bruno@clisp.org>
32131
32132         * lib/mkdtemp.c [MINGW]: Include <io.h>.
32133         (mkdir): Define using _mkdir.
32134
32135 2006-06-28  Bruno Haible  <bruno@clisp.org>
32136
32137         * lib/getaddrinfo.h: Fix POSIX URL.
32138         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
32139         _WIN32.
32140         (use_win32_p): Make static.
32141         (getaddrinfo): Reject service name if it is empty or does not consist
32142         solely of decimal digits, or if its value is > 65535.
32143         (getnameinfo): Remove useless casts.
32144
32145 2006-06-27  Simon Josefsson  <jas@extundo.com>
32146
32147         * modules/sys_select: New file, suggested by Bruno Haible, Paul
32148         Eggert and Martin Lambers.
32149
32150 2006-06-27  Simon Josefsson  <jas@extundo.com>
32151
32152         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32153         Eggert and Martin Lambers.
32154
32155 2006-06-27  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32158         result to 0, not to empty.
32159         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32160
32161 2006-06-27  Bruno Haible  <bruno@clisp.org>
32162
32163         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32164
32165 2006-06-26  Simon Josefsson  <jas@extundo.com>
32166
32167         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32168         present.
32169
32170 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32171
32172         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32173         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
32174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32175
32176 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
32177
32178         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32179
32180 2006-06-26  Bruno Haible  <bruno@clisp.org>
32181
32182         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32183
32184 2006-06-26  Bruno Haible  <bruno@clisp.org>
32185
32186         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32187
32188 2006-06-26  Bruno Haible  <bruno@clisp.org>
32189
32190         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32191         SGI C compiler in pre-C99 mode.
32192         Suggested by Mark D. Baushke and Larry Jones.
32193
32194 2006-06-26  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32197         WCHAR_MAX.
32198         Reported by Mark D. Baushke and Larry Jones.
32199
32200 2006-06-26  Bruno Haible  <bruno@clisp.org>
32201
32202         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32203         in pre-C99 mode.
32204         Suggested by Mark D. Baushke and Larry Jones.
32205
32206 2006-06-23  Simon Josefsson  <jas@extundo.com>
32207             Bruno Haible  <bruno@clisp.org>
32208
32209         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32210         Emit mostlyclean-local rule.
32211         (func_emit_tests_Makefile_am): Likewise.
32212         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32213
32214 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32215
32216         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32217
32218 2006-06-23  Bruno Haible  <bruno@clisp.org>
32219
32220         * tests/test-stdint.c: Update to match ISO C 99 Technical
32221         Corrigendum 1.
32222
32223 2006-06-23  Bruno Haible  <bruno@clisp.org>
32224
32225         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32226
32227 2006-06-23  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/stdint_.h: Treat IRIX like OpenBSD.
32230
32231 2006-06-23  Bruno Haible  <bruno@clisp.org>
32232
32233         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32234         ISO C 99 Technical Corrigendum 1.
32235
32236 2006-06-22  Simon Josefsson  <jas@extundo.com>
32237
32238         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32239         MinGW.
32240
32241 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32242
32243         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32244         needed.  Some compiler complained about some of them.  Problem reported
32245         by Larry Jones in
32246         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32247
32248 2006-06-21  Simon Josefsson  <jas@extundo.com>
32249
32250         * tests/test-getaddrinfo.c: New file.
32251
32252         * modules/getaddrinfo-tests: New file.
32253
32254         * MODULES.html.sh: Add inet_pton.
32255
32256         * modules/inet_pton: New file.
32257
32258 2006-06-21  Simon Josefsson  <jas@extundo.com>
32259
32260         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32261         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32262         of using the (limited) gnulib implementation on Windows XP.
32263
32264         * m4/inet_pton.m4: New file.
32265
32266 2006-06-21  Simon Josefsson  <jas@extundo.com>
32267
32268         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32269         variable.
32270
32271         * lib/socket_.h: Don't define WINVER.
32272
32273         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32274         slightly modified to work in gnulib.
32275
32276 2006-06-21  Simon Josefsson  <jas@extundo.com>
32277
32278         * doc/gnulib.texi (Windows sockets): Add.
32279
32280 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32281
32282         * lib/read-file.c (fread_file): Start with buffer allocation of
32283         0 bytes rather than 1 byte; this simplifies the code.
32284         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32285         code to free buffer and save/restore errno.
32286         (internal_read_file): Remove unused local.
32287
32288 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32289
32290         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32291         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32292         Problem reported by Denis Excoffier in
32293         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32294
32295 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32296
32297         * modules/sys_socket, modules/socklen: Include sys/types since
32298         FreeBSD 4.x's sys/socket.h needs it.
32299
32300 2006-06-19  Simon Josefsson  <jas@extundo.com>
32301
32302         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32303
32304 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32305
32306         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32307
32308 2006-06-19  Bruno Haible  <bruno@clisp.org>
32309
32310         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32311         and FULL_PATH_INTTYPES_H in angle brackets.
32312         Reported by Mark D. Baushke <mdb@gnu.org>.
32313
32314 2006-06-17  Eric Blake  <ebb9@byu.net>
32315
32316         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32317         errno.
32318
32319 2006-06-17  Bruno Haible  <bruno@clisp.org>
32320
32321         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32322         <sys/inttypes.h>.
32323
32324 2006-06-17  Bruno Haible  <bruno@clisp.org>
32325
32326         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32327         whether errno is declared. Assume <errno.h> declares errno.
32328
32329 2006-06-17  Bruno Haible  <bruno@clisp.org>
32330
32331         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32332
32333 2006-06-17  Bruno Haible  <bruno@clisp.org>
32334
32335         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32336         problem on Solaris 2.5.1.
32337
32338 2006-06-16  Eric Blake  <ebb9@byu.net>
32339
32340         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32341         * lib/unicodeio.c [!defined errno]: Likewise.
32342         * lib/strtol.c [!defined errno]: Likewise.
32343         * lib/strtod.c [!defined errno]: Likewise.
32344
32345 2006-06-15  Eric Blake  <ebb9@byu.net>
32346
32347         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32348
32349 2006-06-15  Eric Blake  <ebb9@byu.net>
32350
32351         * config/srclist.txt (ssize_t.m4): Lose sync.
32352
32353 2006-06-15  Bruno Haible  <bruno@clisp.org>
32354
32355         * modules/stdint (Files): Include m4/full-header-path.m4,
32356         m4/size_max.m4, m4/wchar_t.m4.
32357         (Makefile.am): Many more substitutions.
32358         * modules/stdint-tests: New file.
32359         * tests/test-stdint.c: New file.
32360
32361 2006-06-15  Bruno Haible  <bruno@clisp.org>
32362
32363         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32364         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32365         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32366         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32367         gl_CHECK_TYPE_SAME): New macros.
32368
32369 2006-06-15  Bruno Haible  <bruno@clisp.org>
32370
32371         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32372
32373 2006-06-15  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/stdint_.h: Rewritten to be fully auto-configured.
32376         Fixes bug on HP-UX/IA64.
32377
32378 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32379
32380         * lib/getdate.y (__attribute__): Don't define if already defined.
32381         Problem reported by Larry Jones.
32382         * lib/utimens.c (__attribute__): Likewise.
32383
32384 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32385
32386         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32387         reported by Andreas Schwab.
32388
32389 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32390             Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32393         check for the declaration of strnlen and a run test that exposes the
32394         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32395         rpl_strndup.
32396
32397 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32398             Bruno Haible  <bruno@clisp.org>
32399
32400         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32401
32402 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32403
32404         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32405         compile test, for Tru64 4.0D.
32406
32407 2006-05-28  Karl Berry  <karl@gnu.org>
32408
32409         * config/srclist.txt (printf-args.c): lose sync.
32410
32411 2006-05-26  Martin Lambers  <marlam@marlam.de>
32412
32413         * lib/getpass.c: Updates the test for the native W32 API, and adds
32414         missing includes, thus fixing compilation warnings.
32415
32416 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32417
32418         * lib/exclude.c (exclude_fnmatch): New function.
32419         (excluded_file_name): Call exclude_fnmatch.
32420         * lib/exclude.h (excluded_file_name): New prototype
32421
32422 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32423
32424         * lib/tempname.c (small_open, large_open): New macros.
32425         (__open, __open64) [!_LIBC]: Remove.
32426         (__gen_tempname): Use small_open and large_open instead of __open
32427         and __open64.  This fixes a portability bug on HP-UX 11.11i
32428         reported by Simon Wing-Tang in
32429         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32430
32431 2006-05-24  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32434         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32435         Reported by Thorsten Maerz <torte@netztorte.de> via
32436         Aaron Stone <aaron@serendipity.cx>.
32437
32438 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32439
32440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32441         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32442         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32443         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32444         not really conditional on the cache.
32445         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32446
32447 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32448
32449         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32450         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32451         (my_usleep): Don't mishandle maximum value.
32452
32453 2006-05-19  Jim Meyering  <jim@meyering.net>
32454
32455         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32456
32457 2006-05-17  Bruno Haible  <bruno@clisp.org>
32458
32459         Cygwin portability.
32460         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32461
32462 2006-05-17  Bruno Haible  <bruno@clisp.org>
32463
32464         * lib/stdint_.h: Fix recognition of Cygwin.
32465
32466 2006-05-15  Bruno Haible  <bruno@clisp.org>
32467
32468         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32469         on libtool patch by Ralf Wildenhues.
32470
32471 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32472
32473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32474         test for C99 conformance; (bool) 0.5 is an integer constant
32475         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32476         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32477
32478 2006-05-11  Simon Josefsson  <jas@extundo.com>
32479
32480         * m4/xvasprintf.m4: Fix obvious typo.
32481
32482 2006-05-11  Jim Meyering  <jim@meyering.net>
32483
32484         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32485         James Lemley.
32486
32487 2006-05-10  Simon Josefsson  <jas@extundo.com>
32488
32489         * lib/md4.c: Typo fix, update copyright years.
32490         (K1, K2): Don't use L because it turn computations into 64-bit on
32491         64-bit platforms.
32492
32493 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32494
32495         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32496         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32497         unwanted sign propagation, e.g., on hosts with 64-bit int.
32498         There still are some problems with reeelly weird theoretical hosts
32499         (e.g., 33-bit int) but it's not worth worrying about now.
32500         * lib/sha1.c (rol): Likewise.
32501         (K1, K2, K3, K4): Remove unnecessary L suffix.
32502
32503 2006-05-10  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/des.c: Cast to avoid warnings.
32506
32507 2006-05-09  Bruno Haible  <bruno@clisp.org>
32508
32509         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32510         (Depends-on): Depend also on xsize, stdarg.
32511         (configure.ac): Add gl_XVASPRINTF.
32512
32513 2006-05-09  Bruno Haible  <bruno@clisp.org>
32514
32515         * m4/xvasprintf.m4: New file.
32516
32517 2006-05-09  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32520         (EOVERFLOW): Define fallback value.
32521         (xstrcat): New function.
32522         (xvasprintf): Recognize the special case of a string concatenation.
32523
32524 2006-05-08  Eric Blake  <ebb9@byu.net>
32525
32526         * gnulib-tool (func_version): Base copyright year on CVS date.
32527         (func_emit_copyright_notice): New function.
32528         (func_emit_lib_Makefile_am): Use it.
32529         (func_emit_tests_Makefile_am): Likewise.
32530         (func_import): Likewise.
32531
32532 2006-05-08  Bruno Haible  <bruno@clisp.org>
32533
32534         * modules/stdarg: New file.
32535         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32536
32537 2006-05-08  Bruno Haible  <bruno@clisp.org>
32538
32539         * m4/stdarg.m4: New file, from GNU gettext.
32540
32541 2006-05-08  Bruno Haible  <bruno@clisp.org>
32542
32543         * config/srclist.txt (build-aux/config.rpath): different from latest
32544         release.
32545
32546 2006-05-08  Bruno Haible  <bruno@clisp.org>
32547
32548         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32549
32550 2006-05-05  Jim Meyering  <jim@meyering.net>
32551
32552         * m4/warning.m4: New file, derived from bison's file by the same name.
32553
32554 2006-05-03  Bruno Haible  <bruno@clisp.org>
32555
32556         * lib/stdint_.h: Shorter URL.
32557         * lib/inttypes.h: Likewise.
32558
32559 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32560
32561         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32562
32563 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32564
32565         * lib/verify.h: Document the internals better.  Most of this change
32566         was written by Bruno Haible.
32567
32568 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * doc/verify.texi: New file, partly based on a proposal by
32571         Bruno Haible.
32572
32573 2006-05-02  Bruno Haible  <bruno@clisp.org>
32574
32575         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32576         test from here...
32577         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32578
32579 2006-04-29  Bruno Haible  <bruno@clisp.org>
32580
32581         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32582         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32583
32584 2006-04-29  Bruno Haible  <bruno@clisp.org>
32585
32586         * gnulib-tool: Make --update option actually work.
32587
32588 2006-04-29  Bruno Haible  <bruno@clisp.org>
32589
32590         * doc/gcd.texi: New file.
32591         * doc/gnulib.texi: Include it.
32592
32593 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32594
32595         * lib/getdate.y (get_date): When adding relative date, start with the
32596         initial time, not with the result of the first mktime call.
32597
32598 2006-04-25  Bruno Haible  <bruno@clisp.org>
32599
32600         * gnulib-tool (func_import): Output the include directives in three
32601         blocks, sorted separately.
32602         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32603
32604 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32605
32606         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32607         to define main with arguments, for C++.  Reported by Eric Blake.
32608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32609         Prefer 'int main ()' to 'int main (void)', for C++.
32610         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32612         for 'main', for C99 and C++.
32613
32614 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32617         Don't assume that exit status -1 is valid.
32618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32619         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32620         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32621         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32622         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32623         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32624         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32625         functions can be used without declaring them, or that you can
32626         exit with status -1.
32627         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32628
32629 2006-04-24  Karl Berry  <karl@gnu.org>
32630
32631         * config/srclist.txt (longdouble.m4): sync lost.
32632
32633 2006-04-24  Eric Blake  <ebb9@byu.net>
32634
32635         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32636
32637 2006-04-24  Bruno Haible  <bruno@clisp.org>
32638
32639         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32640         poll() implementation in AIX.
32641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32642
32643 2006-04-24  Bruno Haible  <bruno@clisp.org>
32644
32645         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32646         assigned exactly once.
32647
32648 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32649             Bruno Haible  <bruno@clisp.org>
32650
32651         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32652         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32653         for AM_CPPFLAGS.
32654
32655 2006-04-23  Bruno Haible  <bruno@clisp.org>
32656
32657         * modules/copy-file: Depend on unistd.
32658         * modules/execute: Likewise.
32659         * modules/fatal-signal: Likewise.
32660         * modules/findprog: Likewise.
32661         * modules/mkdtemp : Likewise.
32662         * modules/pipe: Likewise.
32663         * modules/wait-process: Likewise.
32664
32665 2006-04-23  Bruno Haible  <bruno@clisp.org>
32666
32667         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32668         condition was already detected.
32669         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32670
32671 2006-04-23  Bruno Haible  <bruno@clisp.org>
32672
32673         * lib/copy-file.c: Include <unistd.h> unconditionally.
32674         * lib/execute.c: Likewise.
32675         * lib/fatal-signal.c: Likewise.
32676         * lib/findprog.c: Likewise.
32677         * lib/mkdtemp.c: Likewise.
32678         * lib/pipe.h: Likewise.
32679         * lib/pipe.c: Likewise.
32680         * lib/wait-process.h: Likewise.
32681
32682 2006-04-23  Bruno Haible  <bruno@clisp.org>
32683
32684         * gnulib-tool (func_usage): Fix --import description. Document
32685         --update.
32686         (func_import): Create temporary file in a temporary directory, if
32687         --dry-run is specified. Silence errors from 'grep' when there are no
32688         m4 files in $m4dir.
32689         (func_create_testdir): Silence errors from 'grep' when there are no
32690         m4 files in $m4dir.
32691         Reported by Karl Berry <karl@freefriends.org>.
32692
32693 2006-04-20  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32696         one argument, so that the code will be portable to Autoconf 2.60.
32697         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32698         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32699         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32700
32701 2006-04-19  Derek Price  <derek@ximbiot.com>
32702             Eric Blake  <ebb9@byu.net>
32703
32704         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32705         rather than "/full/path.h".  Update comment to match.  Shorten &
32706         generalize m4_translit call via AS_TR_CPP.
32707
32708 2006-04-19  Derek Price  <derek@ximbiot.com>
32709             Eric Blake  <ebb9@byu.net>
32710
32711         * lib/inttypes.h: Correct grammar in comment.
32712
32713 2006-04-18  Derek Price  <derek@ximbiot.com>
32714             Paul Eggert  <eggert@cs.ucla.edu>
32715
32716         * modules/inttypes: New file.
32717         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32718
32719 2006-04-18  Derek Price  <derek@ximbiot.com>
32720             Paul Eggert  <eggert@cs.ucla.edu>
32721
32722         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32723         New files.
32724
32725 2006-04-18  Derek Price  <derek@ximbiot.com>
32726             Paul Eggert  <eggert@cs.ucla.edu>
32727
32728         * lib/inttypes.h: New file.
32729         * lib/strtoimax.c: Assume <inttypes.h>.
32730
32731 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32732
32733         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32734         isn't mounted.  Problem reported by Kir Kolyshkin.
32735
32736 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32737
32738         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32739         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32740         Derek R. Price.
32741         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32742         implementation.
32743
32744 2006-04-12  Eric Blake  <ebb9@byu.net>
32745
32746         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32747         is now done automatically by the corresponding Autoconf macro.
32748
32749 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32750
32751         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32752         time_r.h.
32753
32754 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32755
32756         Merge regex changes from libc, removing some of our
32757         POSIX-conformance changes that were rejected and redoing them in a
32758         less-intrusive way.
32759
32760         * lib/regcomp.c (re_compile_internal, init_dfa):
32761         Length arg is now size_t, not Idx.  All uses changed.
32762         (peek_token): Forward decl now says internal_function.
32763         (__re_error_msgid, __re_error_msgid_idx):
32764         Now static rather than extern with attribute_hidden.
32765         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32766         For some reason libc prefers K&R style defns for external functions.
32767         (regerror) [!defined _LIBC]: Likewise.
32768         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32769         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32770         (build_range_exp, build_collating_symbol):
32771         Use K&R-style defn.
32772         (re_compile_fastmap): Use '\0' to memset, not 0.
32773         (utf8_sb_map): Make the calculations more obvious.
32774         (init_dfa, parse_bracket_exp, build_charclass_op):
32775         Call calloc and cast result, as glibc does.
32776         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32777         (build_range_exp, build_collating_symbol):
32778         Now internal functions.
32779
32780         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32781
32782         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32783         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32784         Don't depend on VMS; depend on __VMS instead, for POSIX
32785         namespace cleanness.
32786         (regoff_t): Define to ssize_t, not long int.
32787
32788         Remove the REG_ macros named below.  Instead, make the old names
32789         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32790         __USE_GNU_REGEX.
32791         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32792         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32793         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32794         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32795         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32796         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32797         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32798         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32799         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32800         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32801         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32802         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32803         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32804         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32805         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32806         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32807         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32808         (REG_NREGS):
32809         Remove.  All uses replaced by the old RE_* names.
32810         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32811         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32812         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32813         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32814         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32815         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32816         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32817         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32818         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32819         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32820         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32821         Don't bother having these macros be independent of each others'
32822         values, since they no longer exist in the POSIX name space.
32823
32824         Rename the following member names back to their old names,
32825         unless !__USE_GNU_REGEX.  All uses changed back.
32826         (buffer): Renamed from re_buffer.
32827         (allocated): Renamed from re_allocated.
32828         (used): Renamed from re_used.
32829         (syntax): Renamed from re_syntax.
32830         (fastmap): Renamed from re_fastmap.
32831         (translate): Renamed from re_translate.
32832         (can_be_null): Renamed from re_can_be_null.
32833         (regs_allocated): Renamed from re_regs_allocated.
32834         (fastmap_accurate): Renamed from re_fastmap_accurate.
32835         (no_sub): Renamed from re_no_sub.
32836         (not_bol): Renamed from re_not_bol.
32837         (not_eol): Renamed from re_not_eol.
32838         (newline_anchor): Renamed from re_newline_anchor.
32839         (num_regs): Renamed from rm_num_regs.
32840         (start): Renamed from rm_start.
32841         (end): Renamed from rm_end.
32842
32843         (free_state): Move up a bit.
32844
32845         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32846         #define to be empty.
32847         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32848         when that is what is intended.
32849         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32850         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32851         (MAX): New macro.
32852         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32853         All uses changed back to re_malloc, etc.  It's now the caller's
32854         responsibility to check for overflow; all callers changed.
32855         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32856         (re_x2nrealloc): Remove.
32857         (free_state): Remove decl.
32858
32859         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32860         (re_set_registers, re_exec):
32861         Use K&R-style defn.
32862
32863         2006-01-31  Roland McGrath  <roland@redhat.com>
32864
32865         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32866         Reported by Mike Frysinger <vapier@gentoo.org>.
32867
32868         2006-01-15  Andreas Jaeger  <aj@suse.de>
32869
32870         [BZ #1950]
32871         * lib/regex_internal.c (re_string_reconstruct): Adjust for
32872         build_wcs_upper_buffer change.
32873         (build_wcs_upper_buffer): Change return type.
32874
32875         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
32876
32877         * lib/regex_internal.h: Include <stdint.h> if available.
32878
32879         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
32880
32881         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32882
32883         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32884
32885         * lib/regcomp.c: Adjust for changed secondary hash function.
32886
32887         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
32888
32889         * lib/regex.h: Pretty printing.
32890         Clean up namespace a bit.
32891
32892         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
32893
32894         * lib/regexec.c (update_cur_sifted_state, check_arrival,
32895         check_arrival_add_next_nodes): Avoid using uninitialized variable.
32896
32897         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32898                     Ulrich Drepper  <drepper@redhat.com>
32899
32900         [BZ #1302]
32901         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
32902         changed.
32903         (bitset_word_t): Renamed from bitset_word.  All uses changed.
32904
32905         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
32906
32907         [BZ #281]
32908         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32909         * lib/regcomp.c: Remove unnecessary uses of
32910         unsigned RE_TRANSLATE_TYPE.
32911         * lib/regex_internal.h: Likewise.
32912         * lib/regex_internal.c: Likewise.
32913         * lib/regexec.c: Likewise.
32914         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32915
32916         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
32917
32918         * lib/regexec.c (find_recover_state): Remove unnecessary
32919         initialization.
32920         (transit_state_bkref): Make DFA a const pointer.
32921         (get_subexp): Likewise.
32922         (check_arrival): Likewise.
32923         (update_cur_sifted_state): Likewise.
32924         (re_search_internal): Likewise.
32925         (prune_impossible_nodes): Likewise.
32926         (acquire_init_state_context): Likewise.
32927         (proceed_next_node): Likewise.
32928         (set_regs): Likewise.
32929         (free_fail_stack_return): Likewise.
32930         (check_arrival_expand_ecl): Mark DFA parameter as const.
32931         (check_arrival_expand_ecl_sub): Likewise.
32932         (check_subexp_limits): Likewise.
32933         (sub_epsilon_src_nodes):  Likewise.
32934         (add_epsilon_src_nodes):  Likewise.
32935         (merge_state_array): Likewise.
32936         (update_regs): Likewise.
32937         (build_trtable): Likewise.
32938         (sift_states_backward): Mark MCTX parameter as const.
32939         (build_sifted_states): Likewise.
32940         (update_cur_sifted_state): Likewise.
32941         (sift_states_mkref): Likewise.
32942         (check_arrival_expand_ecl): Mark eclosure as const.
32943         (check_dst_limits_calc_pos_1): Likewise.
32944         * lib/regex_internal.h (re_match_context_t): Make dfa a const
32945         pointer.
32946
32947         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
32948
32949         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32950         (transit_state_sb): Likewise.
32951         (transit_state_mb): Likewise.
32952         (sift_states_iter_mb): Likewise.
32953         (check_arrival_add_next_nodes): Likewise.
32954         (check_node_accept_bytes): Change first parameter to pointer-to-const.
32955         [_LIBC] (re_search_2_stub): Use mempcpy.
32956
32957         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32958         mbrtowc for very simple UTF-8 case.
32959
32960         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32961         a pointer-to-const.
32962         (re_acquire_state_context): Likewise.
32963         * lib/regex_internal.h: Adjust prototypes.
32964
32965         * lib/regex.c: Prevent using C++ compilers.
32966
32967         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32968         (re_acquire_state_context): Likewise.
32969
32970 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32971
32972         * modules/regex (Depends-on): Add ssize_t.
32973
32974 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32977         translation table.
32978
32979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32982
32983 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
32984             Bruno Haible  <bruno@clisp.org>
32985
32986         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32987         <sys/types.h> and <inttypes.h>.
32988
32989 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32990
32991         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32992         `__error_t_defined', so argp.h will not typedef the former.
32993
32994 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32995
32996         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32997         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
32998         glibc names.  Even if glibc is changed to conform to POSIX, the
32999         traditional names will be available anyway, since regex depends on
33000         the extensions module.  Also, fix a longstanding typo in the
33001         implementation of Spencer ERE test #75 from grep 2.3.  Problems
33002         reported by Emanuele Giaquinta.  Also, change sense of cached
33003         variable, so that the message makes sense.
33004
33005 2006-03-24  Simon Josefsson  <jas@extundo.com>
33006
33007         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
33008         including some doc fixes.
33009         (base64_encode_alloc): Fix +1 bug on allocation failures.
33010
33011 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33012
33013         * lib/base64.c (base64_encode): Do not read past end of array with
33014         unsanitized input on systems with CHAR_BIT > 8.
33015
33016 2006-03-24  Eric Blake  <ebb9@byu.net>
33017
33018         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
33019
33020 2006-03-22  Karl Berry  <karl@gnu.org>
33021
33022         * config/srclist.txt (*setenv.[ch]): get from coreutils.
33023         * config/srclistvars.sh (COREUTILS): new var.
33024
33025 2006-03-17  Jim Meyering  <jim@meyering.net>
33026
33027         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
33028         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
33029
33030 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33031
33032         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
33033         no longer needs it.  Instead, check that regoff_t is as least
33034         as wide as ptrdiff_t.
33035
33036         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
33037         so that our regex.h stays compatible with the installed regex.
33038         This is helpful for installers who configure --without-included-regex.
33039         Problem reported by Emanuele Giaquinta.
33040
33041 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33042
33043         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
33044         Typedef to long int, not to off_, as POSIX will likely change
33045         in that direction.
33046
33047 2006-03-15  Eric Blake  <ebb9@byu.net>
33048
33049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
33050
33051 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33052
33053         * lib/argp-help.c (validate_uparams): Fix typo
33054         * lib/argp-parse.c (argp_default_options): Consistently begin help
33055         messages with a lowercase letter.
33056
33057 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
33058
33059         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
33060         overrun buffers and shouldn't be used (much as gets shouldn't be
33061         used).
33062         * lib/time_r.c (asctime_r, ctime_r): Likewise.
33063
33064 2006-03-08  Simon Josefsson  <jas@extundo.com>
33065
33066         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
33067         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33068
33069 2006-03-08  Simon Josefsson  <jas@extundo.com>
33070
33071         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
33072         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33073
33074 2006-03-08  Simon Josefsson  <jas@extundo.com>
33075
33076         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
33077         signal that configure disabled the device.
33078
33079 2006-03-08  Simon Josefsson  <jas@extundo.com>
33080
33081         * build-aux/maint.mk: Fix refresh-po, to handle no translated
33082         languages.
33083
33084 2006-03-07  Simon Josefsson  <jas@extundo.com>
33085
33086         * modules/getopt (Depends-on): Add unistd.
33087
33088         * modules/unistd: New file.
33089
33090 2006-03-07  Simon Josefsson  <jas@extundo.com>
33091
33092         * modules/gc-random: New file.
33093
33094 2006-03-07  Simon Josefsson  <jas@extundo.com>
33095
33096         * m4/unistd_h.m4: New file.
33097
33098 2006-03-07  Simon Josefsson  <jas@extundo.com>
33099
33100         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
33101         test to be side-effect free by storing the result in the cache
33102         variable gl_cv_lib_readline, and moving the assignment of
33103         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
33104         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33105
33106 2006-03-07  Simon Josefsson  <jas@extundo.com>
33107
33108         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
33109         error on missing devices (the functions will return an error).
33110
33111         * m4/gc.m4: Move random stuff to gc-random.m4
33112
33113 2006-03-07  Simon Josefsson  <jas@extundo.com>
33114
33115         * lib/unistd_.h: New file.
33116
33117 2006-03-07  Simon Josefsson  <jas@extundo.com>
33118
33119         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
33120
33121 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
33124         Problem reported by Juan Manuel Guerrero.
33125
33126 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33127
33128         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
33129         the unistd module.
33130         * lib/getlogin_r.c: Likewise.
33131         * lib/getlogin_r.h: Likewise.
33132         * lib/glob.c: Likewise.
33133         * lib/pagealign_alloc.c: Likewise.
33134         * lib/unistd_.h: Remove; no longer needed.
33135
33136 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33137
33138         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33139         Add unistd.
33140         * modules/c-stack (Depends-on): Add unistd.
33141         * modules/getlogin_r: Likewise.
33142         * modules/glob: Likewise.
33143         * modules/pagealign_alloc: Likewise.
33144         * modules/unistd (Files): Remove lib/unistd_.h.
33145         (EXTRA_DIST): Remove.
33146         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
33147         need unistd_.h.
33148         (MOSTLYCLEANFILES): Remove unistd.h-t.
33149
33150 2006-03-03  Simon Josefsson  <jas@extundo.com>
33151
33152         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33153
33154 2006-03-03  Simon Josefsson  <jas@extundo.com>
33155
33156         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33157         libidn and bison.
33158
33159 2006-03-03  Simon Josefsson  <jas@extundo.com>
33160
33161         * build-aux/maint.mk: Add indent target.
33162
33163 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
33164
33165         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33166         our replacement poll.h in any case, to avoid a differing
33167         declaration from a system header.  Seen on AIX.
33168
33169 2006-03-01  Simon Josefsson  <jas@extundo.com>
33170
33171         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33172         <kasal@ucw.cz>.
33173
33174 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33175
33176         * modules/gettime (Depends-on): Add extensions module.
33177         * modules/nanosleep (Depends-on): Likewise.
33178         * modules/settime (Depends-on): Likewise.
33179
33180 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33181
33182         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33183         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33184         pedantically.
33185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33186         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33187
33188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33189         not "==".  Reported by Ralf Wildenhues.
33190
33191 2006-03-01  Karl Berry  <karl@gnu.org>
33192
33193         * doc/Copyright/request-*: new files, synced from gnuorg.
33194
33195 2006-03-01  Karl Berry  <karl@gnu.org>
33196
33197         * config/srclist.txt (Copyright/*): new entries.
33198
33199 2006-02-28  Simon Josefsson  <jas@extundo.com>
33200
33201         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33202
33203 2006-02-27  Simon Josefsson  <jas@extundo.com>
33204
33205         * lib/base64.h: Indent #define's.  From Jim Meyering
33206         <jim@meyering.net>.
33207
33208 2006-02-27  Jim Meyering  <jim@meyering.net>
33209
33210         Revert the change of 2006-02-24, so these files can continue
33211         to be sync'd from gettext.
33212         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33213         of `config.h'.
33214
33215 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33216
33217         * modules/intprops: New file.
33218         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33219         Add intprops.
33220         * modules/getloadavg (Files): Remove lib/intprops.h.
33221         (Depends-on): Add intprops.
33222         * modules/human: Likewise.
33223         * modules/inttostr: Likewise.
33224         * modules/openat: Likewise.
33225         * modules/sig2str: Likewise.
33226         * modules/userspec: Likewise.
33227         * modules/utimecmp: Likewise.
33228         * modules/xnanosleep: Likewise.
33229         * modules/xstrtol: Likewise.
33230
33231 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
33232
33233         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33234         * modules/lock-tests (TESTS): Use $(EXEEXT).
33235         * modules/tls-tests: Likewise.
33236         * modules/argp-tests: Likewise.
33237         (check_PROGRAMS): New var, replacing...
33238         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33239
33240 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33241
33242         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33243         `config.h'.
33244
33245 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33246
33247         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33248
33249 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33250
33251         Sync from coreutils.
33252         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33253         gl_CHDIR_SAFER.
33254
33255 2006-02-22  Jim Meyering  <jim@meyering.net>
33256
33257         Sync from coreutils.
33258         * m4/chdir-safer.m4: New file.
33259
33260 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33261
33262         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33263         AT_FDCWD exceeds INT_MAX.
33264         * lib/openat.h (AT_FDCWD): Likewise.
33265
33266 2006-02-17  Eric Blake  <address@hidden>
33267
33268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33269
33270 2006-02-16  Simon Josefsson  <jas@extundo.com>
33271
33272         * modules/getaddrinfo (Depends-on): Add sys_socket.
33273
33274 2006-02-15  Simon Josefsson  <jas@extundo.com>
33275
33276         * build-aux/maint.mk: Add dsyntax-check rule.
33277
33278 2006-02-15  Eric Blake  <ebb9@byu.net>
33279
33280         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33281         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33282         'present but cannot compile' warnings on cygwin.
33283         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33284         use ws2tcpip.h if sys/socket.h works.
33285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33286         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33287
33288 2006-02-14  Simon Josefsson  <jas@extundo.com>
33289
33290         * modules/maintainer-makefile (Files): Rename.
33291
33292         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33293         and (the local) Makefile.cfg to maint-cfg.mk.
33294
33295         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33296         to the latter.
33297
33298         * modules/maintainer-makefile: New module.
33299
33300         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33301         severaly stripped to make it possible to build it up from scratch
33302         with reliable tests.
33303
33304         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33305         fixes to permit overriding the default actions when configure and
33306         makefile are not available.
33307
33308 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33309
33310         Sync from coreutils.
33311         * modules/lstat (Depends-on): Don't depend on xalloc.
33312         (License): Change from GPL to LGPL, since this is now simply a
33313         replacement for a libc function.
33314
33315 2006-02-14  Jim Meyering  <jim@meyering.net>
33316
33317         Sync from coreutils.
33318
33319         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33320         failure on deficient systems, and simplify gnulib lgpl dependencies.
33321         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33322         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33323
33324         * lib/xalloc-die.c: Remove unused definition of N_.
33325
33326 2006-02-14  Jim Meyering  <jim@meyering.net>
33327
33328         Sync from coreutils.
33329         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33330         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33331         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33332         double-quote uses of that variable, to accommodate the rare case in
33333         which getmntent is available in none of the libraries checked.  This
33334         happens at least on FreeBSD 5.0.
33335
33336 2006-02-13  Simon Josefsson  <jas@extundo.com>
33337
33338         * gnulib-tool (Usage): Fix --import, from
33339         karl@freefriends.org (Karl Berry).
33340
33341 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33342
33343         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33344
33345 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33346
33347         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33348         "autoupdate" on 2005-12-12.
33349
33350 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33351
33352         * modules/closeout (Depends-on): Remove atexit.
33353
33354 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33355
33356         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33357         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33358
33359 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33360
33361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33362         __EXTENSIONS__ if this causes compilation to fail.  Problem
33363         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33364         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33365
33366 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33367
33368         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33369         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33371         All uses changed.
33372
33373 2006-01-26  Simon Josefsson  <jas@extundo.com>
33374
33375         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33376         prototype is visible on mingw32.
33377
33378         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33379         for mingw32.
33380
33381         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33382         mingw32).
33383
33384 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33385
33386         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33387         attempt to open for write; this always fails, at least on POSIX
33388         hosts.  This reinstates the 2006-01-09 change, which was
33389         inadvertently removed.
33390
33391 2006-01-26  Bruno Haible  <bruno@clisp.org>
33392
33393         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33394         Reported by Paul Eggert.
33395
33396 2006-01-26  Bruno Haible  <bruno@clisp.org>
33397             Paul Eggert  <eggert@cs.ucla.edu>
33398
33399         * lib/stdbool_.h (_Bool)
33400         [(! (defined __cplusplus || defined __BEOS__)
33401           && !defined __GNUC__
33402           && !(defined __HP_cc || defined __xlc__
33403                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33404                || defined __sgi))]:
33405         #define to signed char in these cases too; this simplifies
33406         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33407         etc., separately) and makes it more conservative.
33408
33409 2006-01-25  Simon Josefsson  <jas@extundo.com>
33410
33411         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33412         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33413         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33414
33415 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33416
33417         * lib/argp-namefrob.h: Bugfix. Remove stray #
33418
33419 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33420
33421         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33422         so that we test the test.
33423         Check for yet another HP-UX cc bug involving *bool |= bool.
33424
33425 2006-01-25  Karl Berry  <karl@gnu.org>
33426
33427         * config/srclist.txt (vasnprintf.c): sync lost.
33428
33429 2006-01-25  Jim Meyering  <jim@meyering.net>
33430
33431         Sync from the stable (b5) branch of coreutils:
33432
33433         * lib/fts.c (fts_children): Don't let close() clobber errno from
33434         failed fchdir().
33435
33436         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33437         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33438         a dangling symlink.  That can also happen at least for ELOOP.
33439         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33440         FYI, this bug predates the inclusion of fts.c in coreutils.
33441
33442         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33443         in their own block, so pre-c99 compilers don't object.
33444
33445         Avoid the double-free (first in fts_read, second in fts_close) that
33446         would occur when an `active' directory is made inaccessible (e.g.,
33447         via chmod a-x) during a traversal.
33448         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33449         before returning.  Reproduce this failure by
33450         mkdir -p a/b; cd a; chmod a-x . b
33451         Reported by Stavros Passas.
33452
33453 2006-01-25  Jim Meyering  <jim@meyering.net>
33454
33455         * lib/fileblocks.c: Remove more useless parentheses.
33456         * lib/readutmp.h: Likewise.
33457
33458 2006-01-25  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33461         warnings.
33462         Reported by Paul Eggert.
33463
33464 2006-01-25  Bruno Haible  <bruno@clisp.org>
33465
33466         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33467         rid of a trap command. For Solaris sh.
33468         Reported by Mark D. Baushke <mdb@gnu.org>.
33469
33470 2006-01-24  Simon Josefsson  <jas@extundo.com>
33471
33472         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33473         Bruno.
33474
33475 2006-01-24  Karl Berry  <karl@gnu.org>
33476
33477         * config/srclist.txt (argp-namefrob.h): sync lost.
33478
33479 2006-01-24  Jim Meyering  <jim@meyering.net>
33480
33481         * modules/openat (Files): Add lib/intprops.h.
33482         From Mark D. Baushke.
33483
33484 2006-01-24  Jim Meyering  <jim@meyering.net>
33485
33486         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33487         Reported by Mark D. Baushke.
33488
33489 2006-01-24  Jim Meyering  <jim@meyering.net>
33490
33491         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33492
33493 2006-01-24  Bruno Haible  <bruno@clisp.org>
33494
33495         * modules/strnlen (Maintainer): Change from glibc to all.
33496
33497 2006-01-24  Bruno Haible  <bruno@clisp.org>
33498
33499         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33500         Patch by Paul Eggert.
33501
33502 2006-01-24  Bruno Haible  <bruno@clisp.org>
33503
33504         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33505         already has it.
33506         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33507         2005-11-26.
33508
33509         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33510         'signed char' to avoid problems with the built-in _Bool type.
33511         Reported by Paul Eggert on 2005-11-26.
33512
33513 2006-01-24  Bruno Haible  <bruno@clisp.org>
33514
33515         * gnulib-tool (func_import): Avoid constructing complicated sed
33516         expressions inside backquote.
33517         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33518
33519 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33520
33521         These changes imported from libc.
33522         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33523         test and two separate function calls.
33524         * lib/strndup.c (__strndup): Add libc_hidden_def.
33525
33526 2006-01-23  Simon Josefsson  <jas@extundo.com>
33527
33528         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33529         Remove the test_*_SOURCES variable: automake infers it by default.
33530         * modules/tls-tests: Likewise.
33531
33532 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33533
33534         Work around porting bugs reported by Dieter in
33535         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33536         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33537         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33538         Include "getopt.h" first, to check interface.
33539         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33540         !HAVE_DECL_GETENV.
33541         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33542         (__strndup): Revert to K&R-style function dfns, the glibc style.
33543         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33544         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33545         Include strnlen.h first, to get prototype properly.
33546         (strnlen): Renamed from __strnlen.
33547         Remove weak alias.
33548
33549 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33550
33551         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33552
33553 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33554
33555         * config/srclist.txt: Adjust to reflect glibc reorganization.
33556         This affects only comments.
33557
33558 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33559
33560          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33561          Reported by Bruce Korb <bkorb@gnu.org>.
33562
33563 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33564
33565         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33566         to pacify gcc -Wswitch-default.
33567
33568 2006-01-22  Bruno Haible  <bruno@clisp.org>
33569
33570         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33571         temporary buffer for sprintf, take into account the precision also
33572         for 'd', 'i', 'u', 'o', 'x', 'X'.
33573
33574 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33575
33576         * modules/argp-tests: New module
33577         * tests/test-argp.c: New file
33578         * tests/test-argp-2.sh: New file
33579
33580 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33581
33582         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33583         (__argp_base_name): Removed
33584         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33585         typo.
33586         (__argp_base_name): Provide macro definition or extern declaration
33587         depending on the configuration
33588
33589 2006-01-20  Simon Josefsson  <jas@extundo.com>
33590
33591         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33592
33593 2006-01-20  Simon Josefsson  <jas@extundo.com>
33594
33595         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33596
33597 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33598
33599         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33600         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33601         Suggested by Bruno Haible.
33602
33603 2006-01-20  Karl Berry  <karl@gnu.org>
33604
33605         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33606         until changes propagate, I guess.
33607
33608 2006-01-19  Simon Josefsson  <jas@extundo.com>
33609
33610         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33611
33612 2006-01-19  Simon Josefsson  <jas@extundo.com>
33613
33614         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33615
33616 2006-01-19  Simon Josefsson  <jas@extundo.com>
33617
33618         * gnulib-tool: Set check_PROGRAMS.
33619
33620         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33621         modules/des-tests, modules/gc-arcfour-tests,
33622         modules/gc-arctwo-tests, modules/gc-des-tests,
33623         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33624         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33625         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33626         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33627         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33628         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33629         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33630         test_*_SOURCES.
33631
33632 2006-01-18  Simon Josefsson  <jas@extundo.com>
33633
33634         * modules/socklen (Depends-on): Depend on sys_socket.
33635
33636 2006-01-18  Simon Josefsson  <jas@extundo.com>
33637
33638         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33639         modules/des-tests, modules/gc-arcfour-tests,
33640         modules/gc-arctwo-tests, modules/gc-des-tests,
33641         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33642         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33643         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33644         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33645         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33646         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33647         $(EXEEXT) to automake TESTS variable, for mingw32.
33648
33649 2006-01-17  Simon Josefsson  <jas@extundo.com>
33650
33651         * modules/socklen (Include): Need sys/socket.h.
33652
33653 2006-01-17  Bruno Haible  <bruno@clisp.org>
33654
33655         * modules/ssize_t (Include): Add <sys/types.h>.
33656
33657 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33658
33659         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33660         it's not portable and it doesn't work with cross-compiles.
33661         Problem reported by Bruno Haible.  Fix missing-$ typo in
33662         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33663         -zignore from being used with Sun's C compiler.
33664
33665 2006-01-12  Simon Josefsson  <jas@extundo.com>
33666
33667         * lib/base64.c: Fix warning, reported by Bruno Haible
33668         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33669
33670 2006-01-12  Bruno Haible  <bruno@clisp.org>
33671
33672         * modules/ldd: New file.
33673         * build-aux/ldd.sh.in: New file.
33674         * MODULES.html.sh (Support for building libraries and executables): Add
33675         ldd.
33676
33677 2006-01-12  Bruno Haible  <bruno@clisp.org>
33678
33679         * m4/ldd.m4: New file.
33680
33681 2006-01-12  Bruno Haible  <bruno@clisp.org>
33682
33683         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33684         endless loop while replacing $auxdir with build-aux.
33685
33686 2006-01-11  Simon Josefsson  <jas@extundo.com>
33687
33688         * lib/stdint_.h (SIZE_MAX): Add missing (.
33689
33690 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33691
33692         Sync from coreutils.
33693         * lib/md5.c: Fix commentary typos.
33694         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33695         * lib/md5.h (__attribute__): Remove; unused.
33696         * lib/sha1.c: Fix commentary to match md5 better.
33697         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33698         so that we don't need to worry about alignment.  All uses changed.
33699         This merges the 2005-10-28 md5 change into sha1.
33700
33701 2006-01-11  Jim Meyering  <jim@meyering.net>
33702
33703         Sync from coreutils.
33704         * lib/md5.c (OP): Fix spacing.
33705
33706 2006-01-11  Bruno Haible  <bruno@clisp.org>
33707
33708         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33709         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33710         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33711
33712 2006-01-11  Bruno Haible  <bruno@clisp.org>
33713
33714         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33715         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33716         the "early" section as well.
33717
33718 2006-01-11  Bruno Haible  <bruno@clisp.org>
33719
33720         Avoid "ar: no archive members specified" error on MacOS X.
33721         * gnulib-tool (func_modules_add_dummy): New function.
33722         (func_import, func_create_testdir): Invoke it.
33723
33724 2006-01-11  Bruno Haible  <bruno@clisp.org>
33725
33726         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33727         with $auxdir in AC_CONFIG_FILES statements.
33728
33729 2006-01-11  Bruno Haible  <bruno@clisp.org>
33730
33731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33732         Initialize also noinst_HEADERS to empty.
33733
33734 2006-01-11  Bruno Haible  <bruno@clisp.org>
33735
33736         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33737         variables.
33738         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33739         autoreconf.
33740
33741 2006-01-11  Bruno Haible  <bruno@clisp.org>
33742
33743         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33744         overridable by the user.
33745         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33746
33747 2006-01-10  Simon Josefsson  <jas@extundo.com>
33748
33749         * modules/sys_socket: New file.
33750
33751 2006-01-10  Simon Josefsson  <jas@extundo.com>
33752
33753         * m4/sys_socket_h.m4: New file.
33754
33755 2006-01-10  Simon Josefsson  <jas@extundo.com>
33756
33757         * lib/socket_.h: New file.
33758
33759 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33760
33761         * modules/readutmp (Maintainer): Add myself.
33762
33763 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33764
33765         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33766         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33767         People who are still concerned with buggy memcmp implementations
33768         can invoke gl_FUNC_MEMCMP themselves.
33769
33770 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33771
33772         * lib/regex_internal.h (BITSET_WORD_BITS):
33773         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33774         preprocessor mishandles large unsigned values as if they were signed.
33775         Problem reported by Claudio Fontana in
33776         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33777
33778 2006-01-10  Jim Meyering  <jim@meyering.net>
33779
33780         Avoid the double-free (first in fts_read, second in fts_close) that
33781         would occur when an `active' directory is made inaccessible (e.g.,
33782         via chmod a-x) during a traversal.
33783         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33784         before returning.  Reproduce this failure by
33785         mkdir -p a/b; cd a; chmod a-x . b
33786         Reported by Stavros Passas.
33787
33788         Sync from coreutils.
33789         * lib/sha1.c: Tweak grammar in a comment.
33790
33791 2006-01-10  Jim Meyering  <jim@meyering.net>
33792
33793         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33794         Patch by Joerg Sonnenberger.
33795
33796 2006-01-10  Bruno Haible  <bruno@clisp.org>
33797
33798         * modules/readutmp: Depend on module free.
33799         * modules/strtok_r: Depend on module restrict.
33800
33801 2006-01-10  Bruno Haible  <bruno@clisp.org>
33802
33803         * modules/gettext (configure.ac): Add an invocation of
33804         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33805
33806 2006-01-10  Bruno Haible  <bruno@clisp.org>
33807
33808         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33809         Reported by Werner Lemberg <wl@gnu.org>.
33810
33811 2006-01-10  Bruno Haible  <bruno@clisp.org>
33812
33813         * lib/localcharset.c: Update from GNU gettext.
33814
33815 2006-01-10  Bruno Haible  <bruno@clisp.org>
33816
33817         * lib/argp.h (__const): Remove macro. Use const instead.
33818         * lib/argp-fmtstream.h (__const): Likewise.
33819         * lib/glob_.h (__const): Remove macro.
33820         * lib/glob-libc.h: Use const instead of __const.
33821
33822 2006-01-10  Bruno Haible  <bruno@clisp.org>
33823
33824         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33825         variable.
33826         Needed to avoid an automake error regarding the 'gettext' module.
33827
33828 2006-01-09  Simon Josefsson  <jas@extundo.com>
33829
33830         * modules/inet_ntop (Depends-on): Add restrict.
33831
33832 2006-01-09  Simon Josefsson  <jas@extundo.com>
33833
33834         * modules/gc-rijndael-tests (License): Put under LGPL.
33835
33836         * modules/gc-des-tests (License): Likewise.
33837
33838         * modules/gc-arcfour-tests (License): Likewise.
33839
33840         * modules/gc-arctwo-tests (License): Likewise.
33841
33842         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33843
33844         * modules/gc-hmac-sha1-tests (Files): Likewise.
33845
33846         * modules/gc-hmac-md5-tests (License): Likewise.
33847
33848         * modules/gc-sha1-tests (License): Likewise.
33849
33850         * modules/gc-md5-tests (License): Likewise.
33851
33852         * modules/gc-md4-tests (License): Likewise.
33853
33854         * modules/gc-md2-tests (License): Likewise.
33855
33856         * modules/gc-tests (License): Likewise.
33857
33858         * modules/des-tests (License): Likewise.
33859
33860         * modules/md4-tests (License): Likewise.
33861
33862         * modules/md2-tests (License): Likewise.
33863
33864 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33865
33866         Sync from coreutils:
33867
33868         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33869         * modules/lib-ignore: New file.
33870         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33871         chdir-safer.m4, lchmod.m4.
33872         * modules/openat: Add mkdirat.c, openat-priv.h.
33873
33874 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33875
33876         Sync from coreutils.
33877         * m4/lib-ignore.m4: New file.
33878         * m4/lchmod.m4: New file.
33879
33880 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33881
33882         Sync from coreutils.
33883         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33884         for write access: POSIX says that must fail.
33885         * lib/fts.c (diropen): Likewise.
33886         * lib/save-cwd.c (save_cwd): Likewise.
33887         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33888         well, for minor improvements on hosts that lack O_DIRECTORY.
33889         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33890         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33891         Fall back on chown if open failed with EACCES.
33892
33893         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33894         Report an error at compile-time if only a 1-second nominal clock
33895         resolution is found.
33896
33897         * lib/lchmod.h: New file.
33898         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33899         (make_dir_parents): Use lchown rather than chown, and
33900         lchmod rather than chmod.
33901
33902         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33903         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
33904         "proc" reported by n0dalus.
33905
33906         * lib/mountlist.c: Include <limits.h>.
33907         (dev_from_mount_options)
33908         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33909         New function.  It no longer assumes "dev=" has the System V meaning
33910         on Linux (since it doesn't).  It also parses "dev=" more carefully.
33911         (read_file_system_list)
33912         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33913         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33914         dev= in that case.
33915
33916         * lib/posixtm.h (PDS_PRE_2000): New macro.
33917         * lib/posixtm.c (year): Arg is now syntax_bits rather than
33918         allow_century.  All usages changed.  Reject dates outside the range
33919         1969-1999 if PDS_PRE_2000 is used.
33920
33921 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33922
33923         Sync from coreutils.
33924         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33925         (Time of day items): Mention the possibility of leap seconds.
33926         Problem reported by Dr. David Alan Gilbert.
33927
33928 2006-01-09  Jim Meyering  <jim@meyering.net>
33929
33930         Sync from coreutils.
33931
33932         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33933
33934         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33935
33936         * lib/modechange.c (mode_compile): Reject an invalid mode string
33937         that starts with an octal digit.  From Andreas Gruenbacher.
33938
33939         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33940         and dup to open_safer and dup_safer, respectively.
33941         (openat_permissive): Fix typo in comment.
33942
33943         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33944         "gettext.h"; either no longer needed or are guaranteed by openat.h.
33945         (_): Remove; no longer needed.
33946         (openat): Renamed from rpl_openat; no need for rpl_openat
33947         since openat.h renames openat for us.
33948         Replace most of the body with a call to openat_permissive,
33949         to avoid duplicate code.
33950         Port to (probably hypothetical) environments were mode_t is
33951         wider than int.
33952         (openat_permissive): Require mode arg, so that we can check
33953         types better.  Put it just after flags.  Change cwd failure
33954         indicator from pointer-to-bool to pointer-to-errno-value.
33955         All callers changed.
33956         Invoke openat_save_fail and/or openat_restore_fail if
33957         cwd_errno is null, so that openat can call us.
33958         (openat_permissive, fdopendir, fstatat, unlinkat):
33959         Simplify errno handling to avoid some duplicate code,
33960         as it's OK to set errno on success.
33961         * lib/openat.h: Revamp code so that function macros depend on
33962         __OPENAT_PREFIX only, not also on AT_FDCWD.
33963         (openat_ro): Remove.  Caller changed to use openat_permissive.
33964         (openat_permissive): Now a macro, if not a function.
33965         (openat_restore_fail, openat_save_fail): Now always functions,
33966         since mkdirat needs them even if __OPENAT_PREFIX is defined.
33967
33968         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33969         and openat.c.
33970         * lib/mkdirat.c: Include openat-priv.h.
33971         Remove definitions of macros defined therein.
33972         * lib/openat.c: Likewise.
33973
33974         * lib/mkdirat.c (mkdirat): New file and function.
33975         * lib/openat.h (mkdirat): Declare.
33976
33977         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33978
33979         * lib/openat.h (openat_permissive): Declare.
33980         (openat_ro): Define.
33981
33982         * lib/openat.c (EXPECTED_ERRNO): New macro.
33983         (openat_permissive): New function -- used in remove.c rewrite.
33984         (all functions): Set errno just before returning, only if there
33985         was an actual failure.
33986         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33987
33988         Emulate openat-family functions using Linux's procfs, if possible.
33989         Idea and some code based on Ulrich Drepper's glibc changes.
33990
33991         * lib/openat.c: (BUILD_PROC_NAME): New macro.
33992         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33993         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33994         before falling back on save_cwd and restore_cwd.
33995         (fdopendir, fstatat, unlinkat): Likewise.
33996
33997         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33998         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33999
34000         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
34001         as second argument to va_arg.  Otherwise, some versions of gcc
34002         warn that `if this code is reached, the program will abort'.
34003
34004 2006-01-09  Jim Meyering  <jim@meyering.net>
34005
34006         Sync from coreutils.
34007         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
34008         Require openat-priv.h.
34009
34010 2006-01-09  Bruno Haible  <bruno@clisp.org>
34011
34012         * modules/strnlen (Include): Use strnlen.h.
34013
34014 2006-01-09  Bruno Haible  <bruno@clisp.org>
34015
34016         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
34017
34018 2006-01-09  Bruno Haible  <bruno@clisp.org>
34019
34020         * lib/sysexit_.h (EX_OK): New macro.
34021         Suggested by Martin Lambers <marlam@marlam.de>.
34022
34023 2006-01-09  Bruno Haible  <bruno@clisp.org>
34024
34025         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
34026         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
34027
34028 2006-01-09  Bruno Haible  <bruno@clisp.org>
34029
34030         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
34031         numbers.
34032
34033 2006-01-09  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
34036         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
34037         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
34038         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
34039
34040 2006-01-09  Bruno Haible  <bruno@clisp.org>
34041
34042         * build-aux/javacomp.sh.in: New file, moved from lib/.
34043         * modules/javacomp-script (Files): Update.
34044         (configure.ac): Add AC_CONFIG_FILES invocation.
34045         (EXTRA_DIST): Remove variable.
34046
34047         * build-aux/javaexec.sh.in: New file, moved from lib/.
34048         * modules/javaexec (Files): Update.
34049         (configure.ac): Add AC_CONFIG_FILES invocation.
34050         (EXTRA_DIST): Remove javaexec.sh.in.
34051
34052         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
34053         * modules/csharpcomp-script (Files): Update.
34054         (configure.ac): Add AC_CONFIG_FILES invocation.
34055         (EXTRA_DIST): Remove variable.
34056
34057         * build-aux/csharpexec.sh.in: New file, moved from lib/.
34058         * modules/csharpexec (Files): Update.
34059         (configure.ac): Add AC_CONFIG_FILES invocation.
34060         (EXTRA_DIST): Remove csharpexec.sh.in.
34061
34062 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34063
34064         Sync from coreutils.
34065
34066         Add POSIX ACL support
34067         * lib/acl.h (copy_acl, set_acl): Add declarations.
34068         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
34069         systems other than Linux.
34070         (chmod_or_fchmod): New function: use fchmod when possible,
34071         and chmod otherwise.
34072         (file_has_acl): Add a POSIX ACL implementation, with a
34073         Linux-specific subcase.
34074         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
34075         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
34076         acls are unsupported.
34077         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
34078         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
34079         are unsupported.
34080
34081 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34082
34083         Sync from coreutils.
34084         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
34085
34086 2006-01-07  Bruno Haible  <bruno@clisp.org>
34087
34088         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
34089         gl_EARLY.
34090
34091 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34092
34093         * lib/strftime.c (tzname): Don't declare if it is already #defined.
34094         Problem reported for Mingw by Mark Junker.
34095
34096 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34097
34098         * README: Gnulib normally doesn't generate a tarball.
34099
34100 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34101
34102         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
34103         long int, not int, for nanosecond counts, so that people who are
34104         used to POSIX struct timespec won't be surprised.  Reported by Jim
34105         Meyering.
34106
34107 2005-12-28  Bruno Haible  <bruno@clisp.org>
34108
34109         * build-aux/config.rpath: Update from GNU gettext.
34110
34111 2005-12-16  Jim Meyering  <jim@meyering.net>
34112
34113         * modules/fprintftime: New module.
34114         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
34115
34116 2005-12-16  Jim Meyering  <jim@meyering.net>
34117
34118         * m4/fprintftime.m4: New file.
34119
34120 2005-12-16  Jim Meyering  <jim@meyering.net>
34121
34122         * lib/fprintftime.c, lib/fprintftime.h: New files.
34123
34124 2005-12-15  Simon Josefsson  <jas@extundo.com>
34125
34126         * modules/socklen (configure.ac): Fix M4 macro name, to align with
34127         new m4/socklen.m4.
34128
34129 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34130
34131         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
34132         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
34133
34134 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34135
34136         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
34137         * lib/argp-help.c (fill_in_uparams): Check if the constructed
34138         struct uparams is valid. Fall back to the default values if it is
34139         not.
34140
34141 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34142
34143         * modules/argp (Files): Add argp-pin.c
34144         (Depends-on): dirname
34145         (lib_SOURCES): Add argp-pin.c
34146
34147 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34148
34149         * m4/argp.m4:  Check if program_invocation_name and
34150         program_invocation_short_name are declared and define appropriate
34151         macros if they are not.
34152
34153 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34154
34155         * lib/argp-help.c (__argp_base_name): New function
34156         (__argp_short_program_name): Rewrite using __argp_base_name
34157         * lib/argp-namefrob.h: Define program_invocation_name and
34158         program_invocation_short_name if requested
34159         (__argp_base_name): Add prototype
34160         * lib/argp-parse.c (argp_def): Use gettext wrappers
34161         (argp_default_parser): Use __argp_base_name
34162         * lib/argp-pin.c: New file. Defines program_invocation_name and
34163         program_invocation_short_name on systems that lack them.
34164
34165 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34166
34167         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34168         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34169         porting problem reported by Georg Schwarz in
34170         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34171
34172 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34173
34174         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34175         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34176         porting problem reported by Georg Schwarz in
34177         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34178
34179 2005-12-05  Bruno Haible  <bruno@clisp.org>
34180
34181         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34182         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34183         Reported by Mark Junker <mjscod@gmx.de>.
34184
34185 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34186
34187         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34188         Use implementation from Albert Chin, with some
34189         comments/corrections by Stepan Kasal and myself.
34190
34191 2005-12-02  Bruno Haible  <bruno@clisp.org>
34192
34193         * gnulib-tool (func_import): Accept GPLed build tool modules when
34194         --lgpl is given.
34195         * modules/csharpcomp-script: New file.
34196         * modules/csharpcomp: Depend on it.
34197         * modules/javacomp-script: New file.
34198         * modules/javacomp: Depend on it.
34199         Suggested by Simon Josefsson.
34200
34201 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34202
34203         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34204         statement, to work around an HP-UX 10.20 compiler bug reported by
34205         Peter O'Gorman.
34206
34207 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34208
34209         * modules/savedir (Depends-on): Add openat.
34210
34211 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34212
34213         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34214         (uintmax_t) [defined uintmax_t]: Do not declare.
34215         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34216         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34217         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34218         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34219         sake of portability to weird hosts that C allows (though we don't
34220         know of any practical examples).
34221
34222         * lib/savedir.h (fdsavedir): New decl.
34223         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34224         contains most of the former guts of savedir.
34225         (savedir): Use savedirstream.
34226         Include "openat.h".
34227
34228 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34229
34230         * modules/obstack (Files): Add m4/ulonglong.m4.
34231         Problem reported by Davide Angelocola.
34232
34233 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34234
34235         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34236         coreutils no longer futzes with rounding modes.
34237
34238 2005-11-14  Jim Meyering  <jim@meyering.net>
34239
34240         * lib/mkstemp-safer.c: Include <config.h>, required for possible
34241         replacement of mkstemp.
34242
34243 2005-11-10  Simon Josefsson  <jas@extundo.com>
34244
34245         * lib/readline.c: Remove EOL.
34246
34247 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34248
34249         * modules/gethrxtime (Depends-on): Add gettime.
34250
34251 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34252
34253         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34254         or gettimeofday; no longer needed.
34255
34256 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34257
34258         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34259         time business.
34260         (gethrxtime) [! (HAVE_NANOUPTIME
34261         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34262         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34263         our own approximation.
34264
34265 2005-11-08  Eric Blake  <ebb9@byu.net>
34266
34267         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34268
34269 2005-11-08  Eric Blake  <ebb9@byu.net>
34270
34271         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34272
34273 2005-11-04  Bruno Haible  <bruno@clisp.org>
34274
34275         * gnulib-tool: Implement --update mode.
34276
34277 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34278
34279         Fix porting problem reported by Theodoros V. Kalamatianos.
34280         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34281         Don't assume that futimes failing means we must fail.
34282
34283 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34284
34285         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34286         variables to suggest the intended function of the PATH_MAX check.
34287
34288 2005-10-30  Kean Johnston  <jkj@sco.com>
34289
34290         Trivial changes to support SCO systems.
34291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34292         as PATH_MAX.
34293         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34294         where __ptr is null when no I/O is pending.
34295
34296 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34297
34298         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34299         leave errno alone.  Problem reported by Dmitry V. Levin.
34300
34301 2005-10-28  Simon Josefsson  <jas@extundo.com>
34302
34303         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34304         Test more.
34305
34306         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34307
34308         * modules/md2, modules/md2-tests: New files.
34309
34310 2005-10-28  Simon Josefsson  <jas@extundo.com>
34311
34312         * m4/inet_ntop.m4: More tests.
34313
34314         * m4/gc-md2.m4, md2.m4: New file.
34315
34316 2005-10-28  Simon Josefsson  <jas@extundo.com>
34317
34318         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34319         "restrict" keywords, as per POSIX.  Protect the function
34320         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34321         Don't use K&R prototypes.  Check the sprintf return values.
34322         Re-define EAFNOSUPPORT if not present.  Indent.
34323
34324         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34325         suggested by Bruno Haible <bruno@clisp.org>.
34326
34327         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34328
34329         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34330
34331         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34332         libgcrypt).
34333
34334         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34335
34336         * lib/md2.h, lib/md2.c: New files.
34337
34338 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34339
34340         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34341         errno alone.  Problem reported by Frederic Jolliton.
34342
34343 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34344
34345         * modules/verify (License): Change from GPL to LGPL.  This is a
34346         tiny module and there are apparently near-equivalents that are
34347         under the BSD license.
34348
34349 2005-10-24  Simon Josefsson  <jas@extundo.com>
34350
34351         * modules/sha1: Relicense to LGPL.
34352
34353 2005-10-24  Simon Josefsson  <jas@extundo.com>
34354
34355         * lib/md4.h: Shrink buffer size, now that we changed the type.
34356
34357 2005-10-23  Simon Josefsson  <jas@extundo.com>
34358
34359         * gnulib-tool (func_import): Fix --tests-base.
34360
34361 2005-10-22  Simon Josefsson  <jas@extundo.com>
34362
34363         * modules/arcfour (Depends-on): Need stdint.
34364
34365 2005-10-22  Simon Josefsson  <jas@extundo.com>
34366
34367         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34368         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34369
34370 2005-10-22  Simon Josefsson  <jas@extundo.com>
34371
34372         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34373         suggested by Bruno Haible <bruno@clisp.org>.
34374
34375 2005-10-22  Simon Josefsson  <jas@extundo.com>
34376
34377         * lib/crc.h: Include stddef.h, for size_t.
34378
34379 2005-10-22  Simon Josefsson  <jas@extundo.com>
34380
34381         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34382         arcfour_context struct (simplify test vector testing in GNU
34383         Shishi).
34384
34385 2005-10-21  Simon Josefsson  <jas@extundo.com>
34386
34387         * modules/des, modules/des-tests: New files.
34388
34389         * modules/gc-des, modules/gc-des-tests: New files.
34390
34391         * tests/test-des.c, tests/test-gc-des.c: New file.
34392
34393 2005-10-21  Simon Josefsson  <jas@extundo.com>
34394
34395         * modules/arctwo, modules/arctwo-tests: New files.
34396
34397         * tests/test-arctwo.c: New file.
34398
34399         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34400
34401         * tests/test-gc-arctwo.c: New file.
34402
34403 2005-10-21  Simon Josefsson  <jas@extundo.com>
34404
34405         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34406         Bruno Haible <bruno@clisp.org>.
34407
34408         * m4/gc-des.m4: New file.
34409
34410 2005-10-21  Simon Josefsson  <jas@extundo.com>
34411
34412         * m4/arctwo.m4: New file.
34413
34414         * m4/gc-arctwo.m4: New file.
34415
34416 2005-10-21  Simon Josefsson  <jas@extundo.com>
34417
34418         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34419         block.
34420
34421 2005-10-21  Simon Josefsson  <jas@extundo.com>
34422
34423         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34424         <bruno@clisp.org>.
34425
34426         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34427
34428         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34429         Bruno Haible <bruno@clisp.org>.
34430
34431         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34432         <bruno@clisp.org>.
34433
34434 2005-10-21  Simon Josefsson  <jas@extundo.com>
34435
34436         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34437
34438 2005-10-21  Simon Josefsson  <jas@extundo.com>
34439
34440         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34441
34442 2005-10-21  Simon Josefsson  <jas@extundo.com>
34443
34444         * lib/des.h, lib/des.c: New files.
34445
34446         * lib/gc-gnulib.c: Support DES.c
34447
34448 2005-10-21  Simon Josefsson  <jas@extundo.com>
34449
34450         * lib/arctwo.h, lib/arctwo.c: New files.
34451
34452         * lib/gc-gnulib.c: Support ARCTWO.
34453
34454 2005-10-21  Simon Josefsson  <jas@extundo.com>
34455
34456         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34457         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34458
34459 2005-10-21  Simon Josefsson  <jas@extundo.com>
34460
34461         * gnulib-tool (func_import, func_create_testdir): Define automake
34462         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34463         Makefile.am snippet),
34464         suggested by Bruno Haible <bruno@clisp.org>.
34465
34466         * modules/gc (Makefile.am): Use it.
34467
34468 2005-10-21  Bruno Haible  <bruno@clisp.org>
34469
34470         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34471         patch.
34472
34473 2005-10-19  Simon Josefsson  <jas@extundo.com>
34474
34475         * tests/test-gc-rijndael.c: New file.
34476
34477         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34478
34479 2005-10-19  Simon Josefsson  <jas@extundo.com>
34480
34481         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34482         interface too.
34483
34484 2005-10-19  Simon Josefsson  <jas@extundo.com>
34485
34486         * tests/test-gc-arcfour.c: New file.
34487
34488         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34489
34490 2005-10-19  Simon Josefsson  <jas@extundo.com>
34491
34492         * modules/gc-md4, modules/gc-md4-tests: New file.
34493
34494         * tests/test-gc-md4.c: New file.
34495
34496 2005-10-19  Simon Josefsson  <jas@extundo.com>
34497
34498         * m4/gc-md4.m4: New file.
34499
34500 2005-10-19  Simon Josefsson  <jas@extundo.com>
34501
34502         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34503         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34504         <kasal@ucw.cz>.
34505
34506 2005-10-19  Simon Josefsson  <jas@extundo.com>
34507
34508         * m4/gc-arcfour.m4: New file.
34509
34510         * m4/gc-rijndael.m4: New file.
34511
34512 2005-10-19  Simon Josefsson  <jas@extundo.com>
34513
34514         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34515
34516 2005-10-19  Simon Josefsson  <jas@extundo.com>
34517
34518         * lib/gc-gnulib.c: Support ARCFOUR.
34519
34520 2005-10-19  Simon Josefsson  <jas@extundo.com>
34521
34522         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34523         support.
34524
34525         * lib/gc.h: Add ECB enum type.
34526
34527         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34528
34529 2005-10-18  Simon Josefsson  <jas@extundo.com>
34530
34531         * tests/test-md5.c: New file.
34532
34533         * modules/md5-tests: New file.
34534
34535 2005-10-18  Simon Josefsson  <jas@extundo.com>
34536
34537         * tests/test-md4.c: New file.
34538
34539         * modules/md4, modules/md4-tests: New files.
34540
34541 2005-10-18  Simon Josefsson  <jas@extundo.com>
34542
34543         * m4/md4.m4: New file.
34544
34545 2005-10-18  Simon Josefsson  <jas@extundo.com>
34546
34547         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34548
34549 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34550
34551         * gnulib-tool (func_create_testdir): Omit the second check whether
34552         BUILT_SOURCES in nonempty.
34553
34554 2005-10-17  Simon Josefsson  <jas@extundo.com>
34555
34556         * tests/test-rijndael.c: New file.
34557
34558 2005-10-17  Simon Josefsson  <jas@extundo.com>
34559
34560         * modules/sha1: Depend on stdint instead of md5.
34561
34562         * modules/md5: Depend on stdint, remove uint32_t.
34563
34564 2005-10-17  Simon Josefsson  <jas@extundo.com>
34565
34566         * modules/gc-sha1-tests: New file.
34567
34568         * tests/test-gc-sha1.c: New file.
34569
34570 2005-10-17  Simon Josefsson  <jas@extundo.com>
34571
34572         * m4/md5.m4: Remove call to uint32_t.m4.
34573
34574 2005-10-17  Simon Josefsson  <jas@extundo.com>
34575
34576         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34577
34578         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34579         md5.h.
34580
34581         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34582
34583         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34584
34585 2005-10-17  Simon Josefsson  <jas@extundo.com>
34586
34587         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34588
34589 2005-10-17  Simon Josefsson  <jas@extundo.com>
34590
34591         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34592
34593 2005-10-17  Simon Josefsson  <jas@extundo.com>
34594
34595         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34596
34597         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34598
34599 2005-10-17  Bruno Haible  <bruno@clisp.org>
34600
34601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34602         that it can also be used in a test.
34603
34604 2005-10-16  Bruno Haible  <bruno@clisp.org>
34605
34606         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34607         TESTS_ENVIRONMENT, so that individual tests can augment it.
34608
34609         * gnulib-tool (func_create_testdir): Use an intermediate target for
34610         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34611         macros, like $(ALLOCA_H), which cannot be passed through the command
34612         line.
34613
34614 2005-10-15  Simon Josefsson  <jas@extundo.com>
34615
34616         * modules/rijndael-tests: New file.
34617
34618         * modules/rijndael: New file.
34619
34620 2005-10-15  Simon Josefsson  <jas@extundo.com>
34621
34622         * m4/rijndael.m4: New file.
34623
34624 2005-10-15  Simon Josefsson  <jas@extundo.com>
34625
34626         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34627
34628         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34629
34630 2005-10-14  Simon Josefsson  <jas@extundo.com>
34631
34632         * tests/test-arcfour.c: New file.
34633
34634         * modules/arcfour, modules/arcfour-tests: New files.
34635
34636 2005-10-14  Simon Josefsson  <jas@extundo.com>
34637
34638         * m4/arcfour.m4: New file.
34639
34640 2005-10-14  Simon Josefsson  <jas@extundo.com>
34641
34642         * lib/arcfour.h, lib/arcfour.c: New files.
34643
34644 2005-10-14  Roland McGrath  <roland@redhat.com>
34645
34646         Import from libc.  [BZ #1331]
34647         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34648         macro argument.
34649         Reported by Matej Vela <vela@debian.org>.
34650
34651 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34652
34653         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34654         include <wchar.h>; no longer needed.
34655
34656 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34659
34660 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34661         and  Ulrich Drepper  <drepper@redhat.com>
34662
34663         Import from libc.
34664         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34665         instead of inline stream orientation test and two separate
34666         function calls.  Pay no attention to USE_IN_LIBIO.
34667
34668 2005-10-13  Simon Josefsson  <jas@extundo.com>
34669
34670         * modules/gc-hmac-md5-tests: New file.
34671
34672         * tests/test-gc-hmac-sha1.c: New file.
34673
34674         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34675
34676         * modules/gc-hmac-md5-tests: New file.
34677
34678         * tests/test-gc-md5.c: New file.
34679
34680         * modules/gc-md5-tests: New file.
34681
34682 2005-10-13  Simon Josefsson  <jas@extundo.com>
34683
34684         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34685         Move memory allocation outside of loop.
34686
34687 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34688
34689         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34690         intermediate directory is in a read-only file system.  Problem
34691         reported by Eric Blake.
34692
34693 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34694
34695         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34696
34697 2005-10-12  Simon Josefsson  <jas@extundo.com>
34698
34699         * tests/test-hmac-sha1.c: New file.
34700
34701         * modules/hmac-sha1-tests: New file.
34702
34703         * modules/hmac-sha1: New file.
34704
34705 2005-10-12  Simon Josefsson  <jas@extundo.com>
34706
34707         * modules/gc-sha1: New file.
34708
34709 2005-10-12  Simon Josefsson  <jas@extundo.com>
34710
34711         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34712
34713         * tests/test-gc-pbkdf2-sha1.c: New file.
34714
34715 2005-10-12  Simon Josefsson  <jas@extundo.com>
34716
34717         * modules/gc-md5, modules/gc-hmac-md5: New files.
34718
34719         * modules/gc (Files): Remove md5, memxor and hmac files.
34720
34721 2005-10-12  Simon Josefsson  <jas@extundo.com>
34722
34723         * m4/gc-pbkdf2-sha1.m4: New file.
34724
34725         * m4/gc-hmac-sha1.m4: New file.
34726
34727         * m4/gc-sha1: New file.
34728
34729         * m4/hmac-sha1.m4: New file.
34730
34731 2005-10-12  Simon Josefsson  <jas@extundo.com>
34732
34733         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34734
34735         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34736
34737 2005-10-12  Simon Josefsson  <jas@extundo.com>
34738
34739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34740         suggested by Bruno Haible <bruno@clisp.org>.
34741
34742 2005-10-12  Simon Josefsson  <jas@extundo.com>
34743
34744         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34745
34746 2005-10-12  Simon Josefsson  <jas@extundo.com>
34747
34748         * lib/gc-pbkdf2-sha1.c: New file.
34749
34750         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34751
34752 2005-10-12  Simon Josefsson  <jas@extundo.com>
34753
34754         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34755
34756         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34757
34758 2005-10-12  Simon Josefsson  <jas@extundo.com>
34759
34760         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34761         GC_USE_HMAC_MD5, respectively.
34762
34763         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34764         (gc_md5): Fix typo.
34765
34766         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34767
34768         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34769
34770         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34771
34772 2005-10-12  Bruno Haible  <bruno@clisp.org>
34773
34774         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34775         Reported by Stepan Kasal <kasal@ucw.cz>.
34776
34777 2005-10-11  Simon Josefsson  <jas@extundo.com>
34778
34779         * tests/test-crc.c: New file.
34780
34781         * modules/crc, modules/crc-tests: New files.
34782
34783 2005-10-11  Simon Josefsson  <jas@extundo.com>
34784
34785         * m4/crc.m4: New file.
34786
34787 2005-10-11  Simon Josefsson  <jas@extundo.com>
34788
34789         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34790
34791         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34792
34793         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34794
34795 2005-10-11  Simon Josefsson  <jas@extundo.com>
34796
34797         * lib/crc.h, lib/crc.c: New files.
34798
34799         * lib/gc.h (gc_hash_buffer): Add doc.
34800
34801 2005-10-11  Bruno Haible  <bruno@clisp.org>
34802
34803         * modules/c-strcasestr: New file.
34804         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34805
34806 2005-10-11  Bruno Haible  <bruno@clisp.org>
34807
34808         * modules/c-strcase: New file.
34809         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34810
34811 2005-10-11  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/strcasecmp.c: Include limits.h.
34814         (strcasecmp): Avoid integer overflow on exotic platforms.
34815         * lib/strncasecmp.c: Include limits.h.
34816         (strncasecmp): Avoid integer overflow on exotic platforms.
34817         Reported by Paul Eggert.
34818
34819 2005-10-11  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/c-strcasestr.h: New file, from GNU gettext.
34822         * lib/c-strcasestr.c: New file, from GNU gettext.
34823
34824 2005-10-11  Bruno Haible  <bruno@clisp.org>
34825
34826         * lib/c-strcase.h: New file, from GNU gettext.
34827         * lib/c-strcasecmp.c: New file, from GNU gettext.
34828         * lib/c-strncasecmp.c: New file, from GNU gettext.
34829
34830 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34831
34832         * modules/mempcpy (License): GPL -> LGPL.
34833         * modules/strchrnul (License): Likewise.
34834         * modules/sysexits (License): Likewise.
34835
34836 2005-10-08  Simon Josefsson  <jas@extundo.com>
34837
34838         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34839
34840 2005-10-07  Simon Josefsson  <jas@extundo.com>
34841
34842         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34843
34844 2005-10-06  Simon Josefsson  <jas@extundo.com>
34845
34846         * tests/test-hmac-md5.c: New file.
34847
34848         * modules/hmac-md5-tests: New file.
34849
34850         * modules/hmac-md5: New file.
34851
34852 2005-10-06  Simon Josefsson  <jas@extundo.com>
34853
34854         * m4/hmac-md5.m4: New file.
34855
34856         * m4/memxor.m4: Require gl_C_RESTRICT.
34857
34858 2005-10-06  Simon Josefsson  <jas@extundo.com>
34859
34860         * lib/memxor.c (memxor): Avoid casts and warnings.
34861
34862 2005-10-06  Simon Josefsson  <jas@extundo.com>
34863
34864         * lib/hmac-md5.c: New file.
34865
34866         * lib/hmac.h: New file.
34867
34868 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34871         promotes to int, not unsigned int, to catch the AIX 5.3
34872         compiler bug.
34873
34874 2005-10-05  Simon Josefsson  <jas@extundo.com>
34875
34876         * modules/memxor: New file.
34877
34878         * modules/iconv (Files): Move config.rpath to havelib, it is used
34879         there.
34880
34881         * modules/havelib (Files): Add config.rpath.
34882
34883 2005-10-05  Simon Josefsson  <jas@extundo.com>
34884
34885         * m4/memxor.m4: New file.
34886
34887 2005-10-05  Simon Josefsson  <jas@extundo.com>
34888
34889         * lib/memxor.c (memxor): Fix compiler error.
34890
34891         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34892         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34893
34894         * lib/memxor.h, lib/memxor.c: New files.
34895
34896         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34897         we assume all systems have it, suggested by Jim Meyering
34898         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
34899         any systems lack sys/socket.h; mingw32 is known to lack it, but we
34900         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
34901         same reasons.
34902
34903 2005-10-05  Simon Josefsson  <jas@extundo.com>
34904
34905         * config/srclist.txt: Add glibc bug 1423 for md5.h.
34906
34907 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
34908
34909         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34910         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34911         needed, since the source code now assumes these .h files.
34912
34913 2005-10-05  Derek Price  <derek@ximbiot.com>
34914
34915         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34916
34917 2005-10-05  Bruno Haible  <bruno@clisp.org>
34918
34919         * modules/stdint (License): Change to LGPL.
34920
34921 2005-10-04  Simon Josefsson  <jas@extundo.com>
34922
34923         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34924         D. Baushke" <mdb@gnu.org>.
34925
34926 2005-10-04  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/verify.h (verify_true): Provide alternative definition for C++.
34929
34930 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
34931
34932         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
34933         (SSIZE_MAX): New macro, if not already defined.
34934         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34935         than 2 GiB.
34936
34937 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34938
34939         Sync from coreutils.
34940         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34941         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34942         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
34943         ULLONG_MAX doesn't work with 2.7.2.1.
34944
34945 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34946
34947         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34948         From Ben Pfaff.
34949
34950         * modules/exclude (Depends-on): Depend on verify.
34951         * modules/strtoimax (Depends-on): Likewise.
34952         * modules/utimecmp (Depends-on): Likewise.
34953
34954 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34955
34956         * lib/exclude.c: Include verify.h.
34957         (verify): Remove.  All callers changed to use verify.h's version.
34958         * lib/strtoimax.c: Likewise.
34959         * lib/utimecmp.c: Likewis.e
34960
34961         Sync from coreutils.
34962         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34963         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34964         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34965         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
34966         bother returning ENOSYS if settimeofday or stime fails; just let
34967         them return whatever errno they want to return.
34968         * lib/utimens.c: Include unistd.h, for dup2.
34969         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34970         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34971
34972 2005-10-02  Jim Meyering  <jim@meyering.net>
34973
34974         Sync from coreutils.
34975         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34976         from glibc-2.2.5 that fails for read-only files.
34977
34978 2005-10-02  Jim Meyering  <jim@meyering.net>
34979
34980         Sync from coreutils.
34981         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34982         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34983         `#if HAVE_CONFIG_H'.
34984         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34985         Remove AT_FDCWD test.
34986         Do not consume the fd unless successful.
34987         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34988         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34989         block, so that we don't even try to compile it if settimeofday is
34990         available.  This works around a compilation failure on OSF1 V5.1,
34991         due to stime requiring a `long int*' while tv_sec is `int'.
34992
34993 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
34994
34995         Sync from coreutils.
34996         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34997         against `yes', rather than just testing for nonempty.
34998
34999 2005-10-01  Simon Josefsson  <jas@extundo.com>
35000
35001         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
35002         and Darwin.
35003
35004         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
35005         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
35006         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
35007         freeaddrinfo and gai_strerror are declared by the POSIX headers.
35008         Check if struct addrinfo is declared.
35009
35010 2005-10-01  Simon Josefsson  <jas@extundo.com>
35011
35012         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
35013         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
35014         AI_* and EAI_* definitions.  Protect function declarations.
35015
35016 2005-10-01  Jim Meyering  <jim@meyering.net>
35017
35018         Sync from coreutils.
35019
35020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
35021         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
35022         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
35023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35024         in the inet and nsl libraries.  Required on Solaris 5.7.
35025
35026 2005-10-01  Jim Meyering  <jim@meyering.net>
35027
35028         Sync from coreutils.
35029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35030         in the inet and nsl libraries.  Required on Solaris 5.7.
35031
35032 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
35033
35034         * lib/getdelim.c (getdelim): Remove unused variables.
35035
35036 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35037
35038         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
35039         so that the code works even with ancient cpp.  Portability problem
35040         with GCC 2.7.2.1 reported by Thomas M.Ott.
35041
35042 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35043
35044         * modules/regex (Depends-on): Add strcase.
35045
35046         * modules/gethostname (Licence): Change from GPL to LGPL, since
35047         gethostname.c is a trivial implementation of a standard library
35048         function.
35049         * modules/poll (License): Change from GPL to LGPL, since it's
35050         derived from LGPL code.
35051
35052 2005-09-27  Jim Meyering  <jim@meyering.net>
35053
35054         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
35055         HAVE_CONFIG_H.
35056
35057         * lib/intprops.h (signed_type_or_expr__): Define.
35058         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
35059         for unsigned types.
35060
35061 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35062
35063         * lib/verify.h (verify_expr): Remove, replacing with:
35064         (verify_true): New macro that returns true instead of void.
35065         (verify_type__): Remove.
35066         (verify): Use verify_true rather than verify_type__.
35067
35068 2005-09-26  Bruno Haible  <bruno@clisp.org>
35069
35070         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
35071         is necessary.
35072         (lib_SOURCES): Remove mbchar.c.
35073         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
35074         (Files): Add m4/mbrtowc.m4.
35075         * modules/mbiter: Likewise.
35076         * modules/mbuiter: Likewise.
35077
35078 2005-09-26  Bruno Haible  <bruno@clisp.org>
35079
35080         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
35081         compile mbchar.c if they are not both present.
35082         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
35083         * m4/mbiter.m4 (gl_MBITER): Likewise.
35084         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
35085         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
35086         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
35087
35088 2005-09-25  Jim Meyering  <jim@meyering.net>
35089
35090         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
35091         also uses socklen_t.
35092
35093 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35094
35095         * lib/utimens.c (ENOSYS): Define if not already defined.
35096         (futimens): Support having a null PATH if the file descriptor
35097         is nonnegative.
35098
35099         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
35100         Remove.
35101         (__attribute): Define to empty unless GCC 3.1 or later.
35102         This works around a core dump on OpenBSD 3.4, which has GCC
35103         2.95.3, which dumps core when given __attribute__(()).  It also
35104         simplifies other tests, since we really don't want to bother with
35105         worrying about which ancient version of GCC supported what.
35106         Original problem reported by Yoann Vandoorselaere, with part of
35107         the fix suggested by Derek Price.
35108
35109 2005-09-24  Jim Meyering  <jim@meyering.net>
35110
35111         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
35112         so we can once again use a positive bitfield width of 1 -- now we
35113         don't have to explain why we were using a bitfield width of 2.
35114
35115 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35116
35117         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
35118         and similarly for the other external symbols.  Problem reported
35119         by James Gallager.
35120
35121         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
35122         bug reported by Jim Meyering.
35123
35124         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
35125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
35126         not needed, since socklen is a prerequisite module.
35127
35128 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35129
35130         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
35131         Problem reported by Eric Blake.
35132         (getaddrinfo): Initialize se so that it's not garbage.
35133         Redo internal storage allocation so that it doesn't make unportable
35134         assumptions about alignment.
35135         Fix a memory leak.
35136
35137         * lib/utimens.c (futimens): Use futimesat if available.
35138         Prefer it to futimes since it doesn't have the futimes bug.
35139
35140         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
35141         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
35142         Instead, declare a function that returns a pointer to an array,
35143         and use verify_type__ to declare the size of the array.
35144         Problem and germ of a solution reported by Bruno Haible.
35145         (verify_type__): Use 2, not 1, for bitfield size, to avoid
35146         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
35147
35148 2005-09-23  Jim Meyering  <jim@meyering.net>
35149
35150         Sync from coreutils.
35151         Correct build failure (socklen_t not defined) on at least
35152         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35154
35155 2005-09-23  Jim Meyering  <jim@meyering.net>
35156
35157         * modules/getaddrinfo (Depends-on): Add socklen.
35158
35159 2005-09-23  Bruno Haible  <bruno@clisp.org>
35160
35161         * tests/test-verify.c: New file.
35162
35163 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35164
35165         Sync from coreutils.
35166
35167         * modules/argmatch (Depends-on): Add verify.
35168         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35169         unistd-safer.
35170         * modules/save-cwd (Depends-on): Likewise.
35171
35172         * modules/openat (Files): Add lib/openat-die.c.
35173         (Depends-on): Remove error, exitfail.
35174         Add dirname.
35175
35176         * modules/verify: New file.
35177         * MODULES.html.sh (Diagnostics <assert.h>): New section,
35178         with "verify" module.
35179
35180 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35181
35182         Sync from coreutils.
35183
35184         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35185         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35186         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35187         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35188         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35189         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35190         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35191         Don't bother checking for string.h, stdlib.h, unistd.h.
35192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35193         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35194         module's job.
35195         * m4/jm-macros.m4 (gl_MACROS): Likewise.
35196         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35197
35198         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35199         (gl_GETDATE): Use it.
35200
35201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35202
35203 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         Sync from coreutils.
35206
35207         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35208         stat-time.h.
35209         * lib/argmatch.h: Include verify.h
35210         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35211         (ARGMATCH_ASSERT): Remove; unused.
35212         * lib/canonicalize.c: Assume STDC_HEADERS.
35213         * lib/exclude.c: Include "strcase.h".
35214         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35215         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35216         and stdio-safer.h.
35217         (getusershell): Call fopen, not fopen_safer.
35218         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35219         Do not include unistd-safer.h.
35220         (save_cwd): Don't call fd_safer; no longer needed
35221         now that we include fcntl--.h.
35222
35223         * lib/getdate.y (relative_time): New type.
35224         (RELATIVE_TIME_0): New constant.
35225         (parser_control): Use relative_time instead of doing it ourselves.
35226         (%union): Add new relative_time rel member.
35227         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35228         Now typeless.
35229         (relunit, relunit_snumber): Now of type rel.
35230         (zone, rel, relunit, get_date): Adjust to above changes.
35231
35232         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35233         Do not include unistd-safer.h.
35234         (getloadavg): Don't call fd_safer; no longer needed
35235         now that we include fcntl--.h.
35236
35237         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35238         (make_dir_parents): Treat ENOSYS like EEXIST.
35239
35240         Improve quality of diagnostics on restore_cwd failure.
35241         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
35242         (make_dir_parents): Last arg is now int * (for errno), not bool *.
35243         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35244         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35245         each time through the loop.  Do not diagnose restore_cwd failure;
35246         that is the caller's job (and perhaps the caller does not care).
35247
35248         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35249         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35250         If the file already exists but is not a directory, don't bother
35251         to try to make its parents.
35252         Close potential file descriptor leak if we can't chdir("/") (!).
35253         Don't always return true if chdir($PWD) fails; return true only
35254         if the requested action was done successfully (except for the
35255         chdir($PWD)).
35256         Don't log final directory unless we actually made it.
35257         Refactor to avoid duplicate code to fix up permissions.
35258         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35259
35260         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35261         to make it a bit faster and (I hope) clearer.
35262         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35263         Fix bug in formats like %2N.
35264
35265         * lib/verify.h: New file.
35266
35267 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         Sync from coreutils.
35270         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35271
35272 2005-09-22  Jim Meyering  <jim@meyering.net>
35273
35274         Sync from coreutils.
35275
35276         * m4/lstat.m4 (gl_FUNC_LSTAT):
35277         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35278         Remove obsolete comment.
35279         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35280         * m4/xstrtod.m4: Likewise.
35281
35282         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35283
35284 2005-09-22  Jim Meyering  <jim@meyering.net>
35285
35286         Sync from coreutils.
35287
35288         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35289
35290         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35291         the .tm_year member, since otherwise gcc-4.0 would now warn about
35292         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35293
35294         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35295         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35296
35297         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35298         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35299         when run in a time zone for which daylight savings time is in effect
35300         for the starting date.
35301
35302         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35303         stop us from restricting permissions of just-created absolute-named
35304         directories.
35305         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35306         to restore initial working directory.
35307         * lib/mkdir-p.c (make_dir_parents): New parameter:
35308         different_working_dir, to tell caller if/when we change the working
35309         directory and are unable to return to the initial one.
35310         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35311         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35312         `return false'.  This fixes a bug introduced on 2004-07-30.
35313
35314         * lib/openat.c (fdopendir): Be sure to close the supplied
35315         file descriptor before returning.  This makes our replacement
35316         implementation a little closer to Solaris's, where fdopendir
35317         ties the file descriptor to the returned DIR* pointer.
35318         * lib/openat.c (unlinkat): New function.
35319         * lib/openat.h (unlinkat): Add prototype.
35320         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35321         (openat_restore_fail): Rename from openat_restore_die.
35322         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35323
35324         Provide an alternative to exiting immediately upon save_cwd or
35325         restore_cwd failure.  Now, an application can arrange e.g.,
35326         to perform a longjump in that case.
35327         * lib/openat.c: Include dirname.h.
35328         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35329         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35330         and openat_restore_die rather than calling error directly.
35331         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35332
35333         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35334         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35335         define.
35336
35337         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35338         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35339                             int utc, int nanoseconds);
35340         Background:
35341         date should not have to allocate a megabyte of virtual memory to
35342         handle a format argument like +%1048575T.  When implemented with
35343         strftime, it must allocate such a buffer, use strftime to fill it
35344         in, print it, then free it.
35345         With fprintftime, it simply prints everything and exits.
35346         With no need for memory allocation, that's one fewer way to fail.
35347         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35348         optional field width, not before, so we accept %9:z, not %:9z.
35349         (my_strftime): Be sure to use L_('x') for literals.
35350
35351         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35352         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35353         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35354         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35355         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35356         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35357         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35358         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35359         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35360         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35361         * lib/xgethostname.c, lib/xreadlink.c:
35362         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35363
35364         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35365         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35366         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35367         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35368         and don't include <sys/file.h>).
35369
35370 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35371
35372         Sync from coreutils.
35373
35374         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35375         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35376         [!LDAV_DONE]: Avoid unused variable warning.
35377
35378 2005-09-21  Bruno Haible  <bruno@clisp.org>
35379
35380         * lib/unicodeio.h (unicode_to_mb): New declaration.
35381
35382 2005-09-20  Derek Price  <derek@ximbiot.com>
35383
35384         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35385         getaddrinfo.h.
35386
35387 2005-09-20  Bruno Haible  <bruno@clisp.org>
35388
35389         * gnulib-tool: Remove trailing slashes from the values specified for
35390         --source-base, --m4-base, --tests-base, --aux-dir.
35391         Suggested by Simon Josefsson <jas@extundo.com>.
35392
35393 2005-09-20  Bruno Haible  <bruno@clisp.org>
35394
35395         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35396         func_modules_to_filelist, func_import, func_create_testdir): Make all
35397         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35398         change when gnulib-tool is invoked in a different locale.
35399
35400 2005-09-19  Simon Josefsson  <jas@extundo.com>
35401
35402         * m4/socklen.m4: Fix typo.
35403
35404 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35405
35406         Use a consistent style for including <config.h>.
35407         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35408         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35409         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35410         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35411         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35412         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35413         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35414         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35415         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35416         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35417         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35418         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35419         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35420         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35421         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35422         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35423         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35424         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35425         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35426         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35427         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35428         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35429         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35430         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35431         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35432         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35433         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35434         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35435         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35436         lib/xstrtoumax.c, lib/yesno.c:
35437         Standardize inclusion of config.h.
35438         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35439         lib/inttostr.h:  Removed inclusion of config.h from header files.
35440         * lib/inttostr.c:  Adjusted in-tree users.
35441         * lib/timespec.h: Remove superfluous warning to include config.h.
35442         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35443         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35444         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35445         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35446         config.h with HAVE_CONFIG_H.
35447
35448 2005-09-19  Jim Meyering  <jim@meyering.net>
35449
35450         * modules/pathmax (License): Change to LGPL.
35451
35452 2005-09-19  Derek Price  <derek@ximbiot.com>
35453
35454         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35455
35456 2005-09-19  Bruno Haible  <bruno@clisp.org>
35457
35458         * gnulib-tool (import): Provide default for --tests-base.
35459
35460 2005-09-19  Bruno Haible  <bruno@clisp.org>
35461
35462         * doc/quote.texi: New file, extracted from gnulib.texi.
35463         * doc/ctime.texi: New file, extracted from gnulib.texi.
35464         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35465         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35466         * doc/gnulib.texi: Include them.
35467
35468 2005-09-18  Bruno Haible  <bruno@clisp.org>
35469
35470         Portability fix.
35471         * gnulib-tool (func_readlink): New function.
35472         (func_ln_if_changed): Use it.
35473
35474 2005-09-18  Bruno Haible  <bruno@clisp.org>
35475
35476         * gnulib-tool: Support --with-tests also with --import.
35477         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35478         (func_import): Use variables $testsbase and $inctests. Emit a
35479         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35480         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35481         SUBDIRS += $testsdir.
35482         (func_create_testdir): Update.
35483
35484 2005-09-18  Bruno Haible  <bruno@clisp.org>
35485
35486         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35487         instead of $dry_run.
35488         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35489         (func_ln_if_changed): Don't handle dry-run here.
35490         (func_import): In dry-run mode, detect more precisely which actions
35491         would be performed, and don't use "...ing" verbs.
35492
35493 2005-09-18  Bruno Haible  <bruno@clisp.org>
35494
35495         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35496         (func_import): Use join on two temporary files instead of three nested
35497         loops, in order to determine which files are new or old.
35498
35499 2005-09-18  Bruno Haible  <bruno@clisp.org>
35500
35501         * gnulib-tool (func_import): Comment out code that spits out the
35502         new files with --dry-run.
35503
35504 2005-09-18  Bruno Haible  <bruno@clisp.org>
35505
35506         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35507
35508 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35509
35510         * lib/stat-time.h: New file.
35511         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35512         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35513         in a different way.
35514         (timespec_cmp): New function.
35515         * lib/utimecmp.c: Include stat-time.h.
35516         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35517         members exist, not on the obsolescent ST_MTIM_NSEC.
35518         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35519
35520 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35523
35524 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35525
35526         * MODULES.html.sh (File system functions): Add stat-time.
35527         * modules/stat-time: New file.
35528         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35529         is now done in a different way, by the stat-time module.
35530         * modules/utimecmp (Depends-on): Add stat-time.
35531
35532 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35533
35534         * m4/st_mtim.m4: Remove.  Superseded by...
35535         * m4/stat-time.m4: New file.
35536         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35537         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35538
35539 2005-09-15  Derek Price  <derek@ximbiot.com>
35540
35541         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35542
35543 2005-09-15  Derek Price  <derek@ximbiot.com>
35544
35545         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35546         * lib/regex_internal.c: Ditto, using this...
35547         (__GNUC_PREREQ): ...new macro.
35548         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35549         using...
35550         (__GNUC_PREREQ): ...this new macro.
35551
35552         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35553
35554 2005-09-15  Derek Price  <derek@ximbiot.com>
35555             Paul Eggert  <eggert@cs.ucla.edu>
35556
35557         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35558         changes, consolidating in...
35559         * lib/regex_internal.h: ...this file.
35560
35561 2005-09-13  Jim Meyering  <jim@meyering.net>
35562
35563         * lib/canon-host.c: Filter through gnu indent and reword comments
35564         slightly.
35565         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35566
35567 2005-09-13  Derek Price  <derek@ximbiot.com>
35568
35569         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35570         failure.
35571         Reported by Jim Meyering  <jim@meyering.net>.
35572
35573 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35574
35575         * lib/base64.c: Typo.
35576         (base64_encode): Put b64str in initialized data section.
35577
35578 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35579
35580         Merge glibc and coreutils changes into gnulib, plus a few
35581         extra fixes.
35582         * lib/md5.c: Use #error rather than a string.
35583         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35584         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35585         (__attribute__): Define to empty for non recent-GCC.
35586         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35587         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35588         Renamed from their non-__ counterparts, with new macros replacing
35589         them if not _LIBC.  Add __THROW attribute.
35590         (rol): Remove.
35591         (struct md5_ctx): Align buffer if using GCC.
35592         * lib/sha1.h (struct sha1_ctx): Likewise.
35593         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35594         The old name was backwards.
35595         (NOTSWAP): Remove; not used.
35596         (rol): New macro, moved here from md5.h.
35597         (sha1_process_block): Remove a FIXME that doesn't make sense.
35598
35599 2005-09-12  Derek Price  <derek@ximbiot.com>
35600
35601         Return usable errors from canon-host.
35602         * lib/canon-host.h: New file.
35603         * lib/canon-host.c (canon_host): Wrap...
35604         (canon_host_r): ...this new function, which now relies exclusively on
35605         getaddrinfo.
35606         (ch_strerror): New function.
35607         (last_cherror): New global.
35608         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35609         interface.
35610         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35611         void *.
35612         (freeaddrinfo): Free ai->ai_canonname when set.
35613
35614 2005-09-12  Derek Price  <derek@ximbiot.com>
35615
35616         Make canon-host require getaddrinfo.
35617         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35618         AC_LIBSOURCE canon-host.h.  Call...
35619         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35620         gl_GETADDRINFO.
35621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35622
35623 2005-09-12  Derek Price  <derek@ximbiot.com>
35624
35625         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35626         LGPL.
35627         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35628
35629 2005-09-12  Derek Price  <derek@ximbiot.com>
35630
35631         * lib/gai_strerror.c: Include config.h when available.  Include
35632         getaddrinfo.h before other headers to test interface.
35633         Reported by Larry Jones <lawrence.jones@ugs.com>.
35634
35635 2005-09-12  Derek Price  <derek@ximbiot.com>
35636             Paul Eggert  <eggert@cs.ucla.edu>
35637
35638         * modules/glob (Files): Add glob-libc.h.
35639
35640 2005-09-12  Derek Price  <derek@ximbiot.com>
35641             Paul Eggert  <eggert@cs.ucla.edu>
35642
35643         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35644         glob_.h, glob-libc.h.
35645         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35646
35647 2005-09-12  Derek Price  <derek@ximbiot.com>
35648             Paul Eggert  <eggert@cs.ucla.edu>
35649
35650         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35651         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35652         protecting things that should be done only in gnulib contexts.
35653         * lib/glob_.h: New file, containing only the glob things needed for
35654         gnulib.
35655         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35656         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35657         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35658         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35659         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35660         and to respect the namespace rules better.
35661
35662 2005-09-08  Simon Josefsson  <jas@extundo.com>
35663
35664         * modules/socklen: New file.
35665
35666 2005-09-08  Simon Josefsson  <jas@extundo.com>
35667
35668         * m4/socklen.m4: New file.
35669
35670 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35671
35672         * modules/utimens (Files): Add m4/utimbuf.m4, since
35673         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35674         Reported by Sergey Poznyakoff.
35675
35676 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35677
35678         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35679         definitions, since that's the preferred style in glibc.
35680         Fix a minor spacing issue, and update copyright notice to match
35681         glibc's.
35682
35683 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35684
35685         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35686
35687 2005-09-06  Simon Josefsson  <jas@extundo.com>
35688
35689         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35690         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35691
35692 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35693
35694         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35695         warning.
35696
35697 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * config/srclist.txt: Add glibc bug 1302.
35700
35701 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35702
35703         Change bitset word type from unsigned int to unsigned long int,
35704         as this has better performance on typical 64-bit hosts.
35705         Port bitset code to hosts with unusual word sizes.
35706         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35707         (build_collating_symbol):
35708         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35709         argument is a bitset.  This is merely a style issue, but it makes
35710         it clearer that an entire array is expected.
35711         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35712         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35713         Port to the case where bitset_word is not the same as unsigned int.
35714         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35715         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35716         Likewise.
35717         * lib/regexec.c (check_dst_limits_calc_pos_1,
35718         check_subexp_matching_top):
35719         (build_trtable, group_nodes_into_DFAstates):
35720         Likewise.
35721         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35722         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35723         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35724         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35725         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35726         * lib/regcomp.c (optimize_subexps, lower_subexp):
35727         Work even if bitset_word has holes in its bitwise representation.
35728         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35729         * lib/regexec.c (check_dst_limits_calc_pos_1,
35730         check_subexp_matching_top):
35731         Likewise.
35732         * lib/regex_internal.c (re_string_reconstruct):
35733         Don't assume UCHAR_MAX == 255.
35734         * lib/regex_internal.h (bitset_set_all): Likewise.
35735         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35736         All uses changed.
35737         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35738         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35739         All uses changed.
35740         (BITSET_WORD_MAX): New macro.
35741         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35742         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35743         (bitset_empty, bitset_copy):
35744         Prefer sizeof (bitset) to multiplying it out ourselves.
35745         (bitset_not_merge): Remove; unused.
35746         (bitset_contain): Return bool, not unsigned int with one bit on.
35747         All callers changed.
35748         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35749         alignment than re_node_set; do this by defining a new internal
35750         type struct dests_alloc and using it to allocate memory.
35751
35752 2005-09-05  Bruno Haible  <bruno@clisp.org>
35753
35754         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35755         links.
35756
35757 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35758
35759         * modules/size_max (Makefile.am): Add size_max.h
35760
35761 2005-09-04  Derek Price  <derek@ximbiot.com>
35762
35763         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35764
35765 2005-09-03  Simon Josefsson  <jas@extundo.com>
35766
35767         * gnulib-tool: Fix typo.
35768
35769 2005-09-03  Simon Josefsson  <jas@extundo.com>
35770
35771         * config/srclist.txt: Add glibc bug 1293.
35772
35773 2005-09-03  Derek Price  <derek@ximbiot.com>
35774
35775         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35776         From Larry Jones <lawrence.jones@ugs.com>.
35777
35778 2005-09-02  Simon Josefsson  <jas@extundo.com>
35779
35780         * modules/socklen: New file.
35781
35782 2005-09-02  Simon Josefsson  <jas@extundo.com>
35783
35784         * modules/havelib: New module.
35785
35786         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35787         Use havelib.
35788
35789 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35790
35791         Check for arithmetic overflow when calculating sizes, to prevent
35792         some buffer-overflow issues.  These patches are conservative, in the
35793         sense that when I couldn't determine whether an overflow was possible,
35794         I inserted a run-time check.
35795         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35796         macros.
35797         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35798         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35799         (re_xnrealloc, re_x2nrealloc): New inline functions.
35800         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35801         parse_bracket_exp):
35802         (build_equiv_class, build_charclass): Check for arithmetic overflow
35803         in size expression calculations.
35804         * lib/regex_internal.c (re_string_realloc_buffers):
35805         (build_wcs_upper_buffer, re_node_set_add_intersect):
35806         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35807         (re_dfa_add_node, register_state): Likewise.
35808         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35809         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35810         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35811         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35812
35813 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35814
35815         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35816         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35817
35818 2005-09-02  Bruno Haible  <bruno@clisp.org>
35819
35820         Support for lib vs. lib64 distinction on biarch platforms.
35821         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35822         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35823         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35824
35825 2005-09-02  Bruno Haible  <bruno@clisp.org>
35826
35827         * gnulib-tool (import): In the other first-use case, provide defaults
35828         as well.
35829
35830 2005-09-02  Bruno Haible  <bruno@clisp.org>
35831
35832         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35833         patches not yet found in the latest gettext release.
35834
35835 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35836
35837         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35838         to avoid a collision with bits/local_lim.h in glibc.
35839         All uses changed.  Problem reported by Dmitry V. Levin in
35840         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35841
35842         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35843         bugs in int versus size_t comparisons.
35844         (re_string_context_at): Fix bug where the code assumed that
35845         Idx is signed.
35846
35847         Use bool where appropriate.
35848         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35849         All callers changed.
35850         (calc_eclosure_iter): Likewise, for ROOT arg.
35851         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35852         (build_charclass_op): Likewise, for NON_MATCH arg.
35853         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35854         (re_string_construct_common): Likewise, for ICASE arg.
35855         * lib/regexec.c (re_search_2_stub, re_search_stub):
35856         Likewise, for RET_LEN arg.
35857         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35858         (set_regs): Likewise, for FL_BACKTRACK arg.
35859         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35860         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35861         (calc_eclosure_iter, parse_bracket_exp):
35862         Use bool for internal variables that are booleans.
35863         * lib/regexec.c (re_search_internal, check_matching,
35864         proceed_next_node):
35865         (set_regs, build_sifted_states, sift_states_bkref):
35866         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35867         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35868         (find_collation_sequence_value):
35869         Likewise.
35870         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35871         (re_node_set_compare):
35872         Return bool, not int. All callers changed.
35873         * lib/regexec.c (check_halt_node_context, check_dst_limits):
35874         (build_trtable, check_node_accept): Likewise.
35875         * lib/regex_internal.h: Include stdbool.h.
35876
35877         Fix bugs uncovered when converting to bool.
35878         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35879         failure instead of charging ahead blindly.
35880         * lib/regex_internal.c (register_state): Likewise.
35881         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35882         for freeing internal storage.
35883         (group_nodes_into_DFA_states): Use unsigned int, not int, for
35884         bitset pieces used as boolean, to avoid undefined behavior
35885         on hosts that do int overflow checking.
35886
35887 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35888
35889         * config/srclist.txt: Add glibc bugs 1285-1287.
35890
35891 2005-09-01  Jim Meyering  <jim@meyering.net>
35892
35893         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35894         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35895         Require gl_STAT_MACROS, too.
35896
35897 2005-09-01  Bruno Haible  <bruno@clisp.org>
35898
35899         * gnulib-tool (import): In the first-use case, provide defaults.
35900
35901 2005-09-01  Bruno Haible  <bruno@clisp.org>
35902
35903         * gnulib-tool (func_import): Remove the .tmp files.
35904
35905 2005-09-01  Bruno Haible  <bruno@clisp.org>
35906
35907         * gnulib-tool (func_import): Fix handling of symbolic links.
35908
35909 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35910
35911         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35912         old glibc regex code mishandles strings longer than 2**31 bytes.
35913         This patch fixes this when the regex code is used in gnulib
35914         (i.e., outside glibc).
35915
35916         This patch should not affect the use of the regex code inside
35917         glibc.  No doubt this problem also needs to be handled for glibc
35918         as well, but the result will be an incompatible change to the
35919         glibc ABI, and the old ABI will have to be supported too.  That
35920         can be the the subject for another patch.
35921
35922         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35923         governing whether the rest of this patch is active.  By default,
35924         the macro is disabled and the patch has no effect.
35925         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35926         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35927         (struct re_pattern_buffer, re_search, re_search_2, re_match):
35928         (re_match_2, re_set_registers): Use the new types.
35929         * lib/regex_internal.h (Idx, re_hashval_t): New types.
35930         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35931         New macros.
35932         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35933         (re_string_context_at, bin_tree_t, re_dfastate_t):
35934         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35935         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35936         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35937         (re_string_char_size_at, re_string_wchar_at):
35938         (re_string_elem_size_at):
35939         Use the new types and macros to port to 64-bit hosts.
35940         Use unsigned types for internal values, so that the code
35941         mostly works even for arrays larger than SSIZE_MAX.
35942         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35943         (search_duplicated_node, calc_eclosure_iter, fetch_number):
35944         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35945         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35946         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35947         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35948         (calc_inveclosure, parse_dup_op, build_range_exp):
35949         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35950         (fetch_number, create_token_tree, mark_opt_subexp):
35951         Likewise.
35952         * lib/regex_internal.c (re_string_construct_common,
35953         create_ci_newstate):
35954         (create_cd_newstate, re_string_allocate, re_string_construct):
35955         (re_string_realloc_buffers, build_wcs_upper_buffer):
35956         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35957         (re_string_reconstruct, re_string_peek_byte_case):
35958         (re_string_fetch_byte_case, re_string_context_at):
35959         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35960         (re_node_set_init_copy, re_node_set_add_intersect):
35961         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35962         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35963         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35964         (re_acquire_state, re_acquire_state_context, register_state):
35965         Likewise.
35966         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35967         search_cur_bkref_entry):
35968         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35969         (re_search_internal, re_search_2_stub, re_search_stub)
35970         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35971         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35972         (update_cur_sifted_state, check_dst_limits):
35973         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35974         (check_subexp_limits, sift_states_bkref, merge_state_array):
35975         (check_subexp_matching_top, get_subexp, get_subexp_sub):
35976         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35977         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35978         (expand_bkref_cache, check_node_accept_bytes):
35979         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35980         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35981         (acquire_init_state_context, check_halt_node_context):
35982         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35983         (sift_states_backward, clean_state_log_if_needed):
35984         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35985         (find_recover_state, transit_state_sb, transit_state_mb):
35986         (transit_state_bkref, build_trtable, match_ctx_clean):
35987         Likewise.
35988         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35989         to work around an assumption that REG_MISSING is negative.
35990
35991         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35992         (seek_collating_symbol_entry) [defined _LIBC]:
35993         (lookup_collation_sequence_value) [defined _LIBC]:
35994         (build_range_exp, build_collating_symbol) [defined _LIBC]:
35995         Use prototypes rather than old-style function definitions.
35996         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35997         (transit_state_sb) [0]:
35998         (find_collation_sequence_value) [defined _LIBC]: Likewise.
35999
36000         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
36001         rm_eo.
36002
36003         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
36004         (optimize_subexps, lower_subexp):
36005         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
36006         since the signed shift might overflow.  Use 1u<<31 instead.
36007         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36008         Likewise.
36009         * lib/regexec.c (check_dst_limits_calc_pos_1,
36010         check_subexp_matching_top): Likewise.
36011
36012         * lib/regcomp.c (optimize_subexps, lower_subexp):
36013         Use CHAR_BIT rather than 8, for clarity.
36014         * lib/regexec.c (check_dst_limits_calc_pos_1):
36015         (check_subexp_matching_top): Likewise.
36016         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
36017         have to worry about portability issues when shifting it left.
36018         Remove no-longer-needed test for table_size > 0.
36019         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
36020         in a word, as the resulting behavior is undefined.
36021         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
36022         in one case, a <= should have been an <, and in another case the
36023         whole test was missing.
36024         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
36025         the standard name CHAR_BIT.
36026         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
36027         this is not true on one's complement and signed-magnitude hosts.
36028
36029         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
36030         next_last_offset.
36031         (struct re_dfa_t): Remove unused member states_alloc.
36032         * lib/regcomp.c (init_dfa): Don't initialize unused members.
36033
36034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36035
36036         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
36037         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
36038         and large-file glibc and in 32-bit large-file Solaris.
36039
36040 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36041
36042         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
36043         lengths fit in regoff_t; this isn't true if regoff_t is the same
36044         width as size_t.
36045         * lib/regex.c (re_search_internal): 5th arg is LAST_START
36046         (= START + RANGE) instead of RANGE.  This avoids overflow
36047         problems when regoff_t is the same width as size_t.
36048         All callers changed.
36049         (re_search_2_stub): Check for overflow when adding the
36050         sizes of the two strings.
36051         (re_search_stub): Check for overflow when adding START
36052         to RANGE; if it occurs, substitute the extreme value.
36053
36054 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36055
36056         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
36057
36058 2005-08-31  Jim Meyering  <jim@meyering.net>
36059
36060         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
36061         a pointer-to-const.
36062         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
36063         (register_state): Likewise.
36064         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
36065         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36066         (group_nodes_into_DFAstates): Likewise.
36067
36068 2005-08-31  Jim Meyering  <jim@meyering.net>
36069
36070         * check-module: Add a FIXME comment.
36071
36072 2005-08-31  Eric Blake  <ebb9@byu.net>
36073
36074         * modules/unistd-safer (Files): Add unistd--.h.
36075         * modules/stdio-safer (Files): Add stdio--.h.
36076
36077 2005-08-31  Derek Price  <derek@ximbiot.com>
36078
36079         * lib/getdelim.c (getdelim): Return EOF on EOF.
36080         Reported by Larry Jones <lawrence.jones@ugs.com>.
36081
36082 2005-08-31  Bruno Haible  <bruno@clisp.org>
36083
36084         Avoid unnecessary diffs in the generated lib/Makefile.am.
36085         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
36086         the generated files.
36087         (func_import): Don't set cmd.
36088
36089 2005-08-31  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/strstr.c: Include <stddef.h>, for NULL.
36092         * lib/strcasestr.c: Likewise.
36093         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36094
36095 2005-08-31  Bruno Haible  <bruno@clisp.org>
36096
36097         * gnulib-tool: New option --macro-prefix.
36098         (func_import): Use macro_prefix.
36099         (import): Handle option --macro-prefix.
36100
36101 2005-08-31  Bruno Haible  <bruno@clisp.org>
36102
36103         * gnulib-tool (import): Rename most ac_* variables to cached_*.
36104         Also use new variables cached_lgpl, cached_libtool.
36105
36106 2005-08-31  Bruno Haible  <bruno@clisp.org>
36107
36108         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
36109         always instantiating them.
36110
36111 2005-08-31  Bruno Haible  <bruno@clisp.org>
36112
36113         * gnulib-tool (func_import): Read the previous cached settings
36114         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
36115         earlier added by gnulib but are now dropped. Warn when a gnulib file
36116         overwrites a non-gnulib file.
36117
36118 2005-08-31  Bruno Haible  <bruno@clisp.org>
36119
36120         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
36121         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
36122         projects that don't keep autogenerated files in CVS. Put into
36123         actioncmd only the specified modules, not the transitive closure.
36124
36125 2005-08-31  Bruno Haible  <bruno@clisp.org>
36126
36127         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
36128         Create directories that shall be filled.
36129         (import): Don't look for gl_* macros in configure.ac. Recurse across
36130         all directories containing a gnulib-cache.m4 files, if meaningful.
36131
36132 2005-08-31  Bruno Haible  <bruno@clisp.org>
36133
36134         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
36135         (import): Set seen_libtool when we see gl_LIBTOOL.
36136
36137 2005-08-31  Bruno Haible  <bruno@clisp.org>
36138
36139         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
36140         declaration macro definitions from generated gnulib.m4.
36141
36142 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
36143
36144         * lib/iconvme.h: Add prototype for iconv_alloc.
36145
36146 2005-08-29  Simon Josefsson  <jas@extundo.com>
36147
36148         * lib/iconvme.c: Fix errno.
36149
36150 2005-08-29  Bruno Haible  <bruno@clisp.org>
36151
36152         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36153         that it works when the directory contains spaces.
36154
36155 2005-08-29  Bruno Haible  <bruno@clisp.org>
36156
36157         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36158
36159 2005-08-29  Bruno Haible  <bruno@clisp.org>
36160
36161         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36162         Emit more advice.
36163
36164 2005-08-29  Bruno Haible  <bruno@clisp.org>
36165         and Stepan Kasal  <kasal@ucw.cz>
36166
36167         * check-module: If more parameters are given, check each of them
36168         separately; add more exceptions, as noted by Jim Meyering.
36169         (check_module): New procedure.
36170         (%exempt_header): Now contains all exceptions.
36171
36172 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
36173
36174         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36175
36176 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
36177
36178         * lib/iconvme.c: Split iconv_string into iconv_alloc.
36179
36180 2005-08-28  Bruno Haible  <bruno@clisp.org>
36181
36182         * m4/gnulib-tool.m4: New file.
36183
36184 2005-08-27  Jim Meyering  <jim@meyering.net>
36185
36186         * modules/unistd-safer (Files): Add pipe-safer.c.
36187         * modules/fcntl-safer (Files): Add creat-safer.c.
36188
36189 2005-08-27  Jim Meyering  <jim@meyering.net>
36190
36191         * m4/stdlib-safer.m4: New file.  From coreutils.
36192         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36193         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36194         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36195         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36196         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36197
36198 2005-08-27  Jim Meyering  <jim@meyering.net>
36199
36200         * lib/fopen-safer.c: Merge minor changes from coreutils.
36201         * lib/dup-safer.c: Likewise.
36202         * lib/fd-safer.c: Likewise.
36203
36204         Merge from coreutils.
36205         * lib/stdio--.h: New file.
36206         * lib/stdlib--.h: New file.
36207         * lib/mkstemp-safer.c: New file.
36208
36209         GNU tar needs these.
36210         * lib/pipe-safer.c: New file.
36211         * lib/creat-safer.c: New file.
36212         * lib/fcntl--.h (creat): Define to creat_safer.
36213         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36214         * lib/unistd--.h (pipe): Define to pipe_safer.
36215         * lib/unistd-safer.h: Declare pipe_safer.
36216
36217 2005-08-26  Simon Josefsson  <jas@extundo.com>
36218
36219         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36220         Haible <bruno@clisp.org>.
36221
36222 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36223
36224         * lib/regex_internal.h: Remove all references to
36225         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36226         or better.
36227         (bitset_not, bitset_merge, bitset_not_merge):
36228         (bitset_mask, re_string_allocate, re_string_construct):
36229         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36230         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36231         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36232         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36233         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36234         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36235         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36236         (re_acquire_state_context):
36237         Remove unnecessary forward decls.
36238         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36239         Put __attribute at function definition,
36240         now that the function decl has been removed.
36241         * lib/regex_internal.c (re_string_peek_byte_case):
36242         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36243         Likewise.
36244
36245 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
36246
36247         * m4/regex.m4: Add AC_PREREQ(2.50).
36248         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36249
36250 2005-08-25  Simon Josefsson  <jas@extundo.com>
36251
36252         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36253         __fsetlocking.
36254
36255 2005-08-25  Simon Josefsson  <jas@extundo.com>
36256
36257         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36258         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36259         GLIBC specific code.
36260
36261 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36262
36263         Make regex safe for g++.  This fixes one real bug (an "err"
36264         that should have been "*err").  g++ problem reported by
36265         Sam Steingold.
36266         * lib/regex_internal.h (re_calloc): New macro, consistent with
36267         re_malloc etc.  All callers of calloc changed to use re_calloc.
36268         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36269         not int.  All callers changed.
36270         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36271         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36272         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36273         (find_recover_state): Change "err" to "*err"; this fixes what
36274         appears to be a real bug.
36275         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36276         versus int.
36277
36278 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36279
36280         * modules/regex (Depends-on): Add malloc, since the code
36281         assumes that !malloc(0) means failure.
36282
36283 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36284
36285         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36286
36287         alloca modernization/simplification for regex.
36288         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36289         needs to be at the start of the file, and can be moved into
36290         regex_internal.h and simplified.
36291         * lib/regex_internal.h: Include <alloca.h>.
36292         (__libc_use_alloca) [!defined _LIBC]: New macro.
36293         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36294         now works outside glibc.
36295
36296 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36297
36298         * config/srclist.txt: Add glibc bugs 1241, 1245.
36299
36300 2005-08-25  Jim Meyering  <jim@meyering.net>
36301
36302         * lib/open-safer.c: Include <config.h>.
36303         Otherwise, we'd lose LARGEFILE support in any file using
36304         e.g. "fcntl--.h"
36305
36306 2005-08-25  Bruno Haible  <bruno@clisp.org>
36307
36308         * m4/minmax.m4: Require autoconf 2.52.
36309         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36310         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36311         alternatives of translit over the alphabet.
36312         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36313
36314 2005-08-24  Simon Josefsson  <jas@extundo.com>
36315
36316         * tests/test-getpass.c: New file.
36317
36318 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36319
36320         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36321         for GNU regex features.
36322
36323 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36324
36325         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36326         * lib/regex.h (regerror): Likewise.
36327
36328         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36329         requires this.  (The code never needed it.)
36330
36331         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36332         All uses of recently-renamed identifiers changed to use the new,
36333         POSIX-compliant names.  The code will build and run just fine
36334         without these changes, but it's better to eat our own dog food
36335         and use the standard-conforming names.
36336
36337         * lib/regex.h: Fix a multitude of POSIX name space violations.
36338         These changes have an effect only for programs that define
36339         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36340         do not change anything for programs compiled in the normal way.
36341         Also, there is no effect on the ABI.
36342
36343         (_REGEX_SOURCE): New macro.
36344         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36345         defined and _GNU_SOURCE is not; this fixes a name space violation.
36346
36347         Rename the following macros to obey POSIX requirements.
36348         The old names are still visible as macros if _REGEX_SOURCE is defined.
36349         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36350         RE_BACKSLASH_ESCAPE_IN_LISTS.
36351         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36352         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36353         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36354         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36355         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36356         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36357         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36358         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36359         (REG_INTERVALS): renamed from RE_INTERVALS.
36360         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36361         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36362         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36363         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36364         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36365         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36366         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36367         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36368         RE_UNMATCHED_RIGHT_PAREN_ORD.
36369         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36370         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36371         (REG_DEBUG): renamed from RE_DEBUG.
36372         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36373         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36374         unusual, since we can't clash with the POSIX REG_ICASE.
36375         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36376         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36377         (REG_NO_SUB): renamed from RE_NO_SUB.
36378         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36379         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36380         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36381         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36382         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36383         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36384         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36385         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36386         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36387         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36388         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36389         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36390         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36391         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36392         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36393         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36394         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36395         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36396         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36397         (REG_FIXED): Renamed from REGS_FIXED.
36398         (REG_NREGS): Renamed from RE_NREGS.
36399
36400         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36401         of other REG_* macros, since POSIX says the user is allowed to
36402         #undef these macros selectively.
36403
36404         (reg_errcode_t): Update comment stating what other tables need
36405         to be consistent.
36406
36407         Rename the following enum values to obey POSIX requirements.
36408         The old names are still visible as macros.
36409         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36410         is not defined, since GNU is supposed to be a superset of POSIX as
36411         much as possible, and since we want reg_errcode_t to be a signed
36412         type for implementation consistency.
36413         (_REG_NOERROR): Renamed from REG_NOERROR.
36414         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36415         (_REG_BADPAT): Renamed from REG_BADPAT.
36416         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36417         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36418         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36419         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36420         (_REG_EBRACK): Renamed from REG_EBRACK.
36421         (_REG_EPAREN): Renamed from REG_EPAREN.
36422         (_REG_EBRACE): Renamed from REG_EBRACE.
36423         (_REG_BADBR): Renamed from REG_BADBR.
36424         (_REG_ERANGE): Renamed from REG_ERANGE.
36425         (_REG_ESPACE): Renamed from REG_ESPACE.
36426         (_REG_BADRPT): Renamed from REG_BADRPT.
36427         (_REG_EEND): Renamed from REG_EEND.
36428         (_REG_ESIZE): Renamed from REG_ESIZE.
36429         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36430         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36431         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36432         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36433         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36434
36435         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36436         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36437         changed.  But support the old name if the new one is not defined
36438         and if _REGEX_SOURCE.
36439
36440         Change the following member names in struct re_pattern_buffer.
36441         The old names are still supported if !_REGEX_SOURCE.
36442         The new names are always supported, regardless of _REGEX_SOURCE.
36443         (re_buffer): Renamed from buffer.
36444         (re_allocated): Renamed from allocated.
36445         (re_used): Renamed from used.
36446         (re_syntax): Renamed from syntax.
36447         (re_fastmap): Renamed from fastmap.
36448         (re_translate): Renamed from translate.
36449         (re_can_be_null): Renamed from can_be_null.
36450         (re_regs_allocated): Renamed from regs_allocated.
36451         (re_fastmap_accurate): Renamed from fastmap_accurate.
36452         (re_no_sub): Renamed from no_sub.
36453         (re_not_bol): Renamed from not_bol.
36454         (re_not_eol): Renamed from not_eol.
36455         (re_newline_anchor): Renamed from newline_anchor.
36456
36457         Change the following member names in struct re_registers.
36458         The old names are still supported if !_REGEX_SOURCE.
36459         The new names are always supported, regardless of _REGEX_SOURCE.
36460         (rm_num_regs): Renamed from num_regs.
36461         (rm_start): Renamed from start.
36462         (rm_end): Renamed from end.
36463
36464         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36465         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36466         Prepend __ to parameter names.
36467
36468         Undo yesterday's changes.
36469
36470 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36471
36472         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36473         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36474         lib/regex.c.
36475
36476 2005-08-24  Jim Meyering  <jim@meyering.net>
36477
36478         Sync from coreutils.
36479         * m4/fcntl-safer.m4: New file.
36480
36481         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36482         and object files for this module.
36483
36484 2005-08-24  Jim Meyering  <jim@meyering.net>
36485
36486         Sync from coreutils.
36487         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36488
36489 2005-08-24  Jim Meyering  <jim@meyering.net>
36490
36491         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36492         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36493
36494 2005-08-24  Jim Meyering  <jim@meyering.net>
36495
36496         * modules/fcntl-safer: New module.
36497         * modules/fts (Depends-on): Add fcntl-safer.
36498         * MODULES.html.sh (File descriptor based Input/Output):
36499         Add fcntl-safer.
36500
36501 2005-08-24  Bruno Haible  <bruno@clisp.org>
36502
36503         Support for unit test modules.
36504         * modules/README: Mention tests modules.
36505         * modules/TEMPLATE-TESTS: New file.
36506         * gnulib-tool: New options --extract-tests-module, --with-tests and
36507         --tests-base (unused for the moment).
36508         (testsbase, inctests): New variables.
36509         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36510         (func_verify_module): Exclude TEMPLATE-TESTS.
36511         (func_verify_nontests_module, func_verify_tests_module): New functions.
36512         (func_get_dependencies): Add implicit dependency for tests modules.
36513         (func_get_tests_module): New function.
36514         (func_modules_transitive_closure): When --with-tests was specified,
36515         include the unit tests as well, unless explicitly avoided.
36516         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36517         (func_emit_tests_Makefile_am): New function.
36518         (func_create_testdir): When --with-tests was specified, emit a
36519         tests/ directory.
36520         * MODULES.html.sh (Future developments): Update.
36521
36522 2005-08-24  Bruno Haible  <bruno@clisp.org>
36523
36524         * modules/tls-tests: New file.
36525         * tests/test-tls.c: New file, from GNU gettext.
36526
36527 2005-08-24  Bruno Haible  <bruno@clisp.org>
36528
36529         * modules/lock-tests: New file.
36530         * tests/test-lock.c: New file, from GNU gettext.
36531
36532 2005-08-24  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/lock.h: Add multiple inclusion guard.
36535         * lib/tls.h: Add multiple inclusion guard.
36536
36537 2005-08-24  Bruno Haible  <bruno@clisp.org>
36538
36539         * gnulib-tool: Add support for the --aux-dir option to
36540         --create-testdir, --create-megatestdir, --test, --megatest.
36541         (func_create_testdir, func_create_megatestdir): Optionally emit a
36542         AC_CONFIG_AUX_DIR directive.
36543         (create-testdir, create-megatestdir, test, megatest): Provide a
36544         default value for $auxdir.
36545
36546 2005-08-24  Bruno Haible  <bruno@clisp.org>
36547
36548         * gnulib-tool (import): Use compound statement instead of subshell
36549         where possible.
36550
36551 2005-08-24  Bruno Haible  <bruno@clisp.org>
36552
36553         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36554
36555 2005-08-24  Bruno Haible  <bruno@clisp.org>
36556
36557         * gnulib-tool (func_version): Update.
36558
36559 2005-08-24  Bruno Haible  <bruno@clisp.org>
36560
36561         * gnulib-tool (func_import, func_create_testdir,
36562         func_create_megatestdir): Quote all autoconf macro arguments.
36563
36564 2005-08-24  Bruno Haible  <bruno@clisp.org>
36565
36566         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36567         option --force, because --force causes the aclocal.m4 of each
36568         subdirectory to be newer than the corresponding config.h.in.
36569
36570 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36571
36572         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36573         All contents moved to gl_REGEX.
36574         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36575         assume that it does.
36576
36577 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36578
36579         * lib/regex.h (REG_NOSYS)
36580         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36581         Define, since POSIX requires it as of 2001.
36582         (_REG_ENOSYS)
36583         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36584         New private symbol, used to keep the enum signed in all cases.
36585         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36586         Youngman in
36587         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36588
36589         * lib/regex_internal.c (re_string_skip_chars, register_state):
36590         (calc_state_hash):
36591         Remove forward decls; no longer needed now that we use prototypes.
36592         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36593         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36594         (clean_state_log_if_needed): Likewise.
36595
36596 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36597
36598         * config/srclist.txt: Add glibc bugs 1231-1233.
36599
36600 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36601
36602         Fix problems reported by Sam Steingold in
36603         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36604         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36605         assumed that reg_errcode_t is a signed type, which is not
36606         necessarily true if _XOPEN_SOURCE is not defined.
36607         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36608         since some compilers warn about it otherwise.
36609
36610 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36611
36612         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36613         (init_word_char, create_initial_state, duplicate_node_closure):
36614         (fetch_token, peek_token_bracket, build_range_exp):
36615         (build_collating_symbol): Remove forward decls; no longer needed
36616         now that we use prototypes.
36617
36618         * lib/regcomp.c:
36619         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36620         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36621         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36622         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36623         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36624         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36625         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36626         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36627         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36628         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36629         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36630         (build_charclass, build_charclass_op, fetch_number, create_tree):
36631         (create_token_tree, mark_opt_subexp, duplicate_tree):
36632         Use prototypes rather than old-style definitions.
36633
36634         * lib/regex_internal.c:
36635         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36636         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36637         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36638         (re_string_reconstruct, re_string_peek_byte_case):
36639         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36640         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36641         (re_node_set_init_copy, re_node_set_add_intersect):
36642         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36643         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36644         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36645         (re_acquire_state, re_acquire_state_context, register_state):
36646         (create_ci_newstate, create_cd_newstate, free_state):
36647         Likewise.
36648         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36649         re_search_2):
36650         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36651         (re_search_internal, prune_impossible_nodes):
36652         (acquire_init_state_context, check_matching, static):
36653         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36654         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36655         (update_regs, sift_states_backward, build_sifted_states):
36656         (clean_state_log_if_needed, merge_state_array):
36657         (update_cur_sifted_state, add_epsilon_src_nodes):
36658         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36659         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36660         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36661         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36662         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36663         (check_arrival, check_arrival_add_next_nodes):
36664         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36665         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36666         (check_node_accept_bytes, check_node_accept, extend_buffers):
36667         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36668         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36669         (sift_ctx_init):
36670         Likewise.
36671
36672         * lib/regex_internal.h:
36673         (re_string_allocate, re_string_construct, re_string_reconstruct):
36674         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36675         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36676         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36677         (re_string_context_at, re_string_peek_byte_case):
36678         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36679         is defined, since we now use prototypes always.
36680
36681         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36682         C89 or better.  All uses removed.
36683
36684 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36685
36686         * config/srclist.txt: Add glibc bugs 1220-1227.
36687
36688 2005-08-20  Jim Meyering  <jim@meyering.net>
36689
36690         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36691         of unused local, dfa.
36692
36693 2005-08-20  Bruno Haible  <bruno@clisp.org>
36694
36695         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36696
36697 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36698
36699         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36700         (re_node_set_insert_last, re_dfa_add_node):
36701         Rename local variables to avoid GCC shadowing warnings.
36702
36703 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36704
36705         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36706         [defined lint]: Suppress bogus uninitialized-variable warnings.
36707
36708         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36709         and let the caller return REG_ESPACE if out of space.  This
36710         removes an uninitialied-variable warning with GCC 4.0.1, and also
36711         avoids taking the address of a local variable.  All callers
36712         changed.
36713
36714 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36715
36716         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36717         $LIBCSRC/posix/regexec.c.
36718         Add glibc bug 1217 for regcomp.c.
36719
36720 2005-08-19  Jim Meyering  <jim@meyering.net>
36721
36722         * lib/regexec.c (proceed_next_node): Redo local variables to
36723         avoid GCC shadowing warnings.
36724
36725 2005-08-18  Bruno Haible  <bruno@clisp.org>
36726
36727         * lib/strstr.c (strstr): Fix return value in multibyte case.
36728         * lib/strcasestr.c (strcasestr): Likewise.
36729
36730 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36731
36732         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36733
36734 2005-08-17  Jim Meyering  <jim@meyering.net>
36735
36736         Make the %s format (seconds since the epoch) work for a negative
36737         number and when used with a zero-padded field width, e.g. %015s.
36738
36739         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36740         label so that it precedes the code to set `digits'.  Otherwise,
36741         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36742         print `00-22'.  Now, it prints `-0022', as it should.
36743
36744 2005-08-17  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/strstr (Files): Add m4/mbrtowc.m4.
36747         (Depends-on): Add mbuiter.
36748
36749 2005-08-17  Bruno Haible  <bruno@clisp.org>
36750
36751         * modules/strcasestr: New file.
36752         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36753         strcasestr.
36754
36755 2005-08-17  Bruno Haible  <bruno@clisp.org>
36756
36757         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36758
36759 2005-08-17  Bruno Haible  <bruno@clisp.org>
36760
36761         * modules/mbuiter: New file.
36762         * MODULES.html.sh (Extended multibyte and wide character utilities):
36763         Add mbuiter.
36764
36765 2005-08-17  Bruno Haible  <bruno@clisp.org>
36766
36767         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36768         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36769
36770 2005-08-17  Bruno Haible  <bruno@clisp.org>
36771
36772         * m4/strcasestr.m4: New file.
36773
36774 2005-08-17  Bruno Haible  <bruno@clisp.org>
36775
36776         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36777         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36778
36779 2005-08-17  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/strcasestr.h: New file.
36782         * lib/strcasestr.c: New file.
36783
36784 2005-08-17  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/strcasecmp.c: Use mbuiter.h.
36787
36788 2005-08-17  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/mbuiter.h: New file.
36791
36792 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36793
36794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36795         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36796         and gl_GETOPT are both invoked via different paths (as happens
36797         with GNU tar CVS because it uses both argp and getopt), the former
36798         wins.
36799
36800 2005-08-16  Bruno Haible  <bruno@clisp.org>
36801
36802         * modules/tls: New file.
36803         * MODULES.html.sh (Multithreading): Add tls.
36804
36805 2005-08-16  Bruno Haible  <bruno@clisp.org>
36806
36807         * modules/strnlen1: New file.
36808         * MODULES.html.sh (String handling): Add strnlen1.
36809
36810 2005-08-16  Bruno Haible  <bruno@clisp.org>
36811
36812         * modules/strcase (Files): Add m4/mbrtowc.m4.
36813         (Depends-on): Add strnlen1, mbchar.
36814
36815 2005-08-16  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/mbiter: New file.
36818         * MODULES.html.sh (Extended multibyte and wide character utilities):
36819         Add mbiter.
36820
36821 2005-08-16  Bruno Haible  <bruno@clisp.org>
36822
36823         * modules/mbfile: New file.
36824         * MODULES.html.sh (Extended multibyte and wide character utilities):
36825         Add mbfile.
36826
36827 2005-08-16  Bruno Haible  <bruno@clisp.org>
36828
36829         * modules/mbchar: New file.
36830         * MODULES.html.sh (Extended multibyte and wide character utilities):
36831         New section.
36832
36833 2005-08-16  Bruno Haible  <bruno@clisp.org>
36834
36835         * m4/tls.m4: New file, from GNU gettext.
36836
36837 2005-08-16  Bruno Haible  <bruno@clisp.org>
36838
36839         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36840         always.
36841         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36842
36843 2005-08-16  Bruno Haible  <bruno@clisp.org>
36844
36845         * m4/mbiter.m4: New file.
36846
36847 2005-08-16  Bruno Haible  <bruno@clisp.org>
36848
36849         * m4/mbfile.m4: New file.
36850
36851 2005-08-16  Bruno Haible  <bruno@clisp.org>
36852
36853         * m4/mbchar.m4: New file.
36854
36855 2005-08-16  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/tls.h: New file, from GNU gettext.
36858         * lib/tls.c: New file, from GNU gettext.
36859
36860 2005-08-16  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/strnlen1.h: New file.
36863         * lib/strnlen1.c: New file.
36864
36865 2005-08-16  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36868         (mbi_init): Update.
36869         (mbi_avail, mbi_advance): Let the iteration end before the terminating
36870         NUL byte, not after it.
36871
36872 2005-08-16  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/strcase.h (strcasecmp): Add note in comments.
36875         * lib/strncasecmp.c: Use code from strcasecmp.c.
36876         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36877         (strcasecmp): Work correctly in multibyte locales.
36878
36879 2005-08-16  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/mbiter.h: New file.
36882
36883 2005-08-16  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/mbfile.h: New file.
36886
36887 2005-08-16  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/mbchar.h: New file.
36890         * lib/mbchar.c: New file.
36891
36892 2005-08-16  Bruno Haible  <bruno@clisp.org>
36893
36894         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36895         the valid ones. Makes the comparison operations transitive:
36896         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36897         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36898
36899 2005-08-15  Simon Josefsson  <jas@extundo.com>
36900
36901         * modules/ssize_t (License): Change to 'unlimited'.
36902
36903         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36904
36905 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36906
36907         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36908         Add comments for each pending glibc patch.
36909
36910 2005-08-15  Bruno Haible  <bruno@clisp.org>
36911
36912         * lib/regex.h (__restrict_arr): Don't define to __restrict if
36913         __cplusplus is defined.
36914
36915 2005-08-14  Jim Meyering  <jim@meyering.net>
36916
36917         Sync from coreutils.
36918
36919         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36920         Use the hash-table-based cycle-detection code not just when
36921         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36922         Reported by James Youngman in
36923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36924         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36925         FTS_TIGHT_CYCLE_CHECK.
36926         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36927         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36928         once again.
36929         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36930         * lib/fts.c (fd_safer): Remove decl.
36931         Include fcntl--.h rather than unistd-safer.h
36932         (fts_safe_changedir): Don't call fd_safer; no longer needed
36933         now that we include fcntl--.h.
36934
36935 2005-08-12  Simon Josefsson  <jas@extundo.com>
36936
36937         * modules/getndelim2: Use ssize_t module.
36938         * modules/getnline: Likewise.
36939         * modules/safe-read: Likewise.
36940         * modules/xreadlink: Likewise.
36941
36942         * modules/ssize_t: New file.
36943
36944 2005-08-12  Simon Josefsson  <jas@extundo.com>
36945
36946         * m4/readline.m4: Look for termcap, curses or ncurses if required.
36947
36948 2005-08-12  Simon Josefsson  <jas@extundo.com>
36949
36950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36951         ssize_t.
36952
36953 2005-08-12  Simon Josefsson  <jas@extundo.com>
36954
36955         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36956         readline, getdelim and check_version.
36957         (Support for systems lacking ISO C 99: Sizes of integer types):
36958         Add size_max.
36959
36960 2005-08-12  Bruno Haible  <bruno@clisp.org>
36961
36962         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36963
36964 2005-08-11  Simon Josefsson  <jas@extundo.com>
36965
36966         * modules/readline: New file.
36967
36968         * modules/strnlen (Files): Add strnlen.h.
36969
36970 2005-08-11  Simon Josefsson  <jas@extundo.com>
36971
36972         * m4/readline.m4: New file.
36973
36974 2005-08-11  Simon Josefsson  <jas@extundo.com>
36975
36976         * lib/readline.h, readline.c: New file.
36977
36978 2005-08-11  Simon Josefsson  <jas@extundo.com>
36979
36980         * doc/gnulib.texi (Initial import, Finishing touches): Mention
36981         gl_AVOID.
36982
36983 2005-08-11  Bruno Haible  <bruno@clisp.org>
36984
36985         * lib/strnlen.h (strnlen): Change parameter name to match comment.
36986
36987 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
36988
36989         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36990
36991 2005-08-10  Simon Josefsson  <jas@extundo.com>
36992
36993         * tests/test-iconvme.c: New file.
36994
36995 2005-08-10  Simon Josefsson  <jas@extundo.com>
36996
36997         * m4/strnlen.m4: New file.
36998
36999         * m4/strndup.m4: Don't check for strnlen declaration, done in
37000         strnlen.m4.
37001
37002 2005-08-10  Simon Josefsson  <jas@extundo.com>
37003
37004         * lib/strndup.c: Use strnlen.h.
37005
37006         * lib/strnlen.h: New file.
37007
37008 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37009
37010         * README: Typos.
37011
37012 2005-08-02  Simon Josefsson  <jas@extundo.com>
37013
37014         * modules/readline: New file.
37015
37016 2005-08-02  Simon Josefsson  <jas@extundo.com>
37017
37018         * modules/getdelim: New file.
37019
37020         * modules/getline: Rewrite, don't use getndelim2.
37021
37022 2005-08-02  Simon Josefsson  <jas@extundo.com>
37023
37024         * m4/getline.m4: Separate out getdelim stuff into separate module.
37025
37026         * m4/getdelim.m4: New file.
37027
37028 2005-08-02  Simon Josefsson  <jas@extundo.com>
37029
37030         * lib/getline.h, getline.c: Rewrite.
37031
37032         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
37033
37034 2005-07-31  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/lock.h (gl_lock_initializer): New macro.
37037         (gl_lock_define_initialized): Use it.
37038         (gl_rwlock_initializer): New macro.
37039         (gl_rwlock_define_initialized): Use it.
37040         (gl_recursive_lock_initializer): New macro.
37041         (gl_recursive_lock_define_initialized): Use it.
37042
37043 2005-07-30  Karl Berry  <karl@gnu.org>
37044
37045         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
37046         Report from Ben Pfaff, regarding getopt.
37047
37048 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
37049
37050         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
37051         normal way.
37052         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
37053         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
37054         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
37055         (gl_GETOPT): Use the new macros.  Most of the implementation
37056         is moved to the new macros.  This is for programs like Emacs
37057         that don't want all the functionality of gl_GETOPT.
37058
37059 2005-07-26  Bruno Haible  <bruno@clisp.org>
37060
37061         * m4/lock.m4: Update from GNU gettext.
37062
37063 2005-07-26  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/lock.h: Update from GNU gettext.
37066         * lib/lock.c: Update from GNU gettext.
37067
37068 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
37069
37070         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
37071         obsolescent AC_TRY_RUN.  Include the default includes files, for
37072         'exit'.
37073
37074 2005-07-24  Bruno Haible  <bruno@clisp.org>
37075
37076         * modules/visibility: New file.
37077         * MODULES.html.sh (Misc): Add visibility.
37078
37079 2005-07-24  Bruno Haible  <bruno@clisp.org>
37080
37081         * m4/visibility.m4: New file.
37082
37083 2005-07-24  Bruno Haible  <bruno@clisp.org>
37084
37085         * doc/visibility.texi: New file.
37086
37087 2005-07-22  Bruno Haible  <bruno@clisp.org>
37088
37089         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
37090         $(ALLOCA_H), redundant through BUILT_SOURCES.
37091         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
37092         redundant through BUILT_SOURCES.
37093         * modules/byteswap (Makefile.am): Remove explicit dependency on
37094         $(BYTESWAP_H), redundant through BUILT_SOURCES.
37095         * modules/fnmatch (Makefile.am): Remove explicit dependency on
37096         $(FNMATCH_H), redundant through BUILT_SOURCES.
37097         * modules/getopt (Makefile.am): Remove explicit dependency on
37098         $(GETOPT_H), redundant through BUILT_SOURCES.
37099         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
37100         redundant through BUILT_SOURCES.
37101         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
37102         redundant through BUILT_SOURCES.
37103         * modules/stdbool (Makefile.am): Remove explicit dependency on
37104         $(STDBOOL_H), redundant through BUILT_SOURCES.
37105         * modules/stdint (Makefile.am): Remove explicit dependency on
37106         $(STDINT_H), redundant through BUILT_SOURCES.
37107         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
37108         Remove explicit dependency on $(SYSEXITS_H).
37109         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
37110
37111 2005-07-18  Simon Josefsson  <jas@extundo.com>
37112
37113         * lib/check-version.c (check_version): Accept identical versions too.
37114
37115 2005-07-18  Bruno Haible  <bruno@clisp.org>
37116
37117         * modules/lock: New file.
37118         * MODULES.html.sh (Multithreading): New section.
37119
37120 2005-07-18  Bruno Haible  <bruno@clisp.org>
37121
37122         * m4/lock.m4: New file, from GNU gettext.
37123
37124 2005-07-18  Bruno Haible  <bruno@clisp.org>
37125
37126         * lib/lock.h: New file, from GNU gettext.
37127         * lib/lock.c: New file, from GNU gettext.
37128
37129 2005-07-18  Bruno Haible  <bruno@clisp.org>
37130
37131         * lib/lock.h (gl_once_t): New type.
37132         (gl_once_define, gl_once): New macros.
37133         * lib/lock.c (fresh_once): New variable.
37134         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
37135         functions.
37136
37137 2005-07-16  Simon Josefsson  <jas@extundo.com>
37138
37139         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
37140         workaround, suggested by Bruno.
37141
37142 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37143
37144         * modules/xalloc (Depends-on): Add xalloc-die.
37145         * modules/xvasprintf (Depends-on): Add xalloc-die.
37146
37147 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37148
37149         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37150         with a minor change.
37151
37152 2005-07-15  Bruno Haible  <bruno@clisp.org>
37153
37154         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37155         When using lib/poll.c, define poll as rpl_poll.
37156
37157 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
37158
37159         * modules/argp (Depends-on): Remove unlocked-io.
37160
37161 2005-07-14  Derek Price  <derek@ximbiot.com>
37162
37163         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
37164         for glob symlink bug.
37165
37166 2005-07-14  Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37169         Instead, test for *_unlocked function declarations directly.
37170
37171 2005-07-11  Simon Josefsson  <jas@extundo.com>
37172
37173         * modules/size_max: New file.
37174
37175         * modules/xsize: Depend on size_max module for size_max.m4.
37176
37177 2005-07-11  Simon Josefsson  <jas@extundo.com>
37178
37179         * lib/size_max.h: New file.
37180
37181 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37182
37183         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37184         copyright symbol and the year.
37185         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37186         (version_etc_va): Use parameterized copyright notice.
37187         Reword to conform to the current GNU coding standards.
37188
37189 2005-07-11  Karl Berry  <karl@gnu.org>
37190
37191         * doc/gnulib.texi (Quoting): new node.
37192         (Initial import): more info, from Patrice.
37193
37194 2005-07-11  Bruno Haible  <bruno@clisp.org>
37195
37196         * gnulib-tool (func_usage): Document option --avoid.
37197         (Command line options): Handle --avoid.
37198         (func_acceptable): New function.
37199         (func_modules_transitive_closure): Use it.
37200
37201 2005-07-11  Bruno Haible  <bruno@clisp.org>
37202
37203         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37204         Reported by Jim Meyering.
37205
37206 2005-07-10  Bruno Haible  <bruno@clisp.org>
37207
37208         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37209         Needed when size_t is smaller than 'unsigned int'.
37210         Reported by Paul Eggert.
37211
37212 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37213
37214         * modules/argp (Depends-on): Add unlocked-io
37215
37216 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37217
37218         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37219         block of defines.
37220
37221 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37222
37223         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37224         fix now.
37225
37226 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37227         and Paul Eggert  <eggert@cs.ucla.edu>
37228
37229         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37230         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37231
37232 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37233
37234         * modules/regex (Files): Add lib/regex_internal.c,
37235         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37236         (Depends-on): Add extensions.
37237         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37238
37239 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37240
37241         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37242         pathconf.
37243         * m4/same.m4 (gl_SAME): Likewise.
37244         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37245
37246         * m4/regex.m4: Adjust to new libc regex implementation.
37247         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37248         all the .c and .h parts of (the new) regex.
37249         Quote the m4 stuff better.
37250         Check for RE_ICASE bug of old gnulib.
37251         Check for REG_STARTEND of recent libc.
37252         Rename local variables from jm_* to gl_*.
37253         Quote operand of "test -f".
37254         Say "recent enough" version of libc, not "version 2".
37255         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37256         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37257         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37258         Remove check for btowc, isascii.
37259         Require AM_LANGINFO_CODESET.
37260
37261 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37262
37263         * lib/regex.c, regex.h: Sync from libc.
37264         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37265         * lib/regexec.c:
37266         New files, synced from libc, except that regex_internal.h
37267         currently has a small porting fix.
37268
37269 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37270
37271         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37272         regex_internal.c, regexec.c.
37273         Add regex_internal.h too, but as a comment, since the libc version
37274         is currently broken in gnulib mode.
37275
37276 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37277
37278         Support programs like Emacs that use gnulib but not gettext.
37279         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37280         * modules/gettext-h: New file.
37281         * modules/gettext (Files): Remove lib/gettext.h.
37282         (Depends-on): Add gettext-h.
37283         (Makefile.am): Remove lib_SOURCES.
37284         * modules/argmatch, modules/c-stack, modules/closeout:
37285         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37286         * modules/execute, modules/file-type, modules/getaddrinfo:
37287         * modules/getopt, modules/human, modules/javacomp:
37288         * modules/javaexec, modules/mkdir-p, modules/obstack:
37289         * modules/openat, modules/pagealign_alloc, modules/pipe:
37290         * modules/quotearg, modules/regex, modules/rpmatch:
37291         * modules/unicodeio, modules/userspec, modules/version-etc:
37292         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37293         * modules/xsetenv:
37294         Depend on gettext-h, not gettext.
37295
37296 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37297
37298         * gnulib-tool (func_import): Add support for 'public domain' license.
37299         * modules/alloca, modules/atexit, modules/memmove:
37300         Now public domain, not GPL.
37301         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37302         * modules/realloc, modules/strerror, modules/strtod:
37303         Now LGPL, not GPL.
37304
37305 2005-07-05  Bruno Haible  <bruno@clisp.org>
37306
37307         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37308         autoconf CVS. Needed for mingw.
37309
37310 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37311
37312         Remove the dependency of the strftime module on the tzset module.
37313         * modules/strftime (Depends-on): Remove dependency on tzset.
37314
37315 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37316
37317         Remove the dependency of the strftime module on the tzset module.
37318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37319         gl_FUNC_TZSET_CLOBBER.
37320
37321 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37322
37323         Remove the dependency of the strftime module on the tzset module.
37324         * lib/strftime.c (my_strftime)
37325         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37326         Copy the input structure, to work around some of the bug with
37327         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37328         Solaris releases, you should also use the tzset module, but we won't
37329         require it as a dependency any more since we don't want LGPLed code
37330         to depend on GPLed code.
37331
37332 2005-07-02  Jim Meyering  <jim@meyering.net>
37333
37334         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37335         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37336         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37337         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37338
37339 2005-07-02  Jim Meyering  <jim@meyering.net>
37340
37341         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37342
37343 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37344
37345         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37346         declares only 'struct timespec;' (!).
37347
37348 2005-07-01  Jim Meyering  <jim@meyering.net>
37349
37350         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37351         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37352         * lib/save-cwd.c, tempname.c:
37353         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37354         and don't include <sys/file.h>).
37355
37356 2005-06-29  Jim Meyering  <jim@meyering.net>
37357
37358         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37359         type name.  Use the variable name instead.
37360         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37361         Likewise.
37362
37363 2005-06-28  Simon Josefsson  <jas@extundo.com>
37364
37365         * modules/check-version (Files): Add check-version.m4.
37366
37367 2005-06-28  Simon Josefsson  <jas@extundo.com>
37368
37369         * m4/check-version.m4: New file, suggested by Jim Meyering
37370         <jim@meyering.net>.
37371
37372 2005-06-28  Simon Josefsson  <jas@extundo.com>
37373
37374         * lib/check-version.h, lib/check-version.c: New files.
37375
37376 2005-06-28  Simon Josefsson  <jas@extundo.com>
37377
37378         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37379         collision with global variable.  Better indentation.  Don't
37380         increment buffer pointer beyond buffer end.  Based on comments
37381         from Paul Eggert <eggert@cs.ucla.edu>.
37382
37383         * lib/base64.h: Indent.
37384
37385 2005-06-28  Simon Josefsson  <jas@extundo.com>
37386
37387         * doc/gnulib.texi (Library version handling): New section.
37388
37389 2005-06-28  Jim Meyering  <jim@meyering.net>
37390
37391         * check-module (find_included_lib_files): Hard-code another
37392         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37393         but modules/fts-lgpl (correctly) does not list those files.
37394
37395         * modules/canonicalize (Files): Add lib/pathmax.h.
37396
37397 2005-06-25  Simon Josefsson  <jas@extundo.com>
37398
37399         * modules/check-version: New file.
37400
37401 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37402
37403         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37404         initializer of struct addrinfo, as an indication that we don't
37405         care how many members the structure has.
37406
37407 2005-06-24  Derek Price  <derek@ximbiot.com>
37408         and Bruno Haible  <bruno@clisp.org>
37409
37410         Remove stat module & update lstat.
37411         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37413         * m4/stat.m4: Remove this file.
37414
37415 2005-06-24  Derek Price  <derek@ximbiot.com>
37416         and Bruno Haible  <bruno@clisp.org>
37417
37418         Remove stat module & update lstat.
37419         * lib/stat.c: Remove this file...
37420         (slash_aware_lstat): ...moving this content and its support...
37421         * lib/lstat.c (rpl_lstat): ...into here.
37422         * lib/lstat.h: New file.
37423
37424 2005-06-24  Derek Price  <derek@ximbiot.com>
37425         and Bruno Haible  <bruno@clisp.org>
37426
37427         Remove stat module & update lstat.
37428         * config/srclist.txt (libc sources): Remove stat.
37429
37430 2005-06-24  Derek Price  <derek@ximbiot.com>
37431         and Bruno Haible  <bruno@clisp.org>
37432
37433         Remove stat module & update lstat.
37434         * MODULES.html.sh (stat): Remove.
37435         * MODULES.html: Regenerated.
37436         * modules/lstat (Description): Correct function name.
37437         (Files): Add "lstat.h".
37438         (Depends-on): Remove stat, add xalloc, stat-macros.
37439         * modules/stat: Remove this file.
37440         (Include): Add "lstat.h", remove <sys/stat.h>.
37441
37442 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37443
37444         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37445         (ranged_convert): Don't save conversion in a temporary struct.
37446         This causes a warning with GCC 4.0.0, and anyway in the typical
37447         case it's not worth the extra 100 bytes or so of code.
37448         (ranged_convert, __mktime_internal): When calling a function via a
37449         pointer P, use P () rather than (*P) (), as we now assume C89 or
37450         better.
37451
37452 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37453
37454         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37455         "who -r" failed to give output.  Problem reported by Tim Waugh.
37456
37457         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37458         (xcalloc): Use it to avoid needless tests.
37459         Problem reported by Jim Meyering.
37460
37461 2005-06-20  Derek Price  <derek@ximbiot.com>
37462
37463         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37464         unnecessary for Autoconfs > 2.59c.
37465
37466 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37467
37468         * lib/argp.h (__option_is_short): Check upper limit of
37469         __key. Isprint() requires its argument to have the value
37470         of an unsigned char or EOF.
37471
37472 2005-06-16  Jim Meyering  <jim@meyering.net>
37473
37474         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37475         when either N or S is zero.
37476
37477 2005-06-16  Derek Price  <derek@ximbiot.com>
37478
37479         * m4/bison.m4: Declare YACC & YFLAGS precious.
37480
37481 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37482
37483         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37484         multibyte string or pattern, fall back on unibyte matching.
37485         Problem reported by James Youngman.
37486
37487 2005-06-08  Bruno Haible  <bruno@clisp.org>
37488
37489         * modules/csharpcomp: New file.
37490         * MODULES.html.sh (C#): Add csharpcomp.
37491
37492 2005-06-08  Bruno Haible  <bruno@clisp.org>
37493
37494         * m4/csharpcomp.m4: New file, from GNU gettext.
37495
37496 2005-06-08  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/csharpcomp.h: New file, from GNU gettext.
37499         * lib/csharpcomp.c: New file, from GNU gettext.
37500         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37501
37502 2005-06-08  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37505         warning on mingw.
37506
37507 2005-06-07  Derek Price  <derek@ximbiot.com>
37508
37509         Sync from CVS.
37510         * lib/glob_.h: Indent nested #ifdef.
37511
37512 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37513
37514         Sync from coreutils.
37515         Use "file name" when talking about file names, instead of "filename"
37516         or "path", as per the GNU coding standards.
37517         * lib/mkdir-p.c: Renamed from makepath.c.
37518         (make_dir_parents): Renamed from make_path.  All callers changed.
37519         * lib/mkdir-p.h: Likewise.  All includers changed.
37520         * lib/filenamecat.c: Renamed from path-concat.c.
37521         (file_name_concat): Renamed from path_concat.  All callers changed.
37522         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37523         * lib/filenamecat.h: Likewise.  All includers changed.
37524         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37525         in comments or local variable names.
37526         * lib/basename.c: Likewise.
37527         * lib/canonicalize.c, canonicalize.h: Likewise.
37528         * lib/dirname.c, dirname.h: Likewise.
37529         * lib/euidaccess.c: Likewise.
37530         * lib/exclude.c: Likewise
37531         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37532         * lib/fsusage.c, fsuage.h: Likewise.
37533         * lib/fts.c, fts_.h: Likewise.
37534         * lib/getcwd.c: Likewise.
37535         * lib/getloadavg.c: Likewise.
37536         * lib/mkstemp.c: Likewise.
37537         * lib/mountlist.c, mountlist.h: Likewise.
37538         * lib/openat.c, openat.h: Likewise.
37539         * lib/readlink-stub.c: Likewise.
37540         * lib/readutmp.c, readutmp.h: Likewise.
37541         * lib/rename.c: Likewise.
37542         * lib/rmdir.c: Likewise.
37543         * lib/same.c: Likewise.
37544         * lib/savedir.c: Likewise.
37545         * lib/stripslash.c: Likewise.
37546         * lib/tempname.c: Likewise.
37547         * lib/xreadlink.c: Likewise.
37548         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37549         All uses changed.
37550         * lib/exclude.h: Likewise.
37551
37552         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37553         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37554         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37555         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37556         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37557         files have been getting away with it for years (MORE/BSD 4.3
37558         is extinct now).
37559         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37560         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37561
37562         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37563         Define to 256, not 255, as per modern POSIX.
37564
37565 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37566
37567         Sync from coreutils.
37568         Use "file name" when talking about file names, instead of "filename"
37569         or "path", as per the GNU coding standards.
37570         * MODULES.html.sh: mkdir-p renamed from makepath.
37571         filenamecat renamed from path-concat.
37572         * modules/filenamecat: Renamed from modules/path-concat.
37573         (Files): filenamecat.h and filenamecat.c renamed from
37574         path-concat.h and path-concat.c.
37575         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37576         (Include): filenamecat.h, not path-concat.h.
37577         * modules/mkdir-p: Renamed from modules/makepath.
37578         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37579         makepath.c.
37580         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37581         (Include): mkdir-p.h, not makepath.h.
37582
37583 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37584
37585         Sync from coreutils.
37586         * m4/mkdir-p.m4: Renamed from makepath.m4.
37587         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37588         Rename files from makepath.c to mkdir-p.c, and from
37589         makepath.h to mkdir-p.h.
37590         * m4/filenamecat.m4: Renamed from path-concat.m4.
37591         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37592         Rename files from path-concat.c to filenamecat.c,
37593         and from path-concat.h to filenamecat.h.
37594         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37595         "file name" in local variables or comments.
37596         * m4/rename.m4: Likewise.
37597
37598 2005-06-01  Bruno Haible  <bruno@clisp.org>
37599
37600         * modules/csharpexec: New file.
37601         * MODULES.html.sh (C#): New section.
37602
37603 2005-06-01  Bruno Haible  <bruno@clisp.org>
37604
37605         * m4/csharp.m4: New file, from GNU gettext.
37606         * m4/csharpexec.m4: New file, from GNU gettext.
37607
37608 2005-06-01  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/csharpexec.h: New file, from GNU gettext.
37611         * lib/csharpexec.c: New file, from GNU gettext.
37612         * lib/csharpexec.sh.in: New file, from GNU gettext.
37613
37614 2005-05-31  Derek Price  <derek@ximbiot.com>
37615             Paul Eggert  <eggert@cs.ucla.edu>
37616
37617         Sync from cvs.
37618         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37619
37620 2005-05-31  Derek Price  <derek@ximbiot.com>
37621             Paul Eggert  <eggert@cs.ucla.edu>
37622
37623         Sync from cvs.
37624         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37625
37626 2005-05-29  Derek Price  <derek@ximbiot.com>
37627
37628         * config/srclist.txt (glob_.h, glob.c): Add these files.
37629
37630 2005-05-29  Derek Price  <derek@ximbiot.com>
37631
37632         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37633         * modules/glob: New file.
37634         * modules/getlogin_r: Add link to POSIX spec in description.
37635
37636 2005-05-29  Derek Price  <derek@ximbiot.com>
37637             Paul Eggert  <eggert@cs.ucla.edu>
37638
37639         * m4/glob.m4: New file.
37640
37641 2005-05-29  Derek Price  <derek@ximbiot.com>
37642             Paul Eggert  <eggert@cs.ucla.edu>
37643
37644         * lib/glob_.h, lib/glob.c: New files.
37645
37646 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37647
37648         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37649         * modules/fts-lgpl (Depends-on): Remove gettext.
37650
37651 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37652
37653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37654         and don't require gt_INTTYPES_PRI.
37655
37656 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37657
37658         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37659
37660         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37661         the configuration hassle isn't worth it.
37662         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37663         (LONGEST_MODIFIER, PRIuMAX): Remove.
37664
37665 2005-05-27  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37668
37669 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37670
37671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37672         _POSIX_PTHREAD_SEMANTICS for Solaris.
37673
37674 2005-05-25  Derek Price  <derek@ximbiot.com>
37675
37676         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37677
37678 2005-05-25  Derek Price  <derek@ximbiot.com>
37679             Paul Eggert  <eggert@cs.ucla.edu>
37680
37681         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37682         * lib/getlogin_r.c, getlogin_r.h: New files.
37683
37684 2005-05-25  Bruno Haible  <bruno@clisp.org>
37685             Derek Price  <derek@ximbiot.com>
37686
37687         * lib/getlogin_r.h: Simplify API documentation.
37688
37689 2005-05-23  Derek Price  <derek@ximbiot.com>
37690
37691         * modules/minmax (Files): Add m4/minmax.m4.
37692         (configure.ac): Add gl_MINMAX.
37693
37694 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37695
37696         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37697         so that unistd-safer.h (GPL'ed code) need not be included.
37698
37699 2005-05-22  Bruno Haible  <bruno@clisp.org>
37700
37701         * m4/minmax.m4: New file.
37702         Based on a patch by Derek Price <derek@ximbiot.com>.
37703
37704 2005-05-22  Bruno Haible  <bruno@clisp.org>
37705
37706         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37707         (INT64_MIN): Fix definition.
37708         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37709
37710         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37711         NEED_SIGNED_INT_TYPES.
37712
37713         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37714         HAVE_SYSTEM_INTTYPES.
37715
37716 2005-05-22  Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37719         Also include <sys/param.h> if it defines MIN, MAX.
37720         Based on a patch by Derek Price <derek@ximbiot.com>.
37721
37722 2005-05-21  Jim Meyering  <jim@meyering.net>
37723
37724         * modules/fts (Files): Add m4/inttypes-pri.m4.
37725         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37726
37727 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37728
37729         New fts module.
37730         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37731         (setup_dir, free_dir): New functions.
37732         (enter_dir, leave_dir): Define trivial
37733         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37734         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37735         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37736         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37737         Move to fts-cycle.c.
37738         (fts_open): Use setup_dir.
37739         (fts_close): Use free_dir.
37740         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37741         This adds a label and some gotos, but the alternatives were messier.
37742         Check for memory allocation failure when entering a dir.
37743         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37744         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37745         (FTS): New member fts_cycle, that is a union that contains the
37746         old active_dir_ht and cycle_state.  All uses changed to mention
37747         fts_cycle.ht and fts_cycle.state.
37748         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37749         fts.c, with the following changes:
37750         (setup_dir, free_dir): New functions.
37751         (enter_dir): Now returns bool.  Return true if successful, false
37752         if memory exhausted.  All callers changed.
37753         Do not bother partly cleaning up on
37754         memory allocation failure; that is free_dir's job.
37755         However, free ad if hash_insert fails, to avoid memory leak.
37756         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37757         fts->fts_options to see which union member to use.
37758
37759 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37760
37761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37762         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37763
37764 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37765
37766         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37767
37768 2005-05-20  Jim Meyering  <jim@meyering.net>
37769
37770         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37771         Now a macro, to pacify GCC.
37772
37773 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37774
37775         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37776         of -1.
37777
37778 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37779
37780         * lib/chown.c (rpl_chown): Return -1 on failure.
37781
37782 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37783
37784         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37785         Don't check for stddef.h.
37786         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37787         don't use its results.
37788         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37789         since we include them unconditionally.  Don't require
37790         AM_STDBOOL_H, since stdbool is a prerequisite.
37791         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37792         since we assume C89 or better.
37793         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37794         as we don't use their results.
37795         Don't check for fchdir, memmove, memset, strrchr, as we use
37796         them unconditionally.
37797         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37798         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37799
37800 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37801
37802         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37803         Include <stddef.h> unconditionally, since we assume C89 now.
37804         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37805         * lib/fts.c: Include fts_.h first, to check interface.
37806         Do not include intprops.h; no longer needed.
37807         Include cycle-check.h and hash.h, since fts_.h no longer does.
37808         Remove unnecessary casts of closedir to void.
37809         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37810         decide whether to decrement nlinks.
37811         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37812         (FTS): Use struct hash_table * instead of Hash_table, so that
37813         we no longer need to include hash.h here.
37814
37815 2005-05-18  Jim Meyering  <jim@meyering.net>
37816
37817         * modules/dirfd (License): Change to LGPL.  Most of the code
37818         is already in the public domain.
37819
37820 2005-05-18  Jim Meyering  <jim@meyering.net>
37821
37822         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37823         Reported by Yoann Vandoorselaere.
37824
37825 2005-05-17  Jim Meyering  <jim@meyering.net>
37826
37827         * m4/fts.m4: New file, from coreutils.
37828
37829 2005-05-17  Jim Meyering  <jim@meyering.net>
37830
37831         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37832
37833 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37834
37835         Sync from coreutils.
37836         * m4/unlinkdir.m4: New file.
37837
37838 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37839
37840         Sync from coreutils.
37841         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37842         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37843         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37844         White space changes only.
37845         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37846         special.
37847         * lib/yesno.c: Include getline.h, not ctype.h.
37848         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37849         Use getline to remove arbitrary restriction on response length.
37850
37851 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37852
37853         * config/srclist-update: Spell out "Street" in FSF postal
37854         mail address; this is the style the FSF seems to prefer.
37855
37856         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37857         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37858         this updates FSF postal mail address.
37859
37860         Sync from coreutils.
37861         * modules/unlinkdir: New file.
37862         * modules/yesno (Depends-on): Add getline.
37863         * MODULES.html.sh (File system functions): Add unlinkdir.
37864
37865 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37866
37867         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37868         lib/strsep.h:
37869         Change the initial comment to refer to GPL, not LGPL.
37870         gnulib-tool will change it to LGPL as needed.
37871
37872         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37873         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37874         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37875         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37876         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37877         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37878         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37879         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37880         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37881         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37882         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37883         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37884         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37885         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37886         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37887         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37888         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37889         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37890         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37891         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37892         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37893         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37894         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37895         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37896         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37897         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37898         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37899         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37900         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37901         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37902         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37903         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37904         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37905         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37906         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37907         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37908         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37909         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37910         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37911         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37912         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37913         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37914         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37915         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37916         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37917         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37918         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37919         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37920         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37921         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37922         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37923         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37924         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37925         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37926         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37927         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37928         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37929         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37930         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37931         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37932         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37933         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37934         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37935         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37936         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37937         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37938         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37939         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37940         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37941         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37942         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37943         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37944         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37945         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37946         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37947         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37948         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37949         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37950         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37951         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37952         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37953         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37954         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37955         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37956         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37957         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37958         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37959         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37960         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37961         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37962         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37963         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37964         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37965         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37966         lib/yesno.c, lib/yesno.h:
37967         Update FSF postal mail address.
37968
37969 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37970
37971         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37972         tests/test-memmem.c, tests/test-stpncpy.c:
37973         Update FSF postal mail address.
37974
37975 2005-05-13  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37978         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37979         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37980         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37981         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37982         Add support for 64-bit integers in the MSVC compiler.
37983
37984 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37985
37986         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37987
37988 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
37989
37990         * gnulib-tool (func_import): Sort and uniquify recommended includes.
37991
37992 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37993
37994         * doc/getdate.texi (General date syntax): Don't say that date
37995         date --iso-8601=ns generates acceptable dates; it doesn't yet.
37996         Problem reported by Nic Ferrier.
37997
37998 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37999
38000         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
38001         specified in ai_socktype. Fix invalid ai_protocol
38002         check. ai_protocol is usually set to 0 or depending on
38003         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
38004         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
38005         ai_socktype / ai_protocol in the returned addrinfo structure.
38006
38007 2005-05-10  Simon Josefsson  <jas@extundo.com>
38008
38009         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
38010         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38011
38012 2005-05-10  Karl Berry  <karl@gnu.org>
38013
38014         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
38015         (from http://www.gnu.org/licenses).
38016         * doc/COPYING.LIB: also rename to COPYING.LESSER.
38017         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
38018         fdl.texi suffices.
38019
38020 2005-05-10  Karl Berry  <karl@gnu.org>
38021
38022         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
38023         (COPYING.DOC): remove.
38024
38025         * config/srclist-update: new FSF address.
38026
38027 2005-05-10  Derek Price  <derek@ximbiot.com>
38028
38029         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
38030         possible.
38031
38032 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38033             Bruno Haible  <bruno@clisp.org>
38034
38035         * modules/inet_ntop: New file.
38036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38037         inet_ntop.
38038
38039 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38040             Bruno Haible  <bruno@clisp.org>
38041
38042         * m4/inet_ntop.m4: New file.
38043
38044 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38045             Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/inet_ntop.h: New file.
38048         * lib/inet_ntop.c: New file, from glibc with modifications.
38049
38050 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
38051
38052         * modules/time_r (License): Change to LGPL.
38053         * modules/extensions (License): Change to LGPL.  Actually,
38054         the license is more permissive than that, but currently gnulib-tool
38055         doesn't know how to handle more-permissive licenses.
38056
38057         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
38058         Problem reported by Dave Love.
38059
38060 2005-05-08  Jim Meyering  <jim@meyering.net>
38061
38062         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
38063         blank.
38064
38065 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38066
38067         * modules/argmatch (Depends-on): Add stdbool.
38068         * modules/backupfile (Depends-on): Likewise.
38069         * modules/chdir-long (Depends-on): Likewise.
38070         * modules/closeout (Depends-on): Likewise.
38071         * modules/cycle-check (Depends-on): Likewise.
38072         * modules/dirname (Depends-on): Likewise.
38073         * modules/fnmatch (Depends-on): Likewise.
38074         * modules/fsusage (Depends-on): Likewise.
38075         * modules/fwriteerror (Depends-on): Likewise.
38076         * modules/getcwd (Depends-on): Likewise.
38077         * modules/getloadavg (Depends-on): Likewise.
38078         * modules/hard-locale (Depends-on): Likewise.
38079         * modules/makepath (Depends-on): Likewise.
38080         * modules/mountlist (Depends-on): Likewise.
38081         * modules/nanosleep (Depends-on): Likewise.
38082         * modules/posixtm (Depends-on): Likewise.
38083         * modules/quotearg (Depends-on): Likewise.
38084         * modules/readtokens (Depends-on): Likewise.
38085         * modules/readtokens0 (Depends-on): Likewise.
38086         * modules/readutmp (Depends-on): Likewise.
38087         * modules/save-cwd (Depends-on): Likewise.
38088         * modules/strftime (Depends-on): Likewise.
38089         * modules/userspec (Depends-on): Likewise.
38090         * modules/utimecmp (Depends-on): Likewise.
38091         * modules/xgetcwd (Depends-on): Likewise.
38092         * modules/xnanosleep (Depends-on): Likewise.
38093         * modules/xstrtod (Depends-on): Likewise.
38094         * modules/yesno (Depends-on): Likewise.
38095
38096 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38097
38098         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
38099         needless checks.
38100
38101 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38102
38103         Merge from coreutils.  Among other things,
38104         add bulletproofing for cases where stdin, stdout, or stderr are closed.
38105         * lib/fd-safer.c: New file.
38106         * lib/fcntl-safer.h, open-safer.c: Remove.
38107         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
38108         * lib/dup-safer.c: Include unistd-safer.h first.
38109         Don't include errno.h.
38110         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
38111         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
38112         * lib/file-type.c: Rely on file-type.h change.
38113         * lib/getloadavg.c: Include unistd-safer.h.
38114         (getloadavg): Use safer open.
38115         * lib/getusershell.c: Include "stdio-safer.h".
38116         (getusershell): Use safer fopen.
38117         * lib/long-options.c (long_options): Use NULL rather than 0.
38118         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
38119         'free'.
38120         * lib/modechange.c: Likewise.
38121         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
38122         (MODE_DONE): New constant.
38123         (struct mode_change): Remove 'next' member.
38124         (make_node_op_equals): New function; like the old one of the
38125         same name, except it allocates an array.
38126         (mode_compile, mode_create_from_ref): Use it.
38127         (mode_compile): Allocate result as an array, not a linked list.
38128         Parse octal string ourself, so that we catch mistakes like "+0".
38129         (mode_adjust): Arg is an array, not a linked list.
38130         * lib/modechange.c: Include stat-macros.h, xalloc.h.
38131         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
38132         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
38133         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
38134         Remove.  This is now stat-macros.h's job.
38135         (talloc): Remove.  All callers replaced by xalloc, so that
38136         our invokers don't have to worry about reporting memory failures.
38137         (make_node_op_equals): Remove.
38138         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38139         New constants.
38140         (struct mode_change): Moved here from modechange.h.
38141         (mode_append_entry): Remove.
38142         (mode_compile): Remove MASKED_OPS arg, since it encouraged
38143         apps to have incorrect behavior.  Use simpler algorithm for head
38144         and tail.  Don't futz with umask; that's now the job of mode_adjust.
38145         Detect more invalid usages rather than having somewhat-random behavior.
38146         Don't insert an "a=" action, as that leads to incorrect behavior.
38147         (mode_compile, mode_create_from_ref): Return NULL on error instead
38148         of an enum, since now there's only one way to have an error.  All
38149         callers changed.
38150         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38151         at the correct time.  Simplify calculation of "+u" and its ilk.
38152         Don't mishandle "+X".
38153         (mode_free): Remove "register" and localize decls.
38154         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38155         (struct mode_change): Move to modechange.c; callers don't
38156         need to see this stuff.
38157         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38158         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38159         (mode_change, mode_adjust): Reflect the new signatures noted above.
38160         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38161         that might redefine system include files.
38162         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38163         (my_usleep): Use NULL rather than (void *) 0.
38164         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38165         Use siginterrupt to specify that system calls should be interrupted.
38166         (rpl_nanosleep): Move initialization of suspended closer to call of
38167         my_usleep.
38168         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
38169         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
38170         (desirable_utmp_entry): New function.
38171         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38172         using x2nrealloc, to simplify logic.
38173         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38174         size calculation.  Do not assume utmp file is a regular file.
38175         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38176         (READ_UTMP_CHECK_PIDS): New constant.
38177         * lib/save-cwd.c: Include unistd-safer.h.
38178         (save_cwd): Use fd_safer.
38179         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38180         [!_LIBC] Include "stat-macros.h" instead.
38181         * lib/unistd-safer.h (fd_safer): New decl.
38182
38183 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38184
38185         * modules/getloadavg (Depends-on): Add unistd-safer.
38186         * modules/getusershell (Depends-on): Add stdio-safer.
38187         * modules/lstat (Depends-on): Remove xalloc.
38188         * modules/mkstemp (Depends-on): Add stat-macros.
38189         * modules/modechange (Depends-on): Remove xstrtol.
38190         Add stat-macros, xalloc.
38191         * modules/save-cwd (Depends-on): Add unistd-safer.
38192         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38193         * modules/unistd-safer (Files): Add lib/fd-safer.c
38194         (Makefile.am): Remove lib_SOURCES.
38195
38196         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38197         Remove fcntl-safer; unistd-safer supersedes it.
38198
38199 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38200
38201         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38202         AC_HEADER_STAT.
38203         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38204         (gl_PREREQ_CHOWN): Remove.
38205         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38206         it.  Don't require AC_HEADER_STAT.
38207         (gl_PREREQ_LSTAT): Remove.
38208         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38209         Don't require AC_HEADER_STAT.
38210         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38211         (gl_PREREQ_RMDIR): Remove.
38212         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38213         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38214         the stat-macros module a prerequisite.
38215         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38216         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38217         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38218         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38219         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38220         variable names.
38221         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38222         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38223         variable prefixes.
38224         * m4/fcntl-safer.m4: Remove.
38225         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38226         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38227         Invoke gl_PREREQ_FD_SAFER.
38228         (gl_PREREQ_FD_SAFER): New macro.
38229         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38230         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38231         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38232         Remove duplicate call to AC_LIBOBJ(readutmp).
38233         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
38234
38235         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38236         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
38237
38238 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38239
38240         * MODULES.html.sh (Misc): Add byteswap.
38241
38242 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38243
38244         * modules/getcwd (Depends-on): Add extensions.
38245         * modules/openat (Depends-on): Likewise.
38246
38247 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38248
38249         * modules/byteswap: New file.
38250
38251 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38252
38253         * m4/byteswap.m4: New file.
38254
38255 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38256
38257         * lib/byteswap_.h: New file.
38258
38259 2005-04-25  Karl Berry  <karl@gnu.org>
38260
38261         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38262
38263 2005-04-25  Albert Chin  <china@thewrittenword.com>
38264
38265         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38266         Toolkit C bug.
38267
38268 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38269
38270         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38271         (func_ln_if_changed) Remove forcibly for no error message
38272         in case file does not exist.
38273
38274 2005-04-19  Simon Josefsson  <jas@extundo.com>
38275
38276         * gnulib-tool (Options): Make --symlink mean --symbolic.
38277
38278 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38279
38280         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38281
38282 2005-04-16  Simon Josefsson  <jas@extundo.com>
38283
38284         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38285
38286 2005-04-15  Simon Josefsson  <jas@extundo.com>
38287
38288         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38289
38290 2005-04-15  Simon Josefsson  <jas@extundo.com>
38291
38292         * gnulib-tool: Rename --symlink to --symbolic.
38293
38294 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38295
38296         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38297         symbolic links to files instead of copying/moving.  Add --aux-dir,
38298         specifying directory relative --dir where auxiliary build tools
38299         are placed.
38300
38301 2005-04-14  Bruno Haible  <bruno@clisp.org>
38302
38303         * modules/allocsa (License): Change to LGPL.
38304         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38305
38306 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38307
38308         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38309         that "UTC +1 second" continues to work.  Problem reported
38310         by Dmitry V. Levin.
38311         (relunit_snumber): New rule.
38312         (relunit): Use it.
38313
38314 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38315
38316         * lib/getdate.y (universal_time_zone_table): New constant.
38317         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38318         universal_time_zone_table.
38319         (lookup_zone): Prefer universal_time_zone_table to
38320         local_time_zone_table, so that "GMT" time stamps are allowed in
38321         London during the summer.  Problem reported by Ian Abbott.
38322
38323 2005-04-12  Jim Meyering  <jim@meyering.net>
38324
38325         * lib/human.c (humblock): Set *options even when returning due to
38326         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38327         warning from gcc-4.
38328
38329 2005-04-09  Jim Meyering  <jim@meyering.net>
38330
38331         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38332         -Wuninitialized: initialize tm0.tm_year.
38333
38334 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38335
38336         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38337         count, since there's no maximum.  All uses changed.
38338         Add member dsts_seen.
38339         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38340         not being INT_MAX.
38341         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38342         Use pc_rels_seen to decide whther a date is absolute.
38343
38344         * lib/getdate.y (number): Don't overwrite year.
38345         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38346         check.
38347
38348 2005-04-02  Simon Josefsson  <jas@extundo.com>
38349
38350         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38351         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38352
38353 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38354
38355         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38356         where no absolute path name can be longer than PATH_MAX.
38357
38358 2005-03-27  Jim Meyering  <jim@meyering.net>
38359
38360         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38361
38362 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38363
38364         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38365         "one's complement" -> "ones' complement" in comment, as per Knuth.
38366         "value of type" -> "type or expression" in comment.
38367         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38368
38369 2005-03-26  Jim Meyering  <jim@meyering.net>
38370
38371         Comment nits.
38372         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38373         Correct typos: s/or/of/.
38374
38375 2005-03-26  Jim Meyering  <jim@meyering.net>
38376
38377         * modules/check-include-files: Move to ../ and rename to...
38378         * check-module: ...this.
38379
38380 2005-03-25  Jim Meyering  <jim@meyering.net>
38381
38382         * modules/xvasprintf (Files): Add xalloc.h.
38383
38384 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38385
38386         * modules/gettext (Files): config/config.rpath ->
38387         build-aux/config.rpath
38388         * modules/iconv (Files): Likewise.
38389         Problem reported by Oskar Liljeblad.
38390
38391 2005-03-23  Jim Meyering  <jim@meyering.net>
38392
38393         * modules/check-include-files: New script to check for
38394         missing dependencies, multiple includes, etc.
38395
38396         * modules/c-strtold (Depends-on): Add xalloc.
38397         * modules/c-strtod (Depends-on): Add xalloc.
38398         * modules/hash (Depends-on): Add xalloc.
38399         (Files): Remove lib/xalloc.h.
38400
38401         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38402         * modules/userspec (Files): Add lib/inttostr.h.
38403
38404 2005-03-23  Jim Meyering  <jim@meyering.net>
38405
38406         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38407
38408 2005-03-22  Jim Meyering  <jim@meyering.net>
38409
38410         * modules/stat-macros: New module.
38411         * modules/canonicalize, modules/euidaccess, modules/file-type,
38412         * modules/filemode, modules/lchown, modules/makepath,
38413         * modules/rmdir, modules/stat: Depend on new stat-macros module
38414         rather than listing lib/stat-macros.h manually.
38415         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38416
38417 2005-03-22  Jim Meyering  <jim@meyering.net>
38418
38419         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38420
38421 2005-03-22  Bruno Haible  <bruno@clisp.org>
38422
38423         * config/srclist.txt: Replace target directory 'config' with
38424         'build-aux'.
38425         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38426         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38427         ../build-aux/.
38428
38429 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38430
38431         * modules/chdir-long (Depends-on): Add mempcpy.
38432
38433         * modules/acl, modules/backupfile, modules/c-strtod,
38434         modules/c-strtold, modules/canon-host, modules/canonicalize,
38435         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38436         modules/exclude, modules/exitfail, modules/file-type,
38437         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38438         modules/getdate, modules/getline, modules/getpagesize,
38439         modules/getpass, modules/getugroups, modules/group-member,
38440         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38441         modules/inttostr, modules/long-options, modules/makepath,
38442         modules/md5, modules/memcasecmp, modules/memcoll,
38443         modules/modechange, modules/mountlist, modules/path-concat,
38444         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38445         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38446         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38447         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38448         modules/strftime, modules/strndup, modules/strverscmp,
38449         modules/timespec, modules/unlocked-io, modules/userspec,
38450         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38451         modules/yesno:
38452         Remove lib_SOURCES line from Makefile.am section, as this is now
38453         done automatically by the corresponding Autoconf macro.
38454
38455 2005-03-21  Jim Meyering  <jim@meyering.net>
38456
38457         Changes imported from coreutils.
38458
38459         * lib/cycle-check.c: Don't include xalloc.h.
38460
38461         * lib/path-concat.c: Don't include assert.h.
38462         (path_concat): Remove assertion that would have triggered
38463         for ABASE starting with more than one slash.
38464         Reported by Andreas Schwab.
38465
38466         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38467         properly when ABASE is an absolute file name.
38468         Correct the description of this function.
38469         Include <assert.h>.
38470         Add an assertion and a test driver.
38471         This fixes a bug introduced on 2004-07-02.
38472         Andreas Schwab reported the resulting failure of cp --parents:
38473         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38474
38475 2005-03-21  Jim Meyering  <jim@meyering.net>
38476
38477         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38478         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38479
38480 2005-03-21  Jim Meyering  <jim@meyering.net>
38481         and  Paul Eggert  <eggert@cs.ucla.edu>
38482
38483         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38484         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38485         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38486         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38487         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38488         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38489         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38490         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38491         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38492         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38493         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38494         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38495         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38496         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38497         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38498         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38499         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38500         for these modules.
38501
38502 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38503
38504         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38505         (which shouldn't happen), generate nothing instead of returning 0
38506         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38507
38508 2005-03-16  Bruno Haible  <bruno@clisp.org>
38509
38510         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38511         HAVE_LONGLONG_64BIT.
38512
38513 2005-03-16  Bruno Haible  <bruno@clisp.org>
38514
38515         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38516         HAVE_LONGLONG_64BIT.
38517
38518 2005-03-16  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38521         HAVE_LONGLONG_64BIT.
38522
38523 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38524
38525         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38526         reliably distinguish strftime failure from empty output on POSIX
38527         hosts.
38528
38529 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38530
38531         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38532         (iconv_string): Don't guess a size-zero buffer, as that might cause
38533         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38534         result would be 'too large', where 'too large' is (heuristically)
38535         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38536         overflow concerns.  This will prevent some unwanted malloc failures
38537         when the inputs are very large.
38538
38539 2005-03-15  Karl Berry  <karl@gnu.org>
38540
38541         * config/srclist.txt (config.rpath): from gettext.
38542         * config/config.rpath: update.
38543
38544 2005-03-15  Bruno Haible  <bruno@clisp.org>
38545
38546         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38547         to 'negate'.
38548
38549         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38550         variable.
38551
38552         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38553         results.
38554
38555 2005-03-14  Simon Josefsson  <jas@extundo.com>
38556
38557         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38558         <fx@gnu.org>.
38559
38560 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38561
38562         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38563         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38564         intprops.h.
38565         * lib/strtol.c: Likewise.
38566
38567 2005-03-14  Jim Meyering  <jim@meyering.net>
38568
38569         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38570         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38571         to be nonzero so that we (and caller) can detect the difference
38572         between a valid zero-length expansion and an error return, even
38573         when the underlying strftime fails before writing anything into
38574         that location.
38575
38576 2005-03-14  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38579         Update from GNU gettext 0.14.3.
38580
38581 2005-03-10  Jim Meyering  <jim@meyering.net>
38582
38583         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38584
38585 2005-03-10  Jim Meyering  <jim@meyering.net>
38586
38587         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38588         so that this module works on systems without fchdir.
38589
38590 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38591
38592         Factor int-properties macros into a single file, except for
38593         glibc-related files.
38594         * lib/intprops.h: New file.
38595         * lib/getloadavg.c: Include it instead of limits.h.
38596         (INT_STRLEN_BOUND): Remove.
38597         * lib/human.c: Include intprops.h.
38598         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38599         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38600         302/1000.
38601         * lib/inttostr.h: Include intprops.h instead of limits.h.
38602         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38603         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38604         for consistency with intprops.h.
38605         (time_t_is_integer, twos_complement_arithmetic): Use them.
38606         * lib/sig2str.h: Include <signal.h>, intprops.h.
38607         (INT_STRLEN_BOUND): Remove.
38608         * lib/strftime.c (TYPE_SIGNED): Remove.
38609         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38610         * lib/strtol.c: Adjust comments to match intprops.h.
38611         * lib/userspec.c: Include intprops.h.
38612         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38613         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38614         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38615         instead of rolling our own expressions.
38616         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38617
38618         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38619         instead of int.
38620         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38621         the right thing even if adding 1900 would overflow.  Similarly
38622         for tm_mon + 1 and tm_yday + 1.
38623         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38624         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38625         (DO_SIGNED_NUMBER): New macro.
38626         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38627
38628 2005-03-07  Bruno Haible  <bruno@clisp.org>
38629
38630         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38631
38632 2005-03-07  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38635
38636 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38637
38638         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38639         (func_import): Only replace files via --import when they have actually
38640         changed.
38641
38642 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38643
38644         * m4/mmap-anon.m4: New file.
38645         * m4/pagealign_alloc.m4: New file.
38646
38647 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38648             Bruno Haible  <bruno@clisp.org>
38649
38650         * modules/pagealign_alloc: New file.
38651         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38652
38653 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38654             Bruno Haible  <bruno@clisp.org>
38655
38656         * lib/pagealign_alloc.h: New file.
38657         * lib/pagealign_alloc.c: New file.
38658
38659 2005-03-03  Bruno Haible  <bruno@clisp.org>
38660
38661         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38662         Use an all-permissive copyright notice, recommended by RMS.
38663
38664 2005-03-02  Bruno Haible  <bruno@clisp.org>
38665
38666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38667         of AIX, the replacement has to be done only after <string.h> is
38668         included, therefore not in config.h. stpncpy.h does the replacement,
38669         and stpncpy.c uses it.
38670
38671 2005-03-02  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38674         stpncpy.c uses it.
38675
38676 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38677
38678         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38679         The workaround isn't strictly needed for POSIX conformance, and
38680         it's too much of a pain to configure and maintain.  We'll ask
38681         people to fix their kernels instead.
38682         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38683         (NANOSLEEP_BUG_WORKAROUND): Remove.
38684         (xnanosleep): Remove the workaround.
38685
38686 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38689         Reported by Derek Price.
38690         (Include): Add "timespec.h".
38691
38692         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38693
38694 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38695
38696         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38697         to detect nanosleep bug.
38698
38699 2005-03-01  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38702
38703 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38704
38705         * modules/gethrxtime: New file.
38706         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38707         (Depends-on): Add gethrxtime.
38708         (configure.ac): Add gl_XNANOSLEEP.
38709         (Makefile.am): Remove lib_SOURCES line.
38710
38711 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38712
38713         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38714         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38715
38716 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38717
38718         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38719         * lib/timespec.h (gettime): Return void, since it always
38720         succeeds now.  All uses changed.
38721         * lib/gettime.c (gettime) Likewise.
38722         [HAVE_NANOTIME]: Prefer nanotime.
38723         Assume gettimeofday succeeds, as POSIX requires.
38724         Assime time () succeeds, since other code already does.
38725         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38726         (timespec_subtract): Remove.
38727         (NANOSLEEP_BUG_WORKAROUND): New constant.
38728         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38729         things considerably.  Use it only on GNU/Linux hosts, since the
38730         workaround shouldn't be needed elsewhere.
38731
38732 2005-02-24  Bruno Haible  <bruno@clisp.org>
38733
38734         * modules/gettext (Files): Add m4/glibc2.m4.
38735
38736 2005-02-24  Bruno Haible  <bruno@clisp.org>
38737
38738         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38739         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38740         * m4/progtest.m4:
38741         Update from GNU gettext 0.14.2.
38742         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38743
38744 2005-02-24  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38747         * lib/config.charset: Update from GNU gettext 0.14.2.
38748
38749 2005-02-24  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/gettext.h: Update from GNU gettext 0.14.2.
38752
38753 2005-02-23  Simon Josefsson  <jas@extundo.com>
38754
38755         * m4/iconvme.m4: New file.
38756
38757 2005-02-23  Jim Meyering  <jim@meyering.net>
38758
38759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38760         change.
38761         Thanks to Bruno Haible for catching it.
38762
38763 2005-02-22  Simon Josefsson  <jas@extundo.com>
38764
38765         * modules/iconvme: New file.
38766
38767         * MODULES.html.sh: Add iconvme.
38768
38769 2005-02-22  Simon Josefsson  <jas@extundo.com>
38770
38771         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38772
38773 2005-02-22  Simon Josefsson  <jas@extundo.com>
38774
38775         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38776
38777 2005-02-22  Jim Meyering  <jim@meyering.net>
38778
38779         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38780         s/ifndef/ifdef/.
38781
38782 2005-02-20  Neil Conway  <neilc@samurai.com>
38783
38784         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38785         returned by OSX/Darwin if the specified buffer is not large
38786         enough for the hostname.
38787
38788 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38789
38790         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38791         pass it to _help, otherwise the latter coredumps trying to
38792         dereference state.root_argp.
38793
38794 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38795
38796         * modules/chdir-long (Depends-on): Add memrchr.
38797         * modules/memrchr (Files): Add lib/memrchr.h.
38798         (Include): "memrchr.h".
38799
38800 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38801
38802         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38803
38804 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38805
38806         * lib/memrchr.h: New file.
38807         * lib/chdir-long.c: Include it.
38808         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38809         Don't bother including stddef.h.
38810
38811 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38812
38813         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38814         inclusion.
38815         Include <sys/types.h>, for dev_t.
38816         (ME_DUMMY, ME_REMOTE): Move from here....
38817         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38818         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38819         Dmitry V. Levin.
38820         Include mountlist.h first, to test the interface.
38821
38822 2005-01-29  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/progname.c (program_name): Initialize.
38825         Needed when linking statically on MacOS X.
38826
38827 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38828
38829         Sync from coreutils.
38830         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38831         (Depends-on): Add c-strtod.
38832         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38833
38834 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38835
38836         Sync from coreutils.
38837         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38838
38839         Remove files that are specific to coreutils.
38840         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38841
38842 2005-01-28  Bruno Haible  <bruno@clisp.org>
38843
38844         * modules/javacomp: New file.
38845         * MODULES.html.sh (Java): Add javacomp.
38846
38847 2005-01-28  Bruno Haible  <bruno@clisp.org>
38848
38849         * m4/javacomp.m4: New file, from GNU gettext.
38850
38851 2005-01-28  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/javacomp.sh.in: New file, from GNU gettext.
38854         * lib/javacomp.h: New file, from GNU gettext.
38855         * lib/javacomp.c: New file, from GNU gettext.
38856
38857 2005-01-26  Simon Josefsson  <jas@extundo.com>
38858
38859         * lib/gai_strerror.c: Use GPL in header.
38860
38861 2005-01-26  Bruno Haible  <bruno@clisp.org>
38862
38863         * modules/javaexec: New file.
38864         * MODULES.html.sh (Java): Add javaexec.
38865
38866 2005-01-26  Bruno Haible  <bruno@clisp.org>
38867
38868         * m4/javaexec.m4: New file, from GNU gettext.
38869
38870 2005-01-26  Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/javaexec.sh.in: New file, from GNU gettext.
38873         * lib/javaexec.h: New file, from GNU gettext.
38874         * lib/javaexec.c: New file, from GNU gettext.
38875
38876 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38877
38878         * modules/lchown (Depends-on): Remove lchown.h
38879
38880 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38881
38882         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38883         must be defined if the header file was not found, in order
38884         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38885
38886 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38887
38888         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38889         initializers for struct pentry_state.
38890         (__argp_error): Check return value of __asprintf
38891         (__argp_failure): Translate error message
38892
38893         * lib/argp-parse.c: Removed braces around the expansion of N_()
38894
38895 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38896
38897         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38898         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38899         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38900         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38901         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38902         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38903         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38904         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38905         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38906         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38907         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38908         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38909         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38910         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38911         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38912         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38913         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38914         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38915         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38916         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38917         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38918         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38919         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38920         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38921         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38922         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38923         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38924         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38925         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38926         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38927         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38928         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38929         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38930         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38931         xstrtol.m4, xstrtoumax.m4, yesno.m4:
38932         Use an all-permissive copyright notice, recommended by RMS.
38933
38934 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38935
38936         * modules/chdir-long (Depends-on): Remove mempcpy.
38937
38938 2005-01-21  Jim Meyering  <jim@meyering.net>
38939
38940         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38941         same value as for Solaris 9.
38942
38943         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38944         component length.  This included changing the parameter to be
38945         of type `char *' rather than `char const *'.
38946         * lib/chdir-long.h (chdir_long): Update prototype.
38947
38948         * lib/openat.c (fdopendir, fstatat): New functions.
38949         * lib/openat.h: Include headers required for use of DIR and struct
38950         stat.
38951         [AT_SYMLINK_NOFOLLOW]: Define.
38952         (fdopendir, fstatat): Add prototypes.
38953
38954 2005-01-21  Bruno Haible  <bruno@clisp.org>
38955
38956         * modules/classpath: New file.
38957         * MODULES.html.sh (Java): Add classpath.
38958
38959 2005-01-21  Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/classpath.h: New file, from GNU gettext.
38962         * lib/classpath.c: New file, from GNU gettext.
38963
38964 2005-01-20  Simon Josefsson  <jas@extundo.com>
38965
38966         * modules/version-etc-fsf: New file.
38967
38968 2005-01-20  Simon Josefsson  <jas@extundo.com>
38969
38970         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38971         * lib/version-etc.c: Remove version_etc_copyright.
38972         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38973         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38974
38975 2005-01-20  Simon Josefsson  <jas@extundo.com>
38976
38977         * lib/base64.h (isbase64): Add.
38978
38979         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38980         using a unsigned prototype, don't inline.
38981         (base64_decode): Use it.
38982
38983 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38984
38985         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38986         it.
38987
38988 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38989
38990         * lib/save-cwd.c (save_cwd): Remove code to support the case
38991         where fchdir is missing or flaky.
38992
38993 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38994
38995         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38996
38997 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38998
38999         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
39000         AC_LIBSOURCES now does this.
39001         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
39002         with new ullong_max module.
39003
39004 2005-01-19  Bruno Haible  <bruno@clisp.org>
39005
39006         * modules/sh-quote: New file.
39007         * MODULES.html.sh (Executing programs): Add sh-quote.
39008
39009 2005-01-19  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/sh-quote.h: New file, from GNU gettext.
39012         * lib/sh-quote.c: New file, from GNU gettext.
39013
39014 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39015
39016         Merge from coreutils.
39017         * m4/ullong_max.m4: New file.
39018         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
39019         (gl_MACROS): Assume localeconv exists.
39020
39021 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39022
39023         Merge changes from coreutils, as described below in several
39024         changelogs dated today.
39025
39026         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
39027         (O_DIRECTORY): Remove; not needed here, since "." must be
39028         a directory.  All uses removed.
39029         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
39030         universal on Suns, and we also need to test for IRIX.
39031         Revamp code to use 'if' rather than '#if'.
39032         Avoid unnecessary comparison of cwd->desc to 0.
39033
39034         * lib/utimens.c (futimens): Robustify the previous patch, by checking
39035         for known valid error numbers rather than observed invalid ones.
39036
39037 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39038
39039         * modules/ullong_max: New file.
39040
39041         * modules/chdir-long, modules/openat: New files.
39042         * modules/save-cwd (Depends-on): Depend on chdir-long.
39043         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
39044
39045 2005-01-18  Jim Meyering  <jim@meyering.net>
39046
39047         Merge from coreutils.
39048         * m4/chdir-long.m4, m4/openat.m4: New files.
39049         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
39050         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
39051         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
39052         is sane and DOES follow symlinks.  Besides, testing 20 different
39053         systems found no broken chown implementations.
39054         Prompted by a change in rsync's copy of this macro.
39055         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
39056
39057         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
39058
39059         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
39060         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
39061         NULL-means-set-to-current-time semantics.
39062         Remove temporary file immediately, rather than waiting
39063         for configure's at-exit trap code to do it.
39064
39065 2005-01-18  Jim Meyering  <jim@meyering.net>
39066
39067         * lib/version-etc.c (version_etc_copyright): Update copyright date.
39068
39069         * lib/utimens.c (futimens): Account for the fact that futimes
39070         can also fail with errno == ENOSYS or errno == ENOENT.
39071         Patch from Dmitry V. Levin.
39072
39073         Change the name of the robust chdir function from chdir to chdir_long.
39074         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
39075         (restore_cwd): Use chdir_long, not chdir.
39076         * lib/chdir-long.c: Renamed from chdir.c.
39077         * lib/chdir-long.h: Renamed from chdir.h.
39078         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
39079         Hurd.
39080
39081 2005-01-18  Bruno Haible  <bruno@clisp.org>
39082
39083         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
39084         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
39085         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
39086         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
39087         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
39088         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
39089         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
39090         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
39091         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
39092         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
39093         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
39094         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
39095         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
39096         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
39097         Use an all-permissive copyright notice, recommended by RMS.
39098
39099 2005-01-18  Bob Proulx  <bob@proulx.com>
39100
39101         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
39102         simplify offsetof() macro construct to avoid compile failure with
39103         native HP-UX 11.0 ANSI C compiler.
39104
39105 2005-01-17  Bruno Haible  <bruno@clisp.org>
39106
39107         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
39108         redundant because stpncpy.m4 takes care of it.
39109
39110 2005-01-17  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
39113
39114 2005-01-17  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
39117         used.
39118
39119 2005-01-17  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/fwriteerror.h (fwriteerror): Change specification to include
39122         fclose.
39123         * lib/fwriteerror.c: Include <stdbool.h>.
39124         (fwriteerror): At the end, close the file stream. Record whether
39125         stdout was already closed.
39126
39127 2005-01-17  Bruno Haible  <bruno@clisp.org>
39128
39129         * lib/execute.c (environ): Declare if needed.
39130         * lib/pipe.c (environ): Likewise.
39131         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
39132
39133 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39134
39135         * modules/argp: Depend on vsnprintf
39136
39137 2005-01-10  Jim Meyering  <jim@meyering.net>
39138
39139         * modules/closeout (Depends-on): Add atexit.
39140
39141 2005-01-06  Bruno Haible  <bruno@clisp.org>
39142
39143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
39144
39145 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39146
39147         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
39148         definitions to be after all include files, to avoid collisions.
39149         Problem reported by Bob Proulx.
39150
39151 2005-01-04  Jim Meyering  <jim@meyering.net>
39152
39153         Changes imported from coreutils.
39154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39155         as the mkstemp template, use a temporary directory and an
39156         8.3-friendly template to avoid trouble on systems like DJGPP.
39157         Reported by Juan M. Guerrero via Stepan Kasal.
39158         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39159         close. Remove the temporary directory right away, rather than waiting
39160         for configure's at-exit trap code to do it.
39161         Suggestion from Stepan Kasal.
39162
39163 2005-01-01  Simon Josefsson  <jas@extundo.com>
39164
39165         * gnulib-tool: Print #include directives when --import'ing.
39166
39167 2004-12-28  Simon Josefsson  <jas@extundo.com>
39168
39169         * tests/test-base64.c: Include required header files.  Remove
39170         unused variables.
39171
39172 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39173
39174         * modules/error (Depends-on): Remove gettext.
39175
39176 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39177
39178         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39179         not needed.  This removes a dependency on the gettext module.
39180         [defined _LIBC]: Do not include <libintl.h>; not needed.
39181
39182 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39183
39184         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39185         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39186
39187 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39188
39189         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39190         HAVE_DECL_STRTOLD.
39191
39192 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39193
39194         * modules/getdate (Depends-on): Remove alloca-opt.
39195
39196 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39197
39198         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39199
39200 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39201
39202         * lib/argp-parse.c: Include <stddef.h>.
39203         (alignof, alignto): New macros.
39204         (parser_init): Don't assume that void * is aligned sufficiently
39205         for struct option.
39206
39207         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39208         need to extend the stack.
39209         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39210         large.
39211
39212 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39213
39214         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39215
39216 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39217
39218         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39219         (2004-10-24) change.  Apparently this was a false alarm.
39220
39221         * modules/getdate: Depend on alloca-opt, not alloca.
39222
39223 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39224
39225         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39226         Remove now-obsolete comment about AIX.
39227         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39228         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39229         (YYMAXDEPTH): New macro.
39230
39231 2004-12-18  Simon Josefsson  <jas@extundo.com>
39232
39233         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39234
39235 2004-12-18  Bruno Haible  <bruno@clisp.org>
39236
39237         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39238
39239 2004-12-18  Bruno Haible  <bruno@clisp.org>
39240
39241         * lib/fatal-signal.c (fatal_signals): Make non-const.
39242         (init_fatal_signals): New function.
39243         (uninstall_handlers, install_handlers): Ignore signals that were set to
39244         SIG_IGN.
39245         (at_fatal_signal): Call init_fatal_signals.
39246         (init_fatal_signal_set): Likewise. Ignore signals that were set to
39247         SIG_IGN.
39248         Reported by Paul Eggert.
39249
39250 2004-12-18  Bruno Haible  <bruno@clisp.org>
39251
39252         * doc/alloca.texi: New file.
39253         * doc/alloca-opt.texi: New file.
39254
39255 2004-12-17  Jim Meyering  <jim@meyering.net>
39256
39257         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39258         Otherwise, install-sh could exit with improper exit status when
39259         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39260
39261 2004-12-16  Simon Josefsson  <jas@extundo.com>
39262
39263         * tests/test-base64.c: Add license.
39264
39265 2004-12-15  Stepan Kasal  <address@hidden>
39266
39267         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39268
39269 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39270
39271         * modules/getcwd (Files): Add m4/d-ino.m4.
39272         Suggested by Mark D. Baushke.
39273
39274 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39275
39276         * lib/getdate.y (textint): New member "negative".
39277         (time_zone_hhmm): New function.
39278         Expect 14 shift-reduce conflicts, not 13.
39279         (o_colon_minutes): New rule.
39280         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39281         (yylex): Set the "negative" member of signed numbers.
39282
39283 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39284
39285         * doc/getdate.texi (Time of day items, Time zone items):
39286         Describe new formats +00:00, UTC+00:00.
39287
39288 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39289
39290         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39291         spurious "-l"s.  Problem reported by Stepan Kasal.
39292
39293 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39294
39295         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39296         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39297
39298 2004-12-04  Simon Josefsson  <jas@extundo.com>
39299
39300         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39301         Vandoorselaere <yoann@prelude-ids.org>.
39302
39303 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39304
39305         Changes imported from coreutils.
39306         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39307         exist.
39308         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39309
39310 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39311
39312         Changes imported from coreutils.
39313         * lib/hard-locale.c: Assume <locale.h> exists.
39314         Include "strdup.h".
39315         (GLIBC_VERSION): New macro.
39316         (hard_locale): Assume setlocale exists.
39317         Rewrite to avoid #ifdef.
39318         Use strdup rather than malloc + strcpy.
39319         * lib/human.c: Assume <locale.h> exists.
39320         (human_readable): Assume localeconv exists.
39321
39322 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39323
39324         * modules/hard-locale (Depends-on): Add strdup.
39325
39326 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39327
39328         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39329         convert T2, not T.  (Imported from libc.)
39330
39331 2004-11-30  Simon Josefsson  <jas@extundo.com>
39332
39333         * modules/restrict (License): Change to LGPL.
39334
39335 2004-11-30  Simon Josefsson  <jas@extundo.com>
39336
39337         * m4/restrict.m4: Add copyright and copying conditions.
39338
39339 2004-11-30  Simon Josefsson  <jas@extundo.com>
39340
39341         * m4/base64.m4: New file.
39342
39343 2004-11-30  Simon Josefsson  <jas@extundo.com>
39344
39345         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39346         base64.
39347
39348         * tests/test-base64.c: New file.
39349
39350         * modules/base64: New file.
39351
39352 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39355         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39356
39357         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39358
39359 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39360
39361         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39362         (__getcwd.c): Don't restore errno; glibc doesn't.
39363         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39364         first, falling back to our code only if its results look suspicious.
39365         Ensure that the resulting buffer is only as large as necessary.
39366
39367         * lib/readutmp.c: Include readutmp.h first.
39368         Include <errno.h>, since readutmp.h no longer does that.
39369         * lib/readutmp.h: Don't include <errno.h>,
39370         <sys/param.h>, <time.h>; not needed to establish interface.
39371         (errno): Remove decl.
39372         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39373         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39374         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39375
39376 2004-11-28  Simon Josefsson  <jas@extundo.com>
39377
39378         * lib/base64.h, base64.c: New file.
39379
39380 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39383
39384 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39385
39386         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39387         (Depends-on): Remove pathmax, same.  Add mempcpy.
39388         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39389         (Makefile.am): Append getcwd.h to lib_SOURCES.
39390         (Include): Add getcwd.h.
39391         (Maintainer): Change from Jim Meyering to "all, glibc",
39392         since getdate now uses intended-for-glibc code.
39393         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39394         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39395
39396 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39397
39398         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39399         HP's ANSI C compiler.
39400         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39401         Declaring int functions causes warnings on some modern systems and
39402         shouldn't be needed to compile on ancient ones.
39403         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39404         defined.
39405
39406         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39407         with the following changes.
39408         (__set_errno): Parenthesize properly.
39409         Include <stdbool.h>.
39410         (MIN, MAX, MATCHING_INO): New macros.
39411         (__getcwd): Define with prototype, not K&R form.
39412         Use heuristics to allocate default buffer on stack if possible.
39413         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39414         behavior, and to avoid the PATH_MAX limit when computing
39415         ../../../../...
39416         Use MATCHING_INO to compare inode number to file.
39417         Check for arithmetic overflow in size calculations.
39418         Fix bug in reallocation of dot array that caused getcwd to fail
39419         on directories nested deeper than 75.
39420         Be more careful about saving errno on error.
39421         Do not use realloc; use only free+malloc, as this is a bit
39422         more flexible and avoids a needless copy operation.
39423         Do not inspect st_dev and st_ino for symbolic links; POSIX
39424         doesn't specify the latter.
39425         Check for closedir errors.
39426         Avoid needless casts.
39427         Use "#ifdef weak_alias" around weak_alias, to be like other
39428         glibc code.
39429         The following changes to getcwd.c have effect only when used in
39430         gnulib; they have no effect inside glibc proper.
39431         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39432         as alloca isn't used.
39433         (alloca, __alloca): Likewise.
39434         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39435         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39436         unconditionally, as gnulib assumes C89 or better.
39437         Do not include <sys/param.h>.
39438         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39439         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39440         better.
39441         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39442         Include <dirent.h> in a way that is compatible with modern Autoconf.
39443         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39444         New macros, if not already defined.
39445         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39446         Use "_LIBC", not "defined _LIBC", for consistency.
39447         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39448         a mempcpy module.
39449         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39450         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39451         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39452         credit only to Jim Meyering and adjust the copyright dates.
39453         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39454         <stdlib.h>, <unistd.h>, "pathmax.h".
39455         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39456         (INITIAL_BUFFER_SIZE): Remove.
39457         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39458
39459 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39460
39461         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39462         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39463         Use the _ONCE methods, for efficiency.
39464         Check for fcntl.h.  In test program, include <errno.h>
39465         and <fcntl.h> if available.  Remove old K&R cruft from
39466         test program.  Check for common errors in GNU/Linux,
39467         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39468         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39469         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39470         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39471         name accordingly.
39472         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39473         accommodate new getcwd.c.
39474         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39475         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39476         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39477         that's all we need now.
39478
39479 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39480
39481         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39482         argp-parse.c depends on getopt internals, that means we should
39483         always use our getopt, to be on the safe side.
39484         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39485         order not to spoil the result of an eventual previous invocation
39486         of gl_GETOPT_SUBSTITUTE.
39487
39488 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39489
39490         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39491         redefinition warnings. To avoid them, include the defines
39492         in `#if !defined __need_getopt ... #endif'. The only place
39493         where __getopt_argv_const is used is in definitions
39494         of getopt_long and getopt_long_only below, which are as well
39495         protected by `#ifndef __need_getopt'.
39496         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39497         __need_getopt after including <stdio.h> and <unistd.h> These
39498         headers might have defined it.
39499
39500 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39501
39502         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39503
39504 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39505
39506         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39507         (futimens): New function, which uses futimes if available.
39508         (futimens, utimens): Support timespec==NULL, with same semantics
39509         as utime and utimens.
39510         * lib/utimens.h (futimens): New decl.
39511
39512 2004-11-23  Jim Meyering  <jim@meyering.net>
39513
39514         * lib/getopt_.h: Remove trailing blanks.
39515
39516 2004-11-23  Jim Meyering  <jim@meyering.net>
39517
39518         * lib/__fpending.c: Add comment.
39519
39520 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39521
39522         * modules/canonicalize (Depends-on): Add xreadlink.
39523         Problem reported by James Youngman.
39524
39525 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39526
39527         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39528         New macros.
39529         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39530         optopt): Use them instead of invoking ## directly; otherwise, the
39531         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39532
39533 2004-11-19  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/strtok_r.c: Move comments from here...
39536         * lib/strtok_r.h: ... to here.
39537
39538 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39539
39540         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39541         implementations that mishandle size_t overflow.
39542
39543 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39544
39545         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39546         might fail.  Problem reported by Yoann Vandoorselaere.
39547         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39548         implementations that mishandle size_t overflow.
39549
39550 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39551
39552         * modules/canon-host (Depends-on): Add strdup.
39553
39554 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39555
39556         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39557
39558 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39559
39560         * lib/canon-host.c: Include "strdup.h".
39561         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39562         Use strdup instead of malloc/strcpy to duplicate strings.
39563
39564         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39565         (human_space_before_unit): New constant.
39566         * lib/human.c (human_readable): Support it.
39567
39568         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39569         (xgetcwd): Set errno correctly when failing.
39570         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39571         the failure is actually due to a PATH_MAX problem.
39572
39573         Further getopt changes to make it more likely that glibc will
39574         buy the changes back.
39575         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39576         (getopt): Use it, so to preserve glibc semantic
39577         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39578         when compiling for libc.
39579         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39580         (getopt_long, getopt_long_only): Use it.
39581
39582         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39583         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39584         (getopt): Argv is now char * const *, as per standard.
39585         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39586         not char *__getopt_argv_const *.
39587         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39588         _getopt_long_only_r): Likewise.
39589         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39590         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39591         _getopt_long_r, _getopt_long_only_r): Likewise.
39592         * lib/getopt_.h (__getopt_argv_const): Remove.
39593         (getopt): Argv is now char * const *, as per standard.
39594
39595         * lib/getdate.y (tORDINAL): New token.
39596         (day, relunit): Allow it for relative times.
39597         (relative_time_table): Use tORDINAL for ordinals.
39598
39599 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39600
39601         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39602         Document that "second" isn't allowed as an ordinal number.
39603
39604 2004-11-16  Jim Meyering  <jim@meyering.net>
39605
39606         * modules/closeout (Depends-on): Add fpending.
39607
39608 2004-11-15  Jim Meyering  <jim@meyering.net>
39609
39610         * lib/closeout.c: Include "__fpending.h" once again.
39611         Include <stdbool.h>.
39612         (close_stdout): Don't fail just because stdout was closed initially,
39613         since some programs don't write to stdout in the normal course of
39614         operation (other than --version and --help), and we don't want this
39615         function to make e.g. `touch file >&-' fail.
39616         But do fail if it was closed and someone has tried to write to it.
39617         E.g., `printf foo >&-' must fail.
39618
39619 2004-11-13  Jim Meyering  <jim@meyering.net>
39620
39621         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39622
39623 2004-11-12  Simon Josefsson  <jas@extundo.com>
39624
39625         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39626         small doc fix is still pending.
39627
39628 2004-11-11  Simon Josefsson  <jas@extundo.com>
39629
39630         * modules/strtok_r: New file.
39631
39632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39633         strtok_r.
39634
39635 2004-11-11  Simon Josefsson  <jas@extundo.com>
39636
39637         * m4/strtok_r.m4: New file.
39638
39639         * m4/getopt.m4: Replace opterr.
39640
39641 2004-11-11  Simon Josefsson  <jas@extundo.com>
39642
39643         * lib/strtok_r.h, strtok_r.c: New file.
39644
39645 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39646
39647         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39648         of replacing opterr, getopt, etc.  This should handle the
39649         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39650
39651 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39652
39653         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39654         we can stop lying to compilers about the constness of argv when we
39655         are compiled outside glibc.
39656         (getopt, getopt_long, getopt_long_only): Use it.
39657         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39658         _getopt_internal, getopt): Likewise.
39659         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39660         _getopt_long_only_r): Likewise.
39661         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39662         _getopt_long_r, _getopt_long_only_r): Likewise.
39663
39664         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39665         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39666         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39667         the other external symbols.
39668         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39669         declaration, since the above renaming now works around collisions.
39670
39671 2004-11-11  Jim Meyering  <jim@meyering.net>
39672
39673         * lib/linebreak.c: Remove trailing blanks.
39674         * lib/alloca_.h: Likewise.
39675         * lib/acosl.c: Likewise.
39676         * lib/euidaccess.c: Likewise.
39677         * lib/allocsa.h: Likewise.
39678
39679 2004-11-10  Simon Josefsson  <jas@extundo.com>
39680
39681         * m4/getaddrinfo.m4: New file.
39682
39683 2004-11-10  Simon Josefsson  <jas@extundo.com>
39684
39685         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39686
39687 2004-11-10  Simon Josefsson  <jas@extundo.com>
39688
39689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39690         getaddrinfo.
39691
39692         * modules/getaddrinfo: New file.
39693
39694 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39695
39696         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39697
39698 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39699
39700         * lib/mktime.c (SHR): New macro, which is a portable
39701         substitute for >> that should work even on Crays.
39702         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39703         Problem reported by Mark D. Baushke in
39704         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39705         * lib/getdate.y (SHR): Likewise.
39706         (tm_diff): Use it.
39707         * lib/strftime.c (SHR): Likewise.
39708         (tm_diff): Use it.
39709         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39710         quote_these_too, so that right shifts are well defined.  All uses
39711         changed.
39712
39713 2004-11-10  Jim Meyering  <jim@meyering.net>
39714
39715         Ensure that no close failure goes unreported.
39716         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39717         return early when it seems there's nothing to flush.
39718         Don't include __fpending.h.
39719
39720 2004-11-10  Jim Meyering  <jim@meyering.net>
39721
39722         * modules/closeout (Depends-on): Remove fpending.
39723
39724 2004-11-10  Jim Meyering  <jim@meyering.net>
39725
39726         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39727
39728 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39729
39730         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39731         gl_FUNC_STRFTIME.
39732         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39733         and AC_REQUIRE when possible, to avoid duplicate checks.
39734         Check for <wchar.h>.
39735
39736 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39737
39738         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39739
39740 2004-11-09  Bruno Haible  <bruno@clisp.org>
39741
39742         * m4/sockpfaf.m4: New file.
39743
39744 2004-11-05  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39747         Reported by Mark D. Baushke <mdb@cvshome.org>.
39748
39749 2004-11-04  Bruno Haible  <bruno@clisp.org>
39750
39751         2004-09-11  Bruno Haible  <bruno@clisp.org>
39752                 * allocsa.valgrind: New file.
39753         2004-02-06  Bruno Haible  <bruno@clisp.org>
39754                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39755                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39756                 Reported by Christopher Seip <chris.seip@hp.com>.
39757
39758 2004-11-04  Bruno Haible  <bruno@clisp.org>
39759
39760         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39761         (Makefile.am): Distribute it.
39762
39763 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39764
39765         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39766         with errno == ERANGE if the buffer is too small.
39767         Problem reported by Mark D. Baushke.
39768
39769 2004-11-03  Albert Chin  <china@thewrittenword.com>
39770             Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39773         equivalent, substitute $ac_type for equivalent type rather than
39774         blindly using uint32_t *always* which won't work if uint32_t is not
39775         available.  Define _UINT32_T to work around typedef of uint32_t if
39776         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39777         2.5.1.
39778
39779 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39780
39781         * m4/jm-macros.m4: Sync from coreutils.
39782         (gl_MACROS): Check for mbrlen, for pathchk.
39783         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39784
39785 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39786
39787         * lib/xreadlink.c (MAXSIZE): New macro.
39788         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39789         size does not exceed MAXSIZE.  Avoid cast.
39790         As suggested by Mark D. Baushke in
39791         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39792         if readlink fails with buffer size just under MAXSIZE, try again
39793         with MAXSIZE.
39794
39795 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39796
39797         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39798
39799 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39800         and  Paul Eggert  <eggert@cs.ucla.edu>
39801
39802         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39803         (get_date): Overparenthesize to avoid GCC warning.
39804
39805 2004-11-02  Bruno Haible  <bruno@clisp.org>
39806
39807         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39808         returns void.
39809
39810 2004-11-02  Bruno Haible  <bruno@clisp.org>
39811
39812         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39813         function returns void.
39814
39815 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39816
39817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39818         fflush_unlocked, flockfile, funlockfile, funlockfile,
39819         fputs_unlocked, putc_unlocked.
39820
39821 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39822
39823         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39824         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39825         already declared.
39826
39827 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         * modules/getdate (Files): Add doc/getdate.texi.
39830         (Depends-on): Add setenv, xalloc.
39831
39832 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39833
39834         * lib/getdate.y: Add support for TZ="foo" within a date string.
39835         Fix some bugs near time_t boundaries.  Reject dates with
39836         out-of-range components, e.g., "Sept 31".
39837         Include <stdlib.h>, "setenv.h", "xalloc.h".
39838         (ISDIGIT_LOCALE): Remove; unused.
39839         Note that the TZ and time functions used here are not reentrant.
39840         (mktime_ok, get_tz): New functions.
39841         (TZBUFSIZE): New constant.
39842         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39843         This requires that we sometimes generate our own TZ="XXX..." setting.
39844
39845 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39846
39847         * doc/getdate.texi: New file, from coreutils with modifications for
39848         the new TZ parsing.
39849
39850 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39851
39852         * lib/mktime.c (not_equal_tm): Remove redundant check.
39853
39854 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39855
39856         * modules/regex (lib_SOURCES): Add regex.c.
39857         Reported by James Youngman in
39858         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39859
39860 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39861
39862         * lib/getdate.y: Use Bison 1.875 features, and some minor
39863         code cleanups.  This change does not affect semantics.
39864         Don't include <stdlib.h>; no longer needed.
39865         Don't include unlocked-io.h; only the "#if TEST" code uses
39866         stdio, and performance isn't crucial there.
39867         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39868         Bison 1.875 features as described below.
39869         All uses of "PC." replaced by "pc->".
39870         (YYSTYPE): Add a forward declaration.
39871         (yylex, yyerror): Use full prototypes in forward decls.
39872         Use "%pure-parser" rather than obsolescent "%pure_parser".
39873         Use %parse-param and %lex-param instead of obsolescent
39874         YYPARSE_PARAM and YYLEX_PARAM.
39875         (meridian_table, month_and_day_table, time_units_table,
39876         relative_time_table, time_zone_table, military_table,
39877         lookup_zone, lookup_word, get_date):
39878         Use NULL instead of 0 where appropriate.
39879         (to_hour): Avoid abort (), to avoid a dependency on
39880         stdlib.h.
39881         (yyerror, yylex): Now accepts parser_control * arg.
39882         (main) [TEST]: Use '\0' rather than 0 for char.
39883
39884 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39885
39886         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39887
39888 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39889
39890         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39891         It's now the caller's responsibility to handle the case where
39892         !HAVE_GETPAGESIZE && !defined getpagesize.
39893
39894         * lib/mktime.c (leapyear): Arg is long int, not int.
39895
39896 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
39897
39898         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39899
39900 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39901
39902         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39903         missing.  Problem reported by James Youngman.
39904
39905 2004-10-16  Simon Josefsson  <jas@extundo.com>
39906
39907         * gnulib-tool: Fix comments.  Fix parse problem.
39908         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39909
39910 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
39911
39912         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39913         implementation of getopt_long.  Problem reported by Alexander Taler in:
39914         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39915
39916 2004-10-15  Bruno Haible  <bruno@clisp.org>
39917
39918         * gnulib-tool: Untabify. Initialize supplied_libname.
39919         (func_usage): More homogenous output.
39920         (func_modules_transitive_closure, func_modules_to_filelist,
39921         func_emit_lib_Makefile_am): New functions.
39922         (func_import): New function, extracted from big case statement. Use
39923         func_get_license, func_modules_transitive_closure,
39924         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39925         opt_lgpl. Don't use test -a, as it's not portable.
39926         (func_create_testdir): Use func_modules_transitive_closure,
39927         func_modules_to_filelist, func_emit_lib_Makefile_am.
39928
39929 2004-10-15  Bruno Haible  <bruno@clisp.org>
39930
39931         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39932
39933 2004-10-15  Bruno Haible  <bruno@clisp.org>
39934
39935         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39936         the portions belonging to each module.
39937         Suggested by Derek Robert Price <derek@ximbiot.com>.
39938
39939 2004-10-12  Simon Josefsson  <jas@extundo.com>
39940
39941         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39942         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39943         to real functions.
39944
39945 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39946
39947         * modules/vsnprintf: New file.
39948
39949 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39950
39951         * m4/vsnprintf.m4: New file.
39952
39953 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39954
39955         * lib/vsnprintf.h: New file.
39956         * lib/vsnprintf.c: New file.
39957
39958 2004-10-11  Bruno Haible  <bruno@clisp.org>
39959
39960         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39961         vsnprintf.
39962
39963 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39964
39965         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39966
39967 2004-10-07  Bruno Haible  <bruno@clisp.org>
39968
39969         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39970         fits into the provided buffer.
39971
39972 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39973
39974         * lib/diacrit.c, diacrit.h: Add GPL notice.
39975
39976         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39977         notice.
39978         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39979         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39980         This avoids a potential constant-folding bug.
39981
39982 2004-10-05  Bruno Haible  <bruno@clisp.org>
39983
39984         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39985         for the declaration of strsep.
39986
39987 2004-10-05  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39990
39991 2004-10-04  Simon Josefsson  <jas@extundo.com>
39992
39993         * modules/memmem: New file.
39994         * tests/test-memmem.c: New file.
39995         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39996
39997 2004-10-04  Simon Josefsson  <jas@extundo.com>
39998
39999         * m4/memmem.m4: New file.
40000
40001 2004-10-04  Simon Josefsson  <jas@extundo.com>
40002
40003         * lib/memmem.h: New file.
40004         * lib/memmem.c: New file, taken from glibc.
40005
40006 2004-10-04  Simon Josefsson  <jas@extundo.com>
40007
40008         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
40009         '#ifdef USE_UNLOCKED_IO'.
40010
40011 2004-10-04  Simon Josefsson  <jas@extundo.com>
40012
40013         * config/srclist.txt: Add memmem from glibc.
40014
40015 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40016
40017         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
40018
40019         * modules/argmatch, modules/argp, modules/closeout, modules/error,
40020         modules/exclude, modules/getdate, modules/getline,
40021         modules/getndelim2, modules/getpass, modules/getpass-gnu,
40022         modules/getusershell, modules/linebuffer, modules/md5,
40023         modules/mountlist, modules/posixtm, modules/readtokens,
40024         modules/readutmp, modules/regex, modules/sha1,
40025         modules/version-etc, modules/yesno:
40026         Remove dependency on unlocked-io.
40027
40028 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40029
40030         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
40031
40032         * m4/unlocked-io.m4: Add copyright notice.
40033         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
40034
40035 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40036
40037         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
40038         * lib/xmalloc.c (xmemdup): Likewise.
40039         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
40040         XFREE): Remove these long-obsolescent macros.
40041         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
40042         * lib/xstrdup.c: Remove.
40043
40044         * lib/regex.c (re_comp): Cast gettext return value to char *,
40045         Problem reported by Martin Neitzel via Mark D. Baushke.
40046
40047 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40048
40049         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
40050         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
40051         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
40052         regex.c, sha1.c, version-etc.c, yesno.c:
40053         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
40054         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
40055         the includer's responsibility.
40056
40057         Sync from coreutils.
40058
40059         * lib/modechange.c (mode_compile): Don't decrement a pointer that
40060         points to the start of a string, as the C Standard says the
40061         resulting behavior is undefined.
40062
40063         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
40064         simple -> simple_backups, numbered_existing ->
40065         numbered_existing_backups, numbered -> numbered_backups
40066         to avoid shadowing problems.  All uses changed.
40067         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
40068         * lib/backupfile.c (check_extension, numbered_backup):
40069         Rename locals to avoid shadowing 'basename'.
40070         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
40071         once.
40072
40073         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
40074         * lib/.cvsignore: Add getopt.h.
40075
40076 2004-10-04  Bruno Haible  <bruno@clisp.org>
40077
40078         * modules/README: New file.
40079         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
40080         not a module.
40081
40082 2004-10-02  Jim Meyering  <jim@meyering.net>
40083
40084         * lib/dirfd.h, getpagesize.h: Add copyright notice.
40085
40086 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40087
40088         * modules/strsep: New file.
40089
40090 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40091
40092         * m4/strsep.m4: New file.
40093
40094 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40095
40096         * lib/strsep.h: New file.
40097         * lib/strsep.c: New file.
40098
40099 2004-10-01  Simon Josefsson  <jas@extundo.com>
40100
40101         * lib/snprintf.c (snprintf): Handle size==0.
40102
40103 2004-10-01  Simon Josefsson  <jas@extundo.com>
40104             Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
40107         (snprintf): Declare 'args'.
40108
40109 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
40110
40111         * lib/snprintf.c: Remove comments as to why each header is needed.
40112
40113 2004-10-01  Bruno Haible  <bruno@clisp.org>
40114
40115         * MODULES.html.sh: Add strsep.
40116
40117 2004-09-30  Simon Josefsson  <jas@extundo.com>
40118
40119         * modules/snprintf: New file.
40120
40121 2004-09-30  Simon Josefsson  <jas@extundo.com>
40122
40123         * m4/snprintf.m4: New file.
40124
40125 2004-09-30  Simon Josefsson  <jas@extundo.com>
40126
40127         * lib/snprintf.h, lib/snprintf.c: New files.
40128
40129 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40130
40131         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
40132         (hol_entry_help): Never translate an empty string.
40133         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
40134         * lib/argp.h (OPTION_NO_TRANS): New option.
40135
40136 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40137
40138         * modules/argp (Maintainer): Replace Simon Josefsson
40139         by Sergey Poznyakoff.
40140
40141 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40142
40143         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
40144         changes merged back into glibc.
40145
40146 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40147
40148         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40149
40150 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40151
40152         * lib/xvasprintf.c: Include xalloc.h.
40153         (xvasprintf): Use xalloc_die, not xmalloc_die.
40154
40155 2004-09-29  Bruno Haible  <bruno@clisp.org>
40156
40157         * modules/alloca-opt: New file, derived from modules/alloca.
40158         * modules/allocsa: Depend on alloca-opt instead of alloca.
40159         * modules/setenv: Likewise.
40160         * modules/vasnprintf: Likewise.
40161         * MODULES.html.sh: Add alloca-opt.
40162
40163 2004-09-28  Simon Josefsson  <jas@extundo.com>
40164
40165         * gnulib-tool: New parameter --lgpl, to asseert that modules are
40166         LGPL, and to replace license template from GPL to LGPL.
40167
40168 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40169
40170         * modules/dummy: Change license to LGPL.
40171
40172 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40173
40174         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40175
40176 2004-09-24  Simon Josefsson  <jas@extundo.com>
40177
40178         * modules/minmax (License): Change from GPL to LGPL.
40179
40180 2004-09-23  Simon Josefsson  <jas@extundo.com>
40181
40182         * gnulib-tool (--import): Typo.
40183
40184 2004-09-23  Simon Josefsson  <jas@extundo.com>
40185
40186         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40187
40188 2004-09-22  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/*: Add 'License' field.
40191         * gnulib-tool: Accept --extract-license option.
40192         (func_get_license): New function.
40193
40194 2004-09-21  Bruno Haible  <bruno@clisp.org>
40195
40196         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40197         Reported by Simon Josefsson.
40198
40199 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40200
40201         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40202         gl_AC_TYPE_LONG_LONG.
40203
40204 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40205
40206         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40207
40208 2004-09-18  Simon Josefsson  <jas@extundo.com>
40209         and  Paul Eggert  <eggert@cs.ucla.edu>
40210
40211         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40212         calls with autoreconf.  Define GL_LIB.
40213
40214 2004-09-14  Karl Berry  <karl@gnu.org>
40215
40216         * config/srclist.txt: unsync setenv.c, sigh.
40217
40218 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40219
40220         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40221         Problem reported by Bruno Haible in:
40222         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40223
40224 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40225
40226         * config/srclist.txt: Comment out argp-pvh.c.
40227
40228 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40229
40230         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40231         in case some system header has #define'd it.  Problem reported by
40232         Soeren D. Schulze in
40233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40234
40235 2004-09-09  Karl Berry  <karl@gnu.org>
40236
40237         * regex.[ch]: delete from the root.  These were supposed to be
40238                 synced with emacs cvs, but this has not happened for about
40239                 a year, and anyway nothing else uses emacs regex.[ch].
40240                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40241                 lib/regex[.ch] is untouched.
40242
40243 2004-09-09  Bruno Haible  <bruno@clisp.org>
40244
40245         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40246
40247 2004-09-09  Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40250         modifications.
40251         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40252
40253 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40254
40255         * modules/xvasprintf: New file.
40256         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40257
40258 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40259
40260         * lib/xvasprintf.h: New file.
40261         * lib/xvasprintf.c: New file.
40262         * lib/xasprintf.c: New file.
40263
40264 2004-09-08  Bruno Haible  <bruno@clisp.org>
40265
40266         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40267
40268 2004-09-08  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40271         length is > INT_MAX.
40272         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40273         more.
40274
40275 2004-09-08  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/stdint_.h: New file, taken from GNU clisp.
40278
40279 2004-09-08  Bruno Haible  <bruno@clisp.org>
40280             Oskar Liljeblad  <oskar@osk.mine.nu>
40281
40282         * modules/stdint: New file.
40283         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40284
40285 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40286
40287         Import from coreutils.
40288         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40289         strings on unbounded length.  alloca's performance benefits aren't
40290         that important here.
40291         (V_STRDUP): Remove.
40292         (parse_with_separator): New function, with most of the internals
40293         of the old parse_user_spec.  Allow user to omit both user and group,
40294         for compatibility with FreeBSD.
40295         Clone only the user name, not the entire spec.
40296         Do not set *uid, *gid unless entirely successful.
40297         Avoid memory leak in some failing cases.
40298         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40299         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40300         (parse_user_spec): Rewrite to use parse_with_separator.
40301
40302 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * modules/userspec: Don't depend on alloca.
40305
40306 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40307
40308         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40309
40310 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40311
40312         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40313         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40314         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40315
40316 2004-08-16  Simon Josefsson  <jas@extundo.com>
40317
40318         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40319         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40320         Add --dry-run for --import.
40321         Let user provided command line parameters override configure.ac
40322         settings.
40323
40324 2004-08-12  Simon Josefsson  <jas@extundo.com>
40325
40326         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40327         as discussed with Paul Eggert in threads rooted at
40328         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40329         and
40330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40331         Before, the test was empty, and relied on ELIDE_CODE in source
40332         code.)
40333         (gl_PREREQ_GETOPT): New macro.
40334         (gl_GETOPT): Use them.
40335
40336 2004-08-12  Simon Josefsson  <jas@extundo.com>
40337
40338         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40339         * lib/getopt_.h: Renamed from getopt.h.
40340
40341 2004-08-12  Simon Josefsson  <jas@extundo.com>
40342
40343         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40344         Change default library name from libfoo to libgnu.
40345         Now, if you have a configure.ac that says:
40346                 gl_SOURCE_BASE(gl)
40347                 gl_M4_BASE(gl/m4)
40348                 gl_MODULES(error getopt etcetera)
40349                 gl_INIT
40350         you can import all you need by running:
40351                 ../gnulib/gnulib-tool --import
40352
40353         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40354         (Makefile.am): Rewrite, use logic from argz.
40355         (Include): Use <getopt.h> instead of "getopt.h".
40356
40357 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40358
40359         * modules/argp (Files): Add m4/unlocked-io.m4.
40360         (Depends-on): Add extensions.
40361
40362 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40363
40364         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40365         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40366         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40367         Check for program_invocation_name, program_invocation_short_name,
40368         flockfile, funlockfile, features.h, _getopt_long_only_r.
40369
40370 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40371
40372         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40373         its complicated substitute.
40374         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40375         and program_invocation_name.
40376         (__argp_basename) [!_LIBC]: Remove; the only use was
40377         replaced by its body.
40378         (__argp_short_program_name): Change condition from
40379         !defined __argp_short_program_name to
40380         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40381         to match argp-namefrob.h.
40382         (__argp_failure): Don't assume strerror_r returns char *.
40383         * lib/argp-parse.c (N_): Define unconditionally.
40384         (argp_default_options): Fill out initializers with 0 to avoid
40385         gcc warnings.
40386
40387 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40388
40389         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40390         getopt1.c.
40391
40392 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40393
40394         Merge from coreutils.
40395
40396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40397
40398         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40399         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40400
40401 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         Merge from coreutils.
40404
40405         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40406         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40407         for Reliant Unix 5.43.
40408
40409         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40410         (union fooround): Use uintmax_t, not long int.
40411         The rest is a merge from libc:
40412         [defined _LIBC]: Include <shlib-compat.h>.
40413         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40414
40415         * lib/settime.c (settime): Recode to avoid warning with
40416         Sun Forte C 6U2.
40417
40418         * lib/strverscmp.c: Convert to UTF-8.
40419
40420 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40423         m4/uintmax_t.m4.
40424
40425 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40426
40427         * modules/xalloc-die: New file.
40428         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40429
40430         * modules/md5 (Files): Add m4/uint32_t.m4.
40431         * modules/sha1: Renamed from modules/sha.
40432         (Files):
40433         Rename lib/sha.h to lib/sha1.h.
40434         Rename lib/sha.c to lib/sha1.c.
40435         Rename m4/sha.m4 to m4/sha1.m4.
40436         (lib_SOURCES): Likewise.
40437         (configure.ac): Rename gl_SHA to gl_SHA1.
40438         (Include): sha.h -> sha1.h.
40439
40440 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40441
40442         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40443         * m4/sha1.m4: Renamed from sha.m4.
40444         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40445
40446 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40447
40448         * lib/obstack.h (obstack_empty_p):
40449         Don't assume that chunk->contents is suitably aligned.
40450         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40451         Likewise. Problem reported by Benno in
40452         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40453
40454         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40455         readable.  This could be improved further but it'd take some work.
40456
40457 2004-08-08  Simon Josefsson  <jas@extundo.com>
40458
40459         * modules/xgethostname (Depends-on): Remove exit and error (not
40460         used).
40461
40462         * modules/getpass-gnu: Add getpass.h.
40463         (Depends-on): Add stdbool.
40464         * modules/getpass: Add getpass.h.
40465
40466 2004-08-08  Simon Josefsson  <jas@extundo.com>
40467
40468         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40469         Check getpass declaration.
40470
40471 2004-08-08  Simon Josefsson  <jas@extundo.com>
40472
40473         * lib/xgethostname.c: Don't include error.h (not used).
40474
40475         * lib/getpass.h: Add.
40476         * lib/getpass.c: Include getpass.h first.
40477
40478 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40479
40480         * lib/xalloc-die.c: New file.
40481         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40482         All uses removed.
40483         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40484         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40485         xalloc-die.c.
40486         (_, N_, xalloc_die): Move to xalloc-die.c.
40487         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40488         so that we needn't mess with xalloc_msg_memory_exhausted.
40489
40490         * lib/sha1.h: Renamed from sha.h.
40491         (SHA1_H): Renamed from _SHA_H.
40492         (sha1_ctx): Renamed from sha_ctx.
40493         (sha1_init_ctx): Renamed from sha_init_ctx.
40494         (sha1_process_block): Renamed from sha_process_block.
40495         (sha1_process_bytes): Renamed from sha_process_bytes.
40496         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40497         (sha1_read_ctx): Renamed from sha_read_ctx.
40498         (sha1_stream): Renamed from sha_stream.
40499         (sha1_buffer): Renamed from sha_buffer.
40500         * lib/sha1.c: Likewise; renamed from sha.c.
40501         Do not include <sys/types.h>.
40502         Include <stddef.h> rather than <stdlib.h>.
40503
40504 2004-08-08  Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40507         FILESYSTEM_PREFIX_LEN.
40508         * lib/progreloc.c: Likewise.
40509         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40510
40511 2004-08-06  Simon Josefsson  <jas@extundo.com>
40512
40513         * modules/progname (Depends-on): Don't depend on stdbool.
40514
40515 2004-08-06  Simon Josefsson  <jas@extundo.com>
40516
40517         * modules/getsubopt: New file.
40518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40519         getsubopt.
40520
40521 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40522
40523         More merge from coreutils.
40524
40525         * m4/utimens.m4, m4/utimecmp.m4: New files.
40526         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40527         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40528         prereq.m4, sha.m4: Import changes from coreutils.
40529
40530 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40531
40532         More merge from coreutils.
40533         * modules/raise, modules/readtokens0, modules/utimens:
40534         * modules/utimecmp, module/xnanosleep: New files.
40535         * modules/strftime: Add lib/strftime.h.
40536         Change include from <time.h> to "strftime.h".
40537         * modules/yesno: Add lib/yesno.h.
40538         * modules/backupfile: Remove lib/addext.c.
40539         * modules/euidaccess: Add stat-macros.h.
40540         * modules/canonicalize, modules/euidaccess,
40541         modules/filemode, modules/lchown, modules/makepath,
40542         modules/rmdir, modules/stat: Likewise.
40543
40544 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40545
40546         Merge from tar.
40547         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40548         SIZE_MAX is a valid preprocessor constant.
40549         (__argp_basename): Change from "#ifndef _LIBC"
40550         to "#ifndef __argp_short_program_name", so that
40551         we don't compile these functions for tar.
40552
40553         More merges from coreutils.
40554         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40555         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40556         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40557         * lib/addext.c: Remove; no longer needed.
40558         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40559         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40560         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40561         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40562         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40563         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40564         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40565         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40566         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40567         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40568         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40569         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40570         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40571         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40572         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40573         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40574         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40575         Import changes from coreutils.
40576
40577 2004-08-05  Simon Josefsson  <jas@extundo.com>
40578
40579         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40580
40581 2004-08-05  Simon Josefsson  <jas@extundo.com>
40582
40583         * m4/getsubopt.m4: New file.
40584
40585 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40586
40587         Merge from coreutils.
40588
40589         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40590         * m4/getcwd-path-max.m4: New files.
40591
40592         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40593         FILESYSTEM_PREFIX_LEN ->
40594         FILE_SYSTEM_PREFIX_LEN.
40595         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40596         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40597         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40598         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40599
40600         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40601         prerequisite modules now handle the DOS stuff.
40602         Don't check for unistd.h.
40603
40604 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40605
40606         Merge from coreutils.
40607
40608         * lib/.gdb-history: Remove; this doesn't belong here.
40609
40610         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40611         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40612         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40613         * lib/getcwd.c: New files.
40614
40615         * lib/dirname.h: Include <stdbool.h>.
40616         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40617         for consistency with POSIX terminology.  All uses changed.
40618         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40619         (strip_trailing_slashes): Use bool for booleans.
40620         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40621
40622         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40623         sometimes returns a positive errno value even when it succeeds.
40624         (print_errno_message) [!LIBC]: Fall back on strerror if
40625         __strerror_r fails.
40626
40627         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40628         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40629         (longest_relative_suffix): New function.
40630         (path_concat): Use it.  Assume first argument is not NULL.
40631         Port to DOS.  Omit redundant separators.
40632         Report an error instead of returning NULL.
40633         Use mempcpy instead of memcpy.
40634         (xpath_concat): Remove: not declared or used.
40635
40636         * lib/same.h: Include <stdbool.h>
40637         (same_name): Return bool, not int.
40638         * lib/same.c (same_name): Likewise.
40639         (errno): Don't declare; we assume C89 or better now.
40640
40641         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40642         if not already defined.
40643
40644         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40645         * lib/dup-safer.c (errno): Likewise.
40646
40647 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40648
40649         Merge from coreutils.
40650         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40651         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40652         * modules/path-concat: Don't depend on strdup.
40653
40654 2004-08-03  Simon Josefsson  <jas@extundo.com>
40655
40656         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40657         * lib/progname.h: Don't include stdbool.h.
40658
40659 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40660
40661         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40662         * MODULES.html.sh (func_all_modules): Remove fatal.
40663
40664 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40665
40666         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40667
40668 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40669
40670         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40671         working.
40672
40673 2004-08-02  Simon Josefsson  <jas@extundo.com>
40674
40675         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40676         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40677         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40678
40679 2004-08-01  Simon Josefsson  <jas@extundo.com>
40680
40681         * lib/xgetdomainname.c: Include stdlib.h, for free().
40682
40683 2004-07-19  Bruno Haible  <bruno@clisp.org>
40684
40685         * MODULES.html.sh (func_all_modules): Add dummy.
40686
40687 2004-07-16  Simon Josefsson  <jas@extundo.com>
40688
40689         * modules/dummy: New file.
40690
40691 2004-07-16  Simon Josefsson  <jas@extundo.com>
40692
40693         * lib/dummy.c: New file.
40694
40695 2004-07-16  Bruno Haible  <bruno@clisp.org>
40696
40697         * lib/backupfile.h: Add extern "C" for C++.
40698         * lib/closeout.h: Likewise.
40699         * lib/copy-file.h: Likewise.
40700         * lib/findprog.h: Likewise.
40701         * lib/full-write.h: Likewise.
40702         * lib/pathname.h: Likewise.
40703         * lib/progname.h: Likewise.
40704         * lib/stpcpy.h: Likewise.
40705         * lib/stpncpy.h: Likewise.
40706         * lib/strcase.h: Likewise.
40707         * lib/strstr.h: Likewise.
40708         * lib/xalloc.h: Likewise.
40709
40710         * lib/mbswidth.h: Add extern "C" for C++.
40711         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40712
40713 2004-07-13  Robert Millan  <robertmh@gnu.org>
40714
40715         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40716
40717 2004-07-09  Simon Josefsson  <jas@extundo.com>
40718
40719         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40720         failed without this.)
40721
40722 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40723
40724         * modules/chown (Files): Add lib/fchown-stub.c, since
40725         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40726
40727 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40728
40729         * lib/fchown-stub.c: New file.
40730
40731 2004-06-24  Jim Meyering  <jim@meyering.net>
40732
40733         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40734
40735 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40736
40737         * modules/argz: Omit "#include".
40738
40739         * MODULES.html.sh (func_all_modules): Add calloc, to match
40740         2004-06-01 addition of calloc module.
40741
40742 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40743
40744         * m4/argz.m4: New file, which is autoupdated from libtool.
40745
40746 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40747
40748         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40749         libtool.
40750
40751 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40752
40753         * config/srclist-update: Don't insist on "USA." before the
40754         close-comment, as libtool omits the period and puts the */ on a
40755         separate line.
40756         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40757         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40758
40759 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40760
40761         * modules/argz: New file.
40762         * MODULES.html.sh (func_all_modules): Add argz.
40763
40764 2004-06-12  Jim Meyering  <jim@meyering.net>
40765         and  Paul Eggert  <eggert@cs.ucla.edu>
40766
40767         * modules/hash (Files): Add lib/xalloc.h.
40768         * modules/pipe (Depends-on): Add wait-process.
40769         * modules/stat (Depends-on): Add xalloc.
40770         * modules/userspec (Files): Add lib/userspec.h.
40771         * modules/xstrto
40772
40773         Upgrade from gettext-0.13.
40774         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40775         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40776         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40777
40778 2004-06-10  Jim Meyering  <jim@meyering.net>
40779
40780         * lib/calloc.c: New file.
40781
40782 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40783
40784         * lib/getdate.y (yylex): Allow space between sign and number.
40785         Problem reported by Dan Jacobson.
40786
40787 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40788
40789         Merge from coreutils CVS.
40790
40791         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40792         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40793         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40794         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40795         xstrtol.m4: Fix copyright date and/or serial number.
40796
40797         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40798         See if we need an fchown replacement.
40799         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40800         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40801         and use the replacement function if we detect either defect.
40802
40803         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40804         gl_UTIMECMP.
40805
40806 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40807         and  Jim Meyering  <jim@meyering.net>
40808
40809         Merge from coreutils CVS.
40810
40811         * lib/stat-macros.h: New file, with contents from file-type.h
40812         and coreutils' system.h.
40813         * lib/file-type.c: Include "stat-macros.h".
40814         * lib/file-type.h (file_type): Move all macro definitions to new file,
40815         stat-macros.h.
40816
40817         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40818         Wrap old code with this conditional.
40819         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40820         function that does not dereference symlinks.
40821         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40822
40823         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40824         dependency problems.
40825         (xreadlink): Accept new arg SIZE, for efficiency.
40826         All decls and uses changed.
40827         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40828
40829         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40830         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40831
40832         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40833         sysexits.h.
40834
40835 2004-06-01  Jim Meyering  <jim@meyering.net>
40836
40837         * m4/calloc.m4: New file.
40838
40839 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40840
40841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40842         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40843         Also, fix a typo in a diagnostic.
40844
40845 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40846
40847         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40848         or AC_FUNC_REALLOC.
40849
40850 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40851
40852         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40853         macros to be defined.
40854         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40855         the allocator returns NULL because the requested size is zero.
40856
40857 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40858
40859         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40860         var.  Add comment explaining why libc still defines it.  This
40861         merges the following patch from glibc:
40862         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40863
40864 2004-05-20  Andreas Schwab  <schwab@suse.de>
40865
40866         * m4/free.m4: Replace free if it not known to work, not the other
40867         way round.
40868
40869 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
40872         present in glibc since revision 1.1 of this file.
40873         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40874         obstack_alignment_mask, obstack_alloc, obstack_base,
40875         obstack_blank, obstack_blank_fast, obstack_chunk_size,
40876         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40877         obstack_grow0, obstack_init, obstack_int_grow,
40878         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40879         obstack_next_free, obstack_object_size, obstack_ptr_grow,
40880         obstack_ptr_grow_fast, obstack_room): Remove declarations of
40881         nonexistent functions.
40882
40883 2004-05-18  Karl Berry  <karl@gnu.org>
40884
40885         * config/srclist.txt: break link for vasnprintf.c.
40886
40887 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40888
40889         Port obstack to the AS/400, where pointers are 16 bytes wide and
40890         you cannot cast an integer to a valid pointer.  This patch is
40891         currently waiting to be integrated into glibc; see
40892         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40893
40894         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40895         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40896         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40897         (struct obstack): temp member is now a union of a pointer and
40898         an integer, instead of an integer.  All integer uses changed.
40899         This does not affect the physical layout of struct obstack,
40900         except on hosts (like the AS/400) where the size or alignment of
40901         void * is greater than that of ptrdiff_t.
40902         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40903         __STDC__)]: Store temporary in pointer member of union, not
40904         integer member.
40905         * lib/obstack.c: Include <stddef.h>, for offsetof.
40906         (struct fooalign): Remove; it doesn't need a name.
40907         (union fooround): Change double to long double, and add void *.
40908         (DEFAULT_ALIGNMENT): Use offsetof to compute.
40909         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40910         not a macro.  Hence the values are always int; so remove all
40911         casts-to-int in uses.
40912
40913 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40916         we can get this patch merged into glibc.
40917
40918 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40919             Paul Eggert  <eggert@cs.ucla.edu>
40920
40921         * m4/argp: Depend on alloca.
40922
40923 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40924             Paul Eggert  <eggert@cs.ucla.edu>
40925
40926         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40927         freecoding.
40928
40929 2004-05-17  Bruno Haible  <bruno@clisp.org>
40930
40931         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40932         precision that consists of a '.' followed by an empty digit string.
40933         Patch by Tor Lillqvist <tml@iki.fi>.
40934
40935 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40936
40937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40938         for backward compatibility with older code.  We need our own
40939         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
40940         it under some other name, and our alloca.h will define it.
40941
40942 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40943             Derek Price  <derek@ximbiot.com>
40944
40945         * lib/alloca.c: Include <alloca.h>, to get our interface.
40946         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40947         include <alloca.h> first.  Use C89 prototype for alloca; this
40948         requires including <stddef.h> for size_t.  Use extern "C" if C++.
40949         Use #elif for simplicity, since we can assume C89 now.
40950         Don't try to source the system alloca.h since it will not be found
40951         and to prevent recursively including its replacement.
40952         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40953         * lib/regex.c: Likewise.
40954
40955 2004-05-16  Derek Price  <derek@ximbiot.com>
40956             Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         getline cleanup.  This changes the getndelim2 API: both order of
40959         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40960         no delimiter).
40961
40962         * lib/getline.c: Don't include stddef.h or stdio.h, since our
40963         interface does that.
40964         (getline): Always use getdelim, so that we don't have two
40965         copies of this code.
40966         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40967         if available.
40968         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40969         (GETNDELIM2_MAXIMUM): New macro.
40970         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
40971         instead of the old practice of delim2==0.  All callers changed.
40972         Return -1 on overflow, instead of returning junk.
40973         Do not set *linesize unless allocation succeeds.
40974         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40975         that we include sys/types.h.
40976         * lib/getnline.h: Likewise.
40977         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40978         (getndelim2): Reorder arguments.
40979         * lib/getnline.c (getnline, getndelim):
40980         Don't discard the NMAX argument.
40981         (getnline): Invoke getndelim, to avoid code duplication.
40982         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40983         of (size_t) -1 by callers of the getnline family.
40984
40985 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40986
40987         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40988         Check for gettimeofday.
40989         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40990         Check for settimeofday, stime.
40991
40992 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40993
40994         * lib/nanosleep.c (suspended): Change its type from int to
40995         sig_atomic_t volatile.
40996         (first_call): Make it private to rpl_nanosleep, and have it
40997         be zero initially as that's a bit faster.
40998         (my_usleep): Round up fractional times instead of truncating them,
40999         as this is the usual meaning for 'sleep'.
41000
41001         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
41002         doesn't work.
41003         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
41004         (ENOSYS): Define if not defined.
41005         (settime): Fall back on stime if it exists and settimeofday fails.
41006         But don't bother with fallbacks if a method fails with errno == EPERM.
41007
41008 2004-05-11  Jim Meyering  <jim@meyering.net>
41009
41010         Prior to this change, the save_cwd caller required read access to the
41011         current directory on most systems (ones with the fchdir function).
41012
41013         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
41014         fails, try write-only, and finally, resort to using xgetcwd.
41015
41016 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41017
41018         * lib/obstack.c, obstack.h: Import changes from libc.
41019
41020 2004-04-28  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
41023         also implicitly appends .exe to executables.
41024         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
41025         accepts Windows pathnames.
41026         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41027         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41028         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41029         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41030         Reported by Derek Robert Price <derek@ximbiot.com>.
41031
41032 2004-04-21  Karl Berry  <karl@gnu.org>
41033
41034         * config/srclist.txt (localcharset.c): break sync.
41035
41036 2004-04-20  Paul Eggert  <eggert@twinsun.com>
41037
41038         * m4/host-os.m4: Add a copyright notice.
41039
41040 2004-04-20  Jim Meyering  <jim@meyering.net>
41041
41042         Change UTILS_ to gl_ in AC_DEFINE'd names.
41043         Change utils_- and jm_-prefixed variables, too.
41044         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
41045         UTILS_FUNC_MKDIR_TRAILING_SLASH.
41046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
41047
41048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
41049         Don't emit trailing blanks.
41050         Also rename jm_-prefixed variables to have gl_ prefix.
41051
41052         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
41053         Also rename jm_-prefixed variables to have gl_ prefix.
41054
41055         * m4/jm-macros.m4: Reflect the renamings.
41056         * m4/prereq.m4: Likewise.
41057
41058 2004-04-20  Jim Meyering  <jim@meyering.net>
41059
41060         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
41061         memory.
41062
41063 2004-04-20  Jim Meyering  <jim@meyering.net>
41064             Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
41067         memory when realloc fails.
41068
41069 2004-04-19  Jim Meyering  <jim@meyering.net>
41070
41071         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
41072         now that readutmp.c may call `free (0)'.
41073
41074 2004-04-19  Bruno Haible  <bruno@clisp.org>
41075
41076         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
41077         * m4/inttypes_h.m4: Likewise.
41078         * m4/stdint_h.m4: Likewise.
41079         * m4/intmax_t.m4: Likewise.
41080         * m4/uintmax_t.m4: Likewise.
41081
41082 2004-04-18  Jim Meyering  <jim@meyering.net>
41083
41084         * m4/prereq.m4: Don't forbid jm_ prefix.
41085
41086         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
41087         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
41088         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
41089         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
41090         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
41091         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
41092         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
41093         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
41094         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
41095         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
41096         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
41097         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
41098         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
41099         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
41100         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
41101         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
41102         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
41103         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
41104         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
41105
41106 2004-04-18  Jim Meyering  <jim@meyering.net>
41107
41108         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
41109         failure, don't leak memory and do call END_UTMP_ENT.
41110
41111 2004-04-16  Jim Meyering  <jim@meyering.net>
41112
41113         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
41114         coreutils' stat program.
41115         (gl_PREREQ): Don't require jm_PREREQ_STAT.
41116
41117 2004-04-11  Paul Eggert  <eggert@twinsun.com>
41118
41119         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
41120         C89.
41121         (CHAR_BIT): Remove, since we assume C89.
41122         Include <stdint.h> if available, as per current Autoconf CVS advice.
41123
41124 2004-03-31  Jim Meyering  <jim@meyering.net>
41125
41126         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
41127         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
41128         * m4/xalloc.m4: Likewise.
41129
41130 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41131
41132         Merge from coreutils.
41133
41134         * m4/inttostr.m4: New file.
41135         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
41136         Require AM_STDBOOL_H and gl_TIMESPEC instead.
41137         Require gl_CLOCK_TIME.
41138         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
41139
41140 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41141
41142         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
41143         not bool, to be more consistent with Unix conventions.
41144         Suggested by Bruno Haible.
41145
41146         Merge from coreutils.
41147
41148         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
41149         * lib/umaxtostr.c: New files.
41150
41151         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41152         the usual <time.h> dance.
41153         (get_date): Change signature to support fractional time stamps.
41154         All callers changed.
41155         * lib/getdate.y: Include "getdate.h" first, as we can now
41156         assume C89 and don't need to worry about 'const'.
41157         Similarly, include "unlocked-io.h" near start, not in middle.
41158         Include <limits.h>.
41159         (textint.value): Use long int rather than int.
41160         (textint.digits): Use size_t rather than int.
41161         (BILLION, LOG10_BILLION): New constants.
41162         (parser_control): New member rel_ns.  Members day_ordinal,
41163         time_zone, month, day, hour, minutes, rel_year, rel_month,
41164         rel_day, rel_hour, rel_minutes, rel_seconds
41165         are now long int, not int.  Member seconds is now struct timespec,
41166         not int.  New member timespec_seen.  Members dates_seen, days_seen,
41167         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41168         not int.
41169         (%union.intval): Now long int, not int.
41170         New member timespec.
41171         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41172         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41173         (spec): Now is a timespec or an item list.
41174         (timespec, items): New nonterminals.
41175         (time, rel, relunit, number, get_date):
41176         Add support for fractional seconds.
41177         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41178         (gmtime, localtime, mktime): Remove decls; not needed with C89.
41179         (to_hour): First arg is now long int, not int.
41180         (to_year): Returns long int, not int.
41181         Don't treat year -70 like 70.
41182         (tm_diff): Returns long int, not int.
41183         (lookup_word): Use bool instead of int when appropriate.
41184         (yylex): Use size_t for count, not int.
41185         Detect overflow when parsing large integer constants.
41186         Add support for fractions.
41187         (get_date): Make pointers 'const' if possible.
41188         Use more-portable code to detect integer overflow.
41189         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
41190         Don't use ctime; it's not reliable if the year has >4 digits.
41191
41192         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41193         This is for compatibility with BSD.
41194
41195         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41196         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41197         From coreutils' system.h.
41198
41199         * lib/userspec.c: Don't include "posixver.h".
41200         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41201         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41202         compatible extension.  Simplify code by removing a boolean int
41203         that was always nonzero if a string was nonnull.
41204
41205 2004-03-30  Jim Meyering  <jim@meyering.net>
41206
41207         Merge from coreutils.
41208
41209         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41210         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41211         on some systems one must include <grp.h> before it.
41212         Reported by Christian Krackowizer.
41213
41214 2004-03-30  Jim Meyering  <jim@meyering.net>
41215
41216         Merge from coreutils.
41217
41218         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41219
41220         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41221         an empty input stream.
41222
41223         * lib/readtokens.c: Include <stdbool.h>.
41224         (readtoken): Use `size_t' rather than int/long.
41225         All callers adjusted.
41226         Use `bool' rather than `int' where appropriate.
41227         Use memset rather than an explicit loop.
41228         Use x2nrealloc rather than xrealloc.
41229         Allow the use of `\0' as a delimiter.
41230         (readtokens): Likewise.
41231         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41232
41233 2004-03-30  Jim Meyering  <jim@meyering.net>
41234
41235         * m4/realloc.m4: Remove file, since now it does no more than
41236         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41237         the `configure.ac' section of module/realloc.
41238         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41239
41240 2004-03-30  Bruno Haible  <bruno@clisp.org>
41241
41242         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41243         nonnull.
41244
41245 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41246
41247         Merge changes to getloadavg.c from coreutils and Emacs.
41248
41249         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41250         Define to an expression, not to the empty string.
41251         Include cloexec.h and xalloc.h.
41252         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41253         Use set_cloexec_flag rather than rolling our own.
41254         * lib/cloexec.c, lib/cloexec.h: New files.
41255
41256 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41257
41258         * m4/cloexec.m4: New file.
41259
41260 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41261
41262         * lib/getopt.h: Sync with libc CVS.
41263
41264 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41265             Bruno Haible  <bruno@clisp.org>
41266
41267         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41268         mbswidth.
41269
41270 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41271             Bruno Haible  <bruno@clisp.org>
41272
41273         * lib/mbswidth.h: Include <wchar.h> only if
41274         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41275         <wchar.h>.
41276         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41277
41278 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41279
41280         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41281         Sync with libc CVS.
41282         * lib/getopt_int.h: New file, also synced from libc.
41283
41284 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41285
41286         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41287         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41288         Bring back getopt.c, getopt.h, getopt1.c.
41289
41290 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41291
41292         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41293         All uses changed.  Check for sa_sigaction member; this fixes
41294         a bug first reported by Jason Andrade in
41295         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41296
41297 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41298
41299         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41300         '#if' expressions.  Unlike the code it replaces, it does not
41301         depend on (defined _SC_PAGESIZE).  However, it does depend on
41302         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41303         first reported by Jason Andrade in
41304         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41305
41306 2004-02-25  Simon Josefsson  <jas@extundo.com>
41307
41308         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41309
41310 2004-02-25  Simon Josefsson  <jas@extundo.com>
41311
41312         * lib/strdup.h: New file.
41313         * lib/strdup.c: Include it.
41314         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41315         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41316
41317 2004-02-23  Karl Berry  <karl@gnu.org>
41318
41319         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41320         (from fencepost.gnu.org:/gd/gnuorg).
41321
41322 2004-02-23  Karl Berry  <karl@gnu.org>
41323
41324         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41325         * config/srclist.txt: add maintain/standards documents.
41326
41327 2004-02-18  Bruno Haible  <bruno@clisp.org>
41328
41329         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41330         Reported by Derek Robert Price <derek@ximbiot.com>.
41331
41332 2004-02-16  Karl Berry  <karl@gnu.org>
41333
41334         * config/mkinstalldirs, install-sh: update from automake.
41335
41336 2004-02-06  Karl Berry  <karl@gnu.org>
41337
41338         * m4/po.m4: update from gettext 0.14.1.
41339
41340 2004-02-06  Karl Berry  <karl@gnu.org>
41341
41342         * lib/config.charset: update from gettext 0.14.1.
41343
41344 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41345
41346         Add comments and code, prompted by suggestions from Bruno Haible
41347         for sh-quote.
41348         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41349         describing the enum quoting_style values.
41350         * lib/quotearg.c (quotearg_alloc): New function.
41351         (quotearg_buffer_restyled): Treat lone { and } as special.
41352         Treat = as special.  Work around bug with older shells
41353         that "see" a '\' that is really the 2nd byte of a multibyte char.
41354         Quote empty string with shell_quoting_style.
41355
41356 2004-02-03  Bruno Haible  <bruno@clisp.org>
41357
41358         * m4/pipe.m4: New file, from GNU gettext.
41359
41360 2004-02-03  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/pipe.h: New file, from GNU gettext.
41363         * lib/pipe.c: New file, from GNU gettext.
41364
41365 2004-01-27  Bruno Haible  <bruno@clisp.org>
41366
41367         * m4/execute.m4: New file, from GNU gettext.
41368
41369 2004-01-27  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/execute.h: New file, from GNU gettext.
41372         * lib/execute.c: New file, from GNU gettext.
41373         * lib/w32spawn.h: New file, from GNU gettext.
41374
41375 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41376
41377         Merge from diffutils.
41378
41379         * lib/file-type.c (file_type): Add typed memory objects.
41380         * lib/file-type.h (S_TYPEISTMO): New macro.
41381
41382         * lib/c-stack.h (c_stack_action): Remove argv argument.
41383         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41384         (die): Don't calculate message unless segv_action returns.
41385         (get_stack_location, min_address_from_argv, max_address_from_argv,
41386         volatile stack_base, volatile_stack_size): Remove.
41387         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41388         that every segmentation violation is a stack overflow.  (Ouch!)
41389         See Debian bug 136249 (still outstanding) for more info about why
41390         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41391
41392 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41393
41394         Exit-status fix from coreutils.
41395
41396         Use exit_failure consistently in place of EXIT_FAILURE,
41397         so that program exit statuses are consistent on failure.
41398
41399         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41400         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41401         * lib/argmatch.h: Comment fix to match the above.
41402         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41403         Now a macro referring to exit_failure, instead of a separate
41404         variable.  Include "exitfail.h" to get it.
41405         * lib/xstrtol.h: Include "exitfail.h".
41406         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41407
41408         * lib/long-options.c (parse_long_options): Use prototype
41409         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41410         for clarity.
41411
41412 2004-01-21  Jim Meyering  <jim@meyering.net>
41413
41414         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41415         so as not to conflict with a different-sized __mktime_internal
41416         function in GNU libc.
41417         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41418         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41419
41420 2004-01-20  Karl Berry  <karl@gnu.org>
41421
41422         * config/config.guess: update from config.
41423
41424         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41425
41426 2004-01-20  Bruno Haible  <bruno@clisp.org>
41427
41428         Safer stack allocation.
41429         * lib/setenv.c: Include allocsa.h.
41430         (alloca): Remove fallback definition.
41431         (freea): Remove macro.
41432         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41433         instead of freea.
41434
41435 2004-01-20  Bruno Haible  <bruno@clisp.org>
41436
41437         * m4/eealloc.m4: New file, from GNU gettext.
41438
41439 2004-01-20  Bruno Haible  <bruno@clisp.org>
41440
41441         * m4/allocsa.m4: New file, from GNU gettext.
41442
41443 2004-01-20  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/xallocsa.h: New file, from GNU gettext.
41446         * lib/xallocsa.c: New file, from GNU gettext.
41447
41448 2004-01-20  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41451
41452 2004-01-20  Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41455         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41456         specially.
41457
41458 2004-01-20  Bruno Haible  <bruno@clisp.org>
41459
41460         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41461         patch.
41462
41463 2004-01-20  Bruno Haible  <bruno@clisp.org>
41464
41465         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41466
41467 2004-01-20  Bruno Haible  <bruno@clisp.org>
41468
41469         * lib/eealloc.h: New file.
41470
41471 2004-01-20  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/binary-io.h: Avoid warnings on Cygwin.
41474
41475 2004-01-20  Bruno Haible  <bruno@clisp.org>
41476
41477         * lib/allocsa.h: New file, from GNU gettext.
41478         * lib/allocsa.c: New file, from GNU gettext.
41479
41480 2004-01-18  Karl Berry  <karl@gnu.org>
41481
41482         * doc/gpl.texi, doc/lgpl.texi: new files.
41483
41484 2004-01-18  Karl Berry  <karl@gnu.org>
41485
41486         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41487         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41488
41489 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41490
41491         Merge from coreutils.
41492
41493         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41494         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41495         (gl_DEFAULT_POSIX2_VERSION): Move
41496         the documentation from 'configure' into 'config.hin',
41497         so that 'configure --help' isn't burdened by it and
41498         we don't have to worry about its formatting there.
41499         Reword the documentation so that it's more succinct
41500         and can be run together into a single paragraph.
41501         * m4/same.m4 (gl_SAME): Check for pathconf.
41502
41503 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41504
41505         Merge from coreutils.
41506
41507         * lib/posixver.c: Include posixver.h.
41508
41509         * lib/same.c: Include <stdbool.h>, <limits.h>.
41510         (_POSIX_NAME_MAX): Define if not defined.
41511         (MIN): New macro.
41512         (same_name): If file names are silently truncated, report
41513         that the file names are the same if they are the same after
41514         the silent truncation.
41515
41516         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41517         conversion function.
41518         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41519         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41520         longer needed.
41521
41522 2004-01-15  Jim Meyering  <jim@meyering.net>
41523
41524         Merge from coreutils.
41525
41526         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41527         if no library is required.
41528         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41529         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41530         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41531         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41532         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41533         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41534         value, $ac_cv_search_crypt, if it's "none required".
41535         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41536         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41537         not gl_FUNC_GETLOADAVG.
41538         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41539         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41540
41541 2004-01-15  Jim Meyering  <jim@meyering.net>
41542
41543         Merge from coreutils.
41544
41545         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41546         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41547         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41548
41549         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41550         optional configure-time default.
41551
41552         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41553
41554         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41555
41556 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41557
41558         Merge from coreutils.
41559
41560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41561         value, $ac_cv_search_nanosleep, if it's "none required".
41562
41563 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41564
41565         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41566         with like-named macro in fnmatch.c.
41567         (EXT): Use an internal constant instead.
41568
41569         Merge fnmatch patches from glibc.
41570         * lib/fnmatch.c (mbsinit): Remove define.
41571         Add libc_hidden_ver (__fnmatch, fnmatch).
41572         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41573         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41574
41575 2004-01-14  Karl Berry  <karl@gnu.org>
41576
41577         * config/install-sh: update from automake.
41578
41579 2004-01-13  Karl Berry  <karl@gnu.org>
41580
41581         * config/install-sh: update from automake.
41582
41583 2004-01-09  Karl Berry  <karl@gnu.org>
41584
41585         * config/install-sh: update from automake.
41586
41587 2004-01-05  Karl Berry  <karl@gnu.org>
41588
41589         * config/config.{sub,guess}: update from config.
41590
41591 2003-12-31  Karl Berry  <karl@gnu.org>
41592
41593         * config/depcomp: update from automake.
41594
41595 2003-12-14  Karl Berry  <karl@gnu.org>
41596
41597         * lib/config.charset: update from gettext-runtime.
41598
41599 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41600
41601         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41602         Bug reported by Alfred M. Szmidt.
41603
41604 2003-12-03  Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/gettext.m4: Upgrade from gettext-0.13.
41607         * m4/po.m4: Upgrade from gettext-0.13.
41608         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41609         * m4/intmax.m4: New file, from gettext-0.13.
41610         * m4/printf-posix.m4: New file, from gettext-0.13.
41611
41612 2003-11-29  Karl Berry  <karl@gnu.org>
41613
41614         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41615
41616 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41617             Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/printf-parse.h: Don't include sys/types.h.
41620         (ARG_NONE): New macro.
41621         (char_directive): Change type of *arg_index fields to size_t.
41622         * lib/printf-parse.c: Don't include sys/types.h.
41623         (SSIZE_MAX): Remove macro.
41624         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41625         Remove unnecessary overflow check.
41626         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41627         fields.
41628
41629 2003-11-25  Bruno Haible  <bruno@clisp.org>
41630
41631         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41632
41633 2003-11-25  Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41636         gt_TYPE_SSIZE_T.
41637
41638 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41639
41640         * modules/alloca: Remove dependency on xalloc.
41641
41642 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41643
41644         * lib/alloca.c: Remove dependency on xalloc module.
41645         (xalloc_die): Remove.
41646         (memory_full) [!defined emacs]: New macro.
41647         [!defined emacs]: Don't include xalloc.h.
41648         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41649         address arithmetic overflows.  Change datatypes a bit to avoid
41650         unnecessary casts.
41651
41652 2003-11-22  Jim Meyering  <jim@meyering.net>
41653
41654         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41655         s/size/size_t/.
41656
41657 2003-11-21  Karl Berry  <karl@gnu.org>
41658
41659         * config/config.{sub,guess}: update from config.
41660
41661 2003-11-18  Karl Berry  <karl@gnu.org>
41662
41663         * config/config.{sub,guess}: update from config.
41664
41665         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41666
41667 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41668
41669         * README: Mention that S+T cannot overflow if S is the size of
41670         an existing object and T is sufficiently small.
41671
41672 2003-11-17  Jim Meyering  <jim@meyering.net>
41673
41674         On systems without utime and without a utimes function capable of
41675         dealing with a NULL struct utimbuf* argument, this utime replacement
41676         could -- in unusual circumstances -- leak a file descriptor.
41677         * lib/utime.c: Include <unistd.h> and <errno.h>.
41678         (utime_null): Be sure to close `fd' and to preserve errno.
41679         Reported by Geoff Collyer via Arnold Robbins.
41680
41681 2003-11-17  Bruno Haible  <bruno@clisp.org>
41682
41683         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41684         (Depends-on): Add xsize.
41685
41686 2003-11-17  Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41689
41690 2003-11-17  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/vasnprintf.c (alloca): Remove fallback definition.
41693         (freea): Remove definition.
41694         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41695         Reported by Paul Eggert.
41696
41697 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41698             Bruno Haible  <bruno@clisp.org>
41699
41700         Protect against address arithmetic overflow.
41701         * lib/printf-args.h: Include stddef.h.
41702         (arguments): Change type of field 'count' to size_t.
41703         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41704         'unsigned int' where appropriate.
41705         * lib/printf-parse.h: Include sys/types.h.
41706         (char_directive): Change type of *arg_index fields to ssize_t.
41707         (char_directives): Change type of fields 'count', max_*_length to
41708         size_t.
41709         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41710         (SSIZE_MAX): Define fallback value.
41711         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41712         instead of 'int' where appropriate. Check a_allocated, d_allocated
41713         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41714         * lib/vasnprintf.c: Include xsize.h.
41715         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41716         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41717         overflow. Avoid wraparound when converting a width or precision from
41718         decimal to binary.
41719
41720 2003-11-16  Bruno Haible  <bruno@clisp.org>
41721
41722         Update from GNU gettext.
41723         * lib/printf-parse.c: Generalize to it can be compiled for wide
41724         strings.
41725         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41726         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41727         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41728         SNPRINTF): New macros.
41729         Don't include <alloca.h> if the file is used inside libintl.
41730         (local_wcslen): New function, for Solaris 2.5.1.
41731         (VASNPRINTF): Use it instead of wcslen.
41732
41733 2003-11-16  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/xsize.h (xmax): New function.
41736         (xsum, xsum3, xsum4): Declare as "pure" functions.
41737
41738 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41739
41740         * modules/xalloc (Files): Undo latest change, since xalloc.h
41741         no longer needs SIZE_MAX or PTRDIFF_MAX.
41742
41743 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41744
41745         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41746         gl_PTRDIFF_MAX.
41747
41748 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41749
41750         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41751         "return", to pacify some unknown compiler.  Problem reported
41752         by Joerg Schilling.
41753
41754 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41755
41756         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41757         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41758         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41759         heuristic is just as accurate as far as we know, and it removes a
41760         dependency on size_max.m4 and ptrdiff_max.m4.
41761
41762 2003-11-11  Bruno Haible  <bruno@clisp.org>
41763
41764         * modules/xsize (Files): Add m4/size_max.m4.
41765         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41766
41767 2003-11-11  Bruno Haible  <bruno@clisp.org>
41768
41769         * m4/size_max.m4: New file.
41770         * m4/ptrdiff_max.m4: New file.
41771         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41772         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41773         (gl_XALLOC): Invoke it.
41774
41775 2003-11-11  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41778         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41779         defined.
41780
41781 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41782
41783         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41784         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41785         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41786         From Bruno Haible.
41787         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41788         not (size_t) -1, since it's defined here.
41789
41790 2003-11-09  Karl Berry  <karl@gnu.org>
41791
41792         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41793
41794 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41795
41796         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41797         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41798         Reject sizes of exactly SIZE_MAX bytes.
41799         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41800         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41801
41802 2003-11-05  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41805         SIZE_MAX defined in <limits.h> on Solaris.
41806
41807 2003-11-04  Jim Meyering  <jim@meyering.net>
41808
41809         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41810         variable names, rather than @VAR@.
41811         * modules/poll: Likewise.
41812
41813 2003-11-04  Bruno Haible  <bruno@clisp.org>
41814
41815         * modules/xsize: New file.
41816         * modules/linebreak: Depend on xsize.
41817         * MODULES.html.sh (func_all_modules): Add xsize.
41818
41819 2003-11-04  Bruno Haible  <bruno@clisp.org>
41820
41821         * m4/xsize.m4: New file.
41822
41823 2003-11-04  Bruno Haible  <bruno@clisp.org>
41824
41825         * lib/xsize.h: New file.
41826         * lib/linebreak.c: Include xsize.h.
41827         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41828         argument for overflow.
41829         Suggested by Paul Eggert.
41830
41831 2003-11-03  Karl Berry  <karl@gnu.org>
41832
41833         * config/config.{guess,sub}: update from config.
41834
41835 2003-11-03  Jim Meyering  <jim@meyering.net>
41836
41837         * modules/userspec (lib_SOURCES): Add userspec.h.
41838         (Include): Add "userspec.h".
41839         Improve description.
41840
41841 2003-11-03  Jim Meyering  <jim@meyering.net>
41842
41843         * lib/userspec.c: Include "userspec.h".
41844         * lib/userspec.h: New file.
41845
41846 2003-11-03  Bruno Haible  <bruno@clisp.org>
41847
41848         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41849
41850 2003-11-03  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41853         available, to avoid (extremely rare) race condition.
41854         Suggested by Paul Eggert.
41855
41856 2003-11-02  Karl Berry  <karl@gnu.org>
41857
41858         * config/srclist.txt (vasprintf.c): sync broken, sigh.
41859
41860 2003-10-31  Paul Eggert  <eggert@twinsun.com>
41861
41862         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41863         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41864         (read_filesystem_list): Set and use me_type_malloced.
41865         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41866         whatever the type happens to be), for brevity and consistency.
41867         Check for size calculation overflow on Alphas running OSF/1.
41868
41869 2003-10-31  Jim Meyering  <jim@meyering.net>
41870
41871         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41872
41873         * lib/linebuffer.c: Include <string.h> for declaration of memset.
41874
41875 2003-10-30  Paul Eggert  <eggert@twinsun.com>
41876             Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41879         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41880
41881 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41882
41883         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41884         netbsd*-gnu*.  Suggested by Robert Millan.
41885
41886 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41887
41888         * modules/group-member: Depend on stdbool.
41889
41890 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41891
41892         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41893
41894 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41895
41896         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
41897         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
41898         after the 'gnu' in these cases.  This fixes some bugs in the
41899         previous change, and is based on suggestions by Robert Millan.
41900
41901 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41902
41903         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41904         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
41905         no longer needed.
41906         * lib/quotearg.c (quotearg_n_options): Use it.
41907         * lib/group-member.c: Include <stdbool.h>.
41908         (free_group_info): Arg is now const *; don't free arg.
41909         (get_group_info): Now returns bool and accepts struct group_info *,
41910         rather than returning a malloc'ed struct group_info *.
41911         All uses changed.  Check for overflow in internal size calculation.
41912
41913         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41914         rather than xmalloc/xrealloc.
41915         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41916         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
41917         conformance bug: the old code used a pointer after freeing the
41918         storage that it addressed.
41919         * lib/hash.c (hash_initialize): Simplify the code by using
41920         xalloc_oversized rather than doing it by hand.
41921         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41922         the buffer preserved.  Use free and xmalloc instead.
41923         * lib/quotearg.c (quotearg_n_options): Likewise.
41924         Use a simpler test for size overflow.  Don't use xalloc_oversized
41925         because unsigned int might be wider than size_t (!); this suggests
41926         that we should switch from unsigned int to size_t for slot numbers.
41927
41928 2003-10-28  Paul Eggert  <eggert@twinsun.com>
41929
41930         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41931         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
41932         NetBSD kernels.  Requested by Richard Stallman.
41933
41934 2003-10-27  Paul Eggert  <eggert@twinsun.com>
41935
41936         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41937         to allocate the returned structure.  Do not allocate a subarray,
41938         as x2nrealloc will do that.
41939         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41940         instead of xnrealloc.
41941         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41942
41943 2003-10-27  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/stdbool_.h: Better support for BeOS.
41946
41947 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41948
41949         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41950         now uses inline.
41951
41952 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41953
41954         * lib/xalloc.h (xalloc_oversized): New static inline function, for
41955         callers that want to do their own size-overflow checking.  Include
41956         <stdbool.h>, since xalloc_oversized returns bool.
41957         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
41958         to use xalloc_oversized.
41959
41960         Add two functions x2realloc, x2nrealloc, for programs that grow
41961         arrays dynamically by doubling their sizes.
41962         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41963         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41964         New functions.
41965
41966         Port to C99 semantics for 'inline' of external functions.
41967         Bug reported by Bruno Haible.
41968         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41969         with the old contents of xnmalloc.
41970         (xnmalloc, xmalloc): Use it.
41971         (xnrealloc_inline): New static inline function,
41972         with the old contents of xnrealloc.
41973         (xnrealloc, xrealloc): Use it.
41974
41975         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41976         that.
41977
41978 2003-10-26  Karl Berry  <karl@gnu.org>
41979
41980         * config/srclist.txt (COPYING.DOC): no longer available from
41981         /gd/gnuorg; don't know where the ultimate source is.
41982
41983 2003-10-25  Paul Eggert  <eggert@twinsun.com>
41984
41985         Fix several address-calculation bugs in the hash modules,
41986         plus some minor code cleanup.
41987
41988         * lib/hash.h: Include <stdbool.h>, for bool.
41989         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41990         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41991         hash_get_n_entries, hash_get_max_bucket_length,
41992         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41993         hash_rehash): Use size_t rather than unsigned.
41994         * lib/hash.c (struct hash_table, hash_get_n_buckets,
41995         hash_get_n_buckets_used, hash_get_n_entries,
41996         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41997         hash_get_entries, hash_do_for_each, hash_string, is_prime,
41998         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41999         Likewise.
42000         (SIZE_MAX): Define if not defined.
42001         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
42002         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
42003         hash_print):
42004         Use const * when possible.
42005         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
42006         (check_tuning): Fix bug: if tuning parameters were very close to
42007         0 or 1, rounding errors could have caused subscript violations.
42008         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
42009         (hash_initialize): Add 'fail:' label
42010         to free table and return NULL, and use it to simplify code.
42011         Use calloc rather than clearing the storage ourself.
42012         (hash_initialize, hash_rehash): Check for arithmetic overflow in
42013         buffer size calculations.
42014         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
42015         Include <stddef.h>, for size_t.
42016         * lib/hash-pjw.c (hash_pjw): Likewise.
42017         Switch to method described by Bruno Haible.
42018         Include <limits.h>, for CHAR_BIT.
42019         (SIZE_BITS): New macro.
42020
42021 2003-10-23  Paul Eggert  <eggert@twinsun.com>
42022
42023         * m4/getline.m4 (AM_FUNC_GETLINE):
42024         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
42025         hosts.  Problem reported by Derek Robert Price in
42026         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
42027         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
42028         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
42029
42030 2003-10-21  Paul Eggert  <eggert@twinsun.com>
42031
42032         * lib/getndelim2.c (getndelim2): When size calculation overflows,
42033         ceiling the allocation at NMAX bytes rather than silently
42034         discarding input bytes before NMAX is reached.  This makes
42035         a difference only if NMAX exceeds SIZE_MAX / 2.
42036
42037         * lib/obstack.c: Merge from glibc.
42038         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
42039         Add libc_hidden_def (_obstack_newchunk).
42040         (_obstack_free) [! defined _LIBC]: Remove.
42041         [defined _LIBC]: Make a strong alias from obstack_free, rather than
42042         a clone of the function body.
42043         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
42044         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
42045
42046         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
42047         glibc.
42048         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
42049         arg to memcpy.
42050
42051         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
42052         (obstack_ptr_grow_fast, obstack_int_grow_fast):
42053         Don't use lvalue casts, as GCC plans to remove support for them
42054         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
42055         was also present in the non-GCC version, indicating that this
42056         code had always been buggy and had never been widely used.
42057         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
42058         Use the fast variant of each macro, rather than copying the
42059         definiens of the fast variant; that way, we'll be more likely to
42060         catch future bugs in the fast variants.
42061
42062 2003-10-20  Bruno Haible  <bruno@clisp.org>
42063
42064         * modules/wait-process: New file.
42065         * MODULES.html.sh (func_all_modules): Add wait-process.
42066
42067 2003-10-20  Bruno Haible  <bruno@clisp.org>
42068
42069         * m4/wait-process.m4: New file.
42070
42071 2003-10-20  Bruno Haible  <bruno@clisp.org>
42072
42073         * lib/wait-process.h: New file, from GNU gettext.
42074         * lib/wait-process.c: New file, from GNU gettext.
42075
42076 2003-10-19  Jim Meyering  <jim@meyering.net>
42077
42078         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
42079         HPUX 10.20.
42080
42081 2003-10-18  Karl Berry  <karl@gnu.org>
42082
42083         * config/config.guess: update from config.
42084
42085 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42086
42087         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
42088         (getgroups): First arg is int, not size_t.
42089         Don't let 'free' mangle errno.
42090
42091 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42092
42093         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
42094
42095 2003-10-16  Karl Berry  <karl@gnu.org>
42096
42097         * config/config.{guess,sub}: update from config.
42098
42099 2003-10-16  Jim Meyering  <jim@meyering.net>
42100
42101         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
42102         memcpy.
42103
42104 2003-10-15  Paul Eggert  <eggert@twinsun.com>
42105
42106         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
42107         (SIZE_MAX): Remove.
42108         (new_exclude, add_exclude_file): Initial size no longer needs to
42109         be a power of 2.
42110         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
42111         our own address arithmetic overflow checking.
42112
42113         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
42114         (fnmatch): Do not alloca more than 2000 wide characters;
42115         instead, use malloc for large buffers.
42116         Check for address arithmetic overflow, and return -1
42117         with errno set to ENOMEM in that case.
42118         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
42119         (NEW_PATTERN): Do not alloca more than 8000 bytes;
42120         instead, return -1.  Check for address arithmetic overflow.
42121
42122 2003-10-14  Paul Eggert  <eggert@twinsun.com>
42123
42124         Handle invalid suffixes and overflow independently, so that
42125         callers can treat them independently as needed.  Fix some bugs in
42126         suffix handling, e.g., "100k@" was not diagnosed as an invalid
42127         suffix for a human-readable blocksize.  The major caller-visible
42128         change is the addition of a new
42129         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
42130         that both overflow and suffix chars were found.
42131
42132         * lib/human.c (humblock): Don't check separately for invalid suffix
42133         char; that is xstrtoumax's job (now that its bug is fixed).
42134         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
42135         INTMAX_MAX]: New macros.
42136         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
42137         TYPE_MAXIMUM): New macros.
42138         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
42139         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
42140         if overflow occurs, as it's what __strtol does and it's more useful
42141         in practice.
42142         (__xstrtol): If __strtol reports some error other than ERANGE,
42143         reflect it to the caller as LONGINT_INVALID.  If it reports
42144         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
42145         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
42146         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
42147         value.
42148         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
42149         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42150         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42151         [defined UINTMAX_MAX]: New macros.
42152
42153 2003-10-14  Bruno Haible  <bruno@clisp.org>
42154
42155         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42156
42157 2003-10-14  Bruno Haible  <bruno@clisp.org>
42158
42159         * m4/sig_atomic_t: New file, from GNU gettext.
42160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42161
42162 2003-10-14  Bruno Haible  <bruno@clisp.org>
42163
42164         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42165         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42166         Also use volatile where needed.
42167
42168 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42169
42170         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
42171         Change maintainer from Bruno Haible to 'all'.
42172
42173 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42174
42175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42176
42177 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42178
42179         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42180         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42181         and define in terms of the other primitives.
42182         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42183         (SIZE_MAX): Define if not already defined.
42184         (array_size_overflow): New function.
42185         (xalloc_die): Abort instead of exiting if 'error' returns.
42186         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42187         (xmalloc, xrealloc): Use them.
42188         (xcalloc): Check for address arithmetic overflow.
42189         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42190         a bit faster than strcpy.
42191
42192 2003-10-10  Simon Josefsson  <jas@extundo.com>
42193
42194         * modules/argp (Depends-on): Add restrict and strcase.
42195
42196 2003-10-10  Simon Josefsson  <jas@extundo.com>
42197
42198         * m4/argp.m4: Add AC_C_INLINE.
42199
42200 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42201
42202         Merge getpass from libc, plus a few fixes.
42203
42204         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42205         Include <stdbool.h>.
42206         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42207         __fsetlocking to empty.
42208         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42209         do include <bits/libc-lock.h>.
42210         Do not include <fcntl.h>; not needed.
42211         [_LIBC]: Include <wchar.h>.
42212         (NOTCANCEL_MODE): New macro.
42213         (flockfile, funlockfile) [_LIBC]: New macros.
42214         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42215         [!_LIBC]: New macros.
42216         (call_fclose): New function.
42217         (getpass): Use it.  Save tty stream separately; this simplifies the
42218         code and makes it more reliable if stdin happens to equal stdout.
42219         Invoke __fsetlocking on tty.
42220         Handle thread cancellation if needed.
42221         Namespace cleanup (use __tcgetattr, __getline).
42222         Use bool for Booleans.
42223         [USE_IN_LIBIO]: Handle wide streams.
42224         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42225         stream might go where.
42226
42227         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42228         doesn't have to include <stdio.h> before us.
42229         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42230         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42231         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42232         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42233         if not declared, so that we can use getpass.c code from libc without
42234         rewriting it.
42235         (flockfile, ftrylockfile, funlockfile): New macros.
42236
42237 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42238
42239         * modules/getpass: Depend on stdbool.
42240
42241 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42242
42243         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42244
42245 2003-10-07  Karl Berry  <karl@gnu.org>
42246
42247         * config/config.{guess,sub}: update from config.
42248
42249 2003-10-06  Jim Meyering  <jim@meyering.net>
42250             Bruno Haible  <bruno@clisp.org>
42251
42252         This lets translators provide better translations for the
42253         "Written by ..." part of --version output.
42254         * lib/version-etc.h: Include stdarg.h.
42255         (version_etc_copyright): Declare as readonly.
42256         (version_etc): Make this function variadic with a NULL-terminated list
42257         of author name strings.
42258         (version_etc_va): New declaration.
42259         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42260         (version_etc_copyright): Declare as readonly.
42261         (version_etc_va): New function. Provide a different translatable string
42262         for each possible number of authors < 10. Abbreviate when there are 10
42263         authors or more.
42264         (version_etc): Make this function variadic. Call version_etc_va.
42265         Suggestion from Gary V. Vaughan.
42266
42267         * lib/long-options.h (parse_long_options): Change prototype: the
42268         authors string is moved to the end and becomes variadic.
42269         * lib/long-options.c: Include stdarg.h.
42270         (parse_long_options): Make this function variadic, too.
42271         Call version_etc_va, not version_etc.
42272
42273 2003-10-06  Bruno Haible  <bruno@clisp.org>
42274
42275         * modules/version-etc-2: Remove file.
42276         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42277
42278 2003-10-06  Bruno Haible  <bruno@clisp.org>
42279
42280         * modules/fatal-signal: New file.
42281         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42282
42283 2003-10-06  Bruno Haible  <bruno@clisp.org>
42284
42285         * m4/fatal-signal.m4: New file.
42286         * m4/signalblocking.m4: New file, from GNU gettext.
42287
42288 2003-10-06  Bruno Haible  <bruno@clisp.org>
42289
42290         * lib/version-etc-2.h: Remove file.
42291         * lib/version-etc-2.c: Remove file.
42292
42293 2003-10-06  Bruno Haible  <bruno@clisp.org>
42294
42295         * lib/fatal-signal.h: New file, from GNU gettext.
42296         * lib/fatal-signal.c: New file, from GNU gettext.
42297
42298 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42299
42300         * README: Rework advice for preventing empty .o files.
42301         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42302         not <sys/types.h>.
42303
42304 2003-10-04  Karl Berry  <karl@gnu.org>
42305
42306         * lib/argp*: update from libc.
42307
42308 2003-10-04  Karl Berry  <karl@gnu.org>
42309
42310         * config/config.{guess,sub}: update from config.
42311
42312 2003-10-02  Bruno Haible  <bruno@clisp.org>
42313
42314         * modules/lchown (Include): Add lchown.h.
42315         * modules/time_r (Include): Use "..." syntax.
42316         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42317
42318 2003-10-01  Simon Josefsson  <jas@extundo.com>
42319
42320         * MODULES.html.sh (func_all_modules): Move gethostname from section
42321         'based on' to section 'lacking' POSIX:2001.
42322
42323 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42324
42325         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42326         to output mode on the same stream.
42327
42328 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42329
42330         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42331         Fix arg typo in previous patch.
42332
42333 2003-09-28  Jim Meyering  <jim@meyering.net>
42334
42335         * lib/error.c: Correct cpp indentation.
42336
42337 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42338
42339         * modules/free: New file.
42340
42341 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42342
42343         * m4/free.m4: New file.
42344
42345 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42346
42347         * lib/minmax.h (MIN, MAX)
42348         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42349         Omit the special code that used __typeof__, since we worry that
42350         it could be more trouble than it's worth.  See:
42351         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42352         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42353
42354         * lib/free.c: New file.
42355
42356 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42357
42358         Trivial fixes to Makefile.am parts of module listings.
42359         * modules/strstr: Append strstr.h to lib_SOURCES.
42360         * modules/strcase: Likewise, for strcase.h.
42361
42362 2003-09-27  Karl Berry  <karl@gnu.org>
42363
42364         * config/mkinstalldirs: update from automake.
42365
42366 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42367
42368         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42369         (error_tail): Do not loop, reallocating temporary buffer, since
42370         the output cannot contain more wide characters than the input
42371         contains bytes, the size must be big enough already.  This avoids
42372         one potential size overflow calculation.  Check for size overflow
42373         when calculating temporary buffer size.  Free temporary buffer
42374         when done, if it was allocated with malloc; this plugs a memory
42375         leak.  Remove casts from void * to pointers, that are no longer
42376         needed now that we're assuming C89 or better.
42377
42378         Merge error changes from glibc.
42379
42380         * lib/error.c, error.h: Update copyright notice header to match glibc.
42381         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42382         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42383         Disable cancellation while printing error.
42384         * lib/error.h: Prepend __ to parameter names.
42385
42386 2003-09-26  Jim Meyering  <jim@meyering.net>
42387
42388         * lib/error.c (error_tail): Move some declarations
42389         into inner scope where the local variables are used.
42390
42391 2003-09-26  Bruno Haible  <bruno@clisp.org>
42392
42393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42394         stpncpy().
42395         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42396
42397 2003-09-26  Bruno Haible  <bruno@clisp.org>
42398
42399         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42400         (stpncpy): Define as alias for gnu_stpncpy.
42401         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42402
42403 2003-09-25  Simon Josefsson  <jas@extundo.com>
42404
42405         * lib/xgetdomainname.h: New file.
42406         * lib/xgetdomainname.c: New file.
42407
42408 2003-09-25  Simon Josefsson  <jas@extundo.com>
42409             Bruno Haible  <bruno@clisp.org>
42410
42411         * modules/getdomainname: New file.
42412         * modules/xgetdomainname: New file.
42413         * MODULES.html.sh (func_all_modules): Add getdomainname,
42414         xgetdomainname.
42415
42416 2003-09-25  Simon Josefsson  <jas@extundo.com>
42417             Bruno Haible  <bruno@clisp.org>
42418
42419         * m4/getdomainname.m4: New file.
42420
42421 2003-09-25  Simon Josefsson  <jas@extundo.com>
42422             Bruno Haible  <bruno@clisp.org>
42423
42424         * lib/getdomainname.h: New file.
42425         * lib/getdomainname.c: New file.
42426
42427 2003-09-25  Karl Berry  <karl@gnu.org>
42428
42429         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42430
42431 2003-09-25  Karl Berry  <karl@gnu.org>
42432
42433         * config/install-sh: update from automake.
42434
42435 2003-09-25  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/version-etc-2: New file, from modules/version-etc with
42438         modifications.
42439         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42440
42441 2003-09-25  Bruno Haible  <bruno@clisp.org>
42442
42443         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42444         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42445
42446 2003-09-24  Simon Josefsson  <jas@extundo.com>
42447
42448         * modules/xgethostname: Add xgethostname.h.
42449
42450 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42451
42452         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42453         the buffer associated with the argument.  Bug reported by
42454         Simon Josefsson.
42455
42456 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42457
42458         * README: Document assumptions that 'int' is at least 32 bits
42459         wide, that integer arithmetic is 2's complement without overflow,
42460         that there are no holes in integer values, that adding sizes of
42461         two nonoverlapping objects can't overflow, and that all-bits-zero
42462         yields scalar zero.  Fix spelling and capitalization typos.
42463
42464 2003-09-19  Karl Berry  <karl@gnu.org>
42465
42466         * lib/argp.h: update from libc.
42467
42468 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42469
42470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42471         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42472         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42473
42474 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42475
42476         * gnulib-tool: Use "test -h", not "test -L", for portability
42477         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42478         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42479         (sed_extract_prog): Issue s commands one-by-one, rather than
42480         using \| in one s command.
42481
42482 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42483
42484         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42485         input error, instead of returning NULL the next time we are called
42486         (and therefore losing track of errno).
42487
42488 2003-09-16  Bruno Haible  <bruno@clisp.org>
42489
42490         * gnulib-tool (func_create_testdir): Warn about duplicated
42491         dependencies.
42492
42493 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42494
42495         * modules/argmatch, modules/fatal, modules/obstack,
42496         modules/xalloc, modules/xgethostname: Sort dependencies by
42497         importance, not alphabetically.
42498
42499 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42500
42501         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42502         fails, so that the caller gets the proper errno.
42503
42504         * lib/readutmp.c (read_utmp): Likewise.
42505         Check for fstat error.  Close stream and free storage
42506         when failing.
42507
42508 2003-09-14  Karl Berry  <karl@gnu.org>
42509
42510         * config/srclist.txt (strdup.c): disable for c89 changes.
42511
42512 2003-09-14  Jim Meyering  <jim@meyering.net>
42513
42514         * lib/getloadavg.c: Correct cpp indentation.
42515         * lib/strdup.c: Likewise.
42516         * lib/vasnprintf.c: Likewise.
42517
42518 2003-09-14  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/fwriteerror: New file.
42521         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42522
42523 2003-09-14  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/fwriteerror.h: New file.
42526         * lib/fwriteerror.c: New file.
42527
42528 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42529
42530         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42531         modules/xgethostname, modules/xalloc: Depend on exit.
42532
42533 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42534
42535         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42536
42537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42538         and AC_MINIX, too, so that their extensions are available.
42539
42540         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42541         This macro has been superseded by gl_BACKUPFILE.
42542
42543         More patches to assume C89 or better.
42544
42545         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42546
42547         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42548         unconditionally.
42549         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42550         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42551         Include <string.h>, <stdlib.h> unconditionally.
42552         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42553         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42554         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42555         headers or for string.h.
42556         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42557         or strtoul.
42558
42559         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42560         headers.
42561         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42562         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42563         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42564         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42566         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42567         memcpy, memset.
42568         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42569         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42570         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42571         strtol.
42572         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42573         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42574         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42575         strtoul.
42576
42577 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42578
42579         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42580         * lib/obstack.c [!defined _LIBC]: Likewise.
42581         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42582         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42583         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42584
42585         More changes to assume C89 or better.
42586
42587         * lib/error.c (error_tail): Assume vprintf.
42588
42589         * lib/argmatch.c (getenv): Remove decl.
42590         * lib/progreloc.c (get_full_program_name): Define via prototype.
42591         * lib/setenv.c (clearenv): Likewise.
42592         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42593         needed.
42594         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42595         (malloc, memcpy): Remove decls.
42596         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42597         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42598         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42599         (memcpy): Remove macro.
42600         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42601         (__P): Remove.  All uses removed.
42602         (PTR): Remove.  All uses changed to void *.
42603         (CHAR_BIT, NULL): Remove.
42604         (spaces, zeros, memset_space, memset_zero)
42605         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42606         Remove.
42607         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42608         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42609         Define with prototype.
42610         Remove now-unnecessary prototype decl.
42611         (extra_args_spec): Assume ANSI C.  All uses changed.
42612         (extra_args_spec_iso): Remove.
42613         (my_strftime, emacs_strftimeu): Define via prototype.
42614         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42615         unconditionally.
42616         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42617         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42618         (strtoul, strtol): Remove decls.
42619         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42620         LONG_MAX): Remove.
42621         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42622         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42623         (LOCALE_PARAM_PROTO): New macro.
42624         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42625         (INTERNAL (strtol), strtol): Define with a prototype.
42626         (PARAMS): Remove.  All uses removed.
42627         * lib/tempname.c: Include <string.h> unconditionally.
42628         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42629         * lib/xgethostname.c (main): Define with a prototype.
42630         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42631         Include <stdlib.h> unconditionally.
42632         (calloc, malloc, realloc, free): Remove decls.
42633         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42634         Include <stdlib.h> unconditionally.  Sort include file names.
42635         (strtod): Remove.
42636         (xstrtod): Define with a prototype.
42637         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42638         (strtol, strtoul): Remove decls.
42639
42640 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42641
42642         More patches to assume C89 or better.
42643         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42644         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42645         string.h, memchr, STDC_HEADERS.
42646
42647 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42648
42649         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42650         Include <stdlib.h>, <string.h> unconditionally.
42651         Remove now-unnecessary cast to char *.
42652         * lib/strnlen.c: Include <string.h> unconditionally.
42653         * lib/yesno.c (yesno): Define with a prototype.
42654
42655 2003-09-11  Bruno Haible  <bruno@clisp.org>
42656
42657         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42658
42659 2003-09-10  Jim Meyering  <jim@meyering.net>
42660
42661         * lib/error.c: Correct indentation of cpp directives.
42662
42663 2003-09-10  Bruno Haible  <bruno@clisp.org>
42664
42665         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42666         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42667         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42668         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42669         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42670         <stdlib.h> and <string.h> checks.
42671         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42672         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42673
42674 2003-09-10  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/strcspn.c: Include <string.h> unconditionally.
42677         * lib/strpbrk.c: Include <string.h> unconditionally.
42678         * lib/strstr.c: Include <string.h> unconditionally.
42679         * lib/unicodeio.c: Include <string.h> unconditionally.
42680         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42681         * lib/unsetenv.c: Likewise.
42682         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42683         * lib/yesno.c: Include <stdlib.h> unconditionally.
42684         (rpmatch): Add prototype.
42685
42686 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42687
42688         More patches to assume C89 or better.
42689         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42690         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42691         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42692         or for string.h.
42693         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42694         stdlib.h.
42695         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42696         C headers.
42697         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42698         string.h.
42699         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42700         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42701         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42702         or for string.h.
42703         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42704         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42705         C headers.
42706         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42707         memcpy.
42708         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42709         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42710         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42711         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42712         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42713         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42714         string.h, free.
42715         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42716         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42717         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42718         C headers, or for string.h.
42719         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42720         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42721         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42722         headers, memory.h, stdlib.h, string.h, strings.h.
42723         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42724         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42725         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42726         strchr.
42727         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42728         headers, memory.h, string.h.
42729         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42730         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42731         free.
42732         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42733         headers.
42734         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42735         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42736         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42737         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42738         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42739
42740 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42741
42742         More K&R removal.
42743
42744         * lib/acosl.c (main): Use a prototype.
42745         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42746         tanl.c: Likewise.
42747
42748         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42749
42750         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42751         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42752         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42753         with a prototype.
42754         * lib/getopt.c (const): Remove macro.
42755         Include <string.h> unconditionally.
42756         (my_index): Remove; all uses changed to strchr.
42757         (strlen): Remove decl.
42758         (exchange): Remove forward decl; no longer needed.
42759         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42760         Define with prototype.
42761         * lib/getopt1.c (const): Remove macro.
42762         (getopt_long, getopt_long_only, main): Define with prototype.
42763
42764         * lib/getugroups.c: Include <string.h> unconditionally.
42765
42766         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42767         (getusershell, setusershell, endusershell, readname, main):
42768         Define with prototypes.
42769
42770         * lib/group-member.c: Include group-member.h first.
42771         Include <stdlib.h> unconditionally.
42772
42773         * lib/hard-locale.c: Include hard-locale.h first.
42774         Include <stdlib.h>, <string.h> unconditionally.
42775
42776         * lib/hash.c (free, malloc): Remove decls.
42777         Include <stdlib.h> unconditionally.
42778
42779         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42780         (getenv): Do not declare.
42781
42782         * lib/idcache.c: Include <string.h> unconditionally.
42783
42784         * lib/long-options.c: Include long-options.h first, to test interface.
42785         Include <stdlib.h> unconditionally.
42786
42787         * lib/makepath.c: Include makepath.h first, to test interface.
42788         Include <stdlib.h> and <string.h> unconditionally.
42789
42790         * lib/linebuffer.c: Include <stdlib.h>.
42791         (free): Remove decl.
42792
42793         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42794         stddef.h. rpl_malloc returns void *, not char *.
42795         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42796         prototype.
42797
42798         * lib/md5.h: Include <limits.h> unconditionally.
42799         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42800         (__P): Remove; all uses removed.
42801         * lib/md5.c: Include "md5.h" first.
42802         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42803         md5_buffer, md5_process_bytes, md5_process_block):
42804         Define with prototypes.
42805         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42806         * lib/sha.c: Include "sha.h" first.
42807         Include <stdlib.h>, <string.h> unconditionally.
42808
42809         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42810         * lib/memcmp.c (__ptr_t): Likewise.
42811         * lib/memrchr.c (__ptr_t): Likewise.
42812         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42813         Include <string.h> unconditionally.
42814         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42815         * lib/memchr.c: Include <stdlib.h> unconditionally.
42816         * lib/memchr.c (LONG_MAX): Remove.
42817         * lib/memrchr.c (LONG_MAX): Likewise.
42818         * lib/memchr.c (__memchr): Define via a prototype.
42819         * lib/memrchr.c (__memrchr): Likewise.
42820         * lib/memcmp.c (__P): Remove, and remove all uses.
42821         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42822         Remove forward decls; no longer needed.
42823         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42824         Use types required by C89 in prototype.
42825
42826         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42827         * lib/savedir.c: Likewise.
42828         * lib/mkdir.c (free): Remove decl.
42829         * lib/rmdir.c (rmdir): Define with a prototype.
42830         * lib/savedir.c: Include savedir.h first, to test interface.
42831
42832         * lib/mktime.c (STDC_HEADERS): Remove.
42833         Include <stdlib.h>, <string.h> unconditionally.
42834
42835         * lib/modechange.c: Include <stdlib.h> unconditionally.
42836         (malloc): Remove decl.
42837
42838         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42839         (free): Remove decl.
42840
42841         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42842         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42843         (This type really should be intptr_t, but that's a C99ism.)
42844         (_obstack_memcpy): Remove: all uses changed to memcpy.
42845         Include <string.h> unconditionally.
42846         (struct obstack): Assume __STDC__ for types of members
42847         chunkfun, freefun, extra_arg.
42848         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42849         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42850         obstack_begin, obstack_specify_allocation,
42851         obstack_specify_allocation_with_arg, obstack_chunkfun,
42852         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42853         Remove unprototyped decls and the macros that use them.
42854         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42855         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42856         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42857         (defined __STDC__ && __STDC__)]:
42858         Remove nonprototyped code.
42859         Include <stdlib.h> unconditionally.
42860         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42861         _obstack_allocated_p, _obstack_free, obstack_free,
42862         _obstack_memory_used, print_and_abort):
42863         Define using prototypes.
42864         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42865         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42866         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42867         obstack_next_free, obstack_object_size, obstack_room) [0]:
42868         Remove unused, unprototyped code.
42869
42870         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42871
42872         * lib/physmem.c (physmem_total, physmem_available, main): Define
42873         with prototypes.
42874
42875         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42876         (main): Define with a prototype.
42877
42878         * lib/posixver.c (getenv): Remove decl.
42879
42880         * lib/putenv.c (malloc): Returns void *, not char *.
42881         Include <string.h> unconditionally.
42882         (strchr, memcpy, NULL): Do not define.
42883
42884         * lib/readtokens.c: Include readtokens.h first, to test interface.
42885         Include <stdlib.h>, <string.h> unconditionally.
42886         (init_tokenbuffer): Define with a prototype.
42887
42888         * lib/regex.c (PARAMS): Remove.  All uses removed.
42889         All uses of _RE_ARGS removed, too.
42890         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42891         unconditionally.
42892         (bzero): Assume memset exists.
42893         (memcmp, memcpy, NULL): Remove.
42894         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42895         char, or assignments to local vars of type signed char.
42896         (init_syntax_once, PREFIX(extract_number_and_incr),
42897         PREFIX(print_partial_compiled_pattern),
42898         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42899         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42900         PREFIX(regex_grow_registers), PREFIX(regex_compile),
42901         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42902         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42903         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42904         wcs_compile_range, byte_compile_range, truncate_wchar,
42905         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42906         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42907         count_mbs_length, wcs_re_match_2_internal,
42908         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42909         PREFIX(alt_match_null_string_p),
42910         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42911         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42912         regfree, PREFIX(extract_number)): Define with prototype.  Remove
42913         now-unnecessary declaration, if any.
42914         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42915         regcomp, regexec):
42916         Remove now-unnecessary casts among pointer types.
42917         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
42918
42919         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42920         (free): Remove decl.
42921
42922         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42923
42924         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42925         (free): Remove decl.
42926
42927         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42928         * lib/xgetcwd.c: Likewise.
42929
42930         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42931         (free): Remove decl.
42932
42933         * lib/strchrnul.c (strchrnul): Define with a prototype.
42934         Fix bug: c_in was not converted to char before searching.
42935
42936         The following changes are not K&R related:
42937
42938         * lib/group-member.h: Include <sys/types.h>, so that this file is
42939         self-contained.
42940         * lib/makepath.h: Likewise.
42941
42942         * lib/getusershell.c (readname, default_index, line_size, readname):
42943         Use size_t, not int, for sizes.
42944         (readname): If the size overflows, report an error instead of
42945         looping forever.
42946
42947 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42948
42949         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42950         libc.
42951
42952 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42953
42954         * README: New section: portability guidelines.
42955
42956 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42957
42958         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42959         C89 spec.
42960
42961 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42962
42963         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42964
42965 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42966
42967         Assume C89 or better; remove K&R cruft.
42968         A few of these changes were first proposed by Derek Robert Price
42969         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42970
42971         * lib/addext.c: Include <string.h> unconditionally.
42972         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42973         Don't declare getenv or malloc.
42974
42975         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42976         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42977         (NULL): Remove.
42978         (find_stack_direction, alloca): Use prototypes.
42979
42980         * lib/atexit.c (atexit): Define using a prototype.
42981
42982         * lib/basename.c, dirname.c, stripslash.c:
42983         Include <string.h> unconditionally.
42984
42985         * lib/bcopy.c: Include <stddef.h>.
42986         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42987
42988         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42989
42990         * lib/error.h (error, error_at_line, error_print_progname)
42991         [! (defined (__STDC__) && __STDC__)]: Remove decls.
42992         * lib/error.c: Include error.h first, to check interface.
42993         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42994         (VA_START): Remove; all uses changeed to va_start.
42995         (exit, strerror): Remove decls.
42996         (error_print_progname): Prototype uncondionally.
42997         Don't include <errno.h>; no longer needed.
42998         (private_strerror): Remove.
42999         (error_tail): Always define.
43000         (error, error_at_line): Assume C89 or better; always use prototypes.
43001         * lib/fatal.c: Include "fatal.h" first, to test interface.
43002         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43003         (VA_START): Remove; all uses changed to va_start.
43004         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
43005         this case.
43006         (exit): Remove decl.
43007         (fatal): Prototype unconditionally.  Assume va_start works.
43008         Abort at end, to pacify gcc.
43009
43010         * lib/euidaccess.c (main): Define with a prototype.
43011
43012         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
43013
43014         * lib/exitfail.c: Include <stdlib.h> unconditionally.
43015
43016         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
43017         prototypes.
43018         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
43019         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
43020         (getenv): Remove decl.
43021         (fnmatch): Define using a prototype.
43022         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
43023         (FCT): Define using a prototype.
43024
43025         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
43026
43027         * lib/gethostname.c: Include <stddef.h>.
43028         (gethostname): Define with prototype.  Length is size_t, not int.
43029
43030 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43031
43032         Assume C89 or better; remove K&R cruft.
43033         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
43034         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
43035         string.h, getenv, malloc.
43036         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
43037         headers.
43038         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
43039         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
43040         do not check for strerror.
43041         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
43042         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
43043         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
43044         do not check for doprnt or vprintf.
43045         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
43046         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
43047
43048 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43049
43050         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
43051         getversion.c should have been removed then, but was accidentally
43052         preserved.
43053
43054         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
43055         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
43056
43057 2003-09-08  Karl Berry  <karl@gnu.org>
43058
43059         * config/config.sub, config.guess, srclistvars.sh: update from savannah
43060                 config, forget about prep.
43061
43062         * config/depcomp, missing: update from automake.
43063
43064 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43065
43066         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
43067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43068
43069 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43070
43071         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
43072         copy_tm_result.  Bug reported by Simon Josefsson in
43073         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43074
43075 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43076
43077         * m4/time_r.m4: New file.
43078         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
43079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
43080         is. Check for timegm declaration.
43081         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
43082         Do not check for gmtime_r.
43083         Replace mktime if __mktime_internal does not exist and if mktime
43084         hasn't been replaced already.
43085
43086 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43087
43088         * lib/time_r.c, lib/time_r.h: New files.
43089
43090         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
43091         __localtime_r.
43092         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
43093         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
43094
43095         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
43096         __gmtime_r.
43097         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
43098         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
43099         Include <time_r.h>.
43100
43101         * lib/timegm.c: Switch to glibc implementation, with the following
43102         changes:
43103         [defined HAVE_CONFIG_H]: Include <config.h>.
43104         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
43105         (__mktime_internal) [!defined _LIBC]: New decl.
43106         (__gmtime_r) [!defined _LIBC]: New macro and function.
43107         (timegm): Use a prototype, since gnulib assumes C89.
43108         Do not bother declaring tmp to be const, as it's not really usefu.
43109         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
43110         (timegm): Declare only if HAVE_DECL_TIMEGM.
43111
43112 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43113
43114         * MODULES.html.sh (func_all_modules): Add time_r.
43115         * modules/time_r: New file.
43116         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
43117         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
43118
43119 2003-09-03  Paul Eggert  <eggert@twinsun.com>
43120
43121         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
43122         Bug reported by Lute Kamstra in
43123         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
43124
43125         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
43126         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
43127         course with correspondingly smaller numbers for tomorrow and
43128         yesterday.  From Tadayoshi Funaba.  Originally installed into
43129         sh-utils on 1999-08-07, but the patch got lost (I guess during the
43130         coreutils merge?).
43131
43132 2003-08-31  Simon Josefsson  <jas@extundo.com>
43133
43134         * modules/timegm: New file.
43135         * MODULES.html.sh (func_all_modules): Add timegm.
43136
43137 2003-08-31  Simon Josefsson  <jas@extundo.com>
43138
43139         * m4/timegm.m4: New file.
43140
43141 2003-08-31  Simon Josefsson  <jas@extundo.com>
43142
43143         * lib/timegm.h: New file.
43144         * lib/timegm.c: New file.  Based on
43145         wget-1.8.2/src/http.c:mktime_from_utc.
43146
43147 2003-08-31  Karl Berry  <karl@gnu.org>
43148
43149         * lib/argp.h: update from libc.
43150
43151 2003-08-28  Bruno Haible  <bruno@clisp.org>
43152
43153         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43154         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43155         followed by '#define fnmatch fnmatch_posix' gives an error.
43156
43157 2003-08-28  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43160         warning on QNX, which defines O_BINARY to 000000.
43161
43162 2003-08-27  Jim Meyering  <jim@meyering.net>
43163
43164         * m4/mkstemp.m4: Require that the system mkstemp be able to create
43165         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
43166         would fail after 32.  Reported by Danny Levinson.  Details here:
43167         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43168
43169 2003-08-24  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43172         MSVC7 <stdio.h> is included later.
43173
43174 2003-08-22  Simon Josefsson  <jas@extundo.com>
43175
43176         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43177
43178 2003-08-20  Karl Berry  <karl@gnu.org>
43179
43180         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43181
43182 2003-08-20  Bruno Haible  <bruno@clisp.org>
43183
43184         * modules/progname: New file.
43185         * MODULES.html.sh (func_all_modules): Add progname.
43186
43187 2003-08-20  Bruno Haible  <bruno@clisp.org>
43188
43189         * lib/progname.h: New file, from GNU gettext.
43190         * lib/progname.c: New file, from GNU gettext.
43191         * lib/progreloc.c: New file, from GNU gettext.
43192
43193 2003-08-19  Jim Meyering  <jim@meyering.net>
43194
43195         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43196         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43197
43198 2003-08-19  Bruno Haible  <bruno@clisp.org>
43199
43200         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43201         more.
43202
43203 2003-08-19  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/xstrdup.c: Assume <string.h> exists.
43206
43207 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43208
43209         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43210         in makefile rules.
43211
43212 2003-08-18  Jim Meyering  <jim@meyering.net>
43213
43214         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43215         * m4/lib-ld.m4: Likewise.
43216
43217 2003-08-18  Jim Meyering  <jim@meyering.net>
43218
43219         * lib/setenv.h: Indent nested cpp directive.
43220         * lib/vasnprintf.c: Remove trailing blanks.
43221
43222 2003-08-17  Simon Josefsson  <jas@extundo.com>
43223
43224         * modules/xstrndup: New file.
43225         * MODULES.html.sh (func_all_modules): Add xstrndup.
43226
43227 2003-08-17  Simon Josefsson  <jas@extundo.com>
43228
43229         * modules/argp: Fix autoconf macro name. Add more dependencies.
43230
43231 2003-08-17  Simon Josefsson  <jas@extundo.com>
43232
43233         * m4/xstrndup.m4: New file.
43234
43235 2003-08-17  Simon Josefsson  <jas@extundo.com>
43236
43237         * m4/argp.m4: New file.
43238
43239 2003-08-17  Simon Josefsson  <jas@extundo.com>
43240             Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/xstrndup.h: New file.
43243         * lib/xstrndup.c: New file.
43244
43245 2003-08-17  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/strndup (Files, Include): Add lib/strndup.h.
43248
43249 2003-08-17  Bruno Haible  <bruno@clisp.org>
43250
43251         * modules/euidaccess (Files): Add lib/euidaccess.h.
43252
43253 2003-08-17  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/strndup.h: New file.
43256
43257 2003-08-17  Bruno Haible  <bruno@clisp.org>
43258
43259         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43260         like AC_GNU_SOURCE.
43261         * modules/extensions (configure.ac): Comment out the invocation of
43262         gl_USE_SYSTEM_EXTENSIONS.
43263
43264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43265
43266         Merges from coreutils, etc.
43267         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43268         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43269         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43270         fixing a typo.
43271         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43272         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43273
43274 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43275
43276         Document merge from coreutils.
43277         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43278         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43279         * modules/utime: Add m4/utimes-null.m4.
43280
43281 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43282
43283         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43284         space, undoing this 2003-08-12 change:
43285         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43286
43287 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43288
43289         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43290         strtoul.c from libc, undoing this 2003-08-12 change:
43291         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43292
43293 2003-08-16  Jim Meyering  <jim@meyering.net>
43294
43295         Merges from coreutils.
43296         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43297         prefix.  Adjust cache variables similarly.  Create 500 rather than
43298         just 300 files, to exercise bug on Darwin6.5, too.
43299         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43300         $missing_dir.
43301         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43302         AM_SYS_POSIX_TERMIOS.
43303         Reported by mkc@mathdogs.com.
43304         Also change use of $am_cv_sys_posix_termios
43305         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43306         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43307         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43308         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43309         in /proc/mounts until it finds one with matching device number.  This
43310         is unnecessary when the FILE argument *is* a mount point.  No stat call
43311         is necessary in that case.  So, disable the statvfs-testing code on
43312         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43313         as RedHat bug# 84846.
43314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43315         to 1MB, so as not to render systems with no stack size limit (e.g.,
43316         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43317         Include <unistd.h>.  On some systems,
43318         it is required for the definition of _SC_PAGESIZE.
43319
43320 2003-08-16  Jim Meyering  <jim@meyering.net>
43321
43322         Merge from coreutils.
43323         * lib/xstrtoimax.c: #else #if -> #elif.
43324         * lib/xstrtoumax.c: Likewise.
43325
43326 2003-08-16  Jim Meyering  <jim@meyering.net>
43327
43328         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43329         * m4/utimes.m4: Removed.
43330         * m4/utimes-null.m4: Renamed from utimes.m4.
43331
43332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43333         to 1MB, so as not to render systems with no stack size limit (e.g.,
43334         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43335         Include <unistd.h>.  On some systems,
43336         it is required for the definition of _SC_PAGESIZE.
43337
43338 2003-08-16  Jim Meyering  <jim@meyering.net>
43339         and Paul Eggert  <eggert@cs.ucla.edu>
43340
43341         Merges from coreutils, etc.
43342
43343         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43344         using the latest version from cvs.  This avoids problems with #line
43345         directives using a vendor (Sun) compiler.
43346         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43347         Don't set GETGROUPS_LIB here; now it's
43348         done via getgroups.m4's wrapper function.
43349         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43350         rather than just in sh-util/configure.in, so that the
43351         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43352         same.
43353         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43354         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43355         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43356         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43357         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43358         Remove code that is now done by the newly-required macros.
43359         Append $(EXEEXT) to DF_PROG.
43360         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43361         Do not invoke or require the following here,
43362         since prereq.m4 or some gnulib .m4 now does this for us:
43363         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43364         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43365         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43366         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43367         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43368         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43369         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43370         AC_FUNC_OBSTACK.
43371         Do not replace the following functions, as this is now the job
43372         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43373         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43374         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43375         atexit getpass, strdup, getpagesize.
43376         Replace 'raise'.
43377         Do not check for the following functions, as this is now the job
43378         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43379         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43380         setregid.
43381         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43382         Check for sys/sysctl.h.
43383         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43384         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43385         of checking for ssize_t ourselves.
43386
43387         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43388         Require every macro that gnulib/modules/* suggests for us.
43389         (jm_PREREQ_ADDEXT): New macro.
43390         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43391         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43392
43393         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43394         (gl_PHYSMEM): Use it.
43395         Also check for `table' function.
43396         Check for new headers and functions.
43397         Add check for sys/sysmp.h.
43398         With suggestions from Kaveh Ghazi.
43399         Ignore headers that are present but cannot be compiled.  This
43400         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43401         C 5.4.
43402
43403 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43404
43405         Document merge from coreutils.
43406         * modules/userspec: Depend on posixver.
43407         * modules/strftime: Depend on tzset.
43408
43409 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43410
43411         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43412         rather than tab, after '#' in shell-script copyright notices.
43413         Suggested by Bruno Haible.
43414
43415 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43416
43417         * config/srclist-update: Use three spaces, rather than tab, after '#'
43418         in shell-script copyright notices.  Suggested by Bruno Haible.
43419         Remove unnecessary parenthesization in regular expression.
43420
43421 2003-08-15  Jim Meyering  <jim@meyering.net>
43422
43423         Merge from coreutils.
43424         * lib/xgethostname.c: Include <stdlib.h>.
43425         (xghostname): Don't exit for anything other than memory-related
43426         failure; just return NULL.
43427         * lib/userspec.c: Include "posixver.h".
43428         (parse_user_spec): Accept `.' as a separator only
43429         in pre-POSIX-200112 mode.
43430         * lib/strtoimax.c: Use #elif rather than #else #if.
43431         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43432         Remove function, now that we can rely on a working tzset function.
43433         [!_LIBC]: Ensure that the required autoconf test has been run.
43434         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43435         Use underlying_strftime for %r.
43436         * lib/sha.c: Merge in some clean-up and optimization changes from
43437         glibc.
43438         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43439         Ensure that it is a multiple of 64.
43440         Rearrange loop exit tests so as to avoid performing an
43441         additional fread after encountering an error or EOF.
43442         * lib/realloc.c: Update copyright date.
43443
43444 2003-08-15  Jim Meyering  <jim@meyering.net>
43445         and Paul Eggert  <eggert@twinsun.com>
43446
43447         Merge from coreutils.
43448         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43449         member but strut utmpx does not.  Needed for AIX 4.3.3.
43450         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43451
43452 2003-08-15  Jim Meyering  <jim@meyering.net>
43453         and Paul Eggert  <eggert@cs.ucla.edu>
43454
43455         Merges from coreutils, etc.
43456         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43457         Require gl_FUNC_TZSET_CLOBBER.
43458         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43459         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43460         members.
43461
43462 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43463
43464         Help the merge from coreutils.
43465         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43466         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43467         * m4/tzset.m4: Use it too.
43468
43469 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43470
43471         * modules/tzset: New file.
43472
43473 2003-08-14  Jim Meyering  <jim@meyering.net>
43474
43475         Merges from coreutils.
43476         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43477         variable names, rather than @FNMATCH_H@.
43478         * modules/alloca: Likewise for $(ALLOCA_H).
43479
43480         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43481         the three copies of the literal target, `fnmatch.h'.
43482         * modules/alloca (alloca.h): Likewise.
43483
43484 2003-08-14  Jim Meyering  <jim@meyering.net>
43485
43486         Merge from coreutils.
43487         * m4/tzset.m4: New file.
43488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43489         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43490         otherwise, AIX 5.1 systems would end up using the latter.
43491         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43492         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43493         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43494         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43495
43496 2003-08-14  Jim Meyering  <jim@meyering.net>
43497
43498         Merge from coreutils.
43499         * lib/obstack.h: Whitespace changes.
43500         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43501         and xcalloc return values.
43502         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43503         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43504         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43505         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43506         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43507         error from mntctl.
43508         Use mntctl's return value to drive the entry-processing loop, since
43509         we can't rely on the value of the vmt_length member in the last
43510         entry.  On some systems doing so could result in exhausting
43511         virtual memory.  Based in part on a patch from Mike Jetzer.
43512
43513 2003-08-14  Jim Meyering  <jim@meyering.net>
43514         and Paul Eggert  <eggert@twinsun.com>
43515
43516         Merges from coreutils, plus other fixes.
43517         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43518         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43519         for credits and details.  Thanks to Kaveh Ghazi for helping
43520         to keep these files in sync.
43521         (ARRAY_SIZE): Define it.
43522         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43523         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43524         (memcasecmp): Don't assume size_t fits in unsigned int.
43525         Remove casts and duplicate code.
43526         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43527         (memcpy): Remove definition.
43528         Merge in some clean-up and optimization changes from glibc.
43529         [BLOCKSIZE]: Move definition to top of file.
43530         Ensure that it is a multiple of 64.
43531         Rearrange loop exit tests so as to avoid performing an
43532         additional fread after encountering an error or EOF.
43533         * lib/md5.h (md5_uintptr): Define.
43534         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43535         return to the initial working directory.  Preserve errno
43536         for caller.
43537         * lib/idcache.c: Include "xalloc.h".
43538         (xmalloc, xrealloc): Remove decls.
43539         (getuser): Remove casts no longer required in C89.
43540         * lib/human.c: Include stdio.h, for sprintf.
43541         * lib/group-member.c: Include "xalloc.h".
43542         (xmalloc, xrealloc): Remove decls.
43543         (get_group_info): Remove casts no longer required in C89.
43544         * lib/getusershell.c (readname): Remove casts no longer required in
43545         C89.
43546         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43547         * lib/getline.c: Whitespace fix, from coreutils.
43548
43549 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43550
43551         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43552         Check for isascii.
43553
43554         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43555         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43556         Undo previous (whitespace-only) change.
43557
43558 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43559
43560         * lib/exclude.c: Include <ctype.h>
43561         (IN_CTYPE_DOMAIN): New macro.
43562         (is_space): New fn.
43563         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43564         and empty lines.
43565
43566         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43567         Undo previous (whitespace-only) change.
43568
43569 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43570
43571         * config/srclist-update: Change update back to the old behavior,
43572         leaving whitespace alone.  Use one 'sed' command rather than a
43573         pipeline.
43574         (fixlicense): Now a variable, not a function.
43575         (remove_trailing_blanks): Remove.
43576         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43577         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43578         Undo previous (whitespace-only) change.
43579
43580 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43581
43582         Merge from coreutils.
43583         * modules/euidaccess: Add lib_SOURCES, include for new
43584         file euidaccess.h
43585
43586 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43587
43588         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43589         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43590         Normalize leading white space and remove trailing white space.
43591
43592         Merge from coreutils
43593         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43594
43595         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43596         0.12.1.  These files are now being upgraded automatically by
43597         ../config/srclist-update.
43598
43599 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43600
43601         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43602         Normalize leading white space and remove trailing white space.
43603         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43604         notice, as per ../config/srclist-update.
43605
43606         Merge from coreutils.
43607         * lib/euidaccess.h: New file.
43608         * lib/euidaccess.c: Include it.
43609         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43610         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43611         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43612
43613 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43614
43615         * config/srclist-update: Add copyright notice.
43616         (remove_id_lines, remove_trailing_blanks): New constants.
43617         (fixfile): Use them to normalize spacing a bit in copied files.
43618         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43619         Normalize leading white space and remove trailing white space.
43620
43621         * config/texinfo.tex: Sync with texinfo.
43622
43623         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43624         strtoul.c from libc, to merge coreutils whitespace changes.
43625
43626         * config/srclist.txt: Get the following m4 files from gettext:
43627         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43628         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43629         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43630         wint_t.m4.
43631
43632 2003-08-12  Karl Berry  <karl@gnu.org>
43633
43634         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43635         been made.
43636
43637 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43638
43639         * modules/gnu-source, m4/gnu-source.m4:
43640         Remove; we're assuming Autoconf 2.54 or later now.
43641         Suggested by Bruno Haible.
43642         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43643
43644 2003-08-11  Bruno Haible  <bruno@clisp.org>
43645
43646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43647
43648 2003-08-11  Bruno Haible  <bruno@clisp.org>
43649
43650         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43651         (vasnprintf): Use it instead of wcslen.
43652
43653 2003-08-11  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43656         value to ensure that _Bool promotes to int. Use #define for _Bool when
43657         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43658
43659 2003-08-10  Karl Berry  <karl@gnu.org>
43660
43661         * lib/regex.h: update from libc (whitespace fix).
43662
43663 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43664
43665         Merge some files from coreutils.  These changes were
43666         originally made by Jim Meyering.
43667         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43668         many older Unixes require this.
43669         * lib/alloca.c (alloca): Remove cast to argument of free;
43670         no longer needed in C89.
43671         * lib/alloca_.h, regex.h: Fix white space to match
43672         what GNU indent does.
43673
43674 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43675
43676         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43677         apparently Emacs's Unicode mode got confused before my 2003-08-05
43678         checkin.
43679
43680 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43681
43682         * m4/extensions.m4: New file.
43683         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43684         Require gl_USE_SYSTEM_EXTENSIONS.
43685         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43686         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43687
43688 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43689
43690         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43691         * modules/extensions, modules/gnu-source: New files.
43692         * modules/timespec, modules/unlocked-io: Depend on extensions.
43693
43694 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43695
43696         * modules/restrict: New file.
43697         * MODULES.html.sh (func_all_modules): Add restrict.
43698         * modules/regex: Depend on restrict.
43699
43700 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43701
43702         * m4/restrict.m4: New file.
43703         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43704
43705 2003-08-07  Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43708         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43709
43710 2003-08-07  Bruno Haible  <bruno@clisp.org>
43711
43712         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43713         makes the module 'getndelim2' compatible with the module 'getline'.
43714
43715 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43716
43717         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43718         byte with "\201" to avoid glitches when editing that source file
43719         with multi-gnome-terminal.
43720
43721 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43722
43723         * lib/bumpalloc.h: Remove.
43724
43725 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43726
43727         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43728         * modules/bumpalloc: Remove.
43729
43730 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43731
43732         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43733         GNU coding style.
43734
43735         Merge from coreutils.
43736         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43737         1. From glibc.
43738         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43739         from Karl Berry, implemented by Jim Meyering.
43740         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43741         from Dmitry V. Levin.
43742         Remove anachronistic cast of xrealloc.
43743         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43744         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43745         type. Otherwise, it wouldn't compile with at least /bin/cc on
43746         ymp-cray-unicos9.0.2.X.
43747         Combine two mostly-identical uses of alloca into one.
43748         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43749
43750 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43751
43752         [From Emacs.]
43753
43754         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43755         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43756         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43757         obsolete NLIST_NAME_UNION.
43758         [__GNU__]: Undef BSD and FSCALE.
43759         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43760
43761 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43762
43763         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43764         an enum type, so that it's guaranteed to promote to int.  See:
43765         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43766
43767 2003-08-03  Karl Berry  <karl@gnu.org>
43768
43769         * config/depcomp: update from automake.
43770
43771 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43772
43773         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43774         (strerror): Don't assume that a printable int fits in 14 bytes.
43775
43776 2003-07-31  Bruno Haible  <bruno@clisp.org>
43777
43778         * modules/getpass-gnu: New file.
43779         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43780
43781 2003-07-31  Bruno Haible  <bruno@clisp.org>
43782
43783         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43784
43785 2003-07-24  Karl Berry  <karl@gnu.org>
43786
43787         * config/missing: update from automake.
43788
43789 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43790             Bruno Haible  <bruno@clisp.org>
43791
43792         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43793         * lib/getline.c (getline, getdelim): Likewise.
43794         Remove _GNU_SOURCE define; now it's defined in config.h through
43795         m4/getline.m4.
43796
43797 2003-07-23  Karl Berry  <karl@gnu.org>
43798
43799         * config/config.sub: update from prep.
43800
43801 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43802
43803         * modules/xalloc (Depends-on): Add exitfail.
43804         * modules/xmemcoll: Likewise.
43805
43806 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43807
43808         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43809         over-parenthesization in macros.
43810
43811         Sync with coreutils.
43812
43813         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43814         required by C99.
43815
43816         Use `exit_failure' for xalloc and xmemcoll instead of their own
43817         private exit-failure variables.
43818         * lib/xalloc.h (xalloc_exit_failure): Remove.
43819         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43820         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43821         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43822         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43823         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43824
43825 2003-07-20  Jim Meyering  <jim@meyering.net>
43826
43827         * modules/closeout (Depends-on): Add exitfail.
43828         Suggestion from Bruno Haible.
43829
43830 2003-07-19  Karl Berry  <karl@gnu.org>
43831
43832         * config/config.sub: update from prep.
43833
43834 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43835
43836         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43837         Remove.
43838         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43839         to test that it can stand by itself.  Include "exitfail.h".
43840         Clients should set exit_failure instead.
43841         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43842
43843 2003-07-18  Bruno Haible  <bruno@clisp.org>
43844
43845         * modules/getndelim2: New file.
43846         * modules/getline: Share files with module getndelim2.
43847         * modules/getnline: Depend on getndelim2 instead of sharing files with
43848         it. Add getnline.c to lib_SOURCES.
43849         * MODULES.html.sh (func_all_modules): Add getndelim2.
43850
43851 2003-07-18  Bruno Haible  <bruno@clisp.org>
43852
43853         * m4/getndelim2.m4: New file.
43854         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43855         invoke gl_PREREQ_GETNDELIM2.
43856         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43857         gl_PREREQ_GETNDELIM2.
43858         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43859         gl_GETNDELIM2.
43860
43861 2003-07-18  Bruno Haible  <bruno@clisp.org>
43862
43863         * lib/getndelim2.h: New file.
43864         * lib/getndelim2.c: Make into a module of its own. Include config.h,
43865         getndelim2.h.
43866         (getndelim2): Make non-static. Change return type to ssize_t.
43867         * lib/getline.h: Change argument names.
43868         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43869         * lib/getnline.c: Include getndelim2.h.
43870
43871 2003-07-18  Andreas Schwab  <schwab@suse.de>
43872
43873         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43874
43875 2003-07-17  Karl Berry  <karl@gnu.org>
43876
43877         * config/config.sub: update from prep.
43878
43879 2003-07-17  Bruno Haible  <bruno@clisp.org>
43880
43881         * modules/getnline: New file.
43882         * modules/getline: Add lib/getndelim2.c to source file list.
43883         * MODULES.html.sh (func_all_modules): Add getnline.
43884
43885 2003-07-17  Bruno Haible  <bruno@clisp.org>
43886
43887         * m4/getnline.m4: New file.
43888
43889 2003-07-17  Bruno Haible  <bruno@clisp.org>
43890
43891         * m4/Makefile.am.in: Remove file.
43892         * m4/Makefile.am: Remove file.
43893         * m4/Makefile.in: Remove file.
43894
43895 2003-07-17  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/getnline.h: New file.
43898         * lib/getnline.c: New file.
43899         * lib/getndelim2.c: New file, extracted from getline.c.
43900         (getndelim2): Renamed from getdelim2, with added nmax argument.
43901         * lib/getline.c: Include getndelim2.c.
43902         (getdelim2): Moved out to getndelim2.c.
43903         (getline, getdelim): Update.
43904
43905 2003-07-17  Bruno Haible  <bruno@clisp.org>
43906
43907         * lib/Makefile.am: Remove file.
43908         * lib/Makefile.in: Remove file.
43909
43910 2003-07-17  Bruno Haible  <bruno@clisp.org>
43911
43912         * configure.in: Remove file.
43913         * Makefile.in: Remove file.
43914
43915 2003-07-17  Bruno Haible  <bruno@clisp.org>
43916
43917         * MODULES.html.sh: Put the </BODY> right before </HTML>.
43918
43919 2003-07-16  Karl Berry  <karl@gnu.org>
43920
43921         * config/srclist-update: was running fixlicense twice, which caused
43922                 texinfo.tex to be nullified for some reason.  Simplify,
43923                 $gplsrc is no longer needed as far as I can see?
43924
43925 2003-07-16  Jim Meyering  <jim@meyering.net>
43926
43927         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
43928
43929 2003-07-15  Paul Eggert  <eggert@twinsun.com>
43930
43931         * config/srclist.txt: Get the following files from gettext-runtime/intl
43932         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43933         ref-del.sin.  From Bruno Haible.
43934         * config/srclist-update (fixfile): Change grep pattern again, since the
43935         previous fix didn't work (there was another trailing $).  Use
43936         '[$]' to escape the $s.
43937
43938 2003-07-15  Karl Berry  <karl@gnu.org>
43939
43940         * lib/vasnprintf.c: update from gettext.
43941
43942 2003-07-15  Karl Berry  <karl@gnu.org>
43943
43944         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43945         gets expanded when surrounded by '$'.
43946
43947 2003-07-15  Jim Meyering  <jim@meyering.net>
43948
43949         * modules/save-cwd: Don't depend on error.  From Derek Price.
43950
43951 2003-07-15  Jim Meyering  <jim@meyering.net>
43952
43953         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43954
43955 2003-07-14  Simon Josefsson  <jas@extundo.com>
43956
43957         * modules/mempcpy: New file.
43958         * MODULES.html.sh (func_all_modules): Add mempcpy.
43959
43960 2003-07-14  Simon Josefsson  <jas@extundo.com>
43961
43962         * m4/mempcpy.m4: New file.
43963
43964 2003-07-14  Simon Josefsson  <jas@extundo.com>
43965
43966         * lib/mempcpy.h: New file.
43967         * lib/mempcpy.c: New file.
43968
43969 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43970
43971         * modules/getdate, modules/posixtm: Depend on mktime.
43972
43973 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43974
43975         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43976         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43977         unicodeio.c, unicodeio.h, unlocked-io.h:
43978         Switch from LGPL to GPL.
43979
43980 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43981
43982         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43983         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43984         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43985         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43986         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
43987         updated automatically by ../config/srclist-update.  This changes
43988         their license from LPGL to GPL.
43989
43990 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43991
43992         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
43993         assumed to refer to the root of the most recent stable gettext version.
43994         * config/srclistvars.sh: Add defaults for eggert.
43995         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43996         Match "This program" as well as "The program".  This is needed
43997         for gettext.
43998
43999 2003-07-14  Jim Meyering  <jim@meyering.net>
44000
44001         Don't emit diagnostics.  Let callers do that.
44002         * lib/save-cwd.c: Don't include "error.h".
44003         (save_cwd): Don't call error.  Ensure that errno is valid
44004         when returning nonzero.
44005
44006         * lib/save-cwd.h (restore_cwd): Update prototype.
44007         * lib/save-cwd.c (restore_cwd): Remove two parameters.
44008         Simplify.  Don't call error upon failure.  Let callers do that.
44009         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
44010         when auditing is enabled.  But don't bother updating the #if.
44011
44012 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
44013
44014         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
44015         it breaks C++ compilation.
44016         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
44017
44018 2003-07-10  Simon Josefsson  <jas@extundo.com>
44019
44020         * modules/strchrnul (Makefile.am): Add strchrnul.h.
44021
44022 2003-07-10  Jim Meyering  <jim@meyering.net>
44023
44024         * m4/clock_time.m4: Remove trailing blank.
44025         * m4/intmax_t.m4: Likewise.
44026
44027 2003-07-10  Jim Meyering  <jim@meyering.net>
44028
44029         * lib/vasnprintf.c: Remove trailing blanks.
44030         Make cpp indentation consistent.
44031
44032 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44033
44034         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
44035         posixver.c, strftime.c, strnlen.c, strverscmp.c:
44036         Switch from LGPL to GPL.
44037
44038 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44039
44040         * config/srclist.txt: Sort sublists.  Add
44041         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
44042         that differ from gnulib for one reason or another; we'd like this list
44043         to be smaller but for now let's document what we have.
44044
44045 2003-07-08  Paul Eggert  <eggert@twinsun.com>
44046
44047         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
44048         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
44049         and sweeter "eval x=$x".
44050         * config/srclist.txt: Get lib/argp* from glibc.
44051
44052 2003-07-07  Paul Eggert  <eggert@twinsun.com>
44053
44054         * lib/mktime.c: Fix some boundary cases and remove need for floating
44055         point.
44056
44057         Issue a compile-time diagnostic if time_t is floating point, or if
44058         two's complement arithmetic is not in effect, or if arithmetic
44059         right shift does not propagate the sign.  These assumptions were
44060         all in the original code but they weren't checked.
44061
44062         (TIME_T_MIDPOINT, verify): New macros.
44063         (__isleap): Remove; it has integer overflow problems.
44064         (leapyear): New function, without those problems.
44065         (ydhms_tm_diff): Remove; splitting into two parts.
44066         (ydhms_diff): New function, containing the arithmetic part of
44067         the old ydhms_tm_diff function.  Issue a compile-time
44068         diagnostic if we are not using C99 integer division.
44069         Avoid casts when possible.
44070         (guess_time_tm): New function, containing the checking part of
44071         the old ydhms_tm_diff function.  Return the new value, rather than
44072         the difference between it and the old.  Accept a new argument T
44073         so that *T specifies the old value.  Check for overflow in the result.
44074
44075         (__mktime_internal): Use a time_t offset, not a long int offset.
44076         This undoes the 2003-06-04 change, which is no longer needed now
44077         that we have better overflow checking.
44078         (localtime_offset): Likewise.
44079
44080         (__mktime_internal): Avoid harmful overflow on hosts where time_t
44081         and long are 64-bit but int is only 32-bit.
44082         (ydhms_diff): Use long int to store year1 and yday1.
44083         Issue a compile-time diagnostic if long int is not wide enough.
44084
44085         (__mktime_internal): Use long int to store adjusted year and yday.
44086         Use plain C rather than preprocessor commands, if that doesn't
44087         affect efficiency.
44088         Check for overflow (and try to repair) after each probe
44089         rather than checking only at the very end.  This avoids some bugs
44090         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
44091         does not equal GMT offset at maximum time).
44092         Use integer to check for overflow rather than floating point; this
44093         is more portable to non-IEEE hosts, and is a tad faster.
44094         When we detect that we are oscillating between two values,
44095         don't check whether tm_isdst has the requested value, since
44096         we already know the answer.  When tm_isdst has the wrong value,
44097         use a different heuristic to find the right one, based on the
44098         extreme values actually observed in practice in tz2003a,
44099         rather than the (overly optimistic) "previous 3 calendar quarters".
44100
44101         (not_equal_tm, print_tm, check_result): Use "const T" rather than
44102         "T const" to accommodate glibc style.
44103         (check_result): Use less-confusing report format.  "long" -> "long int.
44104         (main): Likewise.
44105         Don't loop if the iteration overflows time_t.
44106         Allow a negative step in the iteration.
44107
44108 2003-07-06  Karl Berry  <karl@gnu.org>
44109
44110         * config/depcomp: update from automake.
44111         * config/config.sub: update from prep.
44112
44113 2003-07-03  Karl Berry  <karl@gnu.org>
44114
44115         * config/config.guess: update from prep.
44116
44117 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44118
44119         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
44120         xreadlink.c now includes it unconditionally.
44121
44122 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44123
44124         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
44125         having it depend on HAVE_SYS_TYPES_H.
44126
44127 2003-07-01  Bruno Haible  <bruno@clisp.org>
44128
44129         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
44130         <sys/types.h> should be sufficient.
44131         Reported by Paul Eggert.
44132
44133 2003-06-26  Karl Berry  <karl@gnu.org>
44134
44135         * config/depcomp: update from automake.
44136
44137 2003-06-26  Bruno Haible  <bruno@clisp.org>
44138
44139         * modules/human: Depend on module stdbool.
44140
44141 2003-06-25  Bruno Haible  <bruno@clisp.org>
44142
44143         * modules/readlink: New file.
44144         * modules/xreadlink: Depend on it.
44145         * MODULES.html.sh (func_all_modules): Add readlink.
44146
44147 2003-06-25  Bruno Haible  <bruno@clisp.org>
44148
44149         * m4/readlink.m4: New file.
44150
44151 2003-06-25  Bruno Haible  <bruno@clisp.org>
44152
44153         * lib/readlink.c: New file.
44154
44155 2003-06-22  Karl Berry  <karl@gnu.org>
44156
44157         * config/srclist.txt: update mkinstalldirs from automake.
44158         * config/mkinstalldirs: update.
44159
44160 2003-06-22  Bruno Haible  <bruno@clisp.org>
44161
44162         Portability to mingw32.
44163         * m4/ssize_t.m4: New file, from GNU gettext.
44164         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44165         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44166
44167 2003-06-22  Bruno Haible  <bruno@clisp.org>
44168
44169         * modules/safe-read: Add m4/ssize_t.m4.
44170         * modules/xreadlink: Add m4/ssize_t.m4.
44171
44172 2003-06-20  Bruno Haible  <bruno@clisp.org>
44173
44174         Assume C89, so PARAMS isn't needed.
44175         * lib/unicodeio.h (PARAMS): Remove.
44176         * lib/unicodeio.c: Don't use PARAMS.
44177
44178 2003-06-18  Karl Berry  <karl@gnu.org>
44179
44180         * config/config.{guess,sub}: update from prep.
44181
44182 2003-06-18  Jim Meyering  <jim@meyering.net>
44183
44184         Merge changes from coreutils.
44185         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44186         Remove explicit declarations of xmalloc and realloc.
44187         Include xalloc.h.
44188         (read_utmp): Remove anachronistic cast of xmalloc.
44189
44190 2003-06-17  Paul Eggert  <eggert@twinsun.com>
44191
44192         Assume C89, so PARAMS isn't needed.
44193         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
44194         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44195         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44196         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44197         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44198         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44199         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44200         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44201         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44202         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44203         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44204         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44205         no longer needed. Anyway, config.h should always be included before any
44206         other file.
44207
44208 2003-06-11  Simon Josefsson  <jas@extundo.com>
44209
44210         * modules/sysexits: New file.
44211         * MODULES.html.sh (func_all_modules): Add sysexits.
44212
44213 2003-06-11  Simon Josefsson  <jas@extundo.com>
44214
44215         * lib/sysexit_.h: New file.
44216
44217 2003-06-11  Derek Price  <derek@ximbiot.com>
44218
44219         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44220         necessary.
44221
44222 2003-06-11  Bruno Haible  <bruno@clisp.org>
44223
44224         * m4/sysexits.m4: New file.
44225
44226 2003-06-10  Simon Josefsson  <jas@extundo.com>
44227
44228         * lib/argp.h: New file, from glibc.
44229         * lib/argp-ba.c: New file, from glibc.
44230         * lib/argp-eexst.c: New file, from glibc.
44231         * lib/argp-fmtstream.c: New file, from glibc.
44232         * lib/argp-fmtstream.h: New file, from glibc.
44233         * lib/argp-fs-xinl.c: New file, from glibc.
44234         * lib/argp-help.c: New file, from glibc.
44235         * lib/argp-namefrob.h: New file, from glibc.
44236         * lib/argp-parse.c: New file, from glibc.
44237         * lib/argp-pv.c: New file, from glibc.
44238         * lib/argp-pvh.c: New file, from glibc.
44239         * lib/argp-xinl.c: New file, from glibc.
44240
44241 2003-06-10  Simon Josefsson  <jas@extundo.com>
44242
44243         * modules/strchrnul: New file.
44244
44245 2003-06-10  Simon Josefsson  <jas@extundo.com>
44246
44247         * modules/argp: New file.
44248
44249 2003-06-10  Simon Josefsson  <jas@extundo.com>
44250
44251         * m4/strchrnul.m4: New file.
44252
44253 2003-06-10  Simon Josefsson  <jas@extundo.com>
44254
44255         * lib/strchrnul.h: New file.
44256         * lib/strchrnul.c: New file.
44257
44258 2003-06-10  Bruno Haible  <bruno@clisp.org>
44259
44260         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44261
44262 2003-06-07  Karl Berry  <karl@gnu.org>
44263
44264         * config/config.{guess,sub}: update from prep.
44265
44266 2003-06-07  Jim Meyering  <jim@meyering.net>
44267
44268         * modules/strtod: Use $(...) notation, not @...@ for
44269         AC_REPLACE'd variables.
44270         * modules/localcharset: Likewise.
44271
44272 2003-06-07  Jim Meyering  <jim@meyering.net>
44273
44274         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44275         in place of my name in the copyright comment.
44276         Remove definition and uses of __P.
44277
44278         From coreutils.
44279         * lib/stat.c: Don't declare xmalloc explicitly.
44280         Instead, include "xalloc.h".
44281         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44282         xrealloc, and xcalloc return values.
44283         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44284         Improve comment.
44285         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44286
44287 2003-06-07  Bruno Haible  <bruno@clisp.org>
44288
44289         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44290         avoid AC_CONFIG_LINKS.
44291         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44292         fnmatch.h, to avoid AC_CONFIG_LINKS.
44293         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44294
44295 2003-06-07  Bruno Haible  <bruno@clisp.org>
44296
44297         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44298         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44299         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44300         directory.
44301         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44302         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44303         directory.
44304
44305 2003-06-06  Jim Meyering  <jim@meyering.net>
44306
44307         Merge from coreutils.
44308         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44309         Consolidate declarations and initializations of *_base* locals.
44310
44311         Merge from coreutils.
44312         This avoids a core dump on systems without GNU putenv,
44313         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44314         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44315         (unsetenv): New static function, from GNU libc.
44316         (rpl_putenv): Use it.
44317
44318         * lib/modechange.c: Remove trailing blanks.
44319
44320         Merge from coreutils.
44321         * lib/fsusage.c: Remove declaration of statfs.
44322         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44323
44324         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44325
44326 2003-06-06  Jim Meyering  <jim@meyering.net>
44327
44328         * lib/stdbool_.h: Renamed from stdbool.h.in.
44329
44330 2003-06-06  Jim Meyering  <jim@meyering.net>
44331             Bruno Haible  <bruno@clisp.org>
44332
44333         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44334         Adjust Makefile.am snippet not to redirect directly to target.
44335         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44336
44337 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44338
44339         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44340         mismatch, look in future quarters as well as past.  This fixes a
44341         bug when processing fall-backwards gaps immediately after a long
44342         period of daylight-saving time.
44343
44344         * lib/mktime.c: Assume freestanding C89 or better.
44345         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44346         (__P): Remove; not used.
44347         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44348         (mktime, not_equal_tm, print_tm, check_result,
44349         main): Use prototypes.  Use const * where appropriate.
44350         (main): Fix typo in testing code that uncovered by above changes.
44351         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44352
44353 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44354
44355         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44356         locale.h, localeconv.  This merges changes from coreutils.
44357
44358         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44359         It can be removed after the next Autoconf is released.
44360         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44361         needed.
44362
44363 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44364
44365         * lib/mktime.c: Fix Debian bug 177940
44366         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44367         (localtime_offset): Now long int, not time_t, because we want it
44368         to be guaranteed to be signed.  All uses changed.
44369         (__mktime_internal): If overflow would occur when adding offset,
44370         don't add it.
44371
44372         Merge 'human' changes from coreutils.  Rewrite to support
44373         locale-specific notations like thousands separators.
44374         * lib/human.c: Simplify authorship notice.
44375         Include human.h immediately after config.h.
44376         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44377         <limits.h>: Do not include, since human.h does.
44378         (SIZE_MAX, UINTMAX_MAX): New macros.
44379         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44380         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44381         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44382         (power_letter): Renamed from suffixes.
44383         (generate_suffix_backwards): Remove.
44384         (adjust_value): Now takes int style (because of human.h changes)
44385         and long double value (for greater precision on some platforms).
44386         (group_number): New function.
44387         (human_readable): Use it.  Use integer options, not enum.
44388         Put the options before the sizes in the arg list.
44389         Support all the new options.
44390         The old human_readable function has been removed;
44391         use inttostr.h instead.
44392         (human_readable, default_block_size, humblock):
44393         Use uintmax_t, not int, for block sizes.
44394         (human_readable_inexact, block_size_types): Remove.
44395         (block_size_opts): New constant.
44396         (human_options): Renamed from human_block_size, with new signature
44397         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44398         * lib/human.h: Add copyright and authorship notice.
44399         Include <limits.h> and <stdbool.h> unconditionally.
44400         (PARAMS): Remove.  All uses removed.
44401         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44402         (enum human_inexact_style): Remove tag; now a nameless enum.
44403         (human_floor, human_ceiling, human_round_to_even): Now have
44404         values 2, 0, 1 rather than -1, 1, 0.
44405         (human_group_digits, human_suppress_point_zero, human_autoscale,
44406         human_base_1024, human_SI, human_B): New constants.
44407         (human_readable_inexact, human_block_size): Remove.
44408         (human_readable): Size args are now uintmax_t, not int.
44409         (human_options): New decl.
44410
44411         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44412         unnecessary now that we assume C89 or better.  This change
44413         imported from coreutils.
44414
44415         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44416         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44417         in the 2003-05-30 sync from glibc.
44418
44419         .h files should stand alone, but we shouldn't include <sys/types.h>
44420         if we can get away with just <stddef.h>.
44421
44422         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44423         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44424         rather than <sys/types.h>, as we merely need size_t.
44425         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44426         to get size_t.
44427         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44428         Include <stdio.h>, to get FILE.
44429         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44430         memcasecmp.h has included <stddef.h> and all we need is size_t.
44431         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44432         our interface, instead of including <sys/types.h>
44433
44434 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44435
44436         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44437         now, as glibc mktime is buggy on non-glibc systems.
44438
44439 2003-06-03  Karl Berry  <karl@gnu.org>
44440
44441         * config/config.sub: update from prep.
44442
44443 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44444
44445         [from coreutils]
44446         Fix some minor time-related bugs with POSIX time arguments.
44447         Some valid time stamps were being rejected (notably -1, and
44448         time stamps before 1900 on 64-bit hosts).  And some invalid
44449         time stamps were being accepted, e.g. September 31.
44450
44451         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44452         that we can return (time_t) -1 successfully.
44453         * lib/posixtm.c: Likewise.
44454         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44455         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44456         (t): Remove static var.
44457         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44458         of static var.  All uses changed.
44459         (year): Do not reject years before 1900; they can occur with
44460         64-bit time_t.
44461         (posix_time_parse): Do not check for out-of-range components;
44462         that is now the caller's responsibility, since our checks were
44463         only approximations.
44464         (posixtime): Use mktime to check for out-of-range components,
44465         since it knows them exactly.
44466         If mktime returns (time_t) -1, check whether an error actually occurred
44467         by invoking localtime on -1.
44468         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44469         posixtime failures better.
44470         Improve the test data (in comments only).
44471
44472 2003-06-02  Karl Berry  <karl@gnu.org>
44473
44474         * config/mkinstalldirs (version): new variable.
44475         (--version): new option.
44476         (usage): improve message.
44477
44478 2003-05-30  Karl Berry  <karl@gnu.org>
44479
44480         * lib/mktime.c: update from libc.
44481
44482 2003-05-30  Bruno Haible  <bruno@clisp.org>
44483
44484         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44485         * config/config.rpath: Upgrade to gettext-0.12.1.
44486
44487 2003-05-30  Bruno Haible  <bruno@clisp.org>
44488
44489         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44490         * m4/nls.m4: New file, from gettext-0.12.1.
44491         * m4/po.m4: New file, from gettext-0.12.1.
44492         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44493
44494 2003-05-30  Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44497         * lib/localcharset.h: Likewise.
44498         * lib/localcharset.c: Likewise.
44499
44500 2003-05-29  Karl Berry  <karl@gnu.org>
44501
44502         * config/config.rpath: update from gettext.
44503
44504 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44505
44506         Assume the headers required for C89 freestanding compilers.
44507         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44508         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44509         * m4/human.m4 (gl_HUMAN): Likewise.
44510         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44511         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44512         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44513         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44515         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44516
44517 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44518
44519         Assume the headers required for C89 freestanding compilers.
44520         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44521         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44522         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44523         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44524         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44525         define, since <limits.h> is guaranteed to do that.
44526         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44527         * lib/exclude.c: Include <stdbool.h> unconditionally.
44528         * lib/tempname.c: Include <stddef.h> unconditionally.
44529         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44530         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44531         <stddef.h> does that.
44532         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44533         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44534         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44535         needed.
44536         * lib/xstrtol.c: Likewise.
44537         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44538         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44539
44540         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44541         warnings on some platforms.
44542
44543         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44544         arbitrarily.
44545
44546 2003-05-26  Jim Meyering  <jim@meyering.net>
44547
44548         Merge in a change from coreutils:
44549         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44550         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44551         that condition, rather than `-1' which is slightly misleading.
44552         Change the name of the cache variable to have the gl_ prefix.
44553         Prompted by a patch from Richard Dawe for DJGPP.
44554
44555 2003-05-24  Karl Berry  <karl@gnu.org>
44556
44557         * config/config.guess: update from prep.
44558
44559 2003-05-22  Karl Berry  <karl@gnu.org>
44560
44561         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44562
44563 2003-05-20  Karl Berry  <karl@gnu.org>
44564
44565         * config/config.guess: update from prep.
44566
44567 2003-05-18  Karl Berry  <karl@gnu.org>
44568
44569         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44570         might actually be set by the user.
44571
44572         * config/depcomp, install-sh, mdate-sh: update from automake.
44573
44574 2003-05-17  Bruno Haible  <bruno@clisp.org>
44575
44576         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44577         invalid expansion for AC_EGREP_CPP.
44578         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44579         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44580         Suggested by Akim Demaille <akim@epita.fr> in
44581         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44582
44583 2003-05-12  Jim Meyering  <jim@meyering.net>
44584
44585         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44586         the space-padded-by-default conversion specifiers, %e, %k, %l.
44587
44588 2003-05-12  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44591         the string is longer than 4 KB.
44592
44593 2003-05-11  Karl Berry  <karl@gnu.org>
44594
44595         * config/config.{guess,sub}: update from prep.
44596
44597 2003-05-09  Bruno Haible  <bruno@clisp.org>
44598
44599         * modules/error: Add m4/strerror_r.m4 to file list.
44600
44601 2003-05-03  Bruno Haible  <bruno@clisp.org>
44602
44603         Upgrade to Unicode-4.0.
44604         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44605         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44606         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44607         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44608         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44609         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44610         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44611         Change width of U+E0100..U+E01EF from 1 to 0.
44612
44613 2003-04-25  Jim Meyering  <jim@meyering.net>
44614
44615         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44616         of type size_t, not int.
44617
44618 2003-04-25  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/copy-file.c: Include <stddef.h>, for size_t.
44621
44622 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44623
44624         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44625         code which expansion is under static control.  Patch imported from
44626         Akim Demaille's patch to Bison; see
44627         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44628
44629 2003-04-14  Bruno Haible  <bruno@clisp.org>
44630
44631         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44632
44633 2003-04-11  Jim Meyering  <jim@meyering.net>
44634
44635         Merge changes from Coreutils.
44636
44637         2003-03-22  Jim Meyering  <jim@meyering.net>
44638
44639         * lib/strftime.c (widen): Cast alloca return value to proper type.
44640
44641         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44642
44643         From GNU libc.
44644         * lib/strftime.c (my_strftime): Handle very large width
44645         specifications for numeric values correctly.  Improve checks for
44646         overflow.
44647
44648         2003-01-19  Jim Meyering  <jim@meyering.net>
44649
44650         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44651         definitions.
44652         (nl_get_alt_digit) [! defined my_strftime]: Define.
44653         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44654         _nl_get_alt_digit and _nl_get_walt_digit.
44655
44656         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44657         libc. These changes have no effect outside of _LIBC.
44658
44659 2003-04-10  Bruno Haible  <bruno@clisp.org>
44660
44661         * modules/findprog: New file.
44662         * MODULES.html.sh (func_all_modules): Add it.
44663
44664 2003-04-10  Bruno Haible  <bruno@clisp.org>
44665
44666         * m4/findprog.m4: New file.
44667         * m4/eaccess.m4: New file.
44668
44669 2003-04-10  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/findprog.h: New file, from GNU gettext.
44672         * lib/findprog.c: New file, from GNU gettext.
44673
44674 2003-04-05  Jim Meyering  <jim@meyering.net>
44675
44676         Merge changes from Coreutils.
44677
44678         * lib/exclude.h (PARAMS): Remove definition and uses.
44679         * lib/exclude.c: Remove uses of `PARAMS'.
44680
44681         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44682         Add test-cases for DOS filenames. Declare program_name.
44683         (main): Set up program_name.  Patch by Rich Dawe.
44684
44685         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44686         error from mntctl.
44687         Use mntctl's return value to drive the entry-processing loop, since
44688         we can't rely on the value of the vmt_length member in the last
44689         entry.  On some systems doing so could result in exhausting
44690         virtual memory.  Based in part on a patch from Mike Jetzer.
44691
44692 2003-04-04  Bruno Haible  <bruno@clisp.org>
44693
44694         * modules/linebreak: New file.
44695         * MODULES.html.sh (func_all_modules): Add it.
44696
44697 2003-04-04  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/linebreak.m4: New file.
44700
44701 2003-04-04  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/linebreak.h: New file, from GNU gettext.
44704         * lib/linebreak.c: New file, from GNU gettext with slight
44705         modifications.
44706         * lib/lbrkprop.h: New file, from GNU gettext.
44707
44708 2003-04-03  Bruno Haible  <bruno@clisp.org>
44709
44710         * modules/utf8-ucs4: New file.
44711         * modules/utf16-ucs4: New file.
44712         * modules/ucs4-utf8: New file.
44713         * modules/ucs4-utf16: New file.
44714         * MODULES.html.sh (func_all_modules): Add them.
44715
44716 2003-04-03  Bruno Haible  <bruno@clisp.org>
44717
44718         * m4/utf-ucs4.m4: New file.
44719         * m4/ucs4-utf.m4: New file.
44720
44721 2003-04-03  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/utf8-ucs4.h: New file, from GNU gettext.
44724         * lib/utf16-ucs4.h: New file, from GNU gettext.
44725         * lib/ucs4-utf8.h: New file, from GNU gettext.
44726         * lib/ucs4-utf16.h: New file, from GNU gettext.
44727
44728 2003-04-02  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/binary-io: New file.
44731         * MODULES.html.sh (func_all_modules): Add it.
44732
44733 2003-04-02  Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/binary-io.h: New file, from GNU gettext.
44736
44737 2003-04-01  Bruno Haible  <bruno@clisp.org>
44738
44739         * modules/pathname: New file.
44740         * MODULES.html.sh (func_all_modules): Add it.
44741
44742 2003-04-01  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/pathname.h: New file, from GNU gettext.
44745         * lib/concatpath.c: New file, from GNU gettext.
44746
44747 2003-03-30  Bruno Haible  <bruno@clisp.org>
44748
44749         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44750
44751 2003-03-30  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44754         function chown() doesn't exist.
44755
44756 2003-03-28  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/copy-file: New file.
44759         * MODULES.html.sh (func_all_modules): Add it.
44760
44761 2003-03-28  Bruno Haible  <bruno@clisp.org>
44762
44763         * m4/copy-file.m4: New file.
44764
44765 2003-03-28  Bruno Haible  <bruno@clisp.org>
44766
44767         * lib/copy-file.h: New file, from GNU gettext.
44768         * lib/copy-file.c: New file, from GNU gettext.
44769
44770 2003-03-18  Jim Meyering  <jim@meyering.net>
44771
44772         * lib/quote.c (quote_n): Fix typo in comment.
44773
44774 2003-03-18  Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44777         checking.
44778         * m4/onceonly_2_57.m4: Likewise.
44779
44780 2003-03-17  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44783         (m4_quote): Remove macro.
44784         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44785
44786 2003-03-14  Jim Meyering  <jim@meyering.net>
44787
44788         Merge changes from Coreutils.
44789         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44790         to be const, in order to avoid warnings.
44791         (obstack_room): Likewise.
44792         (obstack_empty_p): Likewise.
44793
44794 2003-03-14  Bruno Haible  <bruno@clisp.org>
44795
44796         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44797         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44798
44799 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44800
44801         Merge changes from Bison.
44802         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44803         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44804         when compiling Bison 1.875's `bitset bset = obstack_alloc
44805         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44806         * lib/hash.c: Include <stdbool.h> unconditionally.
44807
44808 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44809
44810         * m4/onceonly.m4 (m4_quote): New macro.
44811         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44812         Quote AC_FOREACH variable-expansions properly.
44813
44814 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44815
44816         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44817
44818 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44819
44820         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44821         Reported by Bruce Becker; see:
44822         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44823
44824 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44825             Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44828         Reported by John Hughes, see
44829         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44830
44831 2003-02-20  Bruno Haible  <bruno@clisp.org>
44832
44833         * MODULES.html.sh (func_all_modules): Add poll.
44834
44835 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44836
44837         * modules/poll: New file.
44838
44839 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44840
44841         * lib/poll_.h: New file.
44842         * lib/poll.c: New file.
44843
44844 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44845
44846         * m4/poll.m4: New file.
44847
44848 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44849
44850         * modules/mathl: New file.
44851
44852 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44853
44854         * lib/mathl.h: New file.
44855         * lib/acosl.c: New file.
44856         * lib/asinl.c: New file.
44857         * lib/atanl.c: New file.
44858         * lib/ceill.c: New file.
44859         * lib/cosl.c: New file.
44860         * lib/expl.c: New file.
44861         * lib/floorl.c: New file.
44862         * lib/frexpl.c: New file.
44863         * lib/ldexpl.c: New file.
44864         * lib/logl.c: New file.
44865         * lib/sincosl.c: New file.
44866         * lib/sinl.c: New file.
44867         * lib/sqrtl.c: New file.
44868         * lib/tanl.c: New file.
44869         * lib/trigl.c: New file.
44870         * lib/trigl.h: New file.
44871
44872 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44873
44874         * m4/mathl.m4: New file.
44875
44876 2003-02-18  Bruno Haible  <bruno@clisp.org>
44877
44878         * MODULES.html.sh (func_all_modules): Add mathl.
44879
44880 2003-02-17  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/mkdtemp: New module.
44883         * MODULES.html.sh (func_all_modules): Add it.
44884
44885 2003-02-17  Bruno Haible  <bruno@clisp.org>
44886
44887         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44888
44889 2003-02-17  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/mkdtemp.h: New file, from GNU gettext.
44892         * lib/mkdtemp.c: New file, from GNU gettext.
44893
44894 2003-02-02  Jim Meyering  <jim@meyering.net>
44895
44896         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44897         e.g. glibc-2.2.93.
44898
44899 2003-01-31  Bruno Haible  <bruno@clisp.org>
44900
44901         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44902         'rpl_rename'.
44903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44904         'rpl_strnlen'.
44905         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44906         'rpl_strtod'.
44907         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44908         'rpl_utime'.
44909
44910 2003-01-31  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/rename.c: #undef rename before defining rpl_rename.
44913         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44914
44915 2003-01-30  Bruno Haible  <bruno@clisp.org>
44916
44917         * modules/vasnprintf, modules/vasprintf: New modules.
44918         * MODULES.html.sh (func_all_modules): Add them.
44919
44920 2003-01-30  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/signed.m4: New file, from GNU gettext.
44923         * m4/longdouble.m4: New file, from GNU gettext.
44924         * m4/wchar_t.m4: New file, from GNU gettext.
44925         * m4/wint_t.m4: New file, from GNU gettext.
44926         * m4/vasnprintf.m4: New file.
44927         * m4/vasprintf.m4: New file.
44928
44929 2003-01-30  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/printf-args.h: New file, from GNU gettext.
44932         * lib/printf-args.c: New file, from GNU gettext.
44933         * lib/printf-parse.h: New file, from GNU gettext.
44934         * lib/printf-parse.c: New file, from GNU gettext.
44935         * lib/vasnprintf.h: New file, from GNU gettext.
44936         * lib/vasnprintf.c: New file, from GNU gettext.
44937         * lib/asnprintf.c: New file, from GNU gettext.
44938         * lib/vasprintf.h: New file, from GNU gettext with modifications.
44939         * lib/vasprintf.c: New file, from GNU gettext.
44940         * lib/asprintf.c: New file, from GNU gettext.
44941
44942 2003-01-29  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/stpncpy: New module.
44945         * MODULES.html.sh (func_all_modules): Add it.
44946
44947 2003-01-29  Bruno Haible  <bruno@clisp.org>
44948
44949         * m4/stpncpy.m4: New file.
44950
44951 2003-01-29  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/stpncpy.h: New file, from GNU gettext with modifications.
44954         * lib/stpncpy.c: New file, from GNU gettext with modifications.
44955
44956 2003-01-28  Bruno Haible  <bruno@clisp.org>
44957
44958         * modules/c-ctype: New module.
44959         * MODULES.html.sh (func_all_modules): Add it.
44960
44961 2003-01-28  Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44964         Paul Eggert.
44965         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44966         Paul Eggert.
44967
44968 2003-01-27  Bruno Haible  <bruno@clisp.org>
44969
44970         * modules/xsetenv: New module.
44971         * MODULES.html.sh (func_all_modules): Add it.
44972
44973 2003-01-27  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/xsetenv.h: New file, from GNU gettext.
44976         * lib/xsetenv.c: New file, from GNU gettext.
44977
44978 2003-01-23  Jim Meyering  <jim@meyering.net>
44979
44980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44981         from working on systems without dirfd (at least Irix and OSF1/Tru64).
44982
44983 2003-01-23  Bruno Haible  <bruno@clisp.org>
44984
44985         * modules/minmax: New module.
44986         * MODULES.html.sh (func_all_modules): Add it.
44987
44988 2003-01-23  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44991         Eggert.
44992
44993 2003-01-22  Bruno Haible  <bruno@clisp.org>
44994
44995         * modules/exit: New module.
44996         * MODULES.html.sh (func_all_modules): Add it.
44997
44998 2003-01-22  Bruno Haible  <bruno@clisp.org>
44999
45000         * lib/exit.h: New file, from GNU gettext.
45001
45002 2003-01-19  Bruno Haible  <bruno@clisp.org>
45003
45004         * gnulib-tool: Recognize option --extract-maintainer.
45005         (func_get_maintainer): New function.
45006         * modules/*: Add Maintainer entry.
45007
45008 2003-01-16  Jim Meyering  <jim@meyering.net>
45009
45010         * m4/regex.m4: The `regex' struct is both input and output.
45011         Initialize it before each use.  Patch by Tim Waugh.
45012
45013 2003-01-16  Bruno Haible  <bruno@clisp.org>
45014
45015         * MODULES.html.sh: Add a table of contents. Add the module name as
45016         leftmost column. Add hyperlinks.
45017
45018 2003-01-15  Bruno Haible  <bruno@clisp.org>
45019
45020         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
45021
45022 2003-01-15  Bruno Haible  <bruno@clisp.org>
45023
45024         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
45025         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
45026         suffix.
45027
45028 2003-01-15  Bruno Haible  <bruno@clisp.org>
45029
45030         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
45031
45032 2003-01-15  Bruno Haible  <bruno@clisp.org>
45033
45034         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
45035         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
45036
45037 2003-01-14  Jim Meyering  <jim@meyering.net>
45038
45039         * lib/same.c (same_name): Tweak a comment.
45040
45041 2003-01-14  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
45044         when a string comparison is sufficient.
45045
45046 2003-01-14  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
45049         'unsigned int'.
45050
45051 2003-01-14  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/hash-pjw.c: Add comment about low quality of this function.
45054
45055 2003-01-13  Bruno Haible  <bruno@clisp.org>
45056
45057         * modules/stpcpy: Distribute lib/stpcpy.h.
45058         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
45059
45060 2003-01-13  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/*: Add a description.
45063         * modules/strpbrk: Fix Makefile.am snippet.
45064         * modules/strtoimax: Fix dependencies.
45065         * modules/strtoumax: Likewise.
45066
45067 2003-01-13  Bruno Haible  <bruno@clisp.org>
45068
45069         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
45070         * modules/alloca (Makefile.am): All object files depend on alloca.h.
45071         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
45072
45073 2003-01-13  Bruno Haible  <bruno@clisp.org>
45074
45075         * gnulib-tool (func_create_testdir): Store config/* files in the main
45076         directory.
45077         * config.rpath: Move to ...
45078         * config/config.rpath: ... here.
45079         * modules/gettext: Contains config/config.rpath, not config.rpath.
45080         * modules/iconv: Likewise.
45081
45082 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45083
45084         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45085         to avoid collisions with libcurses and libreadline.
45086
45087         * m4/getstr.m4: Remove.
45088         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
45089
45090 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45091
45092         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45093         to avoid collisions with libcurses and libreadline.
45094
45095         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
45096         * lib/getstr.h, getstr.c: Remove.
45097         * lib/getline.c: Include "getline.h", to check interface.
45098         Move body of old getstr.c here: this defines MIN_CHUNK and
45099         declares getdelim2, which is renamed from getstr.
45100         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
45101
45102         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
45103         All uses changed.
45104         * lib/linebuffer.h: Likewise.
45105         (readline): Remove backward-compatibility macro.
45106
45107 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45108
45109         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45110         to avoid collisions with libcurses and libreadline.
45111         * getstr: Remove.
45112         * MODULES.html.sh: Remove getstr.
45113         * modules/getline: Depend on unlocked-io, not getstr.
45114
45115 2003-01-12  Jim Meyering  <jim@meyering.net>
45116
45117         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
45118
45119 2003-01-10  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/alloca: Change Makefile.am requirements. Simplify Include
45122         requirements. Add lib/alloca_.h to file list.
45123
45124 2003-01-10  Bruno Haible  <bruno@clisp.org>
45125
45126         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
45127
45128 2003-01-10  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/alloca_.h: New file.
45131         * lib/getdate.y: Unconditionally include alloca.h.
45132         * lib/makepath.c: Likewise.
45133         * lib/setenv.c: Likewise.
45134         * lib/userspec.c: Likewise.
45135
45136 2003-01-09  Karl Berry  <karl@gnu.org>
45137
45138         * MODULES.html.sh: include `dirname $0` in PATH, to find
45139         gnulib-tool.
45140
45141 2003-01-09  Bruno Haible  <bruno@clisp.org>
45142
45143         * modules/stdbool: Change configure.ac, Makefile.am requirements.
45144         Simplify Include requirements. Add lib/stdbool.h.in to file list.
45145
45146 2003-01-09  Bruno Haible  <bruno@clisp.org>
45147
45148         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45149
45150 2003-01-09  Bruno Haible  <bruno@clisp.org>
45151
45152         * lib/stdbool.h.in: New file.
45153
45154 2003-01-09  Bruno Haible  <bruno@clisp.org>
45155
45156         * gnulib-tool (func_all_modules): Ignore files ending in ~.
45157         * MODULES.html.sh: Likewise.
45158
45159 2003-01-08  Jim Meyering  <jim@meyering.net>
45160
45161         * lib/full-write.c: Undefine and define-away `const' after inclusion
45162         of errno.h, not before.  Suggestion from Bruno Haible.
45163
45164 2003-01-08  Bruno Haible  <bruno@clisp.org>
45165
45166         * modules/full-read: Depend on full-write.
45167
45168 2003-01-08  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/safe-read.c: Include specification header first, to ensure its
45171         selfcontainedness.
45172         * lib/full-write.c: Likewise.
45173
45174 2003-01-07  Jim Meyering  <jim@meyering.net>
45175
45176         * lib/full-write.c: Rework so that it may serve to define full_read,
45177         too.
45178         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45179
45180 2003-01-07  Bruno Haible  <bruno@clisp.org>
45181
45182         * lib/strtoimax.c: Include <stdint.h> as an alternative to
45183         <inttypes.h>.
45184         * lib/xstrtol.h: Likewise.
45185         * lib/xstrtoimax.c: Likewise.
45186         * lib/xstrtoumax.c: Likewise.
45187         * lib/human.h: Likewise.
45188
45189         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45190         on systems that have <inttypes.h> but not <stdint.h>.
45191
45192 2003-01-07  Bruno Haible  <bruno@clisp.org>
45193
45194         * MODULES.html.sh: Add copyright notice.
45195         (missed_files): Omit CVS directory entries.
45196         (func_module): Make it work with sed-3.02.
45197         * MODULES.txt: Remove file.
45198
45199 2003-01-06  Jim Meyering  <jim@meyering.net>
45200
45201         * lib/version-etc.c: Update year in translatable copyright string.
45202
45203 2003-01-03  Karl Berry  <karl@gnu.org>
45204
45205         * config/config.{guess,sub}: update from prep.
45206
45207 2003-01-02  Karl Berry  <karl@gnu.org>
45208
45209         * doc/COPYING.DOC: belatedly updated to 1.2.
45210
45211 2003-01-01  Karl Berry  <karl@gnu.org>
45212
45213         * gnulib-tool (func_verify_module): report module name $module in
45214         error message, not $1.
45215         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45216         be created, only if it doesn't exist.
45217         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45218
45219 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45220
45221         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45222
45223 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45224
45225         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45226         memcmp if strcoll doesn't work.
45227
45228 2002-12-31  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45231         nonempty.
45232
45233 2002-12-31  Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/memcoll.c (STRCOLL): New macro.
45236         (memcoll): Use it.
45237
45238 2002-12-31  Bruno Haible  <bruno@clisp.org>
45239
45240         * lib/localcharset.h: New file.
45241         * lib/localcharset.c: Include it.
45242         * lib/unicodeio.c: Likewise.
45243
45244 2002-12-31  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45247         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45248
45249 2002-12-31  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/getline.h: Include <stddef.h>, for size_t.
45252
45253         * lib/unicodeio.h: Include <stddef.h>, for size_t.
45254         * lib/unicodeio.c: Don't include <stddef.h>.
45255
45256 2002-12-31  Bruno Haible  <bruno@clisp.org>
45257
45258         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45259         HAVE_TM_ZONE.
45260
45261 2002-12-24  Karl Berry  <karl@gnu.org>
45262
45263         * config/config.guess: update from prep.
45264
45265 2002-12-24  Bruno Haible  <bruno@clisp.org>
45266
45267         General infrasructure.
45268         * m4/README: Rewritten.
45269         * m4/onceonly.m4: New file.
45270         * m4/onceonly_2_57.m4: New file.
45271
45272         Module atexit.
45273         * m4/atexit.m4: New file.
45274
45275         Module strtod.
45276         * m4/strtod.m4: New file.
45277
45278         Module strtol.
45279         * m4/strtol.m4: New file.
45280
45281         Module strtoul.
45282         * m4/strtoul.m4: New file.
45283
45284         Module memchr.
45285         * m4/memchr.m4: New file.
45286
45287         Module memcmp.
45288         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45289         (jm_FUNC_MEMCMP): Invoke it.
45290
45291         Module memcpy.
45292         * m4/memcpy.m4: New file.
45293
45294         Module memmove.
45295         * m4/memmove.m4: New file.
45296
45297         Module memset.
45298         * m4/memset.m4: New file.
45299
45300         Module strcspn.
45301         * m4/strcspn.m4: New file.
45302
45303         Module strpbrk.
45304         * m4/strpbrk.m4: New file.
45305
45306         Module strstr.
45307         * m4/strstr.m4: New file.
45308
45309         Module strerror.
45310         * m4/strerror.m4: New file.
45311
45312         Module mktime.
45313         * m4/mktime.m4: Renamed from jm-mktime.m4.
45314         (gl_PREREQ_MKTIME): New macro.
45315         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45316
45317         Module malloc.
45318         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45319         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45320         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45321
45322         Module realloc.
45323         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45324         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45325         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45326
45327         Module strftime.
45328         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45329         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45330         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45331         gl_TM_GMTOFF.
45332         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45333
45334         Module xalloc.
45335         * m4/xalloc.m4: New file.
45336
45337         Module alloca.
45338         * m4/alloca.m4: New file.
45339
45340         Module putenv.
45341         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45342         (jm_FUNC_PUTENV): Invoke it.
45343
45344         Module setenv.
45345         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45346         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45347         when invoked twice.
45348         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45349         gt_FUNC_SETENV.
45350
45351         Module memrchr.
45352         * m4/memrchr.m4: New file.
45353
45354         Module stpcpy.
45355         * m4/stpcpy.m4: New file.
45356
45357         Module strcase.
45358         * m4/strcase.m4: New file.
45359
45360         Module strdup.
45361         * m4/strdup.m4: New file.
45362
45363         Module strnlen.
45364         * m4/strnlen.m4: New file.
45365
45366         Module strndup.
45367         * m4/strndup.m4: New file.
45368
45369         Module xstrtod.
45370         * m4/xstrtod.m4: New file.
45371
45372         Module xstrtol.
45373         * m4/xstrtol.m4: New file.
45374
45375         Module getdate.
45376         * m4/getdate.m4: New file.
45377
45378         Module unlocked-io.
45379         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45380         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45381         * m4/jm-glibc-io.m4n: Remove file.
45382
45383         Module long-options.
45384         * m4/long-options.m4: New file.
45385
45386         Module md5.
45387         * m4/md5.m4: New file.
45388
45389         Module sha.
45390         * m4/sha.m4: New file.
45391
45392         Module getstr.
45393         * m4/getstr.m4: New file.
45394
45395         Module getline.
45396         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45397         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45398         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45399         simply getline. Infoke gl_PREREQ_GETLINE.
45400
45401         Module obstack.
45402         * m4/obstack.m4: New file.
45403
45404         Module hash.
45405         * m4/hash.m4: New file.
45406
45407         Module readtokens.
45408         * m4/readtokens.m4: New file.
45409
45410         Module strverscmp.
45411         * m4/strverscmp.m4: New file.
45412
45413         Module stdbool.
45414         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45415         OSF/1.
45416
45417         Module strtoll.
45418         * m4/strtoll.m4: New file.
45419
45420         Module strtoull.
45421         * m4/strtoull.m4: New file.
45422
45423         Module strtoimax.
45424         * m4/strtoimax.m4: New file.
45425
45426         Module strtoumax.
45427         * m4/strtoumax.m4: New file.
45428
45429         Module xstrtoimax.
45430         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45431         jm_AC_PREREQ_XSTRTOIMAX.
45432         Moved the strtol prerequisites to strtol.m4.
45433         Moved the strtoll prerequisites to strtoll.m4.
45434         Moved the strtoimax prerequisites to strtoimax.m4.
45435
45436         Module xstrtoumax.
45437         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45438         jm_AC_PREREQ_XSTRTOUMAX.
45439         Moved the strtoul prerequisites to strtoul.m4.
45440         Moved the strtoull prerequisites to strtoull.m4.
45441         Moved the strtoumax prerequisites to strtoumax.m4.
45442
45443         Module chown.
45444         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45445         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45446
45447         Module dup2.
45448         * m4/dup2.m4: New file.
45449
45450         Module ftruncate.
45451         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45452         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45453
45454         Module getgroups.
45455         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45456         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45457
45458         Module gettimeofday.
45459         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45460         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45461         gl_PREREQ_GETTIMEOFDAY.
45462
45463         Module mkdir.
45464         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45465         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45466
45467         Module mkstemp.
45468         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45469         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45470         jm_AC_TYPE_UINTMAX_T.
45471         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45472
45473         Module stat.
45474         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45475         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45476
45477         Module lstat.
45478         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45479         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45480
45481         Module timespec.
45482         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45483         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45484         * m4/st_mtim.m4: Indentation.
45485
45486         Module nanosleep.
45487         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45488         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45489         gl_PREREQ_NANOSLEEP.
45490
45491         Module regex.
45492         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45493         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45494         (gl_REGEX): New macro.
45495
45496         Module rename.
45497         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45498         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45499
45500         Module rmdir.
45501         * m4/rmdir.m4: New file.
45502
45503         Module utime.
45504         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45505         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45506         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45507
45508         Module dirname.
45509         * m4/dirname.m4: New file.
45510
45511         Module getopt.
45512         * m4/getopt.m4: New file.
45513
45514         Module unistd-safer.
45515         * m4/unistd-safer.m4: New file.
45516
45517         Module fnmatch.
45518         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45519         declaration.
45520         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45521         (gl_FUNC_FNMATCH_POSIX): New macro.
45522         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45523         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45524         simply fnmatch.
45525
45526         Module exclude.
45527         * m4/exclude.m4: New file.
45528
45529         Module human.
45530         * m4/human.m4: New file.
45531
45532         Module acl.
45533         * m4/acl.m4: Nop.
45534
45535         Module backupfile.
45536         * m4/backupfile.m4: New file.
45537         * m4/d-ino.m4: Indentation.
45538
45539         Module fsusage.
45540         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45541         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45542         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45543
45544         Module dirfd.
45545         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45546         requirements.
45547
45548         Module euidaccess.
45549         * m4/euidaccess.m4: New file.
45550
45551         Module file-type.
45552         * m4/file-type.m4: New file.
45553
45554         Module fileblocks.
45555         * m4/fileblocks.m4: New file.
45556
45557         Module filemode.
45558         * m4/filemode.m4: New file.
45559
45560         Module isdir.
45561         * m4/isdir.m4: New file.
45562
45563         Module lchown.
45564         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45565         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45566
45567         Module makepath.
45568         * m4/makepath.m4: New file.
45569
45570         Module modechange.
45571         * m4/modechange.m4: New file.
45572
45573         Module mountlist.
45574         * m4/mountlist.m4: New file.
45575         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45576         Indentation.
45577
45578         Module path-concat.
45579         * m4/path-concat.m4: New file.
45580
45581         Module pathmax.
45582         * m4/pathmax.m4: New file.
45583
45584         Module same.
45585         * m4/same.m4: New file.
45586
45587         Module save-cwd.
45588         * m4/save-cwd.m4: New file.
45589
45590         Module savedir.
45591         * m4/savedir.m4: New file.
45592
45593         Module xgetcwd.
45594         * m4/xgetcwd.m4: New file.
45595         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45596
45597         Module xreadlink.
45598         * m4/xreadlink.m4: New file.
45599
45600         Module safe-read.
45601         * m4/safe-read.m4: New file.
45602
45603         Module safe-write.
45604         * m4/safe-write.m4: New file.
45605
45606         Module closeout.
45607         * m4/closeout.m4: New file.
45608
45609         Module stdio-safer.
45610         * m4/stdio-safer.m4: New file.
45611
45612         Module getpass.
45613         * m4/getpass.m4: New file.
45614
45615         Module getugroups.
45616         * m4/getugroups.m4: New file.
45617
45618         Module group-member.
45619         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45620         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45621
45622         Module idcache.
45623         * m4/idcache.m4: New file.
45624
45625         Module userspec.
45626         * m4/userspec.m4: New file.
45627
45628         Module gettime.
45629         * m4/clock_time.m4: New file.
45630         * m4/gettime.m4: New file.
45631
45632         Module settime.
45633         * m4/settime.m4: New file.
45634
45635         Module posixtm.
45636         * m4/posixtm.m4: New file.
45637
45638         Module gethostname.
45639         * m4/gethostname.m4: New file.
45640
45641         Module canon-host.
45642         * m4/canon-host.m4: New file.
45643
45644         Module gettext.
45645         * m4/codeset.m4: New file, from gettext-0.11.5.
45646         * m4/gettext.m4: New file, from gettext-0.11.5.
45647         * m4/glibc21.m4: New file, from gettext-0.11.5.
45648         * m4/iconv.m4: New file, from gettext-0.11.5.
45649         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45650         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45651         * m4/inttypes.m4: New file, from gettext-0.11.5.
45652         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45653         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45654         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45655         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45656         * m4/lib-link.m4: New file, from gettext-0.11.5.
45657         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45658         * m4/progtest.m4: New file, from gettext-0.11.5.
45659         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45660         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45661         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45662
45663         Module localcharset.
45664         * m4/localcharset.m4: New file.
45665
45666         Module hard-locale.
45667         * m4/hard-locale.m4: New file.
45668
45669         Module mbswidth.
45670         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45671         onceonly macros.
45672         * m4/mbrtowc.m4: Add comment.
45673
45674         Module memcasecmp.
45675         * m4/memcasecmp.m4: New file.
45676
45677         Module memcoll.
45678         * m4/memcoll.m4: New file.
45679
45680         Module unicodeio.
45681         * m4/unicodeio.m4: New file.
45682
45683         Module rpmatch.
45684         * m4/rpmatch.m4: New file.
45685
45686         Module yesno.
45687         * m4/yesno.m4: New file.
45688
45689         Module exitfail.
45690         * m4/exitfail.m4: New file.
45691
45692         Module c-stack.
45693         * m4/c-stack.m4 (gl_C_STACK): New macro.
45694         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45695
45696         Module error.
45697         * m4/error.m4 (gl_ERROR): New macro.
45698         (jm_PREREQ_ERROR): Use onceonly macros.
45699
45700         Module fatal.
45701         * m4/fatal.m4: New file.
45702
45703         Module getloadavg.
45704         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45705         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45706
45707         Module getpagesize.
45708         * m4/getpagesize.m4: New file.
45709
45710         Module getusershell.
45711         * m4/getusershell.m4: New file.
45712
45713         Module physmem.
45714         * m4/physmem.m4: New file.
45715
45716         Module posixver.
45717         * m4/posixver.m4: New file.
45718
45719         Module quotearg.
45720         * m4/quotearg.m4: New file.
45721
45722         Module quote.
45723         * m4/quote.m4: New file.
45724
45725         Module readutmp.
45726         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45727
45728         Module sig2str.
45729         * m4/sig2str.m4: New file.
45730
45731         Other.
45732         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45733         ulonglong.m4.
45734         * m4/intmax_t.m4: New file.
45735         * m4/d-type.m4: Indentation.
45736         * m4/jm-macros.m4: Update.
45737         * m4/prereq.m4 (jm_PREREQ): Update.
45738         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45739         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45740         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45741         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45742         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45743         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45744         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45745         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45746         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45747         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45748         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45749         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45750         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45751         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45752         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45753         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45754         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45755         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45756         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45757
45758 2002-12-24  Bruno Haible  <bruno@clisp.org>
45759
45760         * MODULES.txt: Update according to m4/ changes.
45761
45762         Module gettext.
45763         * config.rpath: New file, from gettext-0.11.5.
45764
45765         * modules/*: New module descriptions.
45766         * gnulib-tool: New file.
45767         * MODULES.html.sh: New file.
45768
45769 2002-12-21  Karl Berry  <karl@gnu.org>
45770
45771         * doc/fdl.texi: update to version 1.2.
45772
45773 2002-12-19  Karl Berry  <karl@gnu.org>
45774
45775         * config/config.guess: update from prep.
45776
45777 2002-12-18  Bruno Haible  <bruno@clisp.org>
45778
45779         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45780         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45781
45782 2002-12-17  Bruno Haible  <bruno@clisp.org>
45783
45784         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45785         stdlib.h, string.h.
45786
45787 2002-12-17  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/canon-host.c (strdup): Remove unused declaration.
45790
45791         * lib/fsusage.c: Include full_read.h.
45792         (get_fs_usage): Use full_read instead of safe_read.
45793
45794         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45795
45796 2002-12-12  Karl Berry  <karl@gnu.org>
45797
45798         * config/config.guess: update from prep.
45799
45800 2002-12-11  Bruno Haible  <bruno@clisp.org>
45801
45802         * m4/setenv.m4: New file, from gettext-0.11.5.
45803
45804 2002-12-11  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45807         not unsetenv().
45808         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45809         modifications:
45810
45811         2002-12-11  Bruno Haible  <bruno@clisp.org>
45812
45813                 * setenv.c (alloca): Fall back to malloc.
45814                 (freea): New macro.
45815                 (setenv): Use freea() to free memory allocated with alloca().
45816
45817         2002-11-13  Bruno Haible  <bruno@clisp.org>
45818
45819                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45820                 function declarations.
45821                 * unsetenv.c (unsetenv): Likewise.
45822
45823         2002-03-04  Bruno Haible  <bruno@clisp.org>
45824
45825                 Portability to AIX 4.3.3.
45826                 * unsetenv.c: New file, extracted from setenv.c.
45827                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45828
45829         2001-12-20  Bruno Haible  <bruno@clisp.org>
45830
45831                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45832                 use malloc instead. For SunOS 4.
45833
45834         2001-12-11  Bruno Haible  <bruno@clisp.org>
45835
45836                 * setenv.c: Declare alloca.
45837                 (compar_fn_t): New typedef.
45838                 (KNOWN_VALUE, STORE_VALUE): Use it.
45839
45840         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45841         setenv.h.
45842
45843 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45844
45845         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45846         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45847         Choose values that are less likely to collide with system fnmatch
45848         options.
45849         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45850         defined (e.g., a pure POSIX system).
45851         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45852         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45853
45854 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45855
45856         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45857         a pain in practice to deal with generated m4 files.  This change
45858         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45859
45860         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45861         and jm-glibc-io.m4, as they are no longer a special case.
45862         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45863         kludge and the auto-generation stuff.  Check only whether the
45864         functions are declared, not whether they exist, since older hosts
45865         that don't declare the functions can't use the optimization anyway.
45866
45867 2002-12-06  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45870
45871         Merge in changes from libc's misc/error.c, in preparation
45872         for the merge of gnulib's changes back into libc.
45873
45874         * lib/error.c (_): Define only if not already defined.
45875         Move definition to follow all #include directives.
45876         Include unlocked-io.h only if !_LIBC.
45877         [_LIBC]: Include <libio/libioP.h>.
45878         [USE_IN_LIBIO]: Include <libio/iolibio.h>
45879         (fflush): Tweak definition to use INTUSE.
45880         (putc): Define.
45881
45882 2002-12-05  Paul Eggert  <eggert@twinsun.com>
45883
45884         * lib/alloca.c [defined emacs]: Include "lisp.h".
45885         (xalloc_die) [defined emacs]: New macro.
45886         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45887         [! defined emacs]: Include <xalloc.h>.
45888         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45889         (pointer): Typedef to POINTER_TYPE *.
45890         (malloc): Remove decl; we now always use xmalloc.
45891         (alloca): Use old-style definition, since Emacs needs this.
45892         Check for arithmetic overflow when computing combined size.
45893
45894 2002-12-04  Paul Eggert  <eggert@twinsun.com>
45895
45896         Do not generate unlocked-io.h automatically, since it's easier to
45897         maintain it by hand.
45898
45899         * lib/unlocked-io.h: New file, from GNU diffutils,
45900         but with proper copyright notice and attribution.
45901         * lib/gen-uio: Remove.
45902         * lib/Makefile.am: Add copyright notice.
45903         (libfetish_a_SOURCES): Add unlocked-io.h.
45904         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45905         (DISTCLEANFILES, io_functions): Remove macros.
45906         (EXTRA_DIST): Remove gen_uio.
45907         (unlocked-io.h): Remove rule.
45908
45909 2002-12-04  Jim Meyering  <jim@meyering.net>
45910
45911         Reflect the fact that stat.c and lstat.c are no longer generated.
45912         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45913         (DISTCLEANFILES): Likewise.
45914         (EXTRA_DIST): Likewise.
45915         (all_local): Don't depend on stat.c or lstat.c.
45916         (stat.c, lstat.c): Remove rules.
45917         (EXTRA_DIST): Remove xstat.in.
45918
45919         * lib/xstat.in: Remove file.  Contents moved into stat.c.
45920         * lib/stat.c: New file.  Contents mostly from xstat.in.
45921         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45922         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45923
45924         * lib/safe-read.c: Rework so that it may serve to define safe_write,
45925         too.
45926         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45927
45928 2002-12-03  Jim Meyering  <jim@meyering.net>
45929
45930         * lib/safe-read.c, safe-write.c: Change variable names and comments,
45931         but not semantics, to minimize the differences between these two files.
45932         (safe_read): Change comment to mention SAFE_READ_ERROR.
45933
45934         * lib/safe-read.c (IS_EINTR): Define.
45935         (safe_read): Use IS_EINTR in place of in-function cpp directives.
45936
45937 2002-12-02  Jim Meyering  <jim@meyering.net>
45938
45939         * lib/safe-read.c (EINTR): Define.
45940         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45941         (INT_MAX): Provide fallback.
45942         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45943
45944         * lib/safe-read.h (SAFE_READ_ERROR): Define.
45945
45946 2002-12-02  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45949         Define, taken from safe-read.c.
45950         (INT_MAX): Provide fallback.
45951         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45952         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45953
45954         * lib/safe-read.c (EINTR): Remove definition.
45955         (safe_read): Don't use EINTR if it is absent.
45956
45957 2002-12-01  Jim Meyering  <jim@meyering.net>
45958
45959         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45960         zero.
45961         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45962
45963 2002-11-27  Paul Eggert  <eggert@twinsun.com>
45964
45965         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45966         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45967         with `if (! (value < limit)) abort ();', for readability.
45968
45969 2002-11-26  Karl Berry  <karl@gnu.org>
45970
45971         * lib/strdup.c: copy from libc again, with jim's ok.
45972         * lib/.cppi-disable: re-add strdup.c
45973
45974 2002-11-25  Karl Berry  <karl@gnu.org>
45975
45976         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45977         instead of "strtol.c".
45978
45979 2002-11-25  Karl Berry  <karl@gnu.org>
45980
45981         * config/install-sh: update from automake for variable quoting, $0 in
45982         error msgs, etc.
45983
45984         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45985         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45986         entry.
45987
45988 2002-11-25  Jim Meyering  <jim@meyering.net>
45989
45990         * lib/mktime.c: Sync from libc, now that it has the latest fix.
45991
45992 2002-11-24  Karl Berry  <karl@gnu.org>
45993
45994         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45995         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45996
45997 2002-11-24  Jim Meyering  <jim@meyering.net>
45998
45999         Update from coreutils:
46000
46001         * lib/mktime.c: Merge in changes from libc.
46002
46003         Avoid a link-time failure on some Linux systems.
46004         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
46005         (otherwise).
46006         (__mon_yday): Declare with the STATIC attribute.
46007         (__mktime_internal): Likewise.
46008         Based on a report from Greg Schafer.
46009
46010 2002-11-23  Jim Meyering  <jim@meyering.net>
46011
46012         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
46013         Use `unsigned', not `int', as type of index.
46014
46015         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
46016
46017         * lib/fsusage.c: Remove unneeded parentheses around operands of
46018         `defined'.
46019
46020 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46021
46022         * lib/quotearg.h: Allow multiple inclusion by surrounding with
46023         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
46024         so that we can be included first.
46025         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
46026         * lib/quotearg.c: Include quotearg.h immediately after config.h.
46027         No need to include stddef.h or sys/types.h any more.
46028         Surround local include files with "", not "<>".
46029         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
46030         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
46031         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
46032         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
46033         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
46034         (ISPRINT): Remove; no longer needed now that we assume C89.
46035
46036         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
46037         Preserve errno.
46038
46039         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
46040         quotearg_char): Use SIZE_MAX rather than
46041         (size_t) -1 when we are talking about "infinity".
46042
46043         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
46044
46045 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46046
46047         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
46048         hint that one should use `if (! x) abort ();' rather than `assert
46049         (x);', and anyway it's one less thing to worry about configuring.
46050         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
46051         hash_rehash, hash_insert): Use abort rather than assert.
46052
46053 2002-11-22  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/safe-read.h: Assume C89. Add comments.
46056         (safe_read): Change return type to size_t.
46057         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
46058         byte counts > SSIZE_MAX correctly.
46059         * lib/safe-write.h: New file.
46060         * lib/safe-write.c: New file.
46061         * lib/full-read.h: New file.
46062         * lib/full-read.c: New file.
46063         * lib/full-write.h: Assume C89. Add comments.
46064         * lib/full-write.c: Include safe-write.h.
46065         (full_write): Rewritten to use safe_write.
46066         Suggested by Jim Meyering and Paul Eggert.
46067
46068 2002-11-21  Jim Meyering  <jim@meyering.net>
46069
46070         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
46071
46072         Merge in changes from the coreutils.
46073
46074         2002-09-25  Paul Eggert  <eggert@twinsun.com>
46075         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
46076         <stdint.h>.
46077         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
46078         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
46079         int.  Work more efficiently if X is the same width as uintmax_t.
46080         Do not compare X to -1, to avoid bogus compiler warning.
46081         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
46082         Don't assume that f_frsize and f_bsize are the same type.
46083
46084         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
46085         warning on FreeBSD.
46086
46087         * lib/makepath.c (make_path): Restore umask *before* creating the final
46088         component.
46089         (make_path): Minor reformatting.
46090
46091         * lib/xmalloc.c: Adjust to work with new autoconf macros,
46092         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
46093         HAVE_MALLOC/HAVE_REALLOC.
46094
46095         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
46096         dummy ones.  At least on GNU/Linux systems, `auto' means something
46097         else.
46098         From Michael Stone.
46099
46100 2002-11-21  Bruno Haible  <bruno@clisp.org>
46101
46102         Remove case insensitive option matching.
46103         * lib/argmatch.h (argcasematch): Remove declaration.
46104         (ARGCASEMATCH): Remove macro.
46105         (__xargmatch_internal): Remove case_sensitive argument.
46106         (XARGMATCH): Update.
46107         (XARGCASEMATCH): Remove macro.
46108         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
46109         case_sensitive argument.
46110         (argcasematch): Remove function.
46111         (__xargmatch_internal): Remove case_sensitive argument.
46112         (main): Use XARGMATCH instead of XARGCASEMATCH.
46113
46114         * lib/xmalloc.c: Change compile-time error message. Add comment about
46115         required autoconf version.
46116
46117 2002-11-20  Paul Eggert  <eggert@twinsun.com>
46118
46119         Merge argmatch cleanups from Bison.  Assume C89.
46120
46121         * lib/argmatch.c: Include config.h here, not in argmatch.h.
46122         Include stdlib.h, for EXIT_FAILURE.
46123         Always include <string.h>, since we assume C89.
46124         (EXIT_FAILURE): Remove pre-C89 bug workaround.
46125         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
46126         Include <stddef.h> instead, since it's all we need for size_t.
46127         (PARAMS): Remove.  All uses removed.
46128         (ARRAY_CARDINALITY): Do not bother to #undef.
46129         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
46130         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46131         Remove unnecessary parentheses.
46132         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46133         Insert necessary parentheses.
46134         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
46135         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
46136
46137 2002-11-19  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
46140         * lib/mbswidth.h: Include <stddef.h>, for size_t.
46141
46142         * lib/mbswidth.h (PARAMS): Remove macro.
46143         (mbswidth, mbsnwidth): Use ANSI C function declarations.
46144         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
46145
46146         * lib/gcd.h (PARAMS): Remove macro.
46147         (gcd): Use ANSI C function declarations.
46148         * lib/gcd.c (gcd): Likewise.
46149
46150 2002-11-15  Bruno Haible  <bruno@clisp.org>
46151
46152         * lib/strcspn.c: Include <stddef.h>.
46153         (strcspn): Use ANSI C function declaration. Change return type to
46154         size_t. Use NULL.
46155         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46156         (strpbrk): Use NULL.
46157         * lib/strpbrk.h (PARAMS): Remove macro.
46158         (strpbrk): Use ANSI C function declaration.
46159         * lib/strstr.c: Don't include <sys/types.h>.
46160         * lib/strstr.h (PARAMS): Remove macro.
46161         (strstr): Use ANSI C function declarations.
46162
46163 2002-11-14  Karl Berry  <karl@gnu.org>
46164
46165         * config/mkinstalldirs: `do' on separate line, instead of
46166         `for var; do'.
46167
46168 2002-11-06  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46171         * lib/gcd.c (gcd): Likewise.
46172
46173 2002-11-05  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/gcd.h: New file, from gettext-0.11.5.
46176         * lib/gcd.c: New file, from gettext-0.11.5.
46177
46178 2002-11-05  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46181         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46182         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46183         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46184
46185         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46186         <libintl.h>.
46187         * lib/makepath.c: Include gettext.h instead of <locale.h> and
46188         <libintl.h>.
46189
46190         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46191         * lib/human.c: Include gettext.h instead of <libintl.h>.
46192         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46193         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46194         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46195         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46196         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46197         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46198         (textdomain): Remove definition.
46199         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46200
46201         * lib/long-options.c: Remove include of <libintl.h> and definition of
46202         _.
46203         * lib/same.c: Remove include of <libintl.h> and definition of _.
46204
46205 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46206
46207         * lib/config.charset: A few additions for Solaris.
46208
46209 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46210
46211         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46212         * lib/localcharset.c (locale_charset): Declare as extern "C".
46213
46214 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46215
46216         * lib/config.charset: msdos in uk_UA uses CP1125.
46217
46218 2002-11-04  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46221         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46222         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46223         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46224         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46225
46226 2002-11-04  Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/localcharset.c (locale_charset): Don't return an empty string.
46229
46230 2002-11-04  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46233         aliases.
46234
46235 2002-11-04  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/config.charset: Update for newest glibc. Add canonical names
46238         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46239
46240 2002-11-04  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/config.charset: Add support for NetBSD.
46243
46244 2002-11-04  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46247
46248 2002-11-01  Bruno Haible  <bruno@clisp.org>
46249
46250         * configure.in: Add AC_CONFIG_AUX_DIR call.
46251         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46252         test/Makefile.
46253         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46254
46255 2002-09-28  Karl Berry  <karl@gnu.org>
46256
46257         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46258         installed automake until the next release, since changes have been
46259         made.
46260
46261 2002-09-25  Karl Berry  <karl@gnu.org>
46262
46263         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46264         * lib/getopt*: copy from libc/posix.
46265         * lib/gettext.h: copy from gettext.
46266         * lib/.cppi-disable: add strdup.c, gettext.h.
46267
46268 2002-09-25  Karl Berry  <karl@gnu.org>
46269
46270         * config/srclist.txt: enable gettext.h check.
46271         * config/config.{guess,sub}: update from prep.
46272         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46273                 from automake 1.6.3.
46274         See srclist*.
46275
46276 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46277
46278         * regex.c (PATFETCH): Remove the translating fetch.
46279         (PATFETCH_RAW): Rename to PATFETCH.
46280         (set_image_of_range): New fun.
46281         (SET_RANGE_TABLE_WORK_AREA): Use it.
46282         (regex_compile): Don't translate the pattern chars so eagerly.
46283         Only do it when inserting an `exactn' bytecode or when handling
46284         a char-range.
46285         (mutually_exclusive_p): Avoid empty statement.
46286
46287 2002-07-06  Jim Meyering  <meyering@lucent.com>
46288
46289         * m4/README: Don't mention Makefile.am.in.
46290         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46291
46292 2002-07-01  Jim Meyering  <meyering@lucent.com>
46293
46294         * lib/c-stack.c: Include sys/time.h.
46295         From Volker Borchert.
46296
46297 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46298
46299         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46300
46301 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46302
46303         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46304         New macro.  Use it uniformly instead of
46305         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46306         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46307         reported by Vin Shelton.
46308
46309 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46310
46311         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46312         Do not assume SA_SIGINFO behavior.
46313         Bug reported by Jim Meyering on NetBSD 1.5.2.
46314
46315 2002-06-22  Jim Meyering  <meyering@lucent.com>
46316
46317         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46318         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46319
46320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46321         now that configure.ac uses AC_GNU_SOURCE.
46322         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46323         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46324
46325         Update to latest tools.  Suggestions from Paul Eggert.
46326         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46327         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46328         * m4/fnmatch.m4: Likewise.
46329         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46330         to AC_HEADER_STDBOOL
46331
46332 2002-06-22  Jim Meyering  <meyering@lucent.com>
46333
46334         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46335         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46336
46337 2002-06-22  Jim Meyering  <meyering@lucent.com>
46338
46339         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46340
46341         * lib/exitfail.c, exitfail.h: Likewise.
46342         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46343
46344         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46345         of fnmatch.h.
46346         (EXTRA_DIST): Add fnmatch_loop.c.
46347         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46348
46349         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46350         * lib/fnmatch.c: Update from diffutils-2.8.2.
46351         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46352         * lib/fnmatch.h: Remove file.
46353
46354 2002-06-21  Jim Meyering  <meyering@lucent.com>
46355
46356         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46357         * m4/mbrtowc.m4: Likewise.
46358
46359         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46360         * m4/mbswidth.m4: Reflect name change:
46361         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46363
46364         * m4/lib-link.m4: Update from gettext-0.11.2.
46365         * m4/gettext.m4: Likewise.
46366
46367         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46368         From Alfred M. Szmidt.
46369
46370 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46371
46372         * lib/file-type.h: Report an error if neither S_ISREG nor
46373         S_IFREG is defined, instead of using a test specific to glibc
46374         2.2.  This should be safe, since POSIX requires S_ISREG and
46375         Unix Version 7 had S_IFREG.  We don't need to check for
46376         <sys/types.h> since we don't use any symbols that it defines.
46377
46378 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46379
46380         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46381         $@-t, so that each temporary file name is unique and valid in the first
46382         8 characters, for operation under DOS.
46383
46384 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46385
46386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46387
46388 2002-06-15  Jim Meyering  <meyering@lucent.com>
46389
46390         Work even with DJGPP 2.03, which lacks support for symlinks.
46391         From Richard Dawe.
46392         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46393         is defined.
46394         * lib/lchown.c (S_ISLNK): Likewise.
46395
46396 2002-06-15  Jim Meyering  <meyering@lucent.com>
46397
46398         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46399         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46400         have been included before this file.
46401
46402 2002-06-14  Jim Meyering  <meyering@lucent.com>
46403
46404         * lib/file-type.h: Use the version from diffutils-2.8.2.
46405         * lib/file-type.c: Likewise.
46406
46407 2002-06-07  Jim Meyering  <meyering@lucent.com>
46408
46409         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46410         They're needed at least for NetBSD 1.5.2.
46411         ($statxfs_includes): Include those same headers.
46412         ($statxfs_includes): Include sys/vfs.h if available.
46413         ($statxfs_includes): Likewise for sys/statvfs.h.
46414         Check for the following members in both structs statfs and statvfs:
46415         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46416
46417 2002-06-01  Jim Meyering  <meyering@lucent.com>
46418
46419         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46420         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46421
46422 2002-05-28  Jim Meyering  <meyering@lucent.com>
46423
46424         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46425         Reported by Volker Borchert.
46426
46427 2002-05-27  Jim Meyering  <meyering@lucent.com>
46428
46429         Fix a problem seen only on nonconforming systems whereby ls.c's
46430         use of localtime, and then of gettimeofday would cause trouble:
46431         the localtime call used to initialize rpl_gettimeofday's save
46432         mechanism would clobber ls's current local time information so
46433         that in any long listing the first file would always be listed
46434         with date 1970-01-01.  Analysis by Volker Borchert.
46435
46436         * lib/gettimeofday.c (localtime): Undefine.
46437         (rpl_localtime): New function.
46438
46439 2002-05-27  Jim Meyering  <meyering@lucent.com>
46440
46441         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46442         localtime.
46443
46444         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46445         use the replacement function; it wouldn't resolve at link time.
46446         Reported by Volker Borchert.
46447
46448 2002-05-22  Jim Meyering  <meyering@lucent.com>
46449
46450         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46451         file-type.h.
46452         * lib/file-type.h: New file.
46453         * lib/file-type.c (file_type): New file/function.  Extracted from
46454         diffutils.
46455
46456 2002-04-30  Jim Meyering  <meyering@lucent.com>
46457
46458         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46459
46460 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46461
46462         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46463
46464 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46465
46466         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46467         Do not check for alloca.h (no longer used) or stdbool.h (was never
46468         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46469
46470 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46471
46472         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46473
46474 2002-04-29  Jim Meyering  <meyering@lucent.com>
46475
46476         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46477         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46478         Use AC_FUNC_STRNLEN here instead.
46479
46480         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46481         With autoconf-2.53a, it's part of AC_PROG_CC.
46482
46483 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46484
46485         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46486         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46487
46488 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46489
46490         * lib/sig2str.h, lib/sig2str.c: New files.
46491         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46492
46493 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46494
46495         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46496         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46497         of 127, since 64 is the largest conceivable number for ancient
46498         nonstandard hosts.
46499         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46500
46501 2002-04-28  Jim Meyering  <meyering@lucent.com>
46502
46503         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46504
46505 2002-04-24  Jim Meyering  <meyering@lucent.com>
46506
46507         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46508         (jm_PREREQ): Use it.
46509
46510         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46511         mach/mach.h fcntl.h.
46512         Check for this function: setlocale.
46513
46514 2002-04-24  Jim Meyering  <meyering@lucent.com>
46515
46516         * lib/gettext.h: New file, from Gettext.
46517         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46518         (libfetish_a_SOURCES): Add gettext.h.
46519
46520 2002-04-16  Jim Meyering  <meyering@lucent.com>
46521
46522         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46523         ut_pid, ut_id, ut_exit.
46524
46525 2002-04-16  Jim Meyering  <meyering@lucent.com>
46526
46527         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46528         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46529         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46530
46531 2002-04-12  Jim Meyering  <meyering@lucent.com>
46532
46533         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46534         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46535         existence of the getmntinfo function.  Needed for Darwin 5.3.
46536
46537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46538         This is necessary at least on Darwin 5.3.
46539
46540         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46541         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46542         strnlen.o in the library, and that makes some versions of ranlib
46543         object.
46544
46545 2002-04-12  Jim Meyering  <meyering@lucent.com>
46546
46547         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46548
46549 2002-04-09  Jim Meyering  <meyering@lucent.com>
46550
46551         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46552         to be more precise.  Rather than saying we're checking whether the
46553         function `works', say what we're testing.
46554         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46555         Reported by Bruno Haible.
46556
46557 2002-03-10  Jim Meyering  <meyering@lucent.com>
46558
46559         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46560         Suggestion from Santiago Vila.
46561
46562 2002-03-08  Jim Meyering  <meyering@lucent.com>
46563
46564         * lib/rename.c: Mention that this wrapper is needed also on
46565         mips-dec-ultrix4.4 systems.
46566
46567 2002-03-02  Jim Meyering  <meyering@lucent.com>
46568
46569         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46570         not HAVE_CLOCK_SETTIME.
46571
46572 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46573
46574         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46575         Check for clock_settime.
46576
46577 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46578
46579         * lib/nanosleep.h: Rename to....
46580         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46581
46582         * lib/gettime.c: New file.
46583         * lib/settime.c: New file.
46584         * lib/stime.c: Remove.
46585
46586         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46587         timespec.h.  Remove nanosleep.h.
46588
46589 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46590
46591         * m4/acl.m4: New file.
46592         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46593         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46594
46595 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46596
46597         * lib/acl.c, lib/acl.h: New files.
46598         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46599
46600 2002-02-24  Jim Meyering  <meyering@lucent.com>
46601
46602         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46603         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46604         cause trouble.  Reported by Nelson Beebe.
46605
46606 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46607
46608         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46609         compilers that don't know that xalloc_die never returns.
46610
46611 2002-02-20  Jim Meyering  <meyering@lucent.com>
46612
46613         * lib/getdate.c: Regenerate using bison-1.33.
46614
46615 2002-02-17  Jim Meyering  <meyering@lucent.com>
46616
46617         * config/config.guess (main): Don't use `head -1'; it's no longer
46618         portable. Use `sed 1q' instead.
46619
46620 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46621
46622         * m4/codeset.m4: Upgrade to gettext-0.11.
46623         * m4/gettext.m4: Upgrade to gettext-0.11.
46624         * m4/glibc21.m4: Upgrade to gettext-0.11.
46625         * m4/iconv.m4: Upgrade to gettext-0.11.
46626         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46627         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46628         * m4/lib-ld.m4: New file, from gettext-0.11.
46629         * m4/lib-link.m4: New file, from gettext-0.11.
46630         * m4/lib-prefix.m4: New file, from gettext-0.11.
46631         * m4/progtest.m4: Upgrade to gettext-0.11.
46632
46633 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46634
46635         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46636         (jm_PREREQ): Use it.
46637
46638 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46639
46640         * lib/posixver.c, lib/posixver.h: New files.
46641         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46642
46643 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46644             Bruno Haible  <bruno@clisp.org>
46645
46646         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46647         (fwrite_success_callback): New declaration.
46648         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46649         print_unicode_char. Call failure callback instead of error.
46650         (fwrite_success_callback): New function.
46651         (exit_failure_callback): New function.
46652         (fallback_failure_callback): New function.
46653         (print_unicode_char): Call unicode_to_mb.
46654
46655 2002-01-26  Jim Meyering  <meyering@lucent.com>
46656
46657         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46658         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46659
46660 2002-01-26  Jim Meyering  <meyering@lucent.com>
46661
46662         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46663
46664 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46665
46666         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46667
46668 2002-01-22  Jim Meyering  <meyering@lucent.com>
46669
46670         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46671         Otherwise, some versions of automake would omit the rule that makes
46672         Makefile from Makefile.in.
46673
46674 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46675
46676         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46677         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46678         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46679         (memcoll): Set errno to zero if there is no error.
46680
46681         * lib/quotearg.c (quotearg_buffer_restyled):
46682         Fix bug with quoting buffers containing NUL when backslashing escapes.
46683         This bug was exposed by the other changes in this patch.
46684         (quotearg_n_options): New arg ARGSIZE.
46685         All callers changed.
46686         (quoting_options_from_style): New function.
46687         (quotearg_n_style): Use it.
46688         (quotearg_n_style_mem): New function.
46689
46690         * lib/quotearg.h (quotearg_n_style_mem): New function.
46691
46692 2002-01-19  Jim Meyering  <meyering@lucent.com>
46693
46694         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46695         Remove useless quotes: DF_PROG="df".
46696         * m4/strnlen.m4: New file.
46697
46698 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46699
46700         * lib/backupfile.c (ISDIGIT): Comment fix.
46701         * lib/getdate.y (ISDIGIT): Likewise.
46702         * lib/posixtm.c (ISDIGIT, year): Likewise.
46703         * lib/strverscmp.c (ISDIGIT): Likewise.
46704         * lib/userspec.c (ISDIGIT): Likewise.
46705
46706 2002-01-16  Jim Meyering  <meyering@lucent.com>
46707
46708         * lib/getdate.y: Add three semicolons, each just before a closing
46709         brace. Bison (as of version 1.31) no longer papers over that mistake.
46710
46711 2002-01-05  Jim Meyering  <meyering@lucent.com>
46712
46713         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46714
46715 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46716
46717         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46718         not silently exit merely because the output buffer happens to
46719         have nothing pending.
46720
46721 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46722
46723         See the big note in ../ChangeLog.
46724         * lib/human.c (suffixes): Prefer K to k for 1024.
46725         (generate_suffix_backwards): New function.
46726         (human_readable_inexact): Use it.
46727         * lib/xstrtol.c (__xstrtol): If there is no number but there
46728         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46729         Accept 'K' as well as 'k'.
46730
46731 2001-12-15  Jim Meyering  <meyering@lucent.com>
46732
46733         * lib/regex.h (__restrict_arr): Update from libc.
46734
46735         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46736         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46737         (STREQ): Define.
46738
46739 2001-12-14  Jim Meyering  <meyering@lucent.com>
46740
46741         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46742         Suggestion from Bruno Haible.
46743
46744 2001-12-10  Jim Meyering  <meyering@lucent.com>
46745
46746         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46747         xrealloc, Instead, include "xalloc.h".
46748         (initbuffer): Don't cast xmalloc return value to char*.
46749         (readline): Reword comment.
46750         Don't cast xrealloc return value to char*
46751         Return NULL, not 0.
46752
46753 2001-12-09  Jim Meyering  <meyering@lucent.com>
46754
46755         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46756         about `signed and unsigned type in conditional expression'.
46757         * lib/posixtm.c (posix_time_parse): Likewise.
46758
46759         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46760
46761         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46762         to avoid a pedantic warning.
46763
46764         * lib/getstr.c: Don't include assert.h.
46765         (getstr): Remove warning-evoking assertions.
46766         Return -1 if offset parameter is out of bounds.
46767         Change the type of a local from int to size_t.
46768
46769         * lib/strftime.c (my_strftime_localtime_r): Include this function
46770         definition in the `#if ! HAVE_TM_GMTOFF' block.
46771
46772         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46773         Include xalloc.h instead.
46774
46775 2001-12-02  Jim Meyering  <meyering@lucent.com>
46776
46777         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46778         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46779         included.
46780
46781         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46782         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46783
46784 2001-11-30  Akim Demaille  <akim@epita.fr>
46785
46786         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46787         before being defined.
46788
46789 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46790
46791         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46792         First arg is int, not unsigned.
46793         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46794         (SIZE_MAX, UINT_MAX): New macros.
46795         (quotearg_n_options): Abort if N is negative.
46796         Avoid overflow check on hosts where size_t is 64 bits and int
46797         is 32 bits, as overflow is impossible there.
46798         Fix off-by-one typo that caused unnecessary reallocation.
46799
46800 2001-11-27  Jim Meyering  <meyering@lucent.com>
46801
46802         * lib/tempname.c: Merge with version from libc.
46803         * lib/regex.c: Likewise.
46804
46805         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46806         systems for which STDC_HEADERS is 0, it was not included, resulting in
46807         a warning about an integer-to-pointer conversion problem with getenv.
46808         Reported by Volker Borchert.
46809
46810 2001-11-26  Jim Meyering  <meyering@lucent.com>
46811
46812         * lib/gtod.h: Remove file.
46813         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46814         * lib/gettimeofday.c: Don't include gtod.h.
46815         (GTOD_init): Remove function.
46816         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46817         Suggestion from Volker Borchert.
46818
46819 2001-11-23  Jim Meyering  <meyering@lucent.com>
46820
46821         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46822         it.
46823         * lib/hash.c (struct hash_table): Define it here instead.
46824
46825 2001-11-22  Jim Meyering  <meyering@lucent.com>
46826
46827         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46828
46829 2001-11-20  Jim Meyering  <meyering@lucent.com>
46830
46831         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46832         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46833
46834 2001-11-19  Jim Meyering  <meyering@lucent.com>
46835
46836         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46837         directory.  Use "conftestXXXXXX" as the template.
46838         Suggestion from Paul Eggert.
46839
46840         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46841         immediately, so the test doesn't mistakenly hit the max-open-files
46842         limit.
46843
46844 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46845
46846         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46847         (TEMPORARIES): New macro.
46848         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46849         removes an artificial limitation (e.g. HP-UX 10.20, where
46850         TMP_MAX is 17576).
46851
46852 2001-11-18  Jim Meyering  <meyering@lucent.com>
46853
46854         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46855
46856 2001-11-18  Jim Meyering  <meyering@lucent.com>
46857
46858         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46859         on SunOS 4.
46860
46861         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46862         files will be created before anything else.
46863
46864 2001-11-17  Paul Eggert  <eggert@twinsun.com>
46865
46866         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46867         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46868
46869 2001-11-17  Jim Meyering  <meyering@lucent.com>
46870
46871         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46872         Prompted by a report from Bob Proulx.
46873
46874         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46875         Instead, require UTILS_FUNC_MKSTEMP.
46876
46877 2001-11-17  Jim Meyering  <meyering@lucent.com>
46878
46879         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46880         Now, that's done as part of AC_FUNC_STRTOD.
46881
46882 2001-11-17  Jim Meyering  <meyering@lucent.com>
46883
46884         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46885         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46886         rather than group writable.  Patch by Juan F. Codagnone.
46887
46888         * lib/readtokens.c: Remove explicit declarations of xmalloc and
46889         xrealloc, Instead, include "xalloc.h".
46890
46891         * lib/mountlist.c: Include unlocked-io.h after all system headers.
46892         Remove explicit declarations of xmalloc, xrealloc,
46893         and xstrdup.  Instead, include "xalloc.h".
46894
46895         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46896         unlocked-io.h.
46897         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46898         Likewise.
46899         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46900
46901         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46902         Reported by Padraig Brady.
46903
46904         * lib/mkstemp.c: #undef mkstemp.
46905         Include config.h.
46906         (rpl_mkstemp): Rename from mkstemp.
46907         Protoize.
46908
46909 2001-11-16  Jim Meyering  <meyering@lucent.com>
46910
46911         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46912         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46913         determine the amount of total physical memory, use pstat_getstatic.
46914         HPUX-11 doesn't define _SC_PHYS_PAGES.
46915         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46916         If sysconf couldn't be used to determine the amount of available
46917         physical memory, use both pstat_getstatic and pstat_getdynamic.
46918         Based on a patch from Bob Proulx.
46919
46920 2001-11-10  Jim Meyering  <meyering@lucent.com>
46921
46922         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46923         (jm_PREREQ): Use it.
46924
46925 2001-11-09  Jim Meyering  <meyering@lucent.com>
46926
46927         * m4/jm-macros.m4: Require autoconf-2.52f.
46928         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46929         Use these AC_-prefixed names, not the AM_-prefixed ones.
46930
46931         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
46932
46933 2001-11-05  Jim Meyering  <meyering@lucent.com>
46934
46935         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46936
46937 2001-11-04  Jim Meyering  <meyering@lucent.com>
46938
46939         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46940         $DEFS.
46941
46942 2001-11-03  Jim Meyering  <meyering@lucent.com>
46943
46944         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46945         of AC_DEFUN.
46946
46947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46948         know the name of the variable in the macro definition.
46949
46950 2001-11-03  Jim Meyering  <meyering@lucent.com>
46951
46952         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46953         in argmatch_to_argument call.
46954
46955         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46956         argument.
46957
46958         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46959         e.g., a fault due to an attempt to free a NULL pointer.
46960
46961 2001-11-01  Jim Meyering  <meyering@lucent.com>
46962
46963         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46964         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46965
46966 2001-11-01  Jim Meyering  <meyering@lucent.com>
46967
46968         * lib/dirfd.c, lib/dirfd.h: New files.
46969         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46970
46971         * lib/hash.c (hash_print) [TESTING]: Clean up.
46972
46973 2001-10-22  Paul Eggert  <eggert@twinsun.com>
46974
46975         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46976         to avoid a warning if -Wall.
46977
46978 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
46979
46980         * README: New file
46981         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46982         (per RMS's instructions, this is now the canonical source)
46983         * lgpl/, gpl/: New directories.
46984
46985 2001-10-21  Paul Eggert  <eggert@twinsun.com>
46986
46987         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46988
46989 2001-10-21  Jim Meyering  <meyering@lucent.com>
46990
46991         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
46992         this code would end up calling gettext even in packages built
46993         with --disable-nls.
46994         * lib/getopt.c (_): Likewise.
46995         * lib/regex.c (_): Likewise.
46996
46997 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46998
46999         * m4/error.m4 (jm_PREREQ_ERROR):
47000         Do not invoke AC_CHECK_FUNCS with strerror_r, as
47001         AC_FUNC_STRERROR_R does that.
47002         Check for strerror declaration.
47003
47004         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
47005         are supposed to have them these days.
47006         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
47007         Merge changes from latest Autoconf CVS.
47008         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
47009         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
47010         POSIX decided to standardize on the int flavor of strerror_r.
47011
47012 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47013
47014         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
47015         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
47016         Use strerror_r that is only a macro, even if it is not a function.
47017         (strerror): Check for HAVE_DECL_STRERROR before declaring.
47018         (private_strerror): Use prototypes, not old-style function definition.
47019         (print_errno_message): New function.
47020         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
47021         char*-flavored one.
47022         (error_tail, error, error_at_line): Use it.
47023
47024 2001-10-11  Jim Meyering  <meyering@lucent.com>
47025
47026         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
47027         and quote_n (1, ... to avoid clobbering a buffer.
47028
47029 2001-10-05  Jim Meyering  <meyering@lucent.com>
47030
47031         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
47032         hash-pjw.h.
47033         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
47034         * lib/hash-pjw.h: New file.
47035
47036 2001-09-30  Jim Meyering  <meyering@lucent.com>
47037
47038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
47039         `struct fsstat' has the `f_fstypename' member.
47040         Use that to define FS_TYPE, which is now used to make
47041         the getfsstat link test tighter.
47042
47043 2001-09-30  Jim Meyering  <meyering@lucent.com>
47044
47045         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
47046         Include <sys/ucred.h>, for Apple Darwin.
47047         Include sys/mount.h and sys/fs_types.h only if available.
47048         (FS_TYPE): Define.
47049         (read_filesystem_list): Use FS_TYPE.
47050
47051 2001-09-29  Paul Eggert  <eggert@twinsun.com>
47052
47053         * lib/exclude.c (excluded_filename): 0 -> false, since it's
47054         a boolean context.
47055
47056 2001-09-29  Jim Meyering  <meyering@lucent.com>
47057
47058         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47059         [one-argument getmntent function]): Include stdio.h before mntent.h.
47060         SunOS 4.1.x needs it for the declaration of `FILE'.
47061         Patch by Volker Borchert.
47062
47063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47064         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
47065         sys/fs_types.h, and make the link-test for getfsstat guard #include
47066         directives with appropriate #if HAVE_*_H tests so that we can
47067         detect getfsstat on Apple Darwin1.3.7 systems.
47068         Reported by Nelson Beebe.
47069         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
47070
47071 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47072
47073         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47074         #defines strtoimax.  Also treat the other strto* functions
47075         like strtoimax.
47076
47077         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47078         Check for strtoul and strtoumax,
47079         as those declarations are made even in the signed case.
47080         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
47081         Likewise, for strtol and strtoimax.
47082
47083 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47084
47085         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47086         #defines strtoimax.  Also treat the other strto* functions
47087         like strtoimax.
47088
47089         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
47090         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
47091         (strtoimax, strtoumax): Do not declare if already defined as a macro.
47092
47093 2001-09-26  Jim Meyering  <meyering@lucent.com>
47094
47095         Most macros in unlocked-io.h had the wrong number of arguments.
47096         * lib/gen-uio: New script.
47097         (USE_UNLOCKED_IO): Define to 1 if not already defined.
47098         * lib/unlocked-io.hin: Remove file.
47099         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
47100         rather than trying to embed it here.
47101         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
47102         Reported by Padraig Brady.
47103
47104 2001-09-25  Volker Borchert  <bt@teknon.de>
47105
47106         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
47107         `result'.
47108
47109 2001-09-24  Jim Meyering  <meyering@lucent.com>
47110
47111         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
47112
47113 2001-09-23  Jim Meyering  <meyering@lucent.com>
47114
47115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
47116         instead of the mere test for existence of mntent.h.  The latter
47117         would get a false-positive on AIX 3.4 systems.
47118         In the outer getmntent if-block, don't die if neither of the getmntent
47119         tests succeeds.  Instead, just fall through and continue with the
47120         remaining tests.
47121
47122 2001-09-23  Jim Meyering  <meyering@lucent.com>
47123
47124         * lib/mountlist.c: Remove useless parentheses in #if directives.
47125         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
47126         the deprecated MOUNTED symbol is no longer defined in mntent.h.
47127
47128 2001-09-22  Jim Meyering  <meyering@lucent.com>
47129
47130         * m4/gettext.m4: New file.  From gettext.
47131         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
47132         * m4/progtest.m4: Likewise
47133         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
47134         * m4/glibc21.m4: Likewise.
47135
47136         * m4/libintl.m4: Remove.  No longer used.
47137
47138 2001-09-22  Jim Meyering  <meyering@lucent.com>
47139
47140         * lib/localcharset.c: Update from latest gettext.
47141         * lib/config.charset: Likewise.
47142
47143 2001-09-20  Jim Meyering  <meyering@lucent.com>
47144
47145         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
47146         strtoimax.
47147         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47148         strtoumax.
47149
47150 2001-09-20  Jim Meyering  <meyering@lucent.com>
47151
47152         * lib/xstrtol.c (strtoimax): Guard declaration with
47153         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47154         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47155         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47156         (strtoumax): Likewise, for completeness (it wasn't necessary).
47157
47158 2001-09-17  Paul Eggert  <eggert@twinsun.com>
47159
47160         * lib/strtoimax.c (HAVE_LONG_LONG):
47161         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47162         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47163         to work around bug in IBM C compiler.
47164
47165 2001-09-17  Jim Meyering  <meyering@lucent.com>
47166
47167         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47168         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47169         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47170         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47171         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47172         whenever the right hand side need not be expanded by the shell.
47173
47174 2001-09-16  Paul Eggert  <eggert@twinsun.com>
47175
47176         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47177         library.  It's not correct, as some older glibcs are buggy.
47178         fnmatch wasn't fixed until glibc 2.2.
47179
47180         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47181         special shell magic here.
47182
47183 2001-09-16  Jim Meyering  <meyering@lucent.com>
47184
47185         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47186         * m4/jm-macros.m4: Require it.
47187
47188 2001-09-16  Jim Meyering  <meyering@lucent.com>
47189
47190         * lib/mkdir.c: New file.
47191
47192 2001-09-15  Jim Meyering  <meyering@lucent.com>
47193
47194         * m4/jm-macros.m4: Check for help2man.
47195
47196 2001-09-11  Jim Meyering  <meyering@lucent.com>
47197
47198         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47199         The body, by Paul Eggert, was moved here from configure.in.
47200         * m4/jm-macros.m4: Require UTILS_HOST_OS.
47201
47202 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47203
47204         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47205         (jm_PREREQ): Use it.
47206
47207 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47208
47209         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47210         Use ssize_t, not int, to store result of readlink.
47211         Check for ssize_t overflow as well as size_t overflow,
47212         as POSIX says the result of readlink is implementation-defined
47213         when ssize_t overflows.
47214         Remove unnecessary cast to char*.
47215         Use free+malloc instead of realloc, as the storage doesn't need
47216         to be preserved and it's clearer and can be more efficient that way.
47217         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47218         * lib/xreadlink.h (xreadlink): Update prototype.
47219
47220 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47221
47222         * lib/xgetcwd.c: Revert some of the previous change; intead,
47223         fix the HAVE_GETCWD_NULL code to behave more like the
47224         !HAVE_GETCWD_NULL code used to.
47225
47226         Include "xalloc.h".
47227         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47228         invoke xalloc_die.
47229
47230 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47231
47232         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47233         sys/param.h, as pathmax.h includes them.
47234
47235 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47236
47237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47238         (jm_PREREQ_XGETCWD): New macro.
47239
47240         * m4/getcwd.m4: New file.
47241
47242 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47243
47244         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47245         like the HAVE_GETCWD_NULL code.
47246         Include pathmax.h if not HAVE_GETCWD.
47247         Do not include xalloc.h.
47248         (INITIAL_BUFFER_SIZE): New symbol.
47249         Do not use xmalloc / xrealloc, since the caller is responsible for
47250         handling errors.  Preserve errno around `free' during failure.
47251         Do not overrun buffer when using getwd.
47252
47253 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47254
47255         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47256         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47257         getcwd (NULL, 0).
47258
47259 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47260
47261         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47262         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47263         spotted by Jim Meyering.
47264
47265 2001-09-03  Jim Meyering  <meyering@lucent.com>
47266
47267         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47268         failure.
47269
47270 2001-09-02  Jim Meyering  <meyering@lucent.com>
47271
47272         * lib/error.c: Update from GNU libc.
47273
47274 2001-09-01  Jim Meyering  <meyering@lucent.com>
47275
47276         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47277         Used by df.
47278
47279 2001-09-01  Jim Meyering  <meyering@lucent.com>
47280
47281         * lib/xreadlink.c: New file.
47282         * lib/xreadlink.h: New file.
47283         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47284         xreadlink.h.
47285
47286         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47287         doesn't conflict with sparc Solaris 7's definition in
47288         /usr/include/sys/int_types.h.
47289
47290         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47291         files.
47292         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47293         and strncasecmp as r-values.  Unixware didn't have declarations.
47294
47295 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47296
47297         * lib/xstrtol.h: Add copyright notice.
47298         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47299         LONGINT_INVALID_SUFFIX_CHAR.
47300
47301 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47302
47303         * lib/xstrtol.c (strtoimax): New decl.
47304
47305 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47306
47307         * lib/xgetcwd.c: Don't include pathmax.h.
47308         Include stdlib.h and unistd.h if available.
47309         Include xalloc.h.
47310         (xmalloc, xstrdup, free): Remove decls.
47311         (xgetcwd): Don't assume sizes fit in unsigned.
47312         Check for overflow when computing sizes.
47313         Simplify reallocation code.
47314
47315 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47316
47317         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47318         a directory's st_size can have an arbitrary value, so the old
47319         usage could waste an arbitrary amount of memory.  All uses
47320         changed.
47321         * lib/savedir.h: Update prototype.
47322
47323 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47324
47325         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47326
47327         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47328         old strtoimax.c.
47329
47330         Also, make the following further changes to make this file's
47331         configuration more similar to that of strtol.c:
47332         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47333         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47334         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47335         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47336         changed to signed values.
47337
47338         And make the following changes as well:
47339         Fix copyright notice, as 1999 was missing.
47340         (verify): New macro.
47341         (strtoimax): Check sizes at compile-time, not run-time.
47342         Prefer strtol to strtoll if both work.
47343         (main): Remove; it was not that useful and was a pain to maintain.
47344
47345         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47346
47347 2001-08-31  Jim Meyering  <meyering@lucent.com>
47348
47349         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47350         Use an initial, malloc'd, buffer of length 128 rather than
47351         a statically allocated one of length 1024.
47352
47353 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47354
47355         Simplify code, partly by assuming autoconf 2.52 semantics.
47356
47357         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47358
47359         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47360         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47361         All uses removed.
47362         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47363         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47364         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47365         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47366         jm_AC_HEADER_INTTYPES_H.
47367         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47368
47369         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47370
47371         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47372         Quote first arg of AC_DEFUN.
47373         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47374         since they are needed to parse the include file even if we need
47375         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47376         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47377         but with opposite signedness.
47378
47379 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47380
47381         Merge 'exclude' changes from tar 1.13.22.
47382         This fixes one or two unlikely storage allocation overflow bugs,
47383         but doesn't change user-visible behavior otherwise.
47384
47385 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47386
47387         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47388         (jm_PREREQ_EXCLUDE): New macro.
47389
47390 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47391
47392         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47393         tm to be declared.
47394
47395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47396
47397         * lib/hash.c: Remove '2001' from copyright notice.
47398
47399 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47400
47401         * lib/full-write.h: New file.
47402         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47403         * lib/full-write.c: Correct credits, as cccp.c no longer
47404         exists and anyway it was so heavily changed from the old cccp
47405         code as to be unrecognizable.  Include full-write.h.
47406         (full_write) Return size_t, with short writes meaning failure.
47407         All callers changed.  This fixes a bug with large buffers
47408         on 64-bit hosts.
47409         * lib/utime.c: Include full-write.h.
47410
47411 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47412
47413         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47414         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47415         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47416         Include if available.
47417         (<xalloc.h>): Include
47418         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47419         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47420         collide with FNM macros.
47421         (struct patopts): New struct.
47422         (struct exclude): Use it, as exclude patterns now come with options.
47423         (new_exclude): Support above changes.
47424         (new_exclude, add_exclude_file):
47425         Initial size must now be a power of two to simplify overflow checking.
47426         (free_exclude, fnmatch_no_wildcards): New function.
47427         (excluded_filename): No longer requires options arg, as the options
47428         are determined by add_exclude.  Now returns bool, not int.
47429         (excluded_filename, add_exclude):
47430         Add support for the fancy new exclusion options.
47431         (add_exclude, add_exclude_file): Now takes int options arg.
47432         Check for arithmetic overflow when computing sizes.
47433         (add_exclude_file): xrealloc might modify errno, so don't
47434         realloc until after errno might be used.
47435
47436         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47437         New macros.
47438         (free_exclude): New decl.
47439         (add_exclude, add_exclude_file): Now takes int options arg.
47440         (excluded_filename): No longer requires options arg, as the options
47441         are determined by add_exclude.  Now returns bool, not int.
47442
47443 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47444
47445         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47446
47447 2001-08-27  Jim Meyering  <meyering@lucent.com>
47448
47449         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47450
47451         * lib/version-etc.c (N_): Remove definition.
47452         Revert most of last change.
47453         Instead, simply don't mark the `Copyright...' string for translation.
47454         Based on advice from Paul Eggert.
47455
47456         * lib/strtoxmax.c: Tweak comment.
47457
47458 2001-08-26  Jim Meyering  <meyering@lucent.com>
47459
47460         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47461
47462         * m4/xstrtoimax.m4: New file.
47463         * m4/xstrtoumax.m4: Add comments explaining why we
47464         AC_REPLACE_FUNCS(strtol).
47465
47466 2001-08-26  Jim Meyering  <meyering@lucent.com>
47467
47468         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47469         of copyright with `%s' so translators don't get an untranslated
47470         message in 2002.
47471         (COPYRIGHT_YEAR): Define.
47472         (version_etc): Use fprintf rather than fputs.
47473         Suggestion from Ulrich Drepper.
47474
47475         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47476
47477         * lib/strtoll.c: New file, from GNU libc.
47478         * lib/xstrtoimax.c: New file.
47479
47480         * lib/xstrtol.h: Add xstrtoimax.
47481         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47482         * lib/strtoimax.c: New file.  Likewise, but first define
47483         STRTOUXMAX_SIGNED.
47484
47485         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47486         ...
47487         * lib/strtoxmax.c: ... then renamed to this.
47488
47489 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47490
47491         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47492         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47493         (jm_AC_TYPE_INTMAX_T): New macro.
47494         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47495
47496         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47497
47498         * m4/longlong.m4: Renamed from ulonglong.m4.
47499         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47500         * m4/uintmax_t.m4: Removed.
47501
47502 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47503
47504         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47505         Port to Solaris 8, where 'sed' requires a space after the 'r'
47506         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47507         Redirect output to $tmp just once.
47508
47509 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47510
47511         * lib/addext.c (<errno.h>): Include.
47512         (errno): Declare if not defined.
47513         (addext): Work correctly when pathconf returns -1 and leaves
47514         errno alone because there is no limit.  Also, work even if
47515         pathconf returns a value greater than SIZE_MAX.
47516
47517 2001-08-12  Jim Meyering  <meyering@lucent.com>
47518
47519         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47520         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47521         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47522         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47523         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47524         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47525         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47526         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47527         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47528         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47529         utime.m4, utimes.m4, xstrtoumax.m4:
47530         Quote the first argument in each use of AC_DEFUN.
47531
47532 2001-08-12  Jim Meyering  <meyering@lucent.com>
47533
47534         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47535         Simply `return getcwd (NULL, 0);'.
47536         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47537         Use 1300 as initial value for length, not PATH_MAX.
47538
47539         * lib/pathmax.h: Clean up cpp syntax.
47540
47541 2001-08-12  Jim Meyering  <meyering@lucent.com>
47542
47543         * lib/gettimeofday.c: New file.
47544         * lib/gtod.h: New file.
47545         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47546
47547 2001-08-05  Jim Meyering  <meyering@lucent.com>
47548
47549         * m4/jm-macros.m4: Require autoconf-2.52.
47550
47551 2001-08-04  Jim Meyering  <meyering@lucent.com>
47552
47553         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47554         stmt, to get in sync with glibc.
47555
47556 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47557
47558         The following changes are from gettext 0.10.39 as maintained by
47559         Bruno Haible.
47560
47561         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47562         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47563         with inverted sense.  All uses changed.
47564
47565         * lib/mbswidth.c: Don't include <limits.h>.
47566         Include <stdlib.h> and <string.h> unconditionally.
47567         (iswcntrl, mbsinit, ISCNTRL): New macros.
47568         (mbsnwidth): Use K&R style function declarations.
47569         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47570         can optimize it when MB_CUR_MAX == 1.
47571         The width of control characters is zero, not 1.
47572
47573 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47574
47575         The following changes are from gettext 0.10.39 as maintained by
47576         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47577
47578         * m4/codeset.m4: Upgrade to serial AM1.
47579         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47580         all uses changed.  Quote first arg of AC_DEFUN.
47581         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47582
47583         * m4/iconv.m4: Upgrade to serial AM2.
47584         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47585         Add --with-libconv-prefix.
47586         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47587         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47588         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47589         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47590         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47591
47592         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47593         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47594         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47595         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47596         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47597         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47598         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47599         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47600         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47601
47602         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47603         string.h any more.
47604
47605         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47606         not the default value.
47607
47608         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47609         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47610         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47611         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47612         Also check for iswcntrl, used for wcwidth fallback.
47613         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47614         to Autoconf 2.13.
47615
47616 2001-08-03  Jim Meyering  <meyering@lucent.com>
47617
47618         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47619         as it was in the original.  Reported by Paul Eggert.
47620
47621 2001-07-16  Jim Meyering  <meyering@lucent.com>
47622
47623         * m4/gettimeofday.m4: New file.
47624         Prompted by a report from Bernhard Baehr.
47625
47626 2001-07-15  Jim Meyering  <meyering@lucent.com>
47627
47628         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47629         stuff. Now it's in ../Makefile.cfg.
47630
47631 2001-07-15  Jim Meyering  <meyering@lucent.com>
47632
47633         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47634         (BUILT_SOURCES): Add unlocked-io.h.
47635         (io_functions): Define.
47636         (unlocked-io.h): New rule.
47637         (DISTCLEANFILES): Add unlocked-io.h.
47638         (all-local): Depend on unlocked-io.h, to ensure it is created.
47639
47640         * lib/unlocked-io.hin: New file
47641
47642         * lib/regex.c: Update from glibc.
47643
47644 2001-07-05  Jim Meyering  <meyering@lucent.com>
47645
47646         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47647         recommendation.
47648         (libfetish_a_SOURCES): Put all .h files here instead.
47649         Remove a thus-exposed (better checks in automake) duplicate and
47650         two unnecessary .h files.
47651
47652 2001-07-04  Jim Meyering  <meyering@lucent.com>
47653
47654         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47655         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47656         distcheck failure.
47657
47658 2001-07-02  Jim Meyering  <meyering@lucent.com>
47659
47660         The following changes were prompted by suggestions from Bruno Haible.
47661
47662         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47663         is now generated.
47664         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47665         definition of EXTRA_DIST.
47666         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47667         ensure that the generated file is created/updated whenever the list
47668         of $(unlocked_functions) is changed.
47669         (jm-glibc-io.m4): New rule.
47670         (unlocked-io.h): New rule -- currently unused.
47671
47672 2001-06-24  Jim Meyering  <meyering@lucent.com>
47673
47674         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47675         unmatched right bracket, rather than kludging it with an extra,
47676         falsely-matching quote in a comment.  Patch by Akim Demaille.
47677
47678 2001-06-11  Jim Meyering  <meyering@lucent.com>
47679
47680         * lib/regex.c: Update from GNU libc.
47681
47682 2001-05-27  Jim Meyering  <meyering@lucent.com>
47683
47684         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47685         Check for ut_type in struct utmp.
47686
47687 2001-05-27  Jim Meyering  <meyering@lucent.com>
47688
47689         * lib/readutmp.h (UT_TYPE): Define.
47690
47691 2001-05-24  Jim Meyering  <meyering@lucent.com>
47692
47693         * lib/argmatch.c: Include "quote.h".
47694         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47695         quote function.  Reported by Göran Uddeborg.
47696
47697 2001-05-22  Jim Meyering  <meyering@lucent.com>
47698
47699         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47700         now that we use the package-supplied version unconditionally.
47701         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47702
47703 2001-05-21  Jim Meyering  <meyering@lucent.com>
47704
47705         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47706         shell syntax errors.
47707
47708 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47709
47710         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47711
47712 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47713
47714         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47715         Don't bother to check library strftime, since
47716         we'll be using our own my_strftime function anyway.
47717         Define my_strftime instead of strftime.
47718
47719 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47720
47721         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47722         which is not yet declared.
47723
47724 2001-05-15  Jim Meyering  <meyering@lucent.com>
47725
47726         * m4/regex.m4: Use proper quoting so brackets appear in the test
47727         program.
47728         Reported by, and with help from, Bruno Haible.
47729
47730 2001-05-13  Jim Meyering  <meyering@lucent.com>
47731
47732         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47733         undefined.
47734
47735 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47736
47737         dirname code cleanup.  base_name now behaves more compatibly
47738         with POSIX basename when given file names that have trailing
47739         slashes, and similarly for dir_name.  Add new primitives
47740         base_len and dir_len.  Put the directory-name-related decls
47741         into dirname.h.
47742
47743         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47744         * lib/backupfile.c (base_name): Likewise.
47745         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47746         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47747         * lib/makepath.c (strip_trailing_slashes): Likewise.
47748         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47749         ISSLASH): Likewise.
47750         * lib/rename.c (strip_trailing_slashes): Likewise.
47751         * lib/same.c (base_name): Likewise.
47752         * lib/stripslash.c (ISSLASH): Likewise.
47753
47754         * lib/addext.c: Include <dirname.h> after size_t is defined.
47755         * lib/backupfile.c: Likewise.
47756
47757         * lib/addext.c (addext): Use base_len to trim redundant
47758         trailing slashes instead of doing it ourselves.
47759         But do not trim the last slash if it is not redundant.
47760
47761         * lib/backupfile.c (find_backup_file_name,
47762         max_backup_version): Use base_len instead of rolling it ourselves.
47763         Handle the case of "" and (on DOS) "C:" correctly.
47764
47765         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47766         needed. Include <string.h>, <dirname.h>.
47767         (base_name): Allow file names ending in slashes, other than names
47768         that are all slashes.  In this case, return the basename followed
47769         by the slashes.  This is more general, and can be used in places
47770         where the original base_name purposely had an assertion failure.
47771         (base_len): New function.
47772
47773         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47774         Do not include <assert.h>; no longer needed.
47775         Include xalloc.h.
47776         (memrchr): Remove decl.
47777         (dir_name_r): Remove.
47778         (dir_len): Renamed from dirlen.  All callers changed.
47779         Rewrite in terms of base_name, for simplicity and consistency.
47780         (dir_name): Never return NULL.  All callers changed.
47781         Do not include <stdlib.h> in test program; no longer needed.
47782         return 0; is fine for test program.
47783
47784         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47785         New macros.
47786         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47787
47788         * lib/path-concat.c (path_concat): Use base_len to compute
47789         base length, not strlen; this means we cannot rely on memcpy
47790         to null-terminate.
47791
47792         * lib/same.c (STREQ): Remove.
47793         (same_name): Handle the case where the basename ends in trailing '/'.
47794
47795         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47796         a slash was stripped.  Do not strip the last slash after a
47797         file system prefix.
47798
47799 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47800
47801         * lib/Makefile.am (libfetish_a_SOURCES):
47802         Add strftime.c, since we now compile it on all hosts.
47803
47804         * lib/strftime.c (my_strftime):
47805         Define to nstrftime if emacs, but only if my_strftime is not defined.
47806         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47807         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47808         Add one more extra argument: a nanoseconds value.
47809         All uses changed.
47810         (ns): New macro.
47811         (my_strftime function): Add %N format.
47812         (emacs_strftimeu): Renamed from emacs_strftime,
47813         with extra ut argument.
47814
47815 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47816
47817         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47818
47819 2001-04-21  Jim Meyering  <meyering@lucent.com>
47820
47821         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47822         doesn't interfere.
47823
47824 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47825
47826         * m4/ftruncate.m4: Check for chsize.
47827         Link with ftruncate.o unconditionally if ftruncate is missing.
47828         This was required when cross-compiling to i586-mingw32msvc.
47829
47830 2001-04-08  Jim Meyering  <meyering@lucent.com>
47831
47832         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47833         recomputed; that's necessary when the offset spans a DST transition.
47834         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47835
47836 2001-04-02  Jim Meyering  <meyering@lucent.com>
47837
47838         * lib/regex.h, regex.c: Update from GNU libc.
47839
47840 2001-03-24  Jim Meyering  <meyering@lucent.com>
47841
47842         * m4/jm-macros.m4: Require autoconf-2.49d.
47843
47844 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47845
47846         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47847
47848 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47849
47850         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47851
47852 2001-03-17  Jim Meyering  <meyering@lucent.com>
47853
47854         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47855         now that the version in autoconf is equivalent.
47856         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47857
47858         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47859         Suggestion from Akim Demaille.
47860
47861         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47862         (jm_PREREQ_TEMPNAME): New function.
47863
47864 2001-03-16  Paul Eggert  <eggert@twinsun.com>
47865
47866         * lib/tempname.c (uint64_t): Define to uintmax_t if
47867         not defined, and if UINT64_MAX is not defined.
47868         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47869         Reported by John David Anglin.
47870
47871 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
47872
47873         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47874         resolve alias if codeset is empty.
47875         * lib/config.charset (BeOS): Use wildcard syntax.
47876
47877 2001-03-13  Jim Meyering  <meyering@lucent.com>
47878
47879         * lib/path-concat.c (path_concat)
47880         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47881         concatenating e.g., `C:' and `foo'.
47882         From Bruno Haible.
47883
47884 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47885
47886         * lib/localcharset.c (locale_charset): Don't use
47887         setlocale(LC_CTYPE,NULL). Don't return NULL.
47888         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47889
47890 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47891
47892         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47893         support for DOS/DJGPP.
47894
47895 2001-03-01  Paul Eggert  <eggert@twinsun.com>
47896
47897         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47898         lacks mkstemp.  Compile our own tempname.c if we compile our own
47899         mkstemp.c, as mkstemp relies on tempname.
47900
47901 2001-03-01  Jim Meyering  <meyering@lucent.com>
47902
47903         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47904         AH_VERBATIM really does output its argument verbatim.
47905
47906 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47907
47908         * lib/Makefile.am (libfetish_a_SOURCES):
47909         Add dup-safer.c, fopen-safer.c.
47910         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47911
47912         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47913         * lib/unistd-safer.h: New files.
47914
47915 2001-02-25  Paul Eggert  <eggert@twinsun.com>
47916
47917         The mkstemp replacement is taken from glibc 2.2.2, with some
47918         portability fixes for use outside glibc, as follows:
47919
47920         * lib/tempname.c (struct_stat64): New macro.
47921         (direxists, __gen_tempname): Use it.
47922         This avoids a portability problem with Solaris 8.
47923
47924         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47925         (<stddef.h>, <stdint.h>, <string.h>):
47926         Include only if STDC_HEADERS || _LIBC.
47927         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47928         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47929         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47930         (__set_errno): Define this macro if <errno.h> doesn't.
47931         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47932         Define these macros if <stdio.h> doesn't.
47933         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47934         Define these macros if <sys/stat.h>
47935         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47936         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47937         __xstat64): Define if not _LIBC.
47938         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47939         (__gen_tempname): Invoke gettimeofday only if
47940         HAVE_GETTIMEOFDAY || _LIBC;
47941         otherwise, fall back on plain "time".
47942         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47943
47944         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47945
47946         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47947
47948 2001-02-18  Paul Eggert  <eggert@twinsun.com>
47949
47950         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47951
47952 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47953
47954         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47955         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47956         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47957         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47958
47959 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47960
47961         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47962         Remove workaround macros for hosts that have mbrtowc but not
47963         mbstate_t, as we now insist on proper declarations for both
47964         before using mbrtowc.
47965
47966 2001-02-17  Jim Meyering  <meyering@lucent.com>
47967
47968         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47969         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47970         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47971         UnixWare 7.1.1.
47972
47973         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47974         rather than AC_CACHE_VAL.
47975
47976 2001-02-17  Jim Meyering  <meyering@lucent.com>
47977
47978         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
47979         around included file name.
47980
47981         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47982
47983         * lib/strftime.c: Update from GNU libc (the only changes were to
47984         comments).
47985
47986 2001-02-17  Jim Meyering  <meyering@lucent.com>
47987
47988         * lib/regex.c: Update from libc.
47989
47990 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
47991
47992         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47993         clash.
47994
47995 2001-02-16  Paul Eggert  <eggert@twinsun.com>
47996
47997         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47998         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
47999         Reported by Mark Hounschell via Paul Eggert.
48000
48001 2001-02-07  Jim Meyering  <meyering@lucent.com>
48002
48003         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
48004
48005 2001-02-05  Jim Meyering  <meyering@lucent.com>
48006
48007         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
48008         it includes the patch required for `large file' support with at least
48009         HP-UX's 10.20 /bin/cc.
48010
48011 2001-02-03  Jim Meyering  <meyering@lucent.com>
48012
48013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
48014         AS_IF, now that it works once again (mysteriously).
48015         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48016
48017 2001-01-30  Jim Meyering  <meyering@lucent.com>
48018
48019         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
48020         * m4/chown.m4: Rename conftestchown to conftest.chown.
48021         * m4/rename.m4: s/conftestdir/conftest.d1/ and
48022         s/conftestdir2/conftest.d2/.
48023         * m4/utimes.m4: s/conftestdata/conftest.data/
48024         Inspired by Pavel Roskin's change in autoconf.
48025
48026 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
48027
48028         * lib/config.charset: Update for FreeBSD 4.2.
48029
48030 2001-01-27  Jim Meyering  <meyering@lucent.com>
48031
48032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
48033         a use of AS_IF.
48034         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48035
48036 2001-01-26  Jim Meyering  <meyering@lucent.com>
48037
48038         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
48039         quotearg.c includes it.
48040
48041 2001-01-26  Jim Meyering  <meyering@lucent.com>
48042
48043         * lib/quotearg.c: Include stddef.h.
48044         * lib/quote.c: Include stddef.h.
48045         Reported by Axel Kittenberger.
48046
48047         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
48048         line in double quotes so that it evokes a better diagnostic.
48049         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
48050         Reported by Axel Kittenberger.
48051
48052 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
48053
48054         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
48055         as if it was a `charset'.
48056
48057 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48058
48059         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
48060         has const.
48061
48062 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48063
48064         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
48065         to avoid a warning.  Add back 'const' to inptr.
48066
48067 2001-01-20  Jim Meyering  <meyering@lucent.com>
48068
48069         Be sure that headers are checked before used in code compiled
48070         for the type checks.
48071         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
48072         In place of that, invoke jm_CHECK_ALL_TYPES.
48073         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
48074         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
48075         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
48076         The check for ssize_t was mistakenly run before the test for unistd.h.
48077
48078         The configure-time check for stdbool.h was missing.
48079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
48080         (jm_PREREQ_HASH): New function.
48081
48082 2001-01-17  Jim Meyering  <meyering@lucent.com>
48083
48084         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
48085         for autoconf-2.49c.
48086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
48087
48088 2001-01-16  Jim Meyering  <meyering@lucent.com>
48089
48090         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
48091         From Bruno Haible.
48092
48093 2001-01-14  Jim Meyering  <meyering@lucent.com>
48094
48095         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
48096         foo and bar.  Create conftestdir/ in the script, not in the C code.
48097         Remove directories in the script, not in the C code.
48098         Remove conftestdir{,2} before trying to create the directory.
48099         Make the entire configure script fail if the mkdir fails.
48100
48101 2001-01-14  Jim Meyering  <meyering@lucent.com>
48102
48103         * lib/rename.c: New file.  From Volker Borchert.
48104         Include stdlib.h, string.h or strings.h, and xalloc.h.
48105         Use strip_trailing_slashes rather than open-coding it.
48106
48107 2001-01-03  Paul Eggert  <eggert@twinsun.com>
48108
48109         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
48110
48111 2001-01-03  Jim Meyering  <meyering@lucent.com>
48112
48113         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
48114         of local `inptr' to avoid warning with some system declarations of
48115         iconv.
48116
48117 2001-01-02  Volker Borchert  <bt@teknon.de>
48118
48119         * m4/rename.m4: New file.
48120         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
48121
48122 2001-01-01  Jim Meyering  <meyering@lucent.com>
48123
48124         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
48125         even on systems with utmpx.h.  It's necessary for the declaration of
48126         utmp's ut_user member.  Reported by Andreas Jaeger.
48127
48128         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
48129         available. They are required for the declarations of getgrgid and
48130         getpwuid resp.
48131         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
48132         Reported by Andreas Jaeger.
48133
48134 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
48135
48136         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
48137         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
48138         so `make install' also works in VPATH builds.
48139
48140 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
48141
48142         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
48143         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
48144         can be used in subdirectories.
48145
48146 2000-12-29  Paul Eggert  <eggert@twinsun.com>
48147
48148         * lib/modechange.c: Do not assume that mode_t uses the
48149         traditional octal encoding.  E.g. "chmod 1 FOO" should set
48150         the other-execute bit of FOO even if S_IXOTH != 1.
48151
48152         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48153         WOTH, XOTH, ALLM): New macros.
48154         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48155          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48156         Use them.
48157         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48158         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48159         (mode_compile):
48160         No need to use uintmax_t; unsigned long is long enough.
48161         Don't bother to get suffix since we don't use it.
48162
48163 2000-12-26  Jim Meyering  <meyering@lucent.com>
48164
48165         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48166         better with autoheader.
48167
48168 2000-12-24  Jim Meyering  <meyering@lucent.com>
48169
48170         * lib/hash.c (is_prime): Return explicit boolean values.
48171         (hash_get_first): Return NULL to appease Irix5.6's 89.
48172         Reported by Nelson Beebe.
48173
48174 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
48175
48176         * lib/localcharset.c (locale_charset): Add support for Win32.
48177
48178 2000-12-18  Paul Eggert  <eggert@twinsun.com>
48179
48180         * lib/physmem.h, lib/physmem.c: New files.
48181
48182         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48183         (noinst_HEADERS): Add physmem.h.
48184
48185         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48186         't' for compatibility with Solaris 8 sort.
48187
48188 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
48189
48190         * lib/config.charset: Add support for BeOS.
48191
48192 2000-12-17  Jim Meyering  <meyering@lucent.com>
48193
48194         * m4/dos.m4 (jm_AC_DOS): New file and macro.
48195         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48196
48197 2000-12-16  Jim Meyering  <meyering@lucent.com>
48198
48199         This bug had a serious impact on chown: `chown N:M FILE' (for integer
48200         N and M) would have treated it like `chown N:N FILE'.
48201
48202         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48203
48204 2000-12-16  Jim Meyering  <meyering@lucent.com>
48205
48206         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48207         SHELLS_FILE to a file name that's useful on djgpp systems.
48208         Include stdlib.h.
48209         (ADDITIONAL_DEFAULT_SHELLS): Define.
48210         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48211         Based mostly on a patch from Prashant TR.
48212
48213 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48214
48215         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48216         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48217         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48218
48219 2000-12-08  Andreas Schwab  <schwab@suse.de>
48220
48221         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48222         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48223
48224 2000-12-07  Jim Meyering  <meyering@lucent.com>
48225
48226         * lib/stripslash.c (ISSLASH): Define.
48227         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48228         `/'.
48229         From Prashant TR.
48230
48231         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48232         (dir_name_r): Declare this function as static.
48233         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48234         manifest itself on a name containing a mix of slashes and
48235         backslashes.
48236         Make this function work with names starting with a DOS-style
48237         drive letter and colon prefix.
48238         (dir_name): Append `.' if necessary.
48239         Based mostly on patches from Prashant TR and Eli Zaretskii.
48240
48241         * lib/dirname.h (dir_name_r): Remove prototype.
48242
48243 2000-12-06  Paul Eggert  <eggert@twinsun.com>
48244
48245         * m4/off_t-format.m4: Remove this file.
48246         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48247
48248 2000-12-06  Jim Meyering  <meyering@lucent.com>
48249
48250         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48251         replacement strtoull, we may well need the replacement strtoul, too.
48252         Check for declarations of strtoul and strtoull.
48253         Check for strtol.  Mainly as a cue to cause automake to include
48254         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48255         Check for limits.h -- strtol.c needs it.
48256
48257 2000-12-05  Jim Meyering  <meyering@lucent.com>
48258
48259         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48260
48261 2000-12-04  Jim Meyering  <meyering@lucent.com>
48262
48263         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48264         Also include memory.h, stdlib.h, unistd.h if appropriate.
48265         Reported by Andreas Jaeger (conflicting declaration of malloc).
48266
48267 2000-12-02  Jim Meyering  <meyering@lucent.com>
48268
48269         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48270         * m4/jm-macros.m4 (jm_MACROS): require it.
48271
48272 2000-12-02  Jim Meyering  <meyering@lucent.com>
48273
48274         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48275
48276 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48277
48278         * lib/memrchr.c: Include <config.h> before any system include file.
48279
48280 2000-11-30  Jim Meyering  <meyering@lucent.com>
48281
48282         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48283
48284 2000-11-30  Jim Meyering  <meyering@lucent.com>
48285
48286         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48287
48288 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48289
48290         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48291
48292 2000-11-26  Jim Meyering  <meyering@lucent.com>
48293
48294         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48295
48296 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48297
48298         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48299         size of (size_t) -1; it's not portable.
48300
48301 2000-11-17  Jim Meyering  <meyering@lucent.com>
48302
48303         * lib/strstr.c: Update from GNU libc.
48304
48305 2000-11-17  Akim Demaille  <akim@epita.fr>
48306
48307         * lib/obstack.h: Formatting changes.
48308         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48309         prevent type checking.
48310         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48311         cast the value to (void *): assigning a `foo *' to a `void *'
48312         variable is valid.
48313         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48314
48315 2000-11-16  Jim Meyering  <meyering@lucent.com>
48316
48317         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48318
48319 2000-11-11  Jim Meyering  <meyering@lucent.com>
48320
48321         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48322
48323 2000-11-10  Jim Meyering  <meyering@lucent.com>
48324
48325         * lib/obstack.h: Update from GNU libc.
48326         * lib/obstack.c: Likewise.
48327
48328 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48329
48330         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48331
48332 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48333
48334         * lib/getusershell.c (setusershell): Use rewind rather than
48335         fseek/fseeko, to avoid configuration hassles with fseeko.
48336         Don't bother opening SHELLS_FILE if shellstream is NULL;
48337         it's not necessary.
48338
48339 2000-11-05  Jim Meyering  <meyering@lucent.com>
48340
48341         * lib/makepath.h (make_dir): Declare.
48342         * lib/makepath.c (make_dir): Remove `static' attribute.
48343         Tweak a comment.
48344
48345 2000-11-04  Jim Meyering  <meyering@lucent.com>
48346
48347         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48348
48349 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48350
48351         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48352         last one in a bucket, advance to the next bucket.
48353
48354 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48355
48356         * lib/fnmatch.c: Do not comment out all the code if we are using
48357         the GNU C library, because in some cases we are replacing buggy
48358         code in the GNU C library itself.
48359
48360 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48361
48362         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48363         (regex_compile): Catch bogus \(\1\).
48364
48365 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48366
48367         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48368         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48369         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48370
48371 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48372
48373         * lib/error.h, getline.h, modechange.h:
48374         Remove "2000" from Copyright line, as the file hasn't been
48375         changed this year other than in the copyright notice.
48376
48377         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48378         was changed this year.
48379
48380 2000-10-29  Jim Meyering  <meyering@lucent.com>
48381
48382         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48383         renaming.
48384         * m4/ls-mntd-fs.m4: Likewise
48385
48386 2000-10-29  Jim Meyering  <meyering@lucent.com>
48387
48388         * lib/xstat.in: Fix grammar in comment.
48389
48390 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48391
48392         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48393         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48394         doesn't define __restrict_arr.
48395
48396 2000-10-28  Jim Meyering  <meyering@lucent.com>
48397
48398         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48399         (jm_PREREQ_MEMCHR): New function.
48400
48401 2000-10-28  Jim Meyering  <meyering@lucent.com>
48402
48403         * lib/memchr.c: Update from libc.
48404         Adjust for portability:
48405         [HAVE_STDLIB_H]: Include stdlib.h.
48406         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48407         Undef __memchr, too.
48408         [!weak_alias]: Define __memchr to memchr.
48409
48410         * lib/regex.c: Update from libc.
48411         * lib/regex.h: Likewise.
48412         * lib/getopt1.c: Likewise.
48413         * lib/memcmp.c: Likewise.
48414
48415         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48416         Avoid using fseek, when possible -- it's broken by design.
48417         Patch by Ulrich Drepper.
48418
48419 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48420
48421         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48422         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48423         Giving in to popular pressure to shut up the compiler with casts.
48424
48425 2000-10-26  Jim Meyering  <meyering@lucent.com>
48426
48427         * lib/strftime.c: Update from libc.
48428
48429 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48430
48431         * regex.c: More `unsigned char' -> `re_char' changes.
48432         Also change several `int' into `re_wchar_t'.
48433         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48434         (PUSH_FAILURE_POINTER): Don't cast any more.
48435         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48436         We want GCC to complain, since this piece of code makes
48437         re_match non-reentrant, which *should* be fixed.
48438         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48439         (EXTEND_BUFFER): Use RETALLOC.
48440         (SET_LIST_BIT): Don't cast.
48441         (re_wchar_t): New type.
48442         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48443         that those two functions will always properly return.
48444         (IMMEDIATE_QUIT_CHECK): Cast to void.
48445         (analyse_first): Use recursion rather than an explicit stack.
48446         (re_compile_fastmap): Can't fail anymore.
48447         (re_search_2): Don't check re_compile_fastmap for failure.
48448         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48449         Now also sets the new value (passed in a new argument).
48450         (re_match_2_internal): Use it.
48451         Also, use a new var `reg' of type size_t when looping through regs
48452         rather than reuse the inappropriate `mcnt'.
48453
48454 2000-10-25  Jim Meyering  <meyering@lucent.com>
48455
48456         * lib/obstack.c: Update from libc.
48457
48458 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48459
48460         * regex.c (regex_compile): Change the way of handling a range from
48461         a char less than 256 to a char not less than 256.
48462
48463 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48464
48465         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48466         NT-Emacs only.
48467         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48468         so that re_search functions only quit when callers expect them to.
48469
48470 2000-10-23  Jim Meyering  <meyering@lucent.com>
48471
48472         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48473         wrong.  That set_locale call must not have any side effects.
48474         From Paul Eggert.
48475
48476 2000-10-22  Jim Meyering  <meyering@lucent.com>
48477
48478         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48479         [CYCLIC]: Remove now-unused definition.
48480
48481         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48482         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48483         Suggestion from Ulrich Drepper.
48484
48485 2000-10-21  Jim Meyering  <meyering@lucent.com>
48486
48487         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48488         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48490
48491 2000-10-21  Jim Meyering  <meyering@lucent.com>
48492
48493         * lib/dirname.c (memrchr): Declare if necessary.
48494         (dir_name): Remove the restriction that there be no
48495         trailing slashes.  Now, this code skips past them, effectively
48496         ignoring them.
48497         [TEST_DIRNAME] (main): New unit tests.
48498
48499         * lib/memrchr.c: New file from GNU libc.
48500         Undef __memrchr, too.
48501         [!weak_alias]: Define __memrchr to memrchr.
48502         Guard weak_alias use with `#ifdef weak_alias'.
48503
48504 2000-10-21  Jim Meyering  <meyering@lucent.com>
48505
48506         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48507         (dir_name): Use dir_name_r.
48508         * lib/dirname.h (dir_name_r): Declare it.
48509
48510 2000-10-17  Jim Meyering  <meyering@lucent.com>
48511
48512         * lib/quote.h (PARAMS): Define and use.
48513         Reported by Akim Demaille.
48514
48515         * lib/getopt.c: Update from libc.
48516
48517 2000-10-16  Jim Meyering  <meyering@lucent.com>
48518
48519         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48520         setlocale.
48521         From Jan Fedak.
48522
48523 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48524
48525         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48526
48527 2000-09-25  Jim Meyering  <meyering@lucent.com>
48528
48529         * lib/md5.h (rol): Define (from GnuPG).
48530
48531         * lib/sha.c: Give credit (GnuPG) where due.
48532         (M): Use rol rather than open-coding it.
48533         Add a FIXME comment.
48534
48535 2000-09-21  Jim Meyering  <meyering@lucent.com>
48536
48537         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48538         Reported by Michael Stone.
48539
48540 2000-09-20  Jim Meyering  <meyering@lucent.com>
48541
48542         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48543         (noinst_HEADERS): Add sha.h.
48544         Based on code from Scott G. Miller and from GnuPG.
48545
48546 2000-09-18  Jim Meyering  <meyering@lucent.com>
48547
48548         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48549         LIBS. Otherwise, everyone ends up linking with -lelf for some
48550         configurations.
48551         Reported by Mike Stone.
48552
48553 2000-09-15  Jim Meyering  <meyering@lucent.com>
48554
48555         * lib/regex.c: Update from libc.
48556
48557 2000-09-10  Jim Meyering  <meyering@lucent.com>
48558
48559         * lib/getopt.c (_getopt_internal): Update from glibc.
48560
48561 2000-09-09  Jim Meyering  <meyering@lucent.com>
48562
48563         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48564         think it should be used as a general replacement for isascii.
48565         * lib/fnmatch.c: Likewise.
48566         * lib/mbswidth.c: Likewise
48567         * lib/regex.c: Likewise.
48568
48569         Don't use atoi.
48570         * lib/userspec.c: Include sys/param.h and limits.h.
48571         Include xstrtol.h.
48572         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48573         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48574         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48575         UID, GID.  Check range.
48576
48577 2000-09-06  Jim Meyering  <meyering@lucent.com>
48578
48579         * lib/getopt.c (_getopt_internal): Update from glibc.
48580
48581 2000-08-30  Jim Meyering  <meyering@lucent.com>
48582
48583         * lib/strftime.c: Merge in changes from GNU libc.
48584
48585 2000-08-26  Jim Meyering  <meyering@lucent.com>
48586
48587         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48588         * m4/fpending.m4: New file.
48589
48590 2000-08-26  Jim Meyering  <meyering@lucent.com>
48591
48592         * lib/closeout.c: Include "__fpending.h".
48593         (close_stdout_status): Return right away if there's nothing to flush.
48594
48595         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48596         * lib/__fpending.c: New file.
48597         * lib/__fpending.h: New file.
48598
48599 2000-08-20  Jim Meyering  <meyering@lucent.com>
48600
48601         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48602         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48603         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48604
48605 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48606
48607         Improve fileutils installation on systems where running
48608         programs (like install) can't be unlinked.
48609         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48610         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48611
48612 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48613
48614         Standardize on "memory exhausted" instead of "Memory exhausted"
48615         or "virtual memory exhausted".
48616         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48617         "virtual memory exhausted".
48618         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48619         our own message.
48620         * lib/userspec.c (parse_user_spec): Likewise.
48621         * lib/bumpalloc.h: comment fix
48622         * lib/same.c, userspec.c: Include xalloc.h.
48623
48624         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48625         not char *const and pointing to a constant array.
48626         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48627         (xrealloc): Comment fix.
48628
48629         * lib/userspec.c (parse_user_spec):
48630         Don't translate a message until just before returning,
48631         to avoid unnecessary translation.
48632
48633 2000-08-07  Jim Meyering  <meyering@lucent.com>
48634
48635         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48636         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48637         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48638         getgroups.c, gethostname.c, getopt.h, group-member.c,
48639         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48640         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48641         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48642         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48643         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48644         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48645         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48646         yesno.c: Back out Copyright date changes for each file with no change
48647         this year.  This eases coordination with other programs using the same
48648         source code modules.  From Paul Eggert.
48649
48650 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48651
48652         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48653         not char, for compatibility with glibc 2.1.3 strftime.c.
48654
48655 2000-08-03  Greg McGary  <greg@mcgary.org>
48656
48657         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48658         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48659         (EXTEND_BUFFER): Use them.
48660
48661 2000-08-01  Jim Meyering  <meyering@lucent.com>
48662
48663         * lib/dirname.c (ISSLASH): Define.
48664         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48665         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48666         both `\' and `/' may be use as path separators.
48667         Based on a patch from Prashant TR.
48668
48669 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48670
48671         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48672         slot vector a constant, since it might get modified.
48673
48674 2000-07-31  Jim Meyering  <meyering@lucent.com>
48675
48676         * lib/xmalloc.c: Use `virtual memory exhausted', not
48677         `Memory exhausted'.
48678         * lib/obstack.c (print_and_abort): Likewise.
48679
48680 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48681
48682         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48683         buffer, so that the caller can always quote one small
48684         component of a "memory exhausted" message in slot 0.
48685         From a suggestion by Jim Meyering.
48686
48687 2000-07-30  Jim Meyering  <meyering@lucent.com>
48688
48689         * lib/makepath.c (make_path): Quote the other instance, too.
48690
48691         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48692         (STATIC_BUF_SIZE): Define.
48693         (quotearg_n_options): Use only statically allocated storage when
48694         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48695         than STATIC_BUF_SIZE.
48696
48697 2000-07-29  Jim Meyering  <meyering@lucent.com>
48698
48699         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48700         * lib/dirname.c (dir_name): Likewise.
48701
48702         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48703         `/'.
48704
48705         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48706         (dir_name): Assert that there are no trailing slashes.
48707
48708 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48709
48710         * lib/mbswidth.h (mbswidth): Add a flags argument.
48711         (mbswidth): New declaration.
48712         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48713         * lib/mbswidth.c (mbswidth): Add a flags argument.
48714         (mbsnwidth): New function.
48715
48716 2000-07-24  Jim Meyering  <meyering@lucent.com>
48717
48718         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48719
48720 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48721
48722         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48723
48724 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48725
48726         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48727         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48728         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48729         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48730         invoke multibyte primitives.
48731
48732 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48733
48734         * lib/quotearg.c:
48735         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48736         so that mbstate_t is always defined.
48737
48738         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48739         be 1 in at least one GCC installation, and this configuration
48740         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48741         performance on hosts that have mbrtowc but have only unibyte
48742         locales, but I assume these hosts are rare.
48743
48744 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48745
48746         * lib/mbswidth.c (_XOPEN_SOURCE):
48747         Don't define; this causes problems on Solaris 7.
48748         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48749
48750 2000-07-23  Jim Meyering  <meyering@lucent.com>
48751
48752         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48753         too: getgrgid, getpwuid, getuid.
48754
48755 2000-07-23  Jim Meyering  <meyering@lucent.com>
48756
48757         * lib/basename.c (base_name): Add an assertion.
48758
48759 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48760
48761         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48762         shadow its mbsinit function.
48763
48764 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48765
48766         * lib/mbswidth.h: New file.
48767         * lib/mbswidth.c: New file.
48768         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48769         (noinst_HEADERS): Add mbswidth.h.
48770
48771 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48772
48773         * lib/config.charset: Add support for FreeBSD. Improve support for
48774         HP-UX and IRIX 6.
48775
48776 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48777
48778         * m4/mbswidth.m4: New file.
48779         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48780
48781 2000-07-15  Jim Meyering  <meyering@lucent.com>
48782
48783         * lib/makepath.c: Include quote.h.
48784         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48785         corresponding argument in a `quote (...)' call.
48786         Give better diagnostics.
48787
48788         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48789         (noinst_HEADERS): Add quote.h.
48790
48791         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48792         from tar's src/misc.c.
48793         * lib/quote.h: New file.  Prototypes for same.
48794
48795 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48796
48797         From a suggestion by Bruno Haible.
48798         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48799         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48800         to decide whether to define the BeOS workaround macro;
48801         this adjusts to the change to AC_MBSTATE_T.
48802
48803 2000-07-14  Jim Meyering  <meyering@lucent.com>
48804
48805         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48806         jm_AC_TYPE_UINTMAX_T.
48807
48808 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48809
48810         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48811
48812         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48813         quotearg_buffer_restyled): Add support for
48814         clocale_quoting_style.  Undo previous change to
48815         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48816         and "{RIGHT QUOTATION MARK}" msgids.
48817
48818 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48819
48820         From a suggestion by Bruno Haible.
48821         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48822         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48823         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48824         and mbstate_t, to a single-part test that simply defines mbstate_t.
48825         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48826         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48827
48828 2000-07-10  Jim Meyering  <meyering@lucent.com>
48829
48830         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48831
48832         * m4/gnu-source.m4: Output to confdefs.h directly.
48833         Suggestion from Akim Demaille.
48834
48835 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48836
48837         The old behavior of quoting `like this' doesn't look good with
48838         newer, ISO-style fonts.  See:
48839         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48840
48841         Instead, quote "like this" by default.  Let the translator
48842         tailor the locale-specific quoting behavior by providing
48843         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48844
48845         * lib/quotearg.c (N_): New macro.
48846         (gettext_default): New function.
48847         (quotearg_buffer_restyled): Use
48848         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48849         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48850
48851 2000-07-09  Jim Meyering  <meyering@lucent.com>
48852
48853         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48854         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48855
48856         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48858
48859 2000-07-09  Jim Meyering  <meyering@lucent.com>
48860
48861         * lib/Most files: Update copyright dates to include 2000.
48862
48863 2000-07-08  Jim Meyering  <meyering@lucent.com>
48864
48865         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48866         if not defined.
48867         (xgethostname): Remove now-unnecessary #ifdef.
48868         Move declaration of `err' into loop where it's used.
48869
48870 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48871         and Bruno Haible  <haible@clisp.cons.org>
48872
48873         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48874         only if the test for an object-type mbstate_t fails.  This
48875         prevents us from mistakenly reporting that mbstate_t is a
48876         system object type after we "#define mbstate_t int" to work
48877         around its lack.
48878
48879 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48880         and Bruno Haible  <haible@clisp.cons.org>
48881
48882         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48883
48884 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48885
48886         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48887         to strerror_r.
48888         Include <ctype.h> for use of isalpha.
48889
48890 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48891
48892         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48893         by allocating a larger buffer. Test the gethostname return value for
48894         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
48895         returns an error and ENAMETOOLONG isn't defined.
48896
48897 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48898
48899         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48900         dimension.
48901
48902 2000-07-04  Jim Meyering  <meyering@lucent.com>
48903
48904         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48905         of the deprecated AC_CHECKING.
48906
48907 2000-07-04  Jim Meyering  <meyering@lucent.com>
48908
48909         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48910         Reported by Bruno Haible.
48911
48912 2000-07-04  Jim Meyering  <meyering@lucent.com>
48913
48914         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48915         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
48916         lacks mbrtowc.
48917
48918 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48919
48920         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48921         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48922
48923 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48924         and Bruno Haible  <haible@clisp.cons.org>
48925
48926         * lib/quotearg.c (mbrtowc):
48927         Assign to *pwc, and return 1 only if result is nonzero.
48928         (iswprint): Use ISPRINT when substituting our own mbrtowc.
48929
48930 2000-07-03  Jim Meyering  <meyering@lucent.com>
48931
48932         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48933
48934 2000-07-03  Jim Meyering  <meyering@lucent.com>
48935
48936         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48937         This is necessary to get a definition of e.g., UTMP_FILE on
48938         HP-UX 10.20.
48939         From Bob Proulx.
48940
48941 2000-07-02  Jim Meyering  <meyering@lucent.com>
48942
48943         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48944
48945         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48946         AC_LIBOBJ(function_name).
48947         * m4/chown.m4: Likewise.
48948         * m4/fnmatch.m4: Likewise.
48949         * m4/ftruncate.m4: Likewise.
48950         * m4/getgroups.m4: Likewise.
48951         * m4/getline.m4: Likewise.
48952         * m4/group-member.m4: Likewise.
48953         * m4/jm-macros.m4: Likewise.
48954         * m4/lstat.m4: Likewise.
48955         * m4/malloc.m4: Likewise.
48956         * m4/memcmp.m4: Likewise.
48957         * m4/nanosleep.m4: Likewise.
48958         * m4/putenv.m4: Likewise.
48959         * m4/realloc.m4: Likewise.
48960         * m4/regex.m4: Likewise.
48961         * m4/stat.m4: Likewise.
48962         * m4/strftime.m4: Likewise.
48963
48964 2000-07-02  Jim Meyering  <meyering@lucent.com>
48965
48966         * lib/quotearg.c (mbstate_t): Don't define here.
48967
48968 2000-07-02  Jim Meyering  <meyering@lucent.com>
48969
48970         * lib/nanosleep.c (SIGCONT): Define if not already defined.
48971
48972 2000-07-01  Jim Meyering  <meyering@lucent.com>
48973
48974         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48975
48976 2000-07-01  Jim Meyering  <meyering@lucent.com>
48977
48978         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48979         problem.
48980
48981 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48982
48983         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48984         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48985
48986 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48987
48988         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48989         per change in ../m4/ls-mntd-fs.m4.
48990         (read_filesystem_list): Ignore symbolic links.
48991
48992 2000-06-29  Jim Meyering  <meyering@lucent.com>
48993
48994         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48995         for declaration of strcmp.
48996
48997         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48998
48999         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
49000         Avoid warning by casting result to `char *' to remove `const'.
49001
49002 2000-06-28  Jim Meyering  <meyering@lucent.com>
49003
49004         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
49005         included by quotearg.c, for which we perform this test.  From
49006         Bruno Haible.
49007
49008 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49009
49010         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
49011         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
49012         <utmpx.h> exists, put readutmp.o into LIBOBJS.
49013
49014 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49015
49016         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
49017
49018 2000-06-26  Paul Eggert  <eggert@twinsun.com>
49019
49020         savedir now sets errno on failure and invokes xmalloc to get memory.
49021         Fix a couple of other minor bugs while we're at it.
49022
49023         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
49024         (NAMLEN): Remove macro.
49025         (malloc, realloc): Remove decls.
49026         (stpcpy): Likewise.
49027         ("xalloc.h"): Include.
49028         (NAME_SIZE_DEFAULT): New macro.
49029         (savedir): Use xmalloc / xrealloc to allocate memory.
49030         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
49031         Skip "" directory entries.
49032         Use strlen to calculate directory entry length, since the old method
49033         is rarely used these days and isn't worth supporting.
49034         Don't use a pointer after freeing it.
49035         Check for integer overflow when calculating allocation size.
49036         Use memcpy to copy entries, instead of stpcpy.
49037         Set errno properly when returning NULL.
49038         Check for readdir error.
49039
49040 2000-06-26  Jim Meyering  <meyering@lucent.com>
49041
49042         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
49043
49044 2000-06-25  Jim Meyering  <meyering@lucent.com>
49045
49046         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
49047         Linux header bug when _XOPEN_SOURCE is defined to 500.
49048
49049 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49050
49051         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
49052         deficiency.
49053
49054 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49055
49056         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
49057         Include xalloc.h.
49058         Don't include <stdlib.h>.  Don't declare malloc, realloc.
49059
49060 2000-06-24  Jim Meyering  <meyering@lucent.com>
49061
49062         * m4/strerror_r.m4: Revive this file -- to try out an experimental
49063         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
49064         for which strerror does return char*, but which lacks a conveniently
49065         accessible declaration of the function.  If the compile-test says
49066         strerror_r doesn't work, then resort to a `run'-test that works on
49067         BeOS and segfaults on DEC Unix.
49068
49069 2000-06-24  Jim Meyering  <meyering@lucent.com>
49070
49071         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
49072
49073 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49074
49075         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
49076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
49077
49078 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49079
49080         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
49081         (mbrtowc, mbstate_t): Define substitutes if
49082         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
49083         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
49084         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
49085
49086 2000-06-23  Jim Meyering  <meyering@lucent.com>
49087
49088         * m4/afs.m4: Add missing AC_MSG_RESULT.
49089         Reported by Bruno Haible.
49090
49091         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
49092         Suggestion from Bruno Haible.
49093
49094 2000-06-23  Jim Meyering  <meyering@lucent.com>
49095
49096         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
49097
49098 2000-06-21  Jim Meyering  <meyering@lucent.com>
49099
49100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
49101
49102 2000-06-21  Jim Meyering  <meyering@lucent.com>
49103
49104         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
49105         (noinst_HEADERS): Add getstr.h.
49106
49107         * lib/getline.c (getstr): Move into a separate file.
49108         * lib/getstr.c (getstr): New file, extracted from getline.c, with
49109         the following changes: new parameter, delim2; both delim[12]
49110         parameters have type `int', not `char'.  The latter would lose
49111         with 8-bit delimiters.
49112         * lib/getstr.h: New file.
49113
49114 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49115
49116         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
49117         than 1024, return a memory chunk of least possible size, instead
49118         of size PATH_MAX + 2. In the loop, increment the size proportionally.
49119         Use free/xmalloc instead of xrealloc to avoid copying for very long
49120         paths.
49121
49122 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49123
49124         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
49125         the empty string.
49126
49127 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49128
49129         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
49130         address, not strdup.  Include <stdlib.h> and don't declare free().
49131
49132 2000-06-19  Jim Meyering  <meyering@lucent.com>
49133
49134         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
49135
49136 2000-06-18  Jim Meyering  <meyering@lucent.com>
49137
49138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
49139
49140         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
49141         `checking whether...' message to be consistent with that of the
49142         lstat test.
49143
49144 2000-06-18  Jim Meyering  <meyering@lucent.com>
49145
49146         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
49147         Besides, these days every porting target provides a mkdir function.
49148
49149         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49150         needed. (this snippet comes from src/system.h).
49151
49152 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
49153
49154         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49155
49156 2000-06-15  Paul Eggert  <eggert@twinsun.com>
49157
49158         * lib/human.c (adjust_value): New function.
49159         (human_readable_inexact): Apply rounding style even when
49160         printing approximate values.
49161
49162 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49163
49164         * lib/human.c (human_readable_inexact): Allow an input block
49165         size that is not a multiple of the output block size, and vice versa.
49166         Reported by Piergiorgio Sartor.
49167
49168 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49169
49170         * lib/getdate.y (get_date): Apply relative times after time
49171         zone indicator, not before.  Reported by Todd A. Jacobs.
49172
49173 2000-06-13  Jim Meyering  <meyering@lucent.com>
49174
49175         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49176
49177         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49178
49179 2000-06-12  Paul Eggert  <eggert@twinsun.com>
49180
49181         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49182
49183 2000-06-12  Jim Meyering  <meyering@lucent.com>
49184
49185         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49186         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49187         optional argument.
49188         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49189         the optional argument, `lib'.
49190
49191 2000-06-08  Jim Meyering  <meyering@lucent.com>
49192
49193         * m4/largefile.m4: Remove file (now that it's part of autoconf).
49194
49195 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49196
49197         Rewrite largefile configuration so that we don't need to run
49198         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
49199         AC_CANONICAL_HOST in configure.in -- jmm]
49200
49201         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49202         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49203         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49204         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49205         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49206         All uses changed.
49207         Instead of inspecting the output of getconf, try to compile the
49208         test program without and with the macro definition.
49209         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49210         for getconf.  Instead, check for the needed flags by compiling
49211         test programs.
49212
49213 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49214
49215         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49216
49217 2000-06-04  Jim Meyering  <meyering@lucent.com>
49218
49219         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49220         SunOS 4.1.4 for which gid_t is an unsigned type.
49221
49222 2000-06-03  Jim Meyering  <meyering@lucent.com>
49223
49224         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49225         now that autoconf requires that.
49226
49227         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49228         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49229         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49230
49231 2000-06-03  Jim Meyering  <meyering@lucent.com>
49232
49233         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49234
49235 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49236
49237         * m4/glibc21.m4: New file.
49238         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49239
49240 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49241
49242         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49243         newer, don't install charset.alias.
49244         * lib/config.charset: Change the Linux/glibc rules so they become empty
49245         on glibc-2.1 or newer.
49246
49247 2000-06-02  Jim Meyering  <meyering@lucent.com>
49248
49249         * lib/mountlist.c: Back out last change.  Instead, do this...
49250         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49251         me_dummy member using the same `ignore'-testing code.
49252         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49253         fs_type strings.
49254         From Mark D. Roth.
49255
49256 2000-05-29  Jim Meyering  <meyering@lucent.com>
49257
49258         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49259         mounts with the `ignore' attribute.  Based on a patch from
49260         Mark D. Roth.
49261
49262 2000-05-28  Jim Meyering  <meyering@lucent.com>
49263
49264         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49265         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49266         * m4/stat.m4: Likewise.
49267         * m4/lstat.m4: Likewise.
49268         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49269
49270         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49271         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49272
49273 2000-05-26  Jim Meyering  <meyering@lucent.com>
49274
49275         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49276
49277 2000-05-24  Jim Meyering  <meyering@lucent.com>
49278
49279         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49280         autoconf requires that.
49281         * m4/lib-check.m4: Likewise.
49282         * m4/jm-macros.m4: Likewise.
49283         * m4/strftime.m4: Likewise.
49284
49285         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49286         AC_CHECK_DECLS, now that autoconf requires that.
49287
49288 2000-05-22  Jim Meyering  <meyering@lucent.com>
49289
49290         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49291         * m4/lstat.m4: Likewise.
49292
49293 2000-05-22  Jim Meyering  <meyering@lucent.com>
49294
49295         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49296
49297 2000-05-20  Jim Meyering  <meyering@lucent.com>
49298
49299         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49300         (jm_PREREQ): Use it.
49301
49302 2000-05-18  Jim Meyering  <meyering@lucent.com>
49303
49304         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49305         back, too, since it may have been modified by allocate_entry.
49306         (hash_delete): Rewrite to use neither the assignment operator
49307         nor the comma operator in an if-expression.
49308
49309 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49310
49311         * lib/closeout.c:
49312         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49313         Remove; no longer needed.
49314         "quotearg.h": Add include.
49315         (file_name): Do not bother to explicitly initialize to NULL; it's less
49316         efficient on some hosts.
49317         (close_stdout_status): Remove test as to whether stdout was already
49318         closed; it breaks for the case "echo x | sort >&-".
49319         Quote file name colons.
49320         Do not assume that _("write error") lacks format strings.
49321
49322 2000-05-15  Jim Meyering  <meyering@lucent.com>
49323
49324         * lib/version-etc.c (version_etc_copyright): Update the copyright
49325         string used in all --version output.
49326
49327 2000-05-14  Jim Meyering  <meyering@lucent.com>
49328
49329         * lib/closeout.c (close_stdout_set_file_name): New function.
49330         (close_stdout_status): Use new file-scoped global.
49331         Return right away if fstat says the stdout file descriptor is invalid.
49332         * lib/closeout.h (close_stdout_set_file_name): Declare.
49333
49334 2000-05-10  Jim Meyering  <meyering@lucent.com>
49335
49336         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49337         (close_stdout_set_status): New function.
49338         * lib/closeout.h (close_stdout_set_status): Declare.
49339
49340 2000-05-09  Jim Meyering  <meyering@lucent.com>
49341
49342         * m4/gettext.m4: Rename this...
49343         * m4/libintl.m4: ...to this.
49344
49345 2000-05-08  Jim Meyering  <meyering@lucent.com>
49346
49347         * lib/long-options.c: Don't include closeout.h.
49348         (parse_long_options): Don't call close_stdout for --version.
49349
49350 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49351
49352         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49353         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49354         2.1.3 bug.  This avoids a clash when files like regex.c define
49355         _GNU_SOURCE.
49356
49357 2000-05-06  Jim Meyering  <meyering@lucent.com>
49358
49359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49360         (AC_REPLACE_FUNCS): Add strnlen.
49361
49362         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49363         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49364
49365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49366         AC_SEARCH_LIBS call for nanosleep.
49367         (LIB_NANOSLEEP): Set and AC_SUBST.
49368
49369 2000-05-06  Jim Meyering  <meyering@lucent.com>
49370
49371         * lib/strnlen.c: Undefine __strnlen and strnlen.
49372         [!weak_alias]: Define __strnlen to strnlen.
49373
49374         * lib/atexit.c: New file, from libiberty.
49375
49376 2000-05-06  Jim Meyering  <meyering@lucent.com>
49377
49378         * lib/closeout.c (close_stdout_status): Also check for errors on the
49379         stderr stream.
49380
49381 2000-05-05  Jim Meyering  <meyering@lucent.com>
49382
49383         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49384         AC_SEARCH_LIBS call for clock_gettime.
49385         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49386
49387         * m4/search-libs.m4: Update from autoconf.
49388
49389         su doesn't work on Solaris 2.6.
49390         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49391         <shadow.h>.  Reported by Dragos Harabor.
49392
49393 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49394
49395         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49396         memcpy instead of xmalloc, xrealloc, path_concat.
49397         (locale_charset): Treat empty environment variables as absent.
49398         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49399
49400 2000-05-04  Jim Meyering  <meyering@lucent.com>
49401
49402         * lib/getopt.c: Update from glibc.
49403         * lib/obstack.c: Likewise.
49404         * lib/obstack.h: Likewise.
49405         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49406         file
49407
49408         * lib/regex.h: Likewise.
49409         * lib/strndup.c: Likewise.
49410         * lib/strnlen.c: New file, from glibc.
49411
49412 2000-05-03  Jim Meyering  <meyering@lucent.com>
49413
49414         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49415
49416 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49417
49418         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49419         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49420         compile-time test, rather than inspecting host and OS, to
49421         decide whether to define _LARGEFILE_SOURCE.
49422
49423 2000-05-01  Jim Meyering  <meyering@lucent.com>
49424
49425         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49426
49427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49428         Based on a patch from Bruno Haible.
49429
49430 2000-05-01  Jim Meyering  <meyering@lucent.com>
49431
49432         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49433
49434 2000-04-29  Jim Meyering  <meyering@lucent.com>
49435
49436         * lib/path-concat.c: Declare strdup only if it's not defined.
49437         * lib/canon-host.c: Likewise.
49438
49439 2000-04-28  Jim Meyering  <meyering@lucent.com>
49440
49441         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49442         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49443         is included first, then limits.h is included by locale.h by libintl.h.
49444         From John David Anglin.
49445
49446 2000-04-25  Jim Meyering  <meyering@lucent.com>
49447
49448         * lib/makepath.c (S_IRWXUGO): Define.
49449         (make_path): Always perform explicit chmod if MODE specifies any
49450         of the `special' permission bits.  Prompted by a bug report against
49451         install from Mate Wierdl and Joost van Baal.
49452
49453 2000-04-18  Jim Meyering  <meyering@lucent.com>
49454
49455         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49456         (jm_PREREQ): Use it.
49457
49458 2000-04-18  Jim Meyering  <meyering@lucent.com>
49459
49460         * lib/README: New file.
49461
49462         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49463         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49464
49465 2000-04-17  Jim Meyering  <meyering@lucent.com>
49466
49467         Get it right :-)
49468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49469         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49470         Suggestion from Akim Demaille.
49471
49472 2000-04-17  Jim Meyering  <meyering@lucent.com>
49473
49474         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49475         the definition of it to rpl_strftime also defined-away the system's
49476         declaration.
49477
49478 2000-04-15  Jim Meyering  <meyering@lucent.com>
49479
49480         Use `C' to denote so-called `contiguous' files, the same way
49481         that tar does.
49482         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49483         (ftypelet): Use S_ISCTG.
49484         From Michael Deutschmann.
49485
49486 2000-04-14  Jim Meyering  <meyering@lucent.com>
49487
49488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49489         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49490         clobbered.
49491
49492 2000-04-14  Jim Meyering  <meyering@lucent.com>
49493
49494         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49495
49496 2000-04-13  Jim Meyering  <meyering@lucent.com>
49497
49498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49499         AH_VERBATIM to insert required #ifndef into config.h.in.
49500         Suggestion from Akim Demaille.
49501
49502 2000-04-12  Jim Meyering  <meyering@lucent.com>
49503
49504         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49505         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49506         Christian Krackowizer.
49507
49508         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49509         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49510         (AC_SYS_LARGEFILE): Require.
49511         (AM_C_PROTOTYPES): Require.
49512
49513 2000-04-08  Jim Meyering  <meyering@lucent.com>
49514
49515         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49516         names don't conflict.  Reported by Eli Zaretskii.
49517
49518 2000-04-07  Jim Meyering  <meyering@lucent.com>
49519
49520         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49521         sys/types.h, to work around system header problems on AIX 3.2.5.
49522         From Bruno Haible.
49523
49524 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49525
49526         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49527         bug.  Deal with the different error behavior of Irix iconv.
49528
49529 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49530
49531         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49532         IRIX if the installer said otherwise.
49533
49534 2000-04-05  Jim Meyering  <meyering@lucent.com>
49535
49536         Portability tweaks required for ultrix4.3.
49537         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49538         (jm_CHECK_DECLS): Add getutent to the list of functions.
49539         (_jm_DECL_HEADERS): Add utmpx.h.
49540         From John David Anglin.
49541
49542         * m4/strftime.m4: Back out the 2000-04-02 change.
49543         Instead of that change, simply undefine putenv in the test program.
49544
49545 2000-04-05  Jim Meyering  <meyering@lucent.com>
49546
49547         Portability tweaks required for ultrix4.3.
49548         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49549         getutent.
49550         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49551         * lib/canon-host.c: Declare strdup.
49552         * lib/path-concat.c: Likewise.
49553         From John David Anglin.
49554
49555 2000-04-04  Jim Meyering  <meyering@lucent.com>
49556
49557         Be more DOS 8.3-friendly.
49558         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49559         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49560         * lib/Makefile.am: Reflect renaming.
49561         Reported by Eli Zaretskii.
49562
49563         Use a temporary file name that won't clash with `charset.alias'
49564         in the DOS 8.3 name space.
49565         * lib/Makefile.am (charset_tmp): Define.
49566         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49567         (uninstall-local): Likewise.
49568         Reported by Eli Zaretskii.
49569
49570 2000-04-03  Jim Meyering  <meyering@lucent.com>
49571
49572         * m4/gettext.m4: Fix typo in comment.
49573
49574         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49575         textutils/configure.in).  Suggestion from Paul Eggert.
49576         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49577
49578 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49579
49580         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49581         variable in the shell rather than using putenv, which isn't
49582         portable.  This avoids the configure-time inter-test dependency
49583         on the potentially-renamed putenv function.
49584
49585 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49586
49587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49588         before checking struct stat.st_blksize, so that
49589         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49590
49591 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49592
49593         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49594         since strftime.c uses HAVE_STRFTIME to decide whether to use
49595         the underlying strftime.
49596
49597 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49598
49599         * lib/time/strftime.c (my_strftime): Make sure we call the system
49600         strftime, not ourselves, when invoking the underlying strftime.
49601
49602 2000-03-24  Jim Meyering  <meyering@lucent.com>
49603
49604         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49605         (charset_alias): Define.
49606         (install-exec-local): Factor out common code.
49607         (uninstall-local): Split lines longer than 80.
49608         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49609         (SUFFIXES): Define.
49610         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49611         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49612
49613 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49614
49615         * lib/config.charset: Output a line containing "Packages using this
49616         file".
49617         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49618         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49619         ref-del.sed): New rules.
49620
49621 2000-03-17  Jim Meyering  <meyering@lucent.com>
49622
49623         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49624         Otherwise, include <strings.h>
49625
49626 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49627
49628         * lib/unicodeio.c (utf8_wctomb): New function.
49629         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49630         format instead of in UCS-4 with platform dependent endianness.
49631
49632 2000-03-10  Jim Meyering  <meyering@lucent.com>
49633
49634         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49635         From Marco Franzen.
49636
49637 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49638
49639         * lib/savedir.c (savedir): Work even if directory size is
49640         negative; this can happen with some screwy NFS configurations.
49641
49642 2000-03-06  Jim Meyering  <meyering@lucent.com>
49643
49644         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49645         if it's NULL (because we ran out of memory).  From Bruno Haible.
49646
49647 2000-03-05  Jim Meyering  <meyering@lucent.com>
49648
49649         * lib/localcharset.c ("path-concat.h"): Include.
49650         (get_charset_aliases): Use path_concat instead of ANSI string
49651         concatenation.
49652
49653         * lib/unicodeio.h (PARAMS): Define.
49654         Use it to guard prototype.
49655
49656 2000-03-04  Jim Meyering  <meyering@lucent.com>
49657
49658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49659         for lib/localcharset.c.
49660
49661 2000-03-04  Jim Meyering  <meyering@lucent.com>
49662
49663         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49664         installing into it.
49665         (uninstall-local): Uncomment this rule so `make distcheck' works
49666         once again.
49667
49668         * lib/unicodeio.c (<errno.h>): Include it.
49669         (errno): Declare if not defined.
49670
49671         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49672
49673         * lib/config.charset: New version, incorporating remarks from a linux
49674         i18n mailing list.  From Bruno Haible.
49675
49676 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49677
49678         * m4/codeset.m4: New file.
49679         * m4/iconv.m4: New file.
49680         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49681
49682 2000-03-03  Jim Meyering  <meyering@lucent.com>
49683
49684         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49685
49686 2000-03-02  Jim Meyering  <meyering@lucent.com>
49687
49688         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49689         the messages come out on separate lines.
49690
49691         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49692         rather than jm_CHECK_DECLARATIONS.
49693         * m4/decl.m4: Remove now-unused file.
49694
49695         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49696         geteuid.
49697
49698 2000-03-02  Jim Meyering  <meyering@lucent.com>
49699
49700         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49701
49702 2000-03-01  Jim Meyering  <meyering@lucent.com>
49703
49704         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49705         * lib/unicodeio.c: Likewise.
49706
49707 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49708
49709         * lib/config.charset: New file.
49710         * lib/localcharset.c: New file.
49711         * lib/unicodeio.h, lib/unicodeio.c: New files.
49712         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49713         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49714         (noinst_HEADERS): Add unicodeio.h.
49715         (all-local, install-exec-local, charset.alias): New targets.
49716
49717 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49718
49719         * lib/quotearg.c (ALERT_CHAR): New macro.
49720         (quotearg_buffer_restyled): Use it.
49721
49722 2000-02-27  Jim Meyering  <meyering@lucent.com>
49723
49724         * m4/check-decl.m4: Add getenv to the list.
49725
49726 2000-02-27  Jim Meyering  <meyering@lucent.com>
49727
49728         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49729         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49730
49731         * lib/backupfile.c: Guard inclusion of stdlib.h with
49732         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49733         Declare malloc if needed.
49734
49735         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49736         `#ifndef HAVE_DECL..'
49737         now that autoconf always defines the HAVE_DECL_ symbols.
49738         * lib/human.c: Likewise.
49739         * lib/same.c: Likewise.
49740         * lib/strtoumax.c: Likewise.
49741
49742         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49743         declaration check was not run.
49744         * lib/hash.c: Likewise.
49745         * lib/human.c: Likewise.
49746         * lib/same.c: Likewise.
49747         * lib/strtoumax.c: Likewise.
49748
49749         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49750         `.', then first look up the entire `.'-containing string as a login
49751         name.
49752
49753 2000-02-23  Jim Meyering  <meyering@lucent.com>
49754
49755         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49756         in place of my hack.
49757
49758 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49759
49760         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49761         (textint): New typedef.
49762         (parser_control): Member year changed from int to textint.
49763         All uses changed.
49764         (YYSTYPE): Removed; replaced by %union with int and textint members.
49765         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49766         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49767         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49768         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49769         (date, number, to_year): Use width of number in digits, not its value,
49770         to determine whether it's a 2-digit year, or a 2-digit time.
49771         (yylex): Store number of digits of numeric tokens.
49772         Reported by John Kendall.
49773
49774         (parser_control): Changed from struct parser_control to typedef (for
49775         consistency).  All uses changed.
49776
49777         (tID): Removed; not used.
49778         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49779
49780 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49781
49782         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49783         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49784
49785 2000-02-12  Jim Meyering  <meyering@lucent.com>
49786
49787         * lib/userspec.c (ISDIGIT): Define it.
49788         (isdigit): Remove definition.
49789         (is_number): Use ISDIGIT, not isdigit.
49790         <libintl.h>: Include.
49791         (_ and N_): Define.
49792         (parse_user_spec): Mark translatable strings.
49793
49794 2000-02-10  Jim Meyering  <meyering@lucent.com>
49795
49796         With these changes, nanosleep.[ch] are finally enough like the other
49797         lib/* replacement files to compile on a few more losing systems.
49798
49799         * lib/nanosleep.h: Don't include config.h.
49800         Remove prototype from declaration of nanosleep.
49801         (PARAMS): Remove now-unneeded definition.
49802         * lib/nanosleep.c: #undef nanosleep.
49803         (rpl_nanosleep): Rename from nanosleep.
49804
49805 2000-02-10  Jim Meyering  <meyering@lucent.com>
49806
49807         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49808         gnu_nanosleep to rpl_nanosleep.
49809
49810 2000-02-09  Jim Meyering  <meyering@lucent.com>
49811
49812         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49813         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49814
49815 2000-02-08  Akim Demaille  <akim@epita.fr>
49816
49817         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49818         `[' and `]' and remove uses of `changequote'.
49819         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49820         (AC_SYS_LARGEFILE): Likewise.
49821         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49822         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49823         of changequote.
49824         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49825         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49826         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49827         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49828
49829 2000-02-05  Jim Meyering  <meyering@lucent.com>
49830
49831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49832         Remove explicit use of AC_HEADER_TIME.  It is required by
49833         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49834         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49835         in autoconf whereby the expansion of the latter ended up preceding
49836         the expansion of its prerequisite, AC_HEADER_TIME.
49837         Reported by Volker Borchert.
49838
49839 2000-02-03  Jim Meyering  <meyering@lucent.com>
49840
49841         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49842
49843 2000-02-03  Jim Meyering  <meyering@lucent.com>
49844
49845         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49846         rather than with `#if HAVE_UTMPNAME'.
49847
49848 2000-02-02  Jim Meyering  <meyering@lucent.com>
49849
49850         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49851         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49852         Reported by Eli Zaretskii.
49853
49854 2000-02-01  Jim Meyering  <meyering@lucent.com>
49855
49856         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49857
49858 2000-01-31  Jim Meyering  <meyering@lucent.com>
49859
49860         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49861         functions.  Add the time.h and sys/time.h headers along with the
49862         AC_REQUIRE'ment of AC_HEADER_TIME.
49863
49864 2000-01-31  Jim Meyering  <meyering@lucent.com>
49865
49866         * lib/nanosleep.h (nanosleep): Guard declaration with
49867         `#if ! HAVE_DECL_NANOSLEEP'.
49868         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49869         the declaration in that vendor's sys/timers.h.
49870         Reported by Christian Krackowizer.
49871
49872         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49873         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49874         (ISPRINT): Likewise.
49875         Reported by Tom Tromey.
49876
49877 2000-01-30  Jim Meyering  <meyering@lucent.com>
49878
49879         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49880
49881         * m4/prereq.m4 (utmp_includes): Define.
49882         Check for ut_user and ut_name members in both struct utmpx
49883         and struct utmp.
49884
49885 2000-01-30  Jim Meyering  <meyering@lucent.com>
49886
49887         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49888         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
49889         header files where only utmpx.ut_user is declared.
49890
49891         * lib/readutmp.h (UT_USER): Define.
49892
49893 2000-01-29  Jim Meyering  <meyering@lucent.com>
49894
49895         * m4/lib-check.m4: New file containing library-related checks from
49896         fileutils and sh-utils (textutils had none).
49897
49898 2000-01-28  Jim Meyering  <meyering@lucent.com>
49899
49900         * m4/perl.m4: Change format of warning message to look more like that
49901         from the missing script.  Suggestion from François Pinard.
49902
49903 2000-01-25  Jim Meyering  <meyering@lucent.com>
49904
49905         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49906         well as time.h in the compile check.
49907         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49908         Fix typo in cross-compiling case: s/yes/no/.
49909
49910 2000-01-23  Jim Meyering  <meyering@lucent.com>
49911
49912         * m4/jm-macros.m4: Move df-related tests here from
49913         fileutils/configure.in
49914
49915         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49916         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49917
49918         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
49919         s/space/ac_fsusage_space/.
49920         (jm_FILE_SYSTEM_USAGE): Take two parameters.
49921
49922         * m4/ftruncate.m4: New file (derived from part of
49923         fileutils/configure.in).
49924         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49925         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49926
49927         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49928         AC_SUBST these here, rather than just in sh-util/configure.in, so
49929         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49930         all the same.
49931         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49932         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49933         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49934         (AC_SUBST(POW_LIBM)): Likewise.
49935         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49936
49937 2000-01-23  Jim Meyering  <meyering@lucent.com>
49938
49939         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49940         obstack.c.
49941
49942 2000-01-22  Jim Meyering  <meyering@lucent.com>
49943
49944         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49945
49946         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49947
49948         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49949         configure.in
49950         (AC_CHECK_HEADERS): Likewise for sh-utils.
49951         (AC_CHECK_HEADERS): Likewise for textutils.
49952         Merge the three lists of headers.
49953
49954         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
49955         from fileutils' configure.in.
49956
49957         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49958         code. Moved tests into their own function (_jm_DECL_HEADERS) in
49959         check-decl.m4.
49960
49961         * m4/check-decl.m4: Use #if rather than #ifdef.
49962         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49963         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49964         (_jm_DECL_HEADERS): Define new function.
49965         (jm_CHECK_DECLARATIONS): Require it.
49966
49967 2000-01-22  Jim Meyering  <meyering@lucent.com>
49968
49969         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49970         [! HAVE_DECL_STRTOULL]: Declare strtoull.
49971         Required for some AIX systems.  Reported by Christian Krackowizer.
49972         [TESTING] (main): New function.
49973
49974         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
49975         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49976         letters.
49977
49978         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49979         iswprint.
49980
49981         * lib/strverscmp.c (ISDIGIT): Define.
49982         (strverscmp): Use ISDIGIT, not isdigit.
49983
49984 2000-01-19  Jim Meyering  <meyering@lucent.com>
49985
49986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49987         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
49988         defines `struct timespec' in <sys/time.h>
49989
49990         * m4/c-bs-a.m4: Remove uses of changequote altogether.
49991         Thanks to Akim for explaining.
49992
49993 2000-01-17  Paul Eggert  <eggert@twinsun.com>
49994
49995         * lib/nanosleep.c (nanosleep):
49996         Don't use SA_INTERRUPT to decide whether to call sigaction, as
49997         POSIX.1 doesn't require SA_INTERRUPT and some systems
49998         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
49999         it's been part of POSIX.1 since day 1 (in 1988).
50000
50001 2000-01-17  Jim Meyering  <meyering@lucent.com>
50002
50003         * lib/interlock: Remove unused file.  Reported by François Pinard.
50004
50005 2000-01-16  Paul Eggert  <eggert@twinsun.com>
50006
50007         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
50008         alert, backslash, formfeed, and vertical tab unnecessarily in
50009         shell quoting style.
50010
50011 2000-01-16  Jim Meyering  <meyering@lucent.com>
50012
50013         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
50014         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
50015         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
50016         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
50017
50018 2000-01-16  Jim Meyering  <meyering@lucent.com>
50019
50020         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
50021         because the latter didn't work.
50022
50023 2000-01-15  Jim Meyering  <meyering@lucent.com>
50024
50025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
50026         (AC_REPLACE_FUNCS): Add memcpy and memset.
50027         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
50028         Add strpbrk.
50029         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
50030
50031 2000-01-12  Jim Meyering  <meyering@lucent.com>
50032
50033         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
50034         (jm_PREREQ): Use it.
50035         (jm_PREREQ_READUTMP): New macro.
50036         (jm_PREREQ): Use it.
50037
50038 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50039
50040         Quote multibyte characters correctly.
50041         * m4/c-bs-a.m4: New file.
50042         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
50043         (jm_PREREQ): Use it.
50044
50045 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50046
50047         * m4/uintmax_t.m4: Port to autoconf 2.13.
50048
50049 2000-01-08  Jim Meyering  <meyering@ascend.com>
50050
50051         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
50052         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
50053
50054 2000-01-04  Jim Meyering  <meyering@ascend.com>
50055
50056         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
50057         jm_STRUCT_DIRENT_D_TYPE.
50058         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
50059         jm_STRUCT_DIRENT_D_INO.
50060         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
50061         jm_STRUCT_UTIMBUF.
50062         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
50063         renamings.
50064         * m4/utime.m4: Likewise.
50065
50066         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
50067         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
50068
50069 2000-01-03  Paul Eggert  <eggert@twinsun.com>
50070
50071         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
50072         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
50073
50074 2000-01-02  Jim Meyering  <meyering@ascend.com>
50075
50076         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
50077         remember if this is necessary.
50078
50079 1999-12-26  Jim Meyering  <meyering@ascend.com>
50080
50081         * m4/jm-macros.m4: Use it here.
50082         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
50083
50084 1999-12-23  Jim Meyering  <meyering@ascend.com>
50085
50086         * m4/jm-macros.m4: Check for clock_gettime (moved from
50087         fileutils/configure.in)
50088         Check for gettimeofday.
50089
50090 1999-12-20  Jim Meyering  <meyering@ascend.com>
50091
50092         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
50093         autoconf-2.14a-1999-12-20.
50094
50095 1999-12-19  Jim Meyering  <meyering@ascend.com>
50096
50097         * m4/lstat-slash.m4: New file.
50098         * m4/jm-macros.m4: Use the new macro:
50099         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50100
50101 1999-12-07  Jim Meyering  <meyering@ascend.com>
50102
50103         * m4/perl.m4: Require that File::Compare be available, too.
50104         Too many systems seem to lack it.
50105
50106         * m4/strftime.m4: Add checks for most of the cpp macros tested in
50107         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
50108
50109 1999-11-18  Paul Eggert  <eggert@twinsun.com>
50110
50111         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
50112         problem with the QNX 4.25 shell, which doesn't propagate exit
50113         status of failed commands inside shell assignments.
50114
50115 1999-11-17  Jim Meyering  <meyering@ascend.com>
50116
50117         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
50118
50119 1999-11-07  Jim Meyering  <meyering@ascend.com>
50120
50121         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
50122
50123 1999-11-06  Jim Meyering  <meyering@ascend.com>
50124
50125         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
50126         * m4/jm-macros.m4 (jm_MACROS): Use it here.
50127
50128 1999-11-05  Jim Meyering  <meyering@ascend.com>
50129
50130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
50131         configure.in of textutils, fileutils, and sh-utils into this one
50132         (shared between those packages) file.
50133         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
50134         AC_STRUCT_ST_BLKSIZE.
50135
50136 1999-11-03  Jim Meyering  <meyering@ascend.com>
50137
50138         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
50139         of AC_CHECK_TYPE checks includes unistd.h.
50140         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
50141         Suggestion from Akim Demaille.
50142
50143 1999-10-30  Jim Meyering  <meyering@ascend.com>
50144
50145         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
50146         m4-quoted string.
50147         * m4/ls-mntd-fs.m4: Likewise.
50148         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
50149         * m4/jm-winsz1.m4: Likewise.
50150
50151         * m4/const.m4: Remove file, since the fix made it into the experimental
50152         version of autoconf.
50153         * m4/mktime.m4: Likewise.
50154
50155         * m4/check-type.m4: Remove file, now that the latest version of
50156         AC_CHECK_TYPE takes a third arg to specify additional #includes.
50157
50158         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50159         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50160         AC_CHECK_TYPE.
50161
50162 1999-10-04  Jim Meyering  <meyering@ascend.com>
50163
50164         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50165
50166 1999-09-22  Paul Eggert  <eggert@twinsun.com>
50167
50168         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50169         2.95.1 bug with HP-UX 10.20.
50170
50171 1999-09-17  Jim Meyering  <meyering@ascend.com>
50172
50173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50174         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50175         due to missing strdup (against sh-utils-2.0).
50176
50177 1999-08-29  Jim Meyering  <meyering@ascend.com>
50178
50179         * m4/jm-macros.m4: Require jm_BISON.
50180         * m4/bison.m4: New file.
50181
50182 1999-08-17  Paul Eggert  <eggert@twinsun.com>
50183
50184         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50185         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50186
50187 1999-08-05  Jim Meyering  <meyering@ascend.com>
50188
50189         * m4/getline.m4: Rename test file from conftestdata to conftest.data
50190         to avoid conflicts with `conftest' on 8+3 filesystems.
50191         Suggestion from Eli Zaretskii.
50192
50193 1999-08-04  Jim Meyering  <meyering@ascend.com>
50194
50195         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50196         fileutils and sh-utils (textutils's getline test was inadequate).
50197         (AM_FUNC_GETLINE): Run this test.
50198         (AC_CHECK_FUNCS): Check for getdelim.
50199         Reported by Bob Proulx.
50200
50201 1999-08-02  Jim Meyering  <meyering@ascend.com>
50202
50203         * m4/jm-macros.m4: Add a comment.
50204
50205 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50206
50207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50208         <inttypes.h> defines strtoumax as a macro (and not as a
50209         function).
50210
50211 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50212
50213         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50214         that we can shift, multiply and divide unsigned long long
50215         values; Ultrix cc can't do it.
50216
50217 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50218
50219         * m4/mktime.m4: New file, which is a preview of what should appear
50220         in the next public autoconf release.
50221
50222 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50223
50224         * m4/lfs.m4: Remove this file.
50225         * m4/largefile.m4: New file.  It contains the old contents of
50226         lfs.m4, except that all names with prefix AC_LFS have been
50227         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50228         compatible with future autoconf versions.  Also, some minor m4
50229         quoting problems have been fixed.
50230
50231 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50232
50233         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50234         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50235         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50236         and simplify the shell code.
50237
50238 1999-08-01  Jim Meyering  <meyering@ascend.com>
50239
50240         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50241         m4.
50242
50243 1999-07-20  Jim Meyering  <meyering@ascend.com>
50244
50245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50246
50247 1999-07-15  Jim Meyering  <meyering@ascend.com>
50248
50249         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50250
50251 1999-05-22  Jim Meyering  <meyering@ascend.com>
50252
50253         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50254
50255 1999-05-20  Jim Meyering  <meyering@ascend.com>
50256
50257         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50258         Add a colon after each `then' in case $4 is empty.
50259
50260 1999-05-16  Jim Meyering  <meyering@ascend.com>
50261
50262         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50263
50264 1999-05-10  Jim Meyering  <meyering@ascend.com>
50265
50266         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50267
50268         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50269         AC_FUNC_MKTIME.
50270
50271 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50272
50273         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50274
50275 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50276
50277         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50278         not CPPFLAGS, so that linking works correctly in IRIX.
50279
50280 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50281
50282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50283
50284 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50285
50286         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50287         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50289         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50290         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50291
50292         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50293
50294 1999-04-20  Jim Meyering  <meyering@ascend.com>
50295
50296         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50297         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50298         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50299
50300 1999-04-18  Jim Meyering  <meyering@ascend.com>
50301
50302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50303         * m4/jm-macros.m4: Use it.
50304
50305 1999-04-06  Jim Meyering  <meyering@ascend.com>
50306
50307         * m4/strftime.m4: Remove test for %f.
50308
50309 1999-03-29  Jim Meyering  <meyering@ascend.com>
50310
50311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50312         superset of the AC_TYPE_* checks in the textutils, fileutils,
50313         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50314         AC_TYPE_PID_T.
50315
50316 1999-03-28  Jim Meyering  <meyering@ascend.com>
50317
50318         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50319         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50320         replaced e.g., in the *.sh files of the sh-utils.
50321
50322 1999-03-20  Jim Meyering  <meyering@ascend.com>
50323
50324         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50325         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50326         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50327
50328 1999-03-19  Jim Meyering  <meyering@ascend.com>
50329
50330         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50331
50332 1999-03-12  Jim Meyering  <meyering@ascend.com>
50333
50334         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50335
50336 1999-03-07  Jim Meyering  <meyering@ascend.com>
50337
50338         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50339         declared.
50340
50341 1999-02-17  Jim Meyering  <meyering@ascend.com>
50342
50343         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50344         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50345
50346 1999-02-07  Jim Meyering  <meyering@ascend.com>
50347
50348         * m4/group-member.m4: New file -- extracted from sh-utils'
50349         configure.in.
50350
50351         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50352         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50353
50354 1999-02-06  Jim Meyering  <meyering@ascend.com>
50355
50356         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50357         * m4/fnmatch.m4: Likewise.
50358         * m4/getgroups.m4: Likewise.
50359         * m4/lstat.m4: Likewise.
50360         * m4/malloc.m4: Likewise.
50361         * m4/putenv.m4: Likewise.
50362         * m4/realloc.m4: Likewise.
50363         * m4/regex.m4: Likewise.
50364         * m4/stat.m4: Likewise.
50365         * m4/strftime.m4: Likewise.
50366         Suggestion from Alain Magloire.
50367
50368         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50369         * m4/fnmatch.m4: Likewise.
50370         * m4/getgroups.m4: Likewise.
50371         * m4/getline.m4: Likewise.
50372         * m4/lstat.m4: Likewise.
50373         * m4/malloc.m4: Likewise.
50374         * m4/memcmp.m4: Likewise.
50375         * m4/putenv.m4: Likewise.
50376         * m4/realloc.m4: Likewise.
50377         * m4/regex.m4: Likewise.
50378         * m4/stat.m4: Likewise.
50379         * m4/strftime.m4: Likewise.
50380         Suggestion from Alain Magloire.
50381
50382         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50383         an argument.
50384
50385         * m4/regex.m4: Add a run-time Test for proper operation of
50386         re_compile_pattern.
50387
50388 1999-01-31  Jim Meyering  <meyering@ascend.com>
50389
50390         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50391
50392 1999-01-30  Jim Meyering  <meyering@ascend.com>
50393
50394         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50395
50396         * m4/jm-mktime.m4: Make this a wrapper around the official
50397         AM_FUNC_MKTIME rather than my private copy, now that the official one
50398         is up to date.
50399         * m4/mktime.m4: Remove file.
50400
50401         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50402         * m4/uptime.m4: Likewise.
50403         * m4/uintmax_t.m4: Likewise.
50404
50405 1999-01-28  Jim Meyering  <meyering@ascend.com>
50406
50407         * m4/jm-macros.m4: Use jm_AFS.
50408         * m4/afs.m4: New file (from fileutils' configure.in).
50409
50410         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50411         * m4/chown.m4: Likewise.
50412         * m4/d-ino.m4: Likewise.
50413         * m4/d-type.m4: Likewise.
50414         * m4/fnmatch.m4: Likewise.
50415         * m4/getgroups.m4: Likewise.
50416         * m4/gettext.m4: Likewise.
50417         * m4/jm-mktime.m4: Likewise.
50418         * m4/jm-winsz2.m4: Likewise.
50419         * m4/lcmessage.m4: Likewise.
50420         * m4/ls-mntd-fs.m4: Likewise.
50421         * m4/malloc.m4: Likewise.
50422         * m4/memcmp.m4: Likewise.
50423         * m4/putenv.m4: Likewise.
50424         * m4/realloc.m4: Likewise.
50425         * m4/st_mtim.m4: Likewise.
50426         * m4/strftime.m4: Likewise.
50427
50428 1999-01-16  Jim Meyering  <meyering@ascend.com>
50429
50430         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50431         (ARGMATCH_DIE_DECL): Define.
50432
50433 1999-01-12  Jim Meyering  <meyering@ascend.com>
50434
50435         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50436         Reported by Lars Hecking.
50437
50438 1999-01-10  Jim Meyering  <meyering@ascend.com>
50439
50440         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50441         gross kludge.
50442         * m4/inttypes_h.m4: Likewise.
50443         * m4/lstat.m4: Likewise.
50444         * m4/malloc.m4: Likewise.
50445         * m4/readdir.m4: Likewise.
50446         * m4/realloc.m4: Likewise.
50447         * m4/st_dm_mode.m4: Likewise.
50448         * m4/stat.m4: Likewise.
50449         * m4/utimbuf.m4: Likewise.
50450         * m4/utimes.m4: Likewise.
50451
50452         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50453         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50454         comments in config.h.in are meaningful.
50455
50456         * m4/jm-macros.m4: Require autoconf-2.13 here.
50457
50458         * m4/regex.m4: By default, don't use the included regex.c on systems
50459         with glibc 2.  Suggestion from Uli Drepper.
50460
50461 1999-01-02  Jim Meyering  <meyering@ascend.com>
50462
50463         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50464
50465 1998-12-18  Jim Meyering  <meyering@ascend.com>
50466
50467         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50468         Based on a suggestion from Lars Hecking.
50469
50470 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50471
50472         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50473
50474 1998-11-16  Jim Meyering  <meyering@ascend.com>
50475
50476         * m4/lfs.m4: Double-quote the `uname...` expression.
50477
50478 1998-11-14  Jim Meyering  <meyering@ascend.com>
50479
50480         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50481         * m4/stat.m4: Likewise.
50482
50483 1998-11-03  Jim Meyering  <meyering@ascend.com>
50484
50485         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50486         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50487
50488 1998-10-18  Jim Meyering  <meyering@ascend.com>
50489
50490         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50491
50492 1998-10-17  Jim Meyering  <meyering@ascend.com>
50493
50494         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50495         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50496         calls for those previously hard-coded headers.  Instead, take a new
50497         parameter.
50498         (jm_CHECK_DECLARATIONS): Reflect interface change.
50499         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50500         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50501
50502         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50503
50504 1998-10-14  Jim Meyering  <meyering@ascend.com>
50505
50506         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50507         instead of "TZ=America/Vancouver".  From Paul Eggert.
50508
50509 1998-10-11  Jim Meyering  <meyering@ascend.com>
50510
50511         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50512         This adds a test for a recently added compatibility fix for mktime.c.
50513         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50514
50515 1998-09-27  Jim Meyering  <meyering@ascend.com>
50516
50517         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50518
50519         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50520         ../configure.in, including a change from Gordon Matzigkeit to allow
50521         cross-compiling for the Hurd.
50522
50523         * m4/glibc.m4: New file/macro to test for the GNU C Library
50524         versions 1 and 2.  From Gordon Matzigkeit.
50525         Indent.
50526
50527 1998-09-21  Jim Meyering  <meyering@ascend.com>
50528
50529         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50530
50531 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50532
50533         Port nanosecond-resolution times to UnixWare 2.1.2 and
50534         pedantic Solaris 2.6.
50535
50536         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50537         AC_STRUCT_ST_MTIM.
50538         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50539         Generate name of ns member, instead of just 1 or undef.
50540         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50541
50542 1998-08-15  Jim Meyering  <meyering@ascend.com>
50543
50544         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50545         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50546         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50547         instead of jm_TYPE_SSIZE_T.
50548
50549 1998-08-12  Jim Meyering  <meyering@ascend.com>
50550
50551         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50552
50553 1998-08-02  Jim Meyering  <meyering@ascend.com>
50554
50555         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50556         in acconfig.h manually.
50557
50558 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50559
50560         * m4/st_mtim.m4: New file.
50561
50562 1998-07-28  Jim Meyering  <meyering@ascend.com>
50563
50564         * m4/utimes.m4: Undef stat.
50565
50566 1998-07-25  Jim Meyering  <meyering@ascend.com>
50567
50568         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50569         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50570
50571 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50572
50573         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50574         uid and gid actually remain unchanged.
50575
50576 1998-07-07  Jim Meyering  <meyering@ascend.com>
50577
50578         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50579
50580 1998-07-04  Jim Meyering  <meyering@ascend.com>
50581
50582         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50583         to prove that this macro can be used in packages without regex.c.
50584
50585 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50586
50587         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50588         is to be used.
50589
50590 1998-07-03  Jim Meyering  <meyering@ascend.com>
50591
50592         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50593
50594         * m4/gettext.m4: New file -- from gettext-0.10.35.
50595         * m4/lcmessage.m4: Likewise.
50596         * m4/progtest.m4: Likewise.
50597
50598         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50599         * m4/jm-macros.m4: Require the new macro.
50600
50601 1998-06-29  Jim Meyering  <meyering@ascend.com>
50602
50603         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50604         for the definition of NGROUPS (used in a system header included
50605         by sys/mount.h).
50606
50607 1998-06-28  Jim Meyering  <meyering@ascend.com>
50608
50609         * m4/ls-mntd-fs.m4: New file.
50610         * m4/fstypename.m4: New file.
50611
50612         * m4/jm-macros.m4: Require the new macro.
50613         * m4/jm-glibc-io.m4: New file.
50614
50615 1998-05-19  Jim Meyering  <meyering@ascend.com>
50616
50617         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50618         * m4/lchown.m4: New file.
50619
50620         * m4/Makefile.am.in: New file.
50621         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50622
50623 1998-05-14  Jim Meyering  <meyering@ascend.com>
50624
50625         * m4/Makefile.am (EXTRA_DIST): Add them.
50626         * m4/jm-macros.m4: New file.
50627         * m4/utimbuf.m4: New file.
50628
50629 1998-05-12  Jim Meyering  <meyering@ascend.com>
50630
50631         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50632
50633 1998-05-11  Jim Meyering  <meyering@ascend.com>
50634
50635         * m4/isc-posix.m4: New file.
50636
50637 1998-05-10  Jim Meyering  <meyering@ascend.com>
50638
50639         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50640
50641 1998-05-09  Jim Meyering  <meyering@ascend.com>
50642
50643         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50644         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50645         with automake.
50646
50647         * m4/ssize_t.m4: New file.
50648         * m4/mktime.m4: Remove file -- the new automake has this now.
50649
50650 1998-04-26  Jim Meyering  <meyering@ascend.com>
50651
50652         * m4/assert.m4: New file.
50653         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50654
50655 1998-04-05  Jim Meyering  <meyering@ascend.com>
50656
50657         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50658         (jm_PREREQ): Use it here.
50659
50660 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50661
50662         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50663         in acconfig.h.
50664
50665 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50666
50667         * m4/prereq.m4: New file.
50668         * m4/error.m4: New file.
50669         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50670
50671 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50672
50673         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50674         cache-check for the same variable -- that defeated the purpose of
50675         the test; the test program was never run.  This was a problem only
50676         on systems with losing getline functions -- HP-UX 10.20 is one.
50677         Reported by Bjorn Helgaas.
50678
50679 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50680
50681         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50682
50683 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50684
50685         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50686
50687         * m4/const.m4: New file.  Use an initializer in this declaration
50688         typedef int charset[2]; const charset x;
50689         Reported by Bob Glickstein.
50690
50691 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50692
50693         * m4/chown.m4: Fix reversed types on -1 args to chown.
50694         From Kaveh Ghazi.
50695
50696 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50697
50698         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50699         Add lseek and memchr.
50700
50701         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50702         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50703         have a 20-character limit on names.
50704
50705 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50706
50707         * m4/inttypes_h.m4: New file.
50708         * m4/uintmax_t.m4: New file.
50709         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50710
50711
50712         -----
50713
50714         Local Variables:
50715         coding: utf-8
50716         End:
50717
50718         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50719
50720         Copying and distribution of this file, with or without
50721         modification, are permitted provided the copyright notice
50722         and this notice are preserved.